@fluid-topics/ft-search-type 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-search-type.light.js +278 -278
- package/build/ft-search-type.min.js +324 -319
- package/package.json +3 -3
|
@@ -12,17 +12,17 @@
|
|
|
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,o=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,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 a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);
|
|
15
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,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 a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);u(r,l,a);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,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=o.call(i,t);f||(f=h(t),e.call(i,t,f)),this===window.customElements&&(s.set(r,c),c.standInClass=f);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)n.delete(t),d(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){b.push(this),i.upgrade.apply(i,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=s.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=f(o)||window.customElements,r=i._getDefinition(e);return r?d(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},p=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):p(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){p(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const g=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){b.push(this),o.set.call(this,t),b.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(ua){const t=window.customElements.define;window.customElements.define=(e,o,i)=>{if(null!==o)try{t.bind(window.customElements)(e,o,i)}catch(t){console.info(e,o,i,t)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,i)=>t((t=>{this.isCanceled?i(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?i(new e("Promise has been canceled",void 0,t)):i(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const i=t=>new o(((e,o)=>t.then(e).catch(o)));class r{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 o&&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=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)}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
19
19
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
20
|
-
*/const n=globalThis,s=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),l=new WeakMap;const c=t=>new class{constructor(t,e,o){if(this._$cssResult$=!0,o!==a)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(s&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=l.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&l.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,a),
|
|
20
|
+
*/const n=globalThis,s=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),l=new WeakMap;const c=t=>new class{constructor(t,e,o){if(this._$cssResult$=!0,o!==a)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(s&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=l.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&l.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,a),f=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return c(e)})(t):t
|
|
21
21
|
/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/,{is:
|
|
25
|
+
*/,{is:h,defineProperty:u,getOwnPropertyDescriptor:p,getOwnPropertyNames:d,getOwnPropertySymbols:y,getPrototypeOf:b}=Object,g=globalThis,m=g.trustedTypes,v=m?m.emptyScript:"",x=g.reactiveElementPolyfillSupport,O=(t,e)=>t,w={toAttribute(t,e){switch(e){case Boolean:t=t?v:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},S=(t,e)=>!h(t,e),N={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:S};Symbol.metadata??=Symbol("metadata"),g.litPropertyMetadata??=new WeakMap;let C=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=N){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&u(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=p(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??N}static _$Ei(){if(this.hasOwnProperty(O("elementProperties")))return;const t=b(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(O("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(O("properties"))){const t=this.properties,e=[...d(t),...y(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(f(t))}else void 0!==t&&e.push(f(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(s)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=n.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:w).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:w;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??S)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};C.elementStyles=[],C.shadowRootOptions={mode:"open"},C[O("elementProperties")]=new Map,C[O("finalized")]=new Map,x?.({ReactiveElement:C}),(g.reactiveElementVersions??=[]).push("2.0.2");
|
|
26
26
|
/**
|
|
27
27
|
* @license
|
|
28
28
|
* Copyright 2017 Google LLC
|
|
@@ -38,54 +38,59 @@ const $={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:S},E=(t=$,e,
|
|
|
38
38
|
* @license
|
|
39
39
|
* Copyright 2017 Google LLC
|
|
40
40
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
41
|
-
*/
|
|
41
|
+
*/function U(t){return(e,o)=>{const i="function"==typeof e?e:e[o];Object.assign(i,t)}}
|
|
42
42
|
/**
|
|
43
43
|
* @license
|
|
44
44
|
* Copyright 2017 Google LLC
|
|
45
45
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
46
|
-
|
|
46
|
+
*/const I=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
|
|
47
47
|
/**
|
|
48
48
|
* @license
|
|
49
49
|
* Copyright 2017 Google LLC
|
|
50
50
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
|
-
|
|
51
|
+
*/;function L(t,e){return(o,i,r)=>{const n=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof i?o:r??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return I(0,0,{get(){let o=t.call(this);return void 0===o&&(o=n(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return I(0,0,{get(){return n(this)}})}}
|
|
52
52
|
/**
|
|
53
53
|
* @license
|
|
54
54
|
* Copyright 2017 Google LLC
|
|
55
55
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
|
-
*/
|
|
56
|
+
*/let A;class W{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}const j=t=>new Promise((e=>setTimeout(e,t)));function F(t,e){return t.flatMap((t=>[t,...F(e(t),e)]))}function P(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,i,r;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(i=o;0!=i--;)if(!P(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!P(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;for(i=o;0!=i--;){var n=r[i];if(!P(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 B(t,e){const o=()=>JSON.parse(JSON.stringify(t));return k({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!P(t,e),...null!=e?e:{}})}
|
|
57
|
+
/**
|
|
58
|
+
* @license
|
|
59
|
+
* Copyright 2017 Google LLC
|
|
60
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
+
*/const z=globalThis,M=z.trustedTypes,T=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,K="$lit$",Z=`lit$${(Math.random()+"").slice(9)}$`,_="?"+Z,H=`<${_}>`,G=document,V=()=>G.createComment(""),q=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Y=Array.isArray,X=t=>Y(t)||"function"==typeof t?.[Symbol.iterator],J="[ \t\n\f\r]",Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tt=/-->/g,et=/>/g,ot=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),it=/'/g,rt=/"/g,nt=/^(?:script|style|textarea|title)$/i,st=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),at=Symbol.for("lit-noChange"),lt=Symbol.for("lit-nothing"),ct=new WeakMap,ft=G.createTreeWalker(G,129);function ht(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==T?T.createHTML(e):e}const ut=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",s=Q;for(let e=0;e<o;e++){const o=t[e];let a,l,c=-1,f=0;for(;f<o.length&&(s.lastIndex=f,l=s.exec(o),null!==l);)f=s.lastIndex,s===Q?"!--"===l[1]?s=tt:void 0!==l[1]?s=et:void 0!==l[2]?(nt.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=ot):void 0!==l[3]&&(s=ot):s===ot?">"===l[0]?(s=r??Q,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?ot:'"'===l[3]?rt:it):s===rt||s===it?s=ot:s===tt||s===et?s=Q:(s=ot,r=void 0);const h=s===ot&&t[e+1].startsWith("/>")?" ":"";n+=s===Q?o+H:c>=0?(i.push(a),o.slice(0,c)+K+o.slice(c)+Z+h):o+Z+(-2===c?e:h)}return[ht(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};let pt=class t{constructor({strings:e,_$litType$:o},i){let r;this.parts=[];let n=0,s=0;const a=e.length-1,l=this.parts,[c,f]=ut(e,o);if(this.el=t.createElement(c,i),ft.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ft.nextNode())&&l.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(K)){const e=f[s++],o=r.getAttribute(t).split(Z),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:o,ctor:"."===i[1]?mt:"?"===i[1]?vt:"@"===i[1]?xt:gt}),r.removeAttribute(t)}else t.startsWith(Z)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(nt.test(r.tagName)){const t=r.textContent.split(Z),e=t.length-1;if(e>0){r.textContent=M?M.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],V()),ft.nextNode(),l.push({type:2,index:++n});r.append(t[e],V())}}}else if(8===r.nodeType)if(r.data===_)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(Z,t+1));)l.push({type:7,index:n}),t+=Z.length-1}n++}}static createElement(t,e){const o=G.createElement("template");return o.innerHTML=t,o}};function dt(t,e,o=t,i){if(e===at)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=q(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=dt(t,r._$AS(t,e.values),r,i)),e}let yt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??G).importNode(e,!0);ft.currentNode=i;let r=ft.nextNode(),n=0,s=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new bt(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new Ot(r,this,t)),this._$AV.push(e),a=o[++s]}n!==a?.index&&(r=ft.nextNode(),n++)}return ft.currentNode=G,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},bt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=lt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=dt(this,t,e),q(t)?t===lt||null==t||""===t?(this._$AH!==lt&&this._$AR(),this._$AH=lt):t!==this._$AH&&t!==at&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):X(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==lt&&q(this._$AH)?this._$AA.nextSibling.data=t:this.$(G.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=pt.createElement(ht(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new yt(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=ct.get(t.strings);return void 0===e&&ct.set(t.strings,e=new pt(t)),e}T(e){Y(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(V()),this.k(V()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=lt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=lt}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=dt(this,t,e,0),n=!q(t)||t!==this._$AH&&t!==at,n&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=dt(this,i[o+s],e,s),a===at&&(a=this._$AH[s]),n||=!q(a)||a!==this._$AH[s],a===lt?t=lt:t!==lt&&(t+=(a??"")+r[s+1]),this._$AH[s]=a}n&&!i&&this.O(t)}O(t){t===lt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},mt=class extends gt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===lt?void 0:t}},vt=class extends gt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==lt)}},xt=class extends gt{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=dt(this,t,e,0)??lt)===at)return;const o=this._$AH,i=t===lt&&o!==lt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==lt&&(o===lt||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Ot=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){dt(this,t)}};const wt={j:K,P:Z,A:_,C:1,M:ut,L:yt,R:X,V:dt,D:bt,I:gt,H:vt,N:xt,U:mt,B:Ot},St=z.litHtmlPolyfillSupport;St?.(pt,bt),(z.litHtmlVersions??=[]).push("3.1.0");
|
|
57
62
|
/**
|
|
58
63
|
* @license
|
|
59
64
|
* Copyright 2019 Google LLC
|
|
60
65
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
66
|
*/
|
|
62
|
-
const
|
|
67
|
+
const Nt=globalThis,Ct=Nt.ShadowRoot&&(void 0===Nt.ShadyCSS||Nt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$t=Symbol(),Et=new WeakMap;let kt=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==$t)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(Ct&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=Et.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Et.set(e,t))}return t}toString(){return this.cssText}};const Rt=t=>new kt("string"==typeof t?t:t+"",void 0,$t),Ut=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1]),t[0]);return new kt(o,t,$t)},It=Ct?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return Rt(e)})(t):t
|
|
63
68
|
/**
|
|
64
69
|
* @license
|
|
65
70
|
* Copyright 2017 Google LLC
|
|
66
71
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
67
|
-
*/,{is:
|
|
72
|
+
*/,{is:Lt,defineProperty:At,getOwnPropertyDescriptor:Wt,getOwnPropertyNames:jt,getOwnPropertySymbols:Ft,getPrototypeOf:Pt}=Object,Dt=globalThis,Bt=Dt.trustedTypes,zt=Bt?Bt.emptyScript:"",Mt=Dt.reactiveElementPolyfillSupport,Tt=(t,e)=>t,Kt={toAttribute(t,e){switch(e){case Boolean:t=t?zt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},Zt=(t,e)=>!Lt(t,e),_t={attribute:!0,type:String,converter:Kt,reflect:!1,hasChanged:Zt};Symbol.metadata??=Symbol("metadata"),Dt.litPropertyMetadata??=new WeakMap;let Ht=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=_t){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&At(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=Wt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??_t}static _$Ei(){if(this.hasOwnProperty(Tt("elementProperties")))return;const t=Pt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Tt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Tt("properties"))){const t=this.properties,e=[...jt(t),...Ft(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(It(t))}else void 0!==t&&e.push(It(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(Ct)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=Nt.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:Kt).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Kt;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Zt)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};Ht.elementStyles=[],Ht.shadowRootOptions={mode:"open"},Ht[Tt("elementProperties")]=new Map,Ht[Tt("finalized")]=new Map,Mt?.({ReactiveElement:Ht}),(Dt.reactiveElementVersions??=[]).push("2.0.2");
|
|
68
73
|
/**
|
|
69
74
|
* @license
|
|
70
75
|
* Copyright 2017 Google LLC
|
|
71
76
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
72
77
|
*/
|
|
73
|
-
const
|
|
78
|
+
const Gt=globalThis,Vt=Gt.trustedTypes,qt=Vt?Vt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Yt="$lit$",Xt=`lit$${(Math.random()+"").slice(9)}$`,Jt="?"+Xt,Qt=`<${Jt}>`,te=document,ee=()=>te.createComment(""),oe=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ie=Array.isArray,re="[ \t\n\f\r]",ne=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,se=/-->/g,ae=/>/g,le=RegExp(`>|${re}(?:([^\\s"'>=/]+)(${re}*=${re}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ce=/'/g,fe=/"/g,he=/^(?:script|style|textarea|title)$/i,ue=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),pe=Symbol.for("lit-noChange"),de=Symbol.for("lit-nothing"),ye=new WeakMap,be=te.createTreeWalker(te,129);function ge(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==qt?qt.createHTML(e):e}class me{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const s=t.length-1,a=this.parts,[l,c]=((t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",s=ne;for(let e=0;e<o;e++){const o=t[e];let a,l,c=-1,f=0;for(;f<o.length&&(s.lastIndex=f,l=s.exec(o),null!==l);)f=s.lastIndex,s===ne?"!--"===l[1]?s=se:void 0!==l[1]?s=ae:void 0!==l[2]?(he.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=le):void 0!==l[3]&&(s=le):s===le?">"===l[0]?(s=r??ne,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?le:'"'===l[3]?fe:ce):s===fe||s===ce?s=le:s===se||s===ae?s=ne:(s=le,r=void 0);const h=s===le&&t[e+1].startsWith("/>")?" ":"";n+=s===ne?o+Qt:c>=0?(i.push(a),o.slice(0,c)+Yt+o.slice(c)+Xt+h):o+Xt+(-2===c?e:h)}return[ge(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]})(t,e);if(this.el=me.createElement(l,o),be.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=be.nextNode())&&a.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Yt)){const e=c[n++],o=i.getAttribute(t).split(Xt),s=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:s[2],strings:o,ctor:"."===s[1]?we:"?"===s[1]?Se:"@"===s[1]?Ne:Oe}),i.removeAttribute(t)}else t.startsWith(Xt)&&(a.push({type:6,index:r}),i.removeAttribute(t));if(he.test(i.tagName)){const t=i.textContent.split(Xt),e=t.length-1;if(e>0){i.textContent=Vt?Vt.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],ee()),be.nextNode(),a.push({type:2,index:++r});i.append(t[e],ee())}}}else if(8===i.nodeType)if(i.data===Jt)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Xt,t+1));)a.push({type:7,index:r}),t+=Xt.length-1}r++}}static createElement(t,e){const o=te.createElement("template");return o.innerHTML=t,o}}function ve(t,e,o=t,i){if(e===pe)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=oe(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=ve(t,r._$AS(t,e.values),r,i)),e}let xe=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=de,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ve(this,t,e),oe(t)?t===de||null==t||""===t?(this._$AH!==de&&this._$AR(),this._$AH=de):t!==this._$AH&&t!==pe&&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!==de&&oe(this._$AH)?this._$AA.nextSibling.data=t:this.$(te.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=me.createElement(ge(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??te).importNode(e,!0);be.currentNode=i;let r=be.nextNode(),n=0,s=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new xe(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new Ce(r,this,t)),this._$AV.push(e),a=o[++s]}n!==a?.index&&(r=be.nextNode(),n++)}return be.currentNode=te,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=ye.get(t.strings);return void 0===e&&ye.set(t.strings,e=new me(t)),e}T(e){ie(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(ee()),this.k(ee()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},Oe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=de,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=de}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=ve(this,t,e,0),n=!oe(t)||t!==this._$AH&&t!==pe,n&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=ve(this,i[o+s],e,s),a===pe&&(a=this._$AH[s]),n||=!oe(a)||a!==this._$AH[s],a===de?t=de:t!==de&&(t+=(a??"")+r[s+1]),this._$AH[s]=a}n&&!i&&this.O(t)}O(t){t===de?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},we=class extends Oe{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===de?void 0:t}},Se=class extends Oe{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==de)}},Ne=class extends Oe{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=ve(this,t,e,0)??de)===pe)return;const o=this._$AH,i=t===de&&o!==de||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==de&&(o===de||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Ce=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ve(this,t)}};const $e=Gt.litHtmlPolyfillSupport;$e?.(me,xe),(Gt.litHtmlVersions??=[]).push("3.1.0");
|
|
74
79
|
/**
|
|
75
80
|
* @license
|
|
76
81
|
* Copyright 2017 Google LLC
|
|
77
82
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
78
83
|
*/
|
|
79
|
-
let $e=class extends _t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{const i=o?.renderBefore??e;let r=i._$litPart$;if(void 0===r){const t=o?.renderBefore??null;i._$litPart$=r=new ve(e.insertBefore(te(),t),t,void 0,o??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return pe}};$e._$litElement$=!0,$e.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:$e});const Ee=globalThis.litElementPolyfillSupport;Ee?.({LitElement:$e}),(globalThis.litElementVersions??=[]).push("4.0.2");const ke=t=>"string"==typeof t?kt(t):t;class Re{static create(t,e,o,i){const r=t=>ke(null!=t?t:i),n=Rt`var(${ke(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>Rt`var(${ke(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,o,i){const r=t=>o.get(null!=t?t:i),n=Rt`var(${ke(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o.category,n.fallbackVariable=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>Rt`var(${ke(t)}, ${r(e)})`,n.breadcrumb=()=>[o.name,...o.breadcrumb()],n.lastResortDefaultValue=()=>null!=i?i:o.lastResortDefaultValue(),n}static external(t,e){const o=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):ke(null!=e?e:t.lastResortDefaultValue()),i=Rt`var(${ke(t.name)}, ${o(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=e,i.defaultCssValue=o,i.get=e=>Rt`var(${ke(t.name)}, ${o(e)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}function Ue(t,e){return ke(`${t.name}: ${e}`)}const Ie={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.",Ie.colorBrand0),backgroundErrorPrimary:Re.extend("--ft-background-error-primary","Used as background of error components.",Ie.colorRed0),backgroundErrorSubtle:Re.extend("--ft-background-error-subtle","Used as background of subtle error components.",Ie.colorRed10),backgroundInfoPrimary:Re.extend("--ft-background-info-primary","Used as background of information components.",Ie.colorCyan200),backgroundInfoSubtle:Re.extend("--ft-background-info-subtle","Used as background of subtle information components.",Ie.colorCyan10),backgroundWarningPrimary:Re.extend("--ft-background-warning-primary","Used as background of warning components.",Ie.colorOrange300),backgroundWarningSubtle:Re.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Ie.colorOrange10),backgroundSuccessPrimary:Re.extend("--ft-background-success-primary","Used as background of success components.",Ie.colorGreen200),backgroundSuccessSubtle:Re.extend("--ft-background-success-subtle","Used as background of subtle success components.",Ie.colorGreen10),backgroundGlobalSurface:Re.extend("--ft-background-global-surface","Used as app background.",Ie.colorWhite),backgroundGlobalOnSurface:Re.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Ie.colorGray10),backgroundGlobalOnSurfaceDark:Re.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Ie.colorGray30),contentActionPrimary:Re.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Ie.colorBrand0),contentWarningPrimary:Re.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Ie.colorOrange300),contentWarningIconOnly:Re.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Ie.colorOrange0),contentErrorPrimary:Re.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Ie.colorRed0),contentErrorIconOnly:Re.extend("--ft-content-error-icon-only","Used on error status icons alone",Ie.colorRed0),contentInfoPrimary:Re.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Ie.colorCyan200),contentInfoIconOnly:Re.extend("--ft-content-info-icon-only","Used on info status icons alone",Ie.colorCyan0),contentSuccessIconOnly:Re.extend("--ft-content-success-icon-only","Used on success status icons alone",Ie.colorGreen0),contentSuccessPrimary:Re.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Ie.colorGreen200),contentGlobalPrimary:Re.extend("--ft-content-global-primary","Used for main content on the page.",Ie.colorGray500),contentGlobalSecondary:Re.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Ie.colorGray200),contentGlobalSubtle:Re.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Ie.colorGray0),contentGlobalOnColor:Re.extend("--ft-content-global-on-color","Used for content on a dominant color.",Ie.colorWhite),borderActionPrimary:Re.extend("--ft-border-action-primary","Used as border for primary action components.",Ie.colorBrand0),borderActionFocusRing:Re.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Ie.colorCyan0),borderWarningPrimary:Re.extend("--ft-border-warning-primary","Used as border for warning components.",Ie.colorOrange30),borderSuccessPrimary:Re.extend("--ft-border-success-primary","Used as border for success components.",Ie.colorGreen30),borderErrorPrimary:Re.extend("--ft-border-error-primary","Used as border for error components.",Ie.colorRed30),borderInfoPrimary:Re.extend("--ft-border-info-primary","Used as border for information components.",Ie.colorCyan30),borderGlobalSubtle:Re.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Ie.colorGray30),borderGlobalPrimary:Re.extend("--ft-border-global-primary","Used as border for element like input.",Ie.colorGray50),borderInputPrimary:Re.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Ie.colorGray80)},We={largeHeight:Re.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Re.extend("--ft-button-large-horizontal-padding","",Ie.spacing4),largeGap:Re.extend("--ft-button-large-gap","",Ie.spacing2),largeBorderRadius:Re.extend("--ft-button-large-border-radius","",Ie.borderRadiusS),largeIconSize:Re.extend("--ft-button-large-icon-size","",Ie.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","",Ie.spacing3),smallGap:Re.extend("--ft-button-small-gap","",Ie.spacing2),smallBorderRadius:Re.extend("--ft-button-small-border-radius","",Ie.borderRadiusS),smallIconSize:Re.extend("--ft-button-small-icon-size","",Ie.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","",Ie.opacity16),primaryStateLayerOpacityFocus:Re.extend("--ft-button-primary-state-layer-opacity-focus","",Ie.opacity16),primaryStateLayerOpacityActive:Re.extend("--ft-button-primary-state-layer-opacity-active","",Ie.opacity24),primaryComponentOpacityDisabled:Re.extend("--ft-button-primary-component-opacity-disabled","",Ie.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","",Ie.opacity8),tertiaryStateLayerOpacityFocus:Re.extend("--ft-button-tertiary-state-layer-opacity-focus","",Ie.opacity8),tertiaryStateLayerOpacityActive:Re.extend("--ft-button-tertiary-state-layer-opacity-active","",Ie.opacity16),tertiaryComponentOpacityDisabled:Re.extend("--ft-button-tertiary-component-opacity-disabled","",Ie.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","",Ie.opacity8),secondaryStateLayerOpacityFocus:Re.extend("--ft-button-secondary-state-layer-opacity-focus","",Ie.opacity8),secondaryStateLayerOpacityActive:Re.extend("--ft-button-secondary-state-layer-opacity-active","",Ie.opacity16),secondaryComponentOpacityDisabled:Re.extend("--ft-button-secondary-component-opacity-disabled","",Ie.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","",Ie.opacity8),neutralStateLayerOpacityFocus:Re.extend("--ft-button-neutral-state-layer-opacity-focus","",Ie.opacity8),neutralStateLayerOpacityActive:Re.extend("--ft-button-neutral-state-layer-opacity-active","",Ie.opacity16),neutralComponentOpacityDisabled:Re.extend("--ft-button-neutral-component-opacity-disabled","",Ie.opacity40)};Re.extend("--ft-tabs-top-left-border-radius","",Ie.borderRadiusS),Re.extend("--ft-tabs-top-right-border-radius","",Ie.borderRadiusS),Re.extend("--ft-tabs-label-horizontal-padding","",Ie.spacing4),Re.extend("--ft-tabs-label-vertical-padding","",Ie.spacing3),Re.extend("--ft-tabs-label-gap","",Ie.spacing1),Re.extend("--ft-switch-group-horizontal-padding","",Ie.spacing1),Re.extend("--ft-switch-group-vertical-padding","",Ie.spacing1),Re.extend("--ft-switch-group-gap","",Ie.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","",Ie.spacing2),Re.extend("--ft-switch-label-vertical-padding","",Ie.spacing1),Re.extend("--ft-switch-icon-horizontal-padding","",Ie.spacing1),Re.extend("--ft-switch-icon-vertical-padding","",Ie.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","",Ie.borderRadiusS),Re.extend("--ft-switch-off-state-layer-opacity-hover","",Ie.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-focus","",Ie.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-active","",Ie.opacity16),Re.extend("--ft-switch-off-component-opacity-disabled","",Ie.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",Ie.colorBrand40),Re.extend("--ft-chart-1-base","for line charts",Ie.colorBrand0),Re.extend("--ft-chart-2-light","for area color charts",Ie.colorYellow60),Re.extend("--ft-chart-2-base","for line charts",Ie.colorYellow100),Re.extend("--ft-chart-3-light","",Ie.colorUltramarine40),Re.extend("--ft-chart-3-base","",Ie.colorUltramarine70),Re.extend("--ft-chart-4-light","",Ie.colorCyan50),Re.extend("--ft-chart-4-base","",Ie.colorCyan100),Re.extend("--ft-chart-5-light","",Ie.colorRed40),Re.extend("--ft-chart-5-base","",Ie.colorRed60),Re.extend("--ft-chart-6-light","",Ie.colorGreen40),Re.extend("--ft-chart-6-base","",Ie.colorGreen70),Re.extend("--ft-chart-7-light","",Ie.colorOrange70),Re.extend("--ft-chart-7-base","",Ie.colorOrange100),Re.extend("--ft-chart-8-light","",Ie.colorAvocado70),Re.extend("--ft-chart-8-base","",Ie.colorAvocado200),Re.extend("--ft-chart-9-light","",Ie.colorBrown50),Re.extend("--ft-chart-9-base","",Ie.colorBrown200),Re.extend("--ft-chart-10-light","",Ie.colorGray50),Re.extend("--ft-chart-10-base","",Ie.colorGray80),Re.extend("--ft-chart-monochrome-10","",Ie.colorBrand10),Re.extend("--ft-chart-monochrome-20","",Ie.colorBrand20),Re.extend("--ft-chart-monochrome-30","",Ie.colorBrand40),Re.extend("--ft-chart-monochrome-40","",Ie.colorBrand60),Re.extend("--ft-chart-monochrome-50","",Ie.colorBrand0),Re.extend("--ft-chart-monochrome-60","",Ie.colorBrand200),Re.extend("--ft-chip-large-horizontal-padding","",Ie.spacing4),Re.extend("--ft-chip-large-vertical-padding","",Ie.spacing2),Re.extend("--ft-chip-large-gap","",Ie.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","",Ie.borderRadiusPill),Re.create("--ft-chip-large-border-width","","SIZE","1px"),Re.extend("--ft-chip-large-icon-size","",Ie.iconSize3),Re.extend("--ft-chip-medium-horizontal-padding","",Ie.spacing3),Re.extend("--ft-chip-medium-vertical-padding","",Ie.spacing1),Re.extend("--ft-chip-medium-gap","",Ie.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","",Ie.borderRadiusPill),Re.create("--ft-chip-medium-border-width","","SIZE","1px"),Re.extend("--ft-chip-medium-icon-size","",Ie.iconSize2),Re.extend("--ft-chip-small-horizontal-padding","",Ie.spacing2),Re.extend("--ft-chip-small-vertical-padding","",Ie.spacing05),Re.extend("--ft-chip-small-gap","",Ie.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","",Ie.borderRadiusPill),Re.create("--ft-chip-small-border-width","","SIZE","1px"),Re.extend("--ft-chip-small-icon-size","",Ie.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","",Ie.spacing2),Re.extend("--ft-notice-vertical-padding","",Ie.spacing1),Re.extend("--ft-notice-border-radius","",Ie.borderRadiusS),Re.extend("--ft-notice-gap","",Ie.spacing2),Re.extend("--ft-notice-icon-size","",Ie.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","",Ie.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Ie.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-active","",Ie.opacity24),Re.extend("--ft-checkbox-checked-component-opacity-disabled","",Ie.opacity40),Re.extend("--ft-checkbox-unchecked-border-color","",Ie.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-color","",Ie.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Ie.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Ie.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Ie.opacity24),Re.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Ie.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","",Ie.spacing3),Re.extend("--ft-toggle-off-state-layer-opacity-hover","",Ie.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-focus","",Ie.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-active","",Ie.opacity24),Re.extend("--ft-toggle-off-component-opacity-disabled","",Ie.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","",Ie.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-focus","",Ie.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-active","",Ie.opacity24),Re.extend("--ft-toggle-on-component-opacity-disabled","",Ie.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","",Ie.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","",Ie.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-focus","",Ie.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-active","",Ie.opacity24),Re.extend("--ft-radio-selected-component-opacity-disabled","",Ie.opacity40),Re.extend("--ft-radio-unselected-state-layer-color","",Ie.colorGray80),Re.extend("--ft-radio-unselected-state-layer-opacity-hover","",Ie.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-focus","",Ie.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-active","",Ie.opacity24),Re.extend("--ft-radio-unselected-component-opacity-disabled","",Ie.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","",Ie.spacing3),Re.extend("--ft-notification-icon-size","",Ie.iconSize4),Re.extend("--ft-notification-horizontal-padding","",Ie.spacing4),Re.extend("--ft-notification-vertical-padding","",Ie.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","",Ie.borderRadiusPill),Re.create("--ft-notification-border-width","","SIZE","1px"),Re.extend("--ft-notification-gap-leading","",Ie.spacing2),Re.extend("--ft-notification-gap-trailing","",Ie.spacing8);const je={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")},Fe=window,De=Fe.ShadowRoot&&(void 0===Fe.ShadyCSS||Fe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;
|
|
84
|
+
let Ee=class extends Ht{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{const i=o?.renderBefore??e;let r=i._$litPart$;if(void 0===r){const t=o?.renderBefore??null;i._$litPart$=r=new xe(e.insertBefore(ee(),t),t,void 0,o??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return pe}};Ee._$litElement$=!0,Ee.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ee});const ke=globalThis.litElementPolyfillSupport;ke?.({LitElement:Ee}),(globalThis.litElementVersions??=[]).push("4.0.2");const Re=t=>"string"==typeof t?Rt(t):t;class Ue{static create(t,e,o,i){const r=t=>Re(null!=t?t:i),n=Ut`var(${Re(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>Ut`var(${Re(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,o,i){const r=t=>o.get(null!=t?t:i),n=Ut`var(${Re(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o.category,n.fallbackVariable=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>Ut`var(${Re(t)}, ${r(e)})`,n.breadcrumb=()=>[o.name,...o.breadcrumb()],n.lastResortDefaultValue=()=>null!=i?i:o.lastResortDefaultValue(),n}static external(t,e){const o=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):Re(null!=e?e:t.lastResortDefaultValue()),i=Ut`var(${Re(t.name)}, ${o(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=e,i.defaultCssValue=o,i.get=e=>Ut`var(${Re(t.name)}, ${o(e)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}function Ie(t,e){return Re(`${t.name}: ${e}`)}const Le={colorWhite:Ue.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Ue.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Ue.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Ue.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Ue.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Ue.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Ue.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Ue.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Ue.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Ue.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Ue.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Ue.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Ue.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Ue.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Ue.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Ue.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Ue.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Ue.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Ue.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Ue.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Ue.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Ue.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Ue.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Ue.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Ue.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Ue.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Ue.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Ue.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Ue.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Ue.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Ue.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Ue.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Ue.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Ue.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Ue.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Ue.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Ue.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Ue.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Ue.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Ue.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Ue.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Ue.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Ue.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Ue.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Ue.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Ue.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Ue.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Ue.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Ue.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Ue.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Ue.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Ue.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Ue.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Ue.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Ue.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Ue.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Ue.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Ue.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Ue.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Ue.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Ue.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Ue.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Ue.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Ue.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Ue.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Ue.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Ue.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Ue.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Ue.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Ue.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Ue.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Ue.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Ue.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Ue.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Ue.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Ue.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Ue.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Ue.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Ue.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Ue.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Ue.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Ue.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Ue.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Ue.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Ue.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Ue.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Ue.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Ue.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Ue.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Ue.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Ue.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Ue.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Ue.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Ue.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Ue.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Ue.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Ue.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Ue.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Ue.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Ue.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Ue.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Ue.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Ue.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Ue.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Ue.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Ue.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Ue.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Ue.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Ue.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Ue.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Ue.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Ue.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Ue.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Ue.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Ue.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Ue.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Ue.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Ue.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Ue.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Ue.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Ue.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Ue.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Ue.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Ue.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Ue.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Ue.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Ue.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Ue.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Ue.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Ue.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Ue.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Ue.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Ue.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Ue.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Ue.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Ue.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Ue.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Ue.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Ue.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Ue.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Ue.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Ue.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Ue.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Ue.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Ue.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Ue.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Ue.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Ue.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Ue.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Ue.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Ue.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Ue.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Ue.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Ue.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Ue.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Ue.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Ue.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Ue.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Ue.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Ue.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Ue.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Ue.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Ue.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Ue.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Ue.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Ue.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Ue.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Ue.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Ue.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Ue.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Ue.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Ue.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Ue.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Ue.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Ue.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Ue.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Ue.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Ue.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Ue.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Ue.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Ue.create("--ft-opacity-0","","NUMBER","0"),opacity8:Ue.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Ue.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Ue.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Ue.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Ue.create("--ft-opacity-80","","NUMBER","0.8")},Ae={display:{fontFamily:Ue.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Ue.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Ue.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Ue.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ue.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Ue.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Ue.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Ue.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Ue.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Ue.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ue.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Ue.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Ue.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Ue.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Ue.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Ue.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ue.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Ue.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Ue.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Ue.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Ue.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Ue.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Ue.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Ue.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Ue.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ue.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Ue.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Ue.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ue.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Ue.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Ue.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ue.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Ue.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Ue.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ue.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Ue.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Ue.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ue.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Ue.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Ue.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ue.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Ue.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Ue.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ue.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Ue.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Ue.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ue.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Ue.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Ue.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ue.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Ue.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ue.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ue.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Ue.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Ue.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ue.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Ue.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ue.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ue.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Ue.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Ue.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ue.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Ue.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ue.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Ue.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ue.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Ue.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ue.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Ue.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ue.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ue.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ue.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Ue.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ue.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Ue.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Ue.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Ue.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ue.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Ue.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ue.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Ue.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ue.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Ue.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ue.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Ue.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ue.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Ue.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ue.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ue.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ue.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Ue.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ue.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Ue.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ue.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Ue.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ue.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Ue.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ue.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Ue.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ue.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Ue.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ue.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Ue.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ue.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Ue.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ue.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Ue.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ue.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Ue.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ue.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Ue.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ue.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Ue.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ue.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Ue.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ue.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Ue.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Ue.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Ue.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ue.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Ue.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ue.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Ue.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ue.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Ue.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ue.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Ue.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ue.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ue.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Ue.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ue.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Ue.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ue.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ue.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ue.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},We={backgroundActionPrimary:Ue.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Le.colorBrand0),backgroundErrorPrimary:Ue.extend("--ft-background-error-primary","Used as background of error components.",Le.colorRed0),backgroundErrorSubtle:Ue.extend("--ft-background-error-subtle","Used as background of subtle error components.",Le.colorRed10),backgroundInfoPrimary:Ue.extend("--ft-background-info-primary","Used as background of information components.",Le.colorCyan200),backgroundInfoSubtle:Ue.extend("--ft-background-info-subtle","Used as background of subtle information components.",Le.colorCyan10),backgroundWarningPrimary:Ue.extend("--ft-background-warning-primary","Used as background of warning components.",Le.colorOrange300),backgroundWarningSubtle:Ue.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Le.colorOrange10),backgroundSuccessPrimary:Ue.extend("--ft-background-success-primary","Used as background of success components.",Le.colorGreen200),backgroundSuccessSubtle:Ue.extend("--ft-background-success-subtle","Used as background of subtle success components.",Le.colorGreen10),backgroundGlobalSurface:Ue.extend("--ft-background-global-surface","Used as app background.",Le.colorWhite),backgroundGlobalOnSurface:Ue.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Le.colorGray10),backgroundGlobalOnSurfaceDark:Ue.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Le.colorGray30),contentActionPrimary:Ue.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Le.colorBrand0),contentWarningPrimary:Ue.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Le.colorOrange300),contentWarningIconOnly:Ue.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Le.colorOrange0),contentErrorPrimary:Ue.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Le.colorRed0),contentErrorIconOnly:Ue.extend("--ft-content-error-icon-only","Used on error status icons alone",Le.colorRed0),contentInfoPrimary:Ue.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Le.colorCyan200),contentInfoIconOnly:Ue.extend("--ft-content-info-icon-only","Used on info status icons alone",Le.colorCyan0),contentSuccessIconOnly:Ue.extend("--ft-content-success-icon-only","Used on success status icons alone",Le.colorGreen0),contentSuccessPrimary:Ue.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Le.colorGreen200),contentGlobalPrimary:Ue.extend("--ft-content-global-primary","Used for main content on the page.",Le.colorGray500),contentGlobalSecondary:Ue.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Le.colorGray200),contentGlobalSubtle:Ue.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Le.colorGray0),contentGlobalOnColor:Ue.extend("--ft-content-global-on-color","Used for content on a dominant color.",Le.colorWhite),borderActionPrimary:Ue.extend("--ft-border-action-primary","Used as border for primary action components.",Le.colorBrand0),borderActionFocusRing:Ue.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Le.colorCyan0),borderWarningPrimary:Ue.extend("--ft-border-warning-primary","Used as border for warning components.",Le.colorOrange30),borderSuccessPrimary:Ue.extend("--ft-border-success-primary","Used as border for success components.",Le.colorGreen30),borderErrorPrimary:Ue.extend("--ft-border-error-primary","Used as border for error components.",Le.colorRed30),borderInfoPrimary:Ue.extend("--ft-border-info-primary","Used as border for information components.",Le.colorCyan30),borderGlobalSubtle:Ue.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Le.colorGray30),borderGlobalPrimary:Ue.extend("--ft-border-global-primary","Used as border for element like input.",Le.colorGray50),borderInputPrimary:Ue.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Le.colorGray80)},je={largeHeight:Ue.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Ue.extend("--ft-button-large-horizontal-padding","",Le.spacing4),largeGap:Ue.extend("--ft-button-large-gap","",Le.spacing2),largeBorderRadius:Ue.extend("--ft-button-large-border-radius","",Le.borderRadiusS),largeIconSize:Ue.extend("--ft-button-large-icon-size","",Le.iconSize3),largeBorderWidth:Ue.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Ue.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Ue.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Ue.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Ue.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Ue.extend("--ft-button-small-horizontal-padding","",Le.spacing3),smallGap:Ue.extend("--ft-button-small-gap","",Le.spacing2),smallBorderRadius:Ue.extend("--ft-button-small-border-radius","",Le.borderRadiusS),smallIconSize:Ue.extend("--ft-button-small-icon-size","",Le.iconSize2),smallBorderWidth:Ue.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Ue.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Ue.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Ue.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Ue.extend("--ft-button-primary-background-color","",We.backgroundActionPrimary),primaryColor:Ue.extend("--ft-button-primary-color","",We.contentGlobalOnColor),primaryIconColor:Ue.extend("--ft-button-primary-icon-color","",We.contentGlobalOnColor),primaryStateLayerColor:Ue.extend("--ft-button-primary-state-layer-color","",We.contentGlobalOnColor),primaryStateLayerOpacityHover:Ue.extend("--ft-button-primary-state-layer-opacity-hover","",Le.opacity16),primaryStateLayerOpacityFocus:Ue.extend("--ft-button-primary-state-layer-opacity-focus","",Le.opacity16),primaryStateLayerOpacityActive:Ue.extend("--ft-button-primary-state-layer-opacity-active","",Le.opacity24),primaryComponentOpacityDisabled:Ue.extend("--ft-button-primary-component-opacity-disabled","",Le.opacity40),focusFocusRingColor:Ue.extend("--ft-button-focus-focus-ring-color","",We.borderActionFocusRing),tertiaryBackgroundColor:Ue.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Ue.extend("--ft-button-tertiary-color","",We.contentActionPrimary),tertiaryIconColor:Ue.extend("--ft-button-tertiary-icon-color","",We.contentActionPrimary),tertiaryStateLayerColor:Ue.extend("--ft-button-tertiary-state-layer-color","",We.contentActionPrimary),tertiaryStateLayerOpacityHover:Ue.extend("--ft-button-tertiary-state-layer-opacity-hover","",Le.opacity8),tertiaryStateLayerOpacityFocus:Ue.extend("--ft-button-tertiary-state-layer-opacity-focus","",Le.opacity8),tertiaryStateLayerOpacityActive:Ue.extend("--ft-button-tertiary-state-layer-opacity-active","",Le.opacity16),tertiaryComponentOpacityDisabled:Ue.extend("--ft-button-tertiary-component-opacity-disabled","",Le.opacity40),secondaryBackgroundColor:Ue.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Ue.extend("--ft-button-secondary-color","",We.contentActionPrimary),secondaryIconColor:Ue.extend("--ft-button-secondary-icon-color","",We.contentActionPrimary),secondaryStateLayerColor:Ue.extend("--ft-button-secondary-state-layer-color","",We.contentActionPrimary),secondaryStateLayerOpacityHover:Ue.extend("--ft-button-secondary-state-layer-opacity-hover","",Le.opacity8),secondaryStateLayerOpacityFocus:Ue.extend("--ft-button-secondary-state-layer-opacity-focus","",Le.opacity8),secondaryStateLayerOpacityActive:Ue.extend("--ft-button-secondary-state-layer-opacity-active","",Le.opacity16),secondaryComponentOpacityDisabled:Ue.extend("--ft-button-secondary-component-opacity-disabled","",Le.opacity40),secondaryBorderColor:Ue.extend("--ft-button-secondary-border-color","",We.borderActionPrimary),neutralBackgroundColor:Ue.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Ue.extend("--ft-button-neutral-icon-color","",We.contentGlobalSecondary),neutralColor:Ue.extend("--ft-button-neutral-color","",We.contentGlobalSecondary),neutralStateLayerColor:Ue.extend("--ft-button-neutral-state-layer-color","",We.contentGlobalSecondary),neutralStateLayerOpacityHover:Ue.extend("--ft-button-neutral-state-layer-opacity-hover","",Le.opacity8),neutralStateLayerOpacityFocus:Ue.extend("--ft-button-neutral-state-layer-opacity-focus","",Le.opacity8),neutralStateLayerOpacityActive:Ue.extend("--ft-button-neutral-state-layer-opacity-active","",Le.opacity16),neutralComponentOpacityDisabled:Ue.extend("--ft-button-neutral-component-opacity-disabled","",Le.opacity40)};Ue.extend("--ft-tabs-top-left-border-radius","",Le.borderRadiusS),Ue.extend("--ft-tabs-top-right-border-radius","",Le.borderRadiusS),Ue.extend("--ft-tabs-label-horizontal-padding","",Le.spacing4),Ue.extend("--ft-tabs-label-vertical-padding","",Le.spacing3),Ue.extend("--ft-tabs-label-gap","",Le.spacing1),Ue.extend("--ft-switch-group-horizontal-padding","",Le.spacing1),Ue.extend("--ft-switch-group-vertical-padding","",Le.spacing1),Ue.extend("--ft-switch-group-gap","",Le.spacing1),Ue.extend("--ft-switch-group-background-color","",We.backgroundGlobalSurface),Ue.extend("--ft-switch-group-border-color","",We.borderGlobalSubtle),Ue.create("--ft-switch-group-border-radius","","SIZE","6px"),Ue.extend("--ft-switch-label-horizontal-padding","",Le.spacing2),Ue.extend("--ft-switch-label-vertical-padding","",Le.spacing1),Ue.extend("--ft-switch-icon-horizontal-padding","",Le.spacing1),Ue.extend("--ft-switch-icon-vertical-padding","",Le.spacing1),Ue.create("--ft-switch-focus-outline-width","","SIZE","2px"),Ue.extend("--ft-switch-focus-focus-ring-color","",We.borderActionFocusRing),Ue.extend("--ft-switch-option-border-radius","",Le.borderRadiusS),Ue.extend("--ft-switch-off-state-layer-opacity-hover","",Le.opacity8),Ue.extend("--ft-switch-off-state-layer-opacity-focus","",Le.opacity8),Ue.extend("--ft-switch-off-state-layer-opacity-active","",Le.opacity16),Ue.extend("--ft-switch-off-component-opacity-disabled","",Le.opacity40),Ue.extend("--ft-switch-off-color","",We.contentGlobalSubtle),Ue.extend("--ft-switch-off-state-layer-color","",We.contentGlobalSubtle),Ue.extend("--ft-chart-1-light","for area color charts",Le.colorBrand40),Ue.extend("--ft-chart-1-base","for line charts",Le.colorBrand0),Ue.extend("--ft-chart-2-light","for area color charts",Le.colorYellow60),Ue.extend("--ft-chart-2-base","for line charts",Le.colorYellow100),Ue.extend("--ft-chart-3-light","",Le.colorUltramarine40),Ue.extend("--ft-chart-3-base","",Le.colorUltramarine70),Ue.extend("--ft-chart-4-light","",Le.colorCyan50),Ue.extend("--ft-chart-4-base","",Le.colorCyan100),Ue.extend("--ft-chart-5-light","",Le.colorRed40),Ue.extend("--ft-chart-5-base","",Le.colorRed60),Ue.extend("--ft-chart-6-light","",Le.colorGreen40),Ue.extend("--ft-chart-6-base","",Le.colorGreen70),Ue.extend("--ft-chart-7-light","",Le.colorOrange70),Ue.extend("--ft-chart-7-base","",Le.colorOrange100),Ue.extend("--ft-chart-8-light","",Le.colorAvocado70),Ue.extend("--ft-chart-8-base","",Le.colorAvocado200),Ue.extend("--ft-chart-9-light","",Le.colorBrown50),Ue.extend("--ft-chart-9-base","",Le.colorBrown200),Ue.extend("--ft-chart-10-light","",Le.colorGray50),Ue.extend("--ft-chart-10-base","",Le.colorGray80),Ue.extend("--ft-chart-monochrome-10","",Le.colorBrand10),Ue.extend("--ft-chart-monochrome-20","",Le.colorBrand20),Ue.extend("--ft-chart-monochrome-30","",Le.colorBrand40),Ue.extend("--ft-chart-monochrome-40","",Le.colorBrand60),Ue.extend("--ft-chart-monochrome-50","",Le.colorBrand0),Ue.extend("--ft-chart-monochrome-60","",Le.colorBrand200),Ue.extend("--ft-chip-large-horizontal-padding","",Le.spacing4),Ue.extend("--ft-chip-large-vertical-padding","",Le.spacing2),Ue.extend("--ft-chip-large-gap","",Le.spacing1),Ue.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Ue.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Ue.extend("--ft-chip-large-border-radius","",Le.borderRadiusPill),Ue.create("--ft-chip-large-border-width","","SIZE","1px"),Ue.extend("--ft-chip-large-icon-size","",Le.iconSize3),Ue.extend("--ft-chip-medium-horizontal-padding","",Le.spacing3),Ue.extend("--ft-chip-medium-vertical-padding","",Le.spacing1),Ue.extend("--ft-chip-medium-gap","",Le.spacing1),Ue.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Ue.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Ue.extend("--ft-chip-medium-border-radius","",Le.borderRadiusPill),Ue.create("--ft-chip-medium-border-width","","SIZE","1px"),Ue.extend("--ft-chip-medium-icon-size","",Le.iconSize2),Ue.extend("--ft-chip-small-horizontal-padding","",Le.spacing2),Ue.extend("--ft-chip-small-vertical-padding","",Le.spacing05),Ue.extend("--ft-chip-small-gap","",Le.spacing1),Ue.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Ue.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Ue.extend("--ft-chip-small-border-radius","",Le.borderRadiusPill),Ue.create("--ft-chip-small-border-width","","SIZE","1px"),Ue.extend("--ft-chip-small-icon-size","",Le.iconSize1),Ue.extend("--ft-chip-neutral-background-color","",We.backgroundGlobalOnSurface),Ue.extend("--ft-chip-neutral-color","",We.contentGlobalPrimary),Ue.extend("--ft-chip-neutral-border-color","",We.borderGlobalSubtle),Ue.extend("--ft-chip-info-background-color","",We.backgroundInfoSubtle),Ue.extend("--ft-chip-info-color","",We.contentInfoPrimary),Ue.extend("--ft-chip-info-border-color","",We.borderInfoPrimary),Ue.extend("--ft-chip-success-background-color","",We.backgroundSuccessSubtle),Ue.extend("--ft-chip-success-color","",We.contentSuccessPrimary),Ue.extend("--ft-chip-success-border-color","",We.borderSuccessPrimary),Ue.extend("--ft-chip-warning-background-color","",We.backgroundWarningSubtle),Ue.extend("--ft-chip-warning-color","",We.contentWarningPrimary),Ue.extend("--ft-chip-warning-border-color","",We.borderWarningPrimary),Ue.extend("--ft-chip-error-background-color","",We.backgroundErrorSubtle),Ue.extend("--ft-chip-error-color","",We.contentErrorPrimary),Ue.extend("--ft-chip-error-border-color","",We.borderErrorPrimary),Ue.create("--ft-notice-border-width","","SIZE","1px"),Ue.extend("--ft-notice-horizontal-padding","",Le.spacing2),Ue.extend("--ft-notice-vertical-padding","",Le.spacing1),Ue.extend("--ft-notice-border-radius","",Le.borderRadiusS),Ue.extend("--ft-notice-gap","",Le.spacing2),Ue.extend("--ft-notice-icon-size","",Le.iconSize3),Ue.extend("--ft-notice-info-background-color","",We.backgroundInfoSubtle),Ue.extend("--ft-notice-info-border-color","",We.borderInfoPrimary),Ue.extend("--ft-notice-info-color","",We.contentInfoPrimary),Ue.extend("--ft-notice-warning-background-color","",We.backgroundWarningSubtle),Ue.extend("--ft-notice-warning-border-color","",We.borderWarningPrimary),Ue.extend("--ft-notice-warning-color","",We.contentWarningPrimary),Ue.extend("--ft-checkbox-label-color","",We.contentGlobalPrimary),Ue.extend("--ft-checkbox-checked-background-color","",We.contentActionPrimary),Ue.extend("--ft-checkbox-checked-state-layer-color","",We.contentActionPrimary),Ue.extend("--ft-checkbox-checked-color","",We.contentGlobalOnColor),Ue.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Le.opacity16),Ue.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Le.opacity16),Ue.extend("--ft-checkbox-checked-state-layer-opacity-active","",Le.opacity24),Ue.extend("--ft-checkbox-checked-component-opacity-disabled","",Le.opacity40),Ue.extend("--ft-checkbox-unchecked-border-color","",Le.colorGray80),Ue.extend("--ft-checkbox-unchecked-state-layer-color","",Le.colorGray80),Ue.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Le.opacity16),Ue.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Le.opacity16),Ue.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Le.opacity24),Ue.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Le.opacity40),Ue.extend("--ft-checkbox-focus-focus-ring-color","",We.borderActionFocusRing),Ue.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Ue.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Ue.extend("--ft-checkbox-gap","",Le.spacing3),Ue.extend("--ft-toggle-off-state-layer-opacity-hover","",Le.opacity16),Ue.extend("--ft-toggle-off-state-layer-opacity-focus","",Le.opacity16),Ue.extend("--ft-toggle-off-state-layer-opacity-active","",Le.opacity24),Ue.extend("--ft-toggle-off-component-opacity-disabled","",Le.opacity40),Ue.extend("--ft-toggle-off-background-color","",We.contentGlobalSubtle),Ue.extend("--ft-toggle-off-icon-color","",We.contentGlobalSubtle),Ue.extend("--ft-toggle-off-state-layer-color","",We.contentGlobalSubtle),Ue.extend("--ft-toggle-on-state-layer-opacity-hover","",Le.opacity16),Ue.extend("--ft-toggle-on-state-layer-opacity-focus","",Le.opacity16),Ue.extend("--ft-toggle-on-state-layer-opacity-active","",Le.opacity24),Ue.extend("--ft-toggle-on-component-opacity-disabled","",Le.opacity40),Ue.extend("--ft-toggle-on-background-color","",We.contentActionPrimary),Ue.extend("--ft-toggle-on-icon-color","",We.contentActionPrimary),Ue.extend("--ft-toggle-on-state-layer-color","",We.contentActionPrimary),Ue.extend("--ft-toggle-label-color","",We.contentGlobalPrimary),Ue.extend("--ft-toggle-focus-focus-ring-color","",We.borderActionFocusRing),Ue.extend("--ft-toggle-gap","",Le.spacing3),Ue.extend("--ft-radio-label-color","",We.contentGlobalPrimary),Ue.extend("--ft-radio-selected-color","",We.contentActionPrimary),Ue.extend("--ft-radio-selected-state-layer-color","",We.contentActionPrimary),Ue.extend("--ft-radio-selected-state-layer-opacity-hover","",Le.opacity16),Ue.extend("--ft-radio-selected-state-layer-opacity-focus","",Le.opacity16),Ue.extend("--ft-radio-selected-state-layer-opacity-active","",Le.opacity24),Ue.extend("--ft-radio-selected-component-opacity-disabled","",Le.opacity40),Ue.extend("--ft-radio-unselected-state-layer-color","",Le.colorGray80),Ue.extend("--ft-radio-unselected-state-layer-opacity-hover","",Le.opacity16),Ue.extend("--ft-radio-unselected-state-layer-opacity-focus","",Le.opacity16),Ue.extend("--ft-radio-unselected-state-layer-opacity-active","",Le.opacity24),Ue.extend("--ft-radio-unselected-component-opacity-disabled","",Le.opacity40),Ue.extend("--ft-radio-focus-focus-ring-color","",We.borderActionFocusRing),Ue.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Ue.create("--ft-radio-focus-outline-width","","SIZE","2px"),Ue.extend("--ft-radio-gap","",Le.spacing3),Ue.extend("--ft-notification-icon-size","",Le.iconSize4),Ue.extend("--ft-notification-horizontal-padding","",Le.spacing4),Ue.extend("--ft-notification-vertical-padding","",Le.spacing4),Ue.extend("--ft-notification-info-background-color","",We.backgroundInfoSubtle),Ue.extend("--ft-notification-info-color","",We.contentInfoPrimary),Ue.extend("--ft-notification-info-border-color","",We.borderInfoPrimary),Ue.extend("--ft-notification-success-background-color","",We.backgroundSuccessSubtle),Ue.extend("--ft-notification-success-color","",We.contentSuccessPrimary),Ue.extend("--ft-notification-success-border-color","",We.borderSuccessPrimary),Ue.extend("--ft-notification-warning-background-color","",We.backgroundWarningSubtle),Ue.extend("--ft-notification-warning-color","",We.contentWarningPrimary),Ue.extend("--ft-notification-warning-border-color","",We.borderWarningPrimary),Ue.extend("--ft-notification-error-background-color","",We.backgroundErrorSubtle),Ue.extend("--ft-notification-error-color","",We.contentErrorPrimary),Ue.extend("--ft-notification-error-border-color","",We.borderErrorPrimary),Ue.extend("--ft-notification-border-radius","",Le.borderRadiusPill),Ue.create("--ft-notification-border-width","","SIZE","1px"),Ue.extend("--ft-notification-gap-leading","",Le.spacing2),Ue.extend("--ft-notification-gap-trailing","",Le.spacing8);const Fe={colorPrimary:Ue.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Ue.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Ue.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Ue.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Ue.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Ue.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Ue.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Ue.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Ue.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Ue.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Ue.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Ue.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Ue.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Ue.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Ue.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Ue.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Ue.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Ue.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Ue.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Ue.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Ue.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Ue.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Ue.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Ue.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Ue.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Ue.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Ue.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Ue.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Ue.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Ue.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Ue.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Ue.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Ue.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Ue.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Ue.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Ue.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Ue.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Ue.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Ue.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Ue.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Ue.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Ue.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Ue.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Ue.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Ue.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:Ue.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:Ue.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:Ue.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:Ue.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:Ue.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:Ue.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:Ue.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:Ue.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:Ue.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:Ue.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Ue.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Ue.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Ue.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Ue.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Ue.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Ue.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Ue.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")},Pe=window,De=Pe.ShadowRoot&&(void 0===Pe.ShadyCSS||Pe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;
|
|
80
85
|
/**
|
|
81
86
|
* @license
|
|
82
87
|
* Copyright 2019 Google LLC
|
|
83
88
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
84
|
-
*/class
|
|
89
|
+
*/class Be extends Ee{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{De?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=Pe.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var ze,Me=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};const Te=Symbol("constructorPrototype"),Ke=Symbol("constructorName"),Ze=Symbol("exportpartsDebouncer");class _e extends Be{constructor(){super(),this[ze]=new W(5),this[Ke]=this.constructor.name,this[Te]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ke]&&Object.setPrototypeOf(this,this[Te])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ze].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,i,r,n,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=null!==(s=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...o).filter(a).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(", "))}}ze=Ze,Me([k()],_e.prototype,"exportpartsPrefix",void 0),Me([B([])],_e.prototype,"exportpartsPrefixes",void 0),Me([k()],_e.prototype,"customStylesheet",void 0);const He=Ue.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Ut`
|
|
85
90
|
.highlight-html-match {
|
|
86
|
-
background: ${
|
|
91
|
+
background: ${He};
|
|
87
92
|
}
|
|
88
|
-
`;const
|
|
93
|
+
`;const Ge=Ut`
|
|
89
94
|
.ft-no-text-select {
|
|
90
95
|
-webkit-touch-callout: none;
|
|
91
96
|
-webkit-user-select: none;
|
|
@@ -94,7 +99,7 @@ let $e=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
94
99
|
-ms-user-select: none;
|
|
95
100
|
user-select: none;
|
|
96
101
|
}
|
|
97
|
-
`;
|
|
102
|
+
`;Ut`
|
|
98
103
|
.ft-word-wrap {
|
|
99
104
|
white-space: normal;
|
|
100
105
|
word-wrap: break-word;
|
|
@@ -106,7 +111,7 @@ let $e=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
106
111
|
-webkit-hyphens: auto;
|
|
107
112
|
hyphens: auto
|
|
108
113
|
}
|
|
109
|
-
`;const
|
|
114
|
+
`;const Ve=Ut`
|
|
110
115
|
.ft-safari-ellipsis-fix {
|
|
111
116
|
margin-right: 0;
|
|
112
117
|
|
|
@@ -117,59 +122,59 @@ let $e=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
117
122
|
display: inline-block;
|
|
118
123
|
width: 0;
|
|
119
124
|
}
|
|
120
|
-
`;class Ve{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}function qe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ye,Xe,Je;const Qe=Symbol("internalReduxEventsUnsubscribers"),to=Symbol("internalStoresUnsubscribers"),eo=Symbol("internalStores");class oo extends Ze{constructor(){super(...arguments),this[Ye]=new Map,this[Xe]=new Map,this[Je]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[eo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[eo].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[eo].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:qe(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[eo].delete(e)}setupStore(t,e){this[eo].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[eo].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[to].has(t.store):this[to].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[to].set(t,e.subscribe((()=>this.updateFromStores()))),qe(e)&&e.eventBus&&(null===(o=this.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[Qe].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[to].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Qe].forEach((t=>t())),this[Qe]=[]}unsubscribeFromStore(t){this[to].has(t)&&this[to].get(t)(),this[to].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function io(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ro(t){return!!t&&!!t[_o]}function no(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Ho}(t)||Array.isArray(t)||!!t[Zo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Zo])||fo(t)||po(t))}function so(t,e,o){void 0===o&&(o=!1),0===ao(t)?(o?Object.keys:Go)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function ao(t){var e=t[_o];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:fo(t)?2:po(t)?3:0}function lo(t,e){return 2===ao(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function co(t,e,o){var i=ao(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function ho(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function fo(t){return Bo&&t instanceof Map}function po(t){return Ko&&t instanceof Set}function uo(t){return t.o||t.t}function yo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Vo(t);delete e[_o];for(var o=Go(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function bo(t,e){return void 0===e&&(e=!1),mo(t)||ro(t)||!no(t)||(ao(t)>1&&(t.set=t.add=t.clear=t.delete=go),Object.freeze(t),e&&so(t,(function(t,e){return bo(e,!0)}),!0)),t}function go(){io(2)}function mo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function vo(t){var e=qo[t];return e||io(18,t),e}function xo(){return zo}function Oo(t,e){e&&(vo("Patches"),t.u=[],t.s=[],t.v=e)}function wo(t){So(t),t.p.forEach(Co),t.p=null}function So(t){t===zo&&(zo=t.l)}function No(t){return zo={p:[],l:zo,h:t,m:!0,_:0}}function Co(t){var e=t[_o];0===e.i||1===e.i?e.j():e.g=!0}function $o(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||vo("ES5").S(e,t,i),i?(o[_o].P&&(wo(e),io(4)),no(t)&&(t=Eo(e,t),e.l||Ro(e,t)),e.u&&vo("Patches").M(o[_o].t,t,e.u,e.s)):t=Eo(e,o,[]),wo(e),e.u&&e.v(e.u,e.s),t!==To?t:void 0}function Eo(t,e,o){if(mo(e))return e;var i=e[_o];if(!i)return so(e,(function(r,n){return ko(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Ro(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=yo(i.k):i.o,n=r,s=!1;3===i.i&&(n=new Set(r),r.clear(),s=!0),so(n,(function(e,n){return ko(t,i,r,e,n,o,s)})),Ro(t,r,!1),o&&t.u&&vo("Patches").N(i,o,t.u,t.s)}return i.o}function ko(t,e,o,i,r,n,s){if(ro(r)){var a=Eo(t,r,n&&e&&3!==e.i&&!lo(e.R,i)?n.concat(i):void 0);if(co(o,i,a),!ro(a))return;t.m=!1}else s&&o.add(r);if(no(r)&&!mo(r)){if(!t.h.D&&t._<1)return;Eo(t,r),e&&e.A.l||Ro(t,r)}}function Ro(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&bo(e,o)}function Uo(t,e){var o=t[_o];return(o?uo(o):t)[e]}function Io(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function Lo(t){t.P||(t.P=!0,t.l&&Lo(t.l))}function Ao(t){t.o||(t.o=yo(t.t))}function Wo(t,e,o){var i=fo(e)?vo("MapSet").F(e,o):po(e)?vo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:xo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=Yo;o&&(r=[i],n=Xo);var s=Proxy.revocable(r,n),a=s.revoke,l=s.proxy;return i.k=l,i.j=a,l}(e,o):vo("ES5").J(e,o);return(o?o.A:xo()).p.push(i),i}function jo(t){return ro(t)||io(22,t),function t(e){if(!no(e))return e;var o,i=e[_o],r=ao(e);if(i){if(!i.P&&(i.i<4||!vo("ES5").K(i)))return i.t;i.I=!0,o=Fo(e,r),i.I=!1}else o=Fo(e,r);return so(o,(function(e,r){i&&function(t,e){return 2===ao(t)?t.get(e):t[e]}(i.t,e)===r||co(o,e,t(r))})),3===r?new Set(o):o}(t)}function Fo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return yo(t)}Ye=to,Xe=eo,Je=Qe;var Do,zo,Po="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Bo="undefined"!=typeof Map,Ko="undefined"!=typeof Set,Mo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,To=Po?Symbol.for("immer-nothing"):((Do={})["immer-nothing"]=!0,Do),Zo=Po?Symbol.for("immer-draftable"):"__$immer_draftable",_o=Po?Symbol.for("immer-state"):"__$immer_state",Ho=""+Object.prototype.constructor,Go="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Vo=Object.getOwnPropertyDescriptors||function(t){var e={};return Go(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},qo={},Yo={get:function(t,e){if(e===_o)return t;var o=uo(t);if(!lo(o,e))return function(t,e,o){var i,r=Io(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!no(i)?i:i===Uo(t.t,e)?(Ao(t),t.o[e]=Wo(t.A.h,i,t)):i},has:function(t,e){return e in uo(t)},ownKeys:function(t){return Reflect.ownKeys(uo(t))},set:function(t,e,o){var i=Io(uo(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=Uo(uo(t),e),n=null==r?void 0:r[_o];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ho(o,r)&&(void 0!==o||lo(t.t,e)))return!0;Ao(t),Lo(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Uo(t.t,e)||e in t.t?(t.R[e]=!1,Ao(t),Lo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=uo(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){io(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){io(12)}},Xo={};so(Yo,(function(t,e){Xo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Xo.deleteProperty=function(t,e){return Xo.set.call(this,t,e,void 0)},Xo.set=function(t,e,o){return Yo.set.call(this,t[0],e,o,t[0])};var Jo=function(){function t(t){var e=this;this.O=Mo,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(s))}))}}var s;if("function"!=typeof o&&io(6),void 0!==i&&"function"!=typeof i&&io(7),no(t)){var a=No(e),l=Wo(e,t,void 0),c=!0;try{s=o(l),c=!1}finally{c?wo(a):So(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Oo(a,i),$o(t,a)}),(function(t){throw wo(a),t})):(Oo(a,i),$o(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=o(t))&&(s=t),s===To&&(s=void 0),e.D&&bo(s,!0),i){var h=[],f=[];vo("Patches").M(t,s,h,f),i(h,f)}return s}io(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){no(t)||io(8),ro(t)&&(t=jo(t));var e=No(this),o=Wo(this,t,void 0);return o[_o].C=!0,So(e),o},e.finishDraft=function(t,e){var o=(t&&t[_o]).A;return Oo(o,e),$o(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Mo&&io(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=vo("Patches").$;return ro(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Qo=new Jo,ti=Qo.produce;function ei(t){return ei="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},ei(t)}function oi(t){var e=function(t,e){if("object"!==ei(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==ei(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ei(e)?e:String(e)}function ii(t,e,o){return(e=oi(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ri(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ni(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ri(Object(o),!0).forEach((function(e){ii(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ri(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function si(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. "}Qo.produceWithPatches.bind(Qo),Qo.setAutoFreeze.bind(Qo),Qo.setUseProxies.bind(Qo),Qo.applyPatches.bind(Qo),Qo.createDraft.bind(Qo),Qo.finishDraft.bind(Qo);var ai="function"==typeof Symbol&&Symbol.observable||"@@observable",li=function(){return Math.random().toString(36).substring(7).split("").join(".")},ci={INIT:"@@redux/INIT"+li(),REPLACE:"@@redux/REPLACE"+li(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+li()}};function hi(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(si(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(si(1));return o(hi)(t,e)}if("function"!=typeof t)throw new Error(si(2));var r=t,n=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(si(3));return n}function f(t){if("function"!=typeof t)throw new Error(si(4));if(l)throw new Error(si(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(si(6));e=!1,c();var o=a.indexOf(t);a.splice(o,1),s=null}}}function p(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(si(7));if(void 0===t.type)throw new Error(si(8));if(l)throw new Error(si(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=s=a,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:ci.INIT}),(i={dispatch:p,subscribe:f,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(si(10));r=t,p({type:ci.REPLACE})}})[ai]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(si(11));function o(){t.next&&t.next(h())}return o(),{unsubscribe:e(o)}}})[ai]=function(){return this},t},i}function fi(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}var n,s=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:ci.INIT}))throw new Error(si(12));if(void 0===o(void 0,{type:ci.PROBE_UNKNOWN_ACTION()}))throw new Error(si(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},a=0;a<s.length;a++){var l=s[a],c=o[l],h=t[l],f=c(h,e);if(void 0===f)throw e&&e.type,new Error(si(14));r[l]=f,i=i||f!==h}return(i=i||s.length!==Object.keys(t).length)?r:t}}function pi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function ui(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),i=function(){throw new Error(si(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=pi.apply(void 0,n)(o.dispatch),ni(ni({},o),{},{dispatch:i})}}}function di(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var yi=di();yi.withExtraArgument=di;var bi,gi=yi,mi=(bi=function(t,e){return bi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},bi(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}bi(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),vi=function(t,e){var o,i,r,n,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,i=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){s.label=n[1];break}if(6===n[0]&&s.label<r[1]){s.label=r[1],r=n;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(n);break}r[2]&&s.ops.pop(),s.trys.pop();continue}n=e.call(t,s)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}},xi=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},Oi=Object.defineProperty,wi=Object.defineProperties,Si=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable,Ei=function(t,e,o){return e in t?Oi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},ki=function(t,e){for(var o in e||(e={}))Ci.call(e,o)&&Ei(t,o,e[o]);if(Ni)for(var i=0,r=Ni(e);i<r.length;i++){o=r[i];$i.call(e,o)&&Ei(t,o,e[o])}return t},Ri=function(t,e){return wi(t,Si(e))},Ui="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?pi:pi.apply(null,arguments)};var Ii=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return mi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,xi([void 0],t[0].concat(this)))):new(e.bind.apply(e,xi([void 0],t.concat(this))))},e}(Array),Li=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return mi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,xi([void 0],t[0].concat(this)))):new(e.bind.apply(e,xi([void 0],t.concat(this))))},e}(Array);function Ai(t){return no(t)?ti(t,(function(){})):t}function Wi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new Ii;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(gi.withExtraArgument(o.extraArgument)):i.push(gi));return i}(t)}}function ji(t){var e,o=Wi(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,s=i.middleware,a=void 0===s?o():s,l=i.devTools,c=void 0===l||l,h=i.preloadedState,f=void 0===h?void 0:h,p=i.enhancers,u=void 0===p?void 0:p;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=fi(n)}var d=a;"function"==typeof d&&(d=d(o));var y=ui.apply(void 0,d),b=pi;c&&(b=Ui(ki({trace:!1},"object"==typeof c&&c)));var g=new Li(y),m=g;return Array.isArray(u)?m=xi([y],u):"function"==typeof u&&(m=u(g)),hi(e,f,b.apply(void 0,m))}function Fi(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return ki(ki({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Di(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function zi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:Ai(t.initialState),r=t.reducers||{},n=Object.keys(r),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Di(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],s=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,h=ki(ki({},r),a);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Di(e):[e,o,i],s=n[0],a=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Ai(t())};else{var c=Ai(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var o=xi([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(ro(t))return void 0===(i=o(t,e))?t:i;if(no(t))return ti(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return h.getInitialState=r,h}(i,(function(t){for(var e in h)t.addCase(e,h[e]);for(var o=0,i=s;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,i,n=r[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,s[t]=o,a[c]=o,l[t]=i?Fi(c,i):Fi(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:s,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Pi=["name","message","stack","code"],Bi=function(t,e){this.payload=t,this.meta=e},Ki=function(t,e){this.payload=t,this.meta=e},Mi=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=Pi;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Ti(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var i=Fi(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Ri(ki({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Fi(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ri(ki({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Fi(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Mi)(t||"Rejected"),meta:Ri(ki({},n||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="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(a,l,c){var h,f=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),p=new s;function u(t){h=t,p.abort()}var d=function(){return s=this,d=null,y=function(){var s,d,y,b,g,m;return vi(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),b=null==(s=null==o?void 0:o.condition)?void 0:s.call(o,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=v.sent(),v.label=2;case 2:if(!1===b||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(r(f,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([g,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:f,signal:p.signal,abort:u,rejectWithValue:function(t,e){return new Bi(t,e)},fulfillWithValue:function(t,e){return new Ki(t,e)}})).then((function(e){if(e instanceof Bi)throw e;return e instanceof Ki?i(e.payload,f,t,e.meta):i(e,f,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Bi?n(null,f,t,m.payload,m.meta):n(m,f,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||a(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{r(y.next(t))}catch(t){e(t)}},i=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((y=y.apply(s,d)).next())}));var s,d,y}();return Object.assign(d,{abort:u,requestId:f,arg:t,unwrap:function(){return d.then(Ti)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Zi="listenerMiddleware";Fi(Zi+"/add"),Fi(Zi+"/removeAll"),Fi(Zi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[_o];return Yo.get(e,t)},set:function(e){var o=this[_o];Yo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][_o];if(!r.P)switch(r.i){case 5:i(r)&&Lo(r);break;case 4:o(r)&&Lo(r)}}}function o(t){for(var e=t.t,o=t.k,i=Go(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==_o){var s=e[n];if(void 0===s&&!lo(e,n))return!0;var a=o[n],l=a&&a[_o];if(l?l.t!==s:!ho(a,s))return!0}}var c=!!e[_o];return i.length!==Go(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){qo[t]||(qo[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=Vo(o);delete n[_o];for(var s=Go(n),a=0;a<s.length;a++){var l=s[a];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:xo(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,_o,{value:n,writable:!0}),r},S:function(t,o,r){r?ro(o)&&o[_o].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[_o];if(o){var r=o.t,n=o.k,s=o.R,a=o.i;if(4===a)so(n,(function(e){e!==_o&&(void 0!==r[e]||lo(r,e)?s[e]||t(n[e]):(s[e]=!0,Lo(o)))})),so(r,(function(t){void 0!==n[t]||lo(n,t)||(s[t]=!1,Lo(o))}));else if(5===a){if(i(o)&&(Lo(o),s.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)s[l]=!1;else for(var c=r.length;c<n.length;c++)s[c]=!0;for(var h=Math.min(n.length,r.length),f=0;f<h;f++)n.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(n[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class _i{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(qe(r))return r;if(null==i)return;const n=zi({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),s=ji({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[i.name]=new _i(n,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Hi=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!F(t,e),attribute:!1,...e};k(r)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}},Gi=Symbol("elementInternals");var Vi,qi,Yi;const Xi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Yi=null===(qi=null===(Vi=window.safari)||void 0===Vi?void 0:Vi.pushNotification)||void 0===qi?void 0:qi.toString())&&void 0!==Yi?Yi:""),Ji=Rt`
|
|
125
|
+
`;class qe{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}const Ye=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!P(t,e),attribute:!1,...e};k(r)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}};class Xe{constructor(){this.stack=[]}add(t,e=!1){e&&(this.stack=this.stack.filter((e=>e.type!==t.type))),this.stack.push(t)}consume(t){const e=this.stack.find((e=>e.type===t));return e&&(this.stack=this.stack.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,to,eo;const oo=Symbol("internalReduxEventsUnsubscribers"),io=Symbol("internalStoresUnsubscribers"),ro=Symbol("internalStores");class no extends _e{constructor(){super(...arguments),this[Qe]=new Map,this[to]=new Map,this[eo]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[ro].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ro].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ro].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Je(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[ro].delete(e)}setupStore(t,e){this[ro].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ro].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[io].has(t.store):this[io].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[io].set(t,e.subscribe((()=>this.updateFromStores()))),Je(e)&&e.eventBus&&(null===(o=this.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[oo].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[io].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[oo].forEach((t=>t())),this[oo]=[]}unsubscribeFromStore(t){this[io].has(t)&&this[io].get(t)(),this[io].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function so(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ao(t){return!!t&&!!t[Vo]}function lo(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===qo}(t)||Array.isArray(t)||!!t[Go]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Go])||yo(t)||bo(t))}function co(t,e,o){void 0===o&&(o=!1),0===fo(t)?(o?Object.keys:Yo)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function fo(t){var e=t[Vo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:yo(t)?2:bo(t)?3:0}function ho(t,e){return 2===fo(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function uo(t,e,o){var i=fo(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function po(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function yo(t){return Ko&&t instanceof Map}function bo(t){return Zo&&t instanceof Set}function go(t){return t.o||t.t}function mo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Xo(t);delete e[Vo];for(var o=Yo(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function vo(t,e){return void 0===e&&(e=!1),Oo(t)||ao(t)||!lo(t)||(fo(t)>1&&(t.set=t.add=t.clear=t.delete=xo),Object.freeze(t),e&&co(t,(function(t,e){return vo(e,!0)}),!0)),t}function xo(){so(2)}function Oo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function wo(t){var e=Jo[t];return e||so(18,t),e}function So(){return Mo}function No(t,e){e&&(wo("Patches"),t.u=[],t.s=[],t.v=e)}function Co(t){$o(t),t.p.forEach(ko),t.p=null}function $o(t){t===Mo&&(Mo=t.l)}function Eo(t){return Mo={p:[],l:Mo,h:t,m:!0,_:0}}function ko(t){var e=t[Vo];0===e.i||1===e.i?e.j():e.g=!0}function Ro(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||wo("ES5").S(e,t,i),i?(o[Vo].P&&(Co(e),so(4)),lo(t)&&(t=Uo(e,t),e.l||Lo(e,t)),e.u&&wo("Patches").M(o[Vo].t,t,e.u,e.s)):t=Uo(e,o,[]),Co(e),e.u&&e.v(e.u,e.s),t!==Ho?t:void 0}function Uo(t,e,o){if(Oo(e))return e;var i=e[Vo];if(!i)return co(e,(function(r,n){return Io(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Lo(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=mo(i.k):i.o,n=r,s=!1;3===i.i&&(n=new Set(r),r.clear(),s=!0),co(n,(function(e,n){return Io(t,i,r,e,n,o,s)})),Lo(t,r,!1),o&&t.u&&wo("Patches").N(i,o,t.u,t.s)}return i.o}function Io(t,e,o,i,r,n,s){if(ao(r)){var a=Uo(t,r,n&&e&&3!==e.i&&!ho(e.R,i)?n.concat(i):void 0);if(uo(o,i,a),!ao(a))return;t.m=!1}else s&&o.add(r);if(lo(r)&&!Oo(r)){if(!t.h.D&&t._<1)return;Uo(t,r),e&&e.A.l||Lo(t,r)}}function Lo(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&vo(e,o)}function Ao(t,e){var o=t[Vo];return(o?go(o):t)[e]}function Wo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function jo(t){t.P||(t.P=!0,t.l&&jo(t.l))}function Fo(t){t.o||(t.o=mo(t.t))}function Po(t,e,o){var i=yo(e)?wo("MapSet").F(e,o):bo(e)?wo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:So(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=Qo;o&&(r=[i],n=ti);var s=Proxy.revocable(r,n),a=s.revoke,l=s.proxy;return i.k=l,i.j=a,l}(e,o):wo("ES5").J(e,o);return(o?o.A:So()).p.push(i),i}function Do(t){return ao(t)||so(22,t),function t(e){if(!lo(e))return e;var o,i=e[Vo],r=fo(e);if(i){if(!i.P&&(i.i<4||!wo("ES5").K(i)))return i.t;i.I=!0,o=Bo(e,r),i.I=!1}else o=Bo(e,r);return co(o,(function(e,r){i&&function(t,e){return 2===fo(t)?t.get(e):t[e]}(i.t,e)===r||uo(o,e,t(r))})),3===r?new Set(o):o}(t)}function Bo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return mo(t)}Qe=io,to=ro,eo=oo;var zo,Mo,To="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ko="undefined"!=typeof Map,Zo="undefined"!=typeof Set,_o="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ho=To?Symbol.for("immer-nothing"):((zo={})["immer-nothing"]=!0,zo),Go=To?Symbol.for("immer-draftable"):"__$immer_draftable",Vo=To?Symbol.for("immer-state"):"__$immer_state",qo=""+Object.prototype.constructor,Yo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Xo=Object.getOwnPropertyDescriptors||function(t){var e={};return Yo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Jo={},Qo={get:function(t,e){if(e===Vo)return t;var o=go(t);if(!ho(o,e))return function(t,e,o){var i,r=Wo(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!lo(i)?i:i===Ao(t.t,e)?(Fo(t),t.o[e]=Po(t.A.h,i,t)):i},has:function(t,e){return e in go(t)},ownKeys:function(t){return Reflect.ownKeys(go(t))},set:function(t,e,o){var i=Wo(go(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=Ao(go(t),e),n=null==r?void 0:r[Vo];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(po(o,r)&&(void 0!==o||ho(t.t,e)))return!0;Fo(t),jo(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Ao(t.t,e)||e in t.t?(t.R[e]=!1,Fo(t),jo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=go(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){so(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){so(12)}},ti={};co(Qo,(function(t,e){ti[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),ti.deleteProperty=function(t,e){return ti.set.call(this,t,e,void 0)},ti.set=function(t,e,o){return Qo.set.call(this,t[0],e,o,t[0])};var ei=function(){function t(t){var e=this;this.O=_o,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(s))}))}}var s;if("function"!=typeof o&&so(6),void 0!==i&&"function"!=typeof i&&so(7),lo(t)){var a=Eo(e),l=Po(e,t,void 0),c=!0;try{s=o(l),c=!1}finally{c?Co(a):$o(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return No(a,i),Ro(t,a)}),(function(t){throw Co(a),t})):(No(a,i),Ro(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=o(t))&&(s=t),s===Ho&&(s=void 0),e.D&&vo(s,!0),i){var f=[],h=[];wo("Patches").M(t,s,f,h),i(f,h)}return s}so(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){lo(t)||so(8),ao(t)&&(t=Do(t));var e=Eo(this),o=Po(this,t,void 0);return o[Vo].C=!0,$o(e),o},e.finishDraft=function(t,e){var o=(t&&t[Vo]).A;return No(o,e),Ro(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!_o&&so(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=wo("Patches").$;return ao(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),oi=new ei,ii=oi.produce;function ri(t){return ri="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},ri(t)}function ni(t){var e=function(t,e){if("object"!==ri(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==ri(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ri(e)?e:String(e)}function si(t,e,o){return(e=ni(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ai(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function li(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ai(Object(o),!0).forEach((function(e){si(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ai(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ci(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. "}oi.produceWithPatches.bind(oi),oi.setAutoFreeze.bind(oi),oi.setUseProxies.bind(oi),oi.applyPatches.bind(oi),oi.createDraft.bind(oi),oi.finishDraft.bind(oi);var fi="function"==typeof Symbol&&Symbol.observable||"@@observable",hi=function(){return Math.random().toString(36).substring(7).split("").join(".")},ui={INIT:"@@redux/INIT"+hi(),REPLACE:"@@redux/REPLACE"+hi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+hi()}};function pi(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ci(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ci(1));return o(pi)(t,e)}if("function"!=typeof t)throw new Error(ci(2));var r=t,n=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function f(){if(l)throw new Error(ci(3));return n}function h(t){if("function"!=typeof t)throw new Error(ci(4));if(l)throw new Error(ci(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(ci(6));e=!1,c();var o=a.indexOf(t);a.splice(o,1),s=null}}}function u(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(ci(7));if(void 0===t.type)throw new Error(ci(8));if(l)throw new Error(ci(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=s=a,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:ui.INIT}),(i={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ci(10));r=t,u({type:ui.REPLACE})}})[fi]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ci(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[fi]=function(){return this},t},i}function di(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}var n,s=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:ui.INIT}))throw new Error(ci(12));if(void 0===o(void 0,{type:ui.PROBE_UNKNOWN_ACTION()}))throw new Error(ci(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},a=0;a<s.length;a++){var l=s[a],c=o[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(ci(14));r[l]=h,i=i||h!==f}return(i=i||s.length!==Object.keys(t).length)?r:t}}function yi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function bi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),i=function(){throw new Error(ci(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=yi.apply(void 0,n)(o.dispatch),li(li({},o),{},{dispatch:i})}}}function gi(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var mi=gi();mi.withExtraArgument=gi;var vi,xi=mi,Oi=(vi=function(t,e){return vi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},vi(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}vi(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),wi=function(t,e){var o,i,r,n,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,i=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){s.label=n[1];break}if(6===n[0]&&s.label<r[1]){s.label=r[1],r=n;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(n);break}r[2]&&s.ops.pop(),s.trys.pop();continue}n=e.call(t,s)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}},Si=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},Ni=Object.defineProperty,Ci=Object.defineProperties,$i=Object.getOwnPropertyDescriptors,Ei=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,Ri=Object.prototype.propertyIsEnumerable,Ui=function(t,e,o){return e in t?Ni(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ii=function(t,e){for(var o in e||(e={}))ki.call(e,o)&&Ui(t,o,e[o]);if(Ei)for(var i=0,r=Ei(e);i<r.length;i++){o=r[i];Ri.call(e,o)&&Ui(t,o,e[o])}return t},Li=function(t,e){return Ci(t,$i(e))},Ai="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?yi:yi.apply(null,arguments)};var Wi=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return Oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Si([void 0],t[0].concat(this)))):new(e.bind.apply(e,Si([void 0],t.concat(this))))},e}(Array),ji=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return Oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Si([void 0],t[0].concat(this)))):new(e.bind.apply(e,Si([void 0],t.concat(this))))},e}(Array);function Fi(t){return lo(t)?ii(t,(function(){})):t}function Pi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new Wi;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(xi.withExtraArgument(o.extraArgument)):i.push(xi));return i}(t)}}function Di(t){var e,o=Pi(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,s=i.middleware,a=void 0===s?o():s,l=i.devTools,c=void 0===l||l,f=i.preloadedState,h=void 0===f?void 0:f,u=i.enhancers,p=void 0===u?void 0:u;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=di(n)}var d=a;"function"==typeof d&&(d=d(o));var y=bi.apply(void 0,d),b=yi;c&&(b=Ai(Ii({trace:!1},"object"==typeof c&&c)));var g=new ji(y),m=g;return Array.isArray(p)?m=Si([y],p):"function"==typeof p&&(m=p(g)),pi(e,h,b.apply(void 0,m))}function Bi(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return Ii(Ii({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function zi(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function Mi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:Fi(t.initialState),r=t.reducers||{},n=Object.keys(r),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?zi(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],s=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Ii(Ii({},r),a);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?zi(e):[e,o,i],s=n[0],a=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Fi(t())};else{var c=Fi(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var o=Si([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(ao(t))return void 0===(i=o(t,e))?t:i;if(lo(t))return ii(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return f.getInitialState=r,f}(i,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,i=s;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,i,n=r[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,s[t]=o,a[c]=o,l[t]=i?Bi(c,i):Bi(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:s,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Ti=["name","message","stack","code"],Ki=function(t,e){this.payload=t,this.meta=e},Zi=function(t,e){this.payload=t,this.meta=e},_i=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=Ti;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Hi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var i=Bi(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Li(Ii({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Bi(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Li(Ii({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Bi(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||_i)(t||"Rejected"),meta:Li(Ii({},n||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="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(a,l,c){var f,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),u=new s;function p(t){f=t,u.abort()}var d=function(){return s=this,d=null,y=function(){var s,d,y,b,g,m;return wi(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),b=null==(s=null==o?void 0:o.condition)?void 0:s.call(o,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=v.sent(),v.label=2;case 2:if(!1===b||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),a(r(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([g,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new Ki(t,e)},fulfillWithValue:function(t,e){return new Zi(t,e)}})).then((function(e){if(e instanceof Ki)throw e;return e instanceof Zi?i(e.payload,h,t,e.meta):i(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Ki?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||a(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{r(y.next(t))}catch(t){e(t)}},i=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((y=y.apply(s,d)).next())}));var s,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(Hi)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Gi="listenerMiddleware";Bi(Gi+"/add"),Bi(Gi+"/removeAll"),Bi(Gi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Vo];return Qo.get(e,t)},set:function(e){var o=this[Vo];Qo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Vo];if(!r.P)switch(r.i){case 5:i(r)&&jo(r);break;case 4:o(r)&&jo(r)}}}function o(t){for(var e=t.t,o=t.k,i=Yo(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==Vo){var s=e[n];if(void 0===s&&!ho(e,n))return!0;var a=o[n],l=a&&a[Vo];if(l?l.t!==s:!po(a,s))return!0}}var c=!!e[Vo];return i.length!==Yo(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){Jo[t]||(Jo[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=Xo(o);delete n[Vo];for(var s=Yo(n),a=0;a<s.length;a++){var l=s[a];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:So(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Vo,{value:n,writable:!0}),r},S:function(t,o,r){r?ao(o)&&o[Vo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Vo];if(o){var r=o.t,n=o.k,s=o.R,a=o.i;if(4===a)co(n,(function(e){e!==Vo&&(void 0!==r[e]||ho(r,e)?s[e]||t(n[e]):(s[e]=!0,jo(o)))})),co(r,(function(t){void 0!==n[t]||ho(n,t)||(s[t]=!1,jo(o))}));else if(5===a){if(i(o)&&(jo(o),s.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)s[l]=!1;else for(var c=r.length;c<n.length;c++)s[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(s[h]=!0),void 0===s[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Vi{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(Je(r))return r;if(null==i)return;const n=Mi({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),s=Di({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[i.name]=new Vi(n,s)}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,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const qi=Symbol("elementInternals");var Yi,Xi,Ji;const Qi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ji=null===(Xi=null===(Yi=window.safari)||void 0===Yi?void 0:Yi.pushNotification)||void 0===Xi?void 0:Xi.toString())&&void 0!==Ji?Ji:""),tr=Ut`
|
|
121
126
|
`
|
|
122
127
|
/**
|
|
123
128
|
* @license
|
|
124
129
|
* Copyright 2020 Google LLC
|
|
125
130
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
126
|
-
*/,
|
|
131
|
+
*/,er=Symbol.for(""),or=t=>{if(t?.r===er)return t?._$litStatic$},ir=t=>({_$litStatic$:t,r:er}),rr=new Map,nr=(t=>(e,...o)=>{const i=o.length;let r,n;const s=[],a=[];let l,c=0,f=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=or(n));)l+=r+e[++c],f=!0;c!==i&&a.push(n),s.push(l),c++}if(c===i&&s.push(e[i]),f){const t=s.join("$$lit$$");void 0===(e=rr.get(t))&&(s.raw=s,rr.set(t,e=s)),o=a}return t(e,...o)})(st);var sr;!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"}(sr||(sr={}));const ar=Ue.extend("--ft-typography-font-family","",Fe.titleFont),lr=Ue.extend("--ft-typography-font-family","",Fe.contentFont),cr={fontFamily:lr,fontSize:Ue.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ue.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ue.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ue.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ue.create("--ft-typography-text-transform","","UNKNOWN","inherit")},fr=Ue.extend("--ft-typography-title-font-family","",ar),hr=Ue.extend("--ft-typography-title-font-size","",cr.fontSize,"20px"),ur=Ue.extend("--ft-typography-title-font-weight","",cr.fontWeight,"normal"),pr=Ue.extend("--ft-typography-title-letter-spacing","",cr.letterSpacing,"0.15px"),dr=Ue.extend("--ft-typography-title-line-height","",cr.lineHeight,"1.2"),yr=Ue.extend("--ft-typography-title-text-transform","",cr.textTransform,"inherit"),br=Ue.extend("--ft-typography-title-dense-font-family","",ar),gr=Ue.extend("--ft-typography-title-dense-font-size","",cr.fontSize,"14px"),mr=Ue.extend("--ft-typography-title-dense-font-weight","",cr.fontWeight,"normal"),vr=Ue.extend("--ft-typography-title-dense-letter-spacing","",cr.letterSpacing,"0.105px"),xr=Ue.extend("--ft-typography-title-dense-line-height","",cr.lineHeight,"1.7"),Or=Ue.extend("--ft-typography-title-dense-text-transform","",cr.textTransform,"inherit"),wr=Ue.extend("--ft-typography-subtitle1-font-family","",lr),Sr=Ue.extend("--ft-typography-subtitle1-font-size","",cr.fontSize,"16px"),Nr=Ue.extend("--ft-typography-subtitle1-font-weight","",cr.fontWeight,"600"),Cr=Ue.extend("--ft-typography-subtitle1-letter-spacing","",cr.letterSpacing,"0.144px"),$r=Ue.extend("--ft-typography-subtitle1-line-height","",cr.lineHeight,"1.5"),Er=Ue.extend("--ft-typography-subtitle1-text-transform","",cr.textTransform,"inherit"),kr=Ue.extend("--ft-typography-subtitle2-font-family","",lr),Rr=Ue.extend("--ft-typography-subtitle2-font-size","",cr.fontSize,"14px"),Ur=Ue.extend("--ft-typography-subtitle2-font-weight","",cr.fontWeight,"normal"),Ir=Ue.extend("--ft-typography-subtitle2-letter-spacing","",cr.letterSpacing,"0.098px"),Lr=Ue.extend("--ft-typography-subtitle2-line-height","",cr.lineHeight,"1.7"),Ar=Ue.extend("--ft-typography-subtitle2-text-transform","",cr.textTransform,"inherit"),Wr=Ue.extend("--ft-typography-body1-font-family","",lr),jr=Ue.extend("--ft-typography-body1-font-size","",cr.fontSize,"16px"),Fr=Ue.extend("--ft-typography-body1-font-weight","",cr.fontWeight,"normal"),Pr=Ue.extend("--ft-typography-body1-letter-spacing","",cr.letterSpacing,"0.496px"),Dr=Ue.extend("--ft-typography-body1-line-height","",cr.lineHeight,"1.5"),Br=Ue.extend("--ft-typography-body1-text-transform","",cr.textTransform,"inherit"),zr={fontFamily:Ue.extend("--ft-typography-body2-font-family","",lr),fontSize:Ue.extend("--ft-typography-body2-font-size","",cr.fontSize,"14px"),fontWeight:Ue.extend("--ft-typography-body2-font-weight","",cr.fontWeight,"normal"),letterSpacing:Ue.extend("--ft-typography-body2-letter-spacing","",cr.letterSpacing,"0.252px"),lineHeight:Ue.extend("--ft-typography-body2-line-height","",cr.lineHeight,"1.4"),textTransform:Ue.extend("--ft-typography-body2-text-transform","",cr.textTransform,"inherit")},Mr=Ue.extend("--ft-typography-caption-font-family","",lr),Tr=Ue.extend("--ft-typography-caption-font-size","",cr.fontSize,"12px"),Kr=Ue.extend("--ft-typography-caption-font-weight","",cr.fontWeight,"normal"),Zr=Ue.extend("--ft-typography-caption-letter-spacing","",cr.letterSpacing,"0.396px"),_r=Ue.extend("--ft-typography-caption-line-height","",cr.lineHeight,"1.33"),Hr=Ue.extend("--ft-typography-caption-text-transform","",cr.textTransform,"inherit"),Gr=Ue.extend("--ft-typography-breadcrumb-font-family","",lr),Vr=Ue.extend("--ft-typography-breadcrumb-font-size","",cr.fontSize,"10px"),qr=Ue.extend("--ft-typography-breadcrumb-font-weight","",cr.fontWeight,"normal"),Yr=Ue.extend("--ft-typography-breadcrumb-letter-spacing","",cr.letterSpacing,"0.33px"),Xr=Ue.extend("--ft-typography-breadcrumb-line-height","",cr.lineHeight,"1.6"),Jr=Ue.extend("--ft-typography-breadcrumb-text-transform","",cr.textTransform,"inherit"),Qr=Ue.extend("--ft-typography-overline-font-family","",lr),tn=Ue.extend("--ft-typography-overline-font-size","",cr.fontSize,"10px"),en=Ue.extend("--ft-typography-overline-font-weight","",cr.fontWeight,"normal"),on=Ue.extend("--ft-typography-overline-letter-spacing","",cr.letterSpacing,"1.5px"),rn=Ue.extend("--ft-typography-overline-line-height","",cr.lineHeight,"1.6"),nn=Ue.extend("--ft-typography-overline-text-transform","",cr.textTransform,"uppercase"),sn={fontFamily:Ue.extend("--ft-typography-button-font-family","",lr),fontSize:Ue.extend("--ft-typography-button-font-size","",cr.fontSize,"14px"),fontWeight:Ue.extend("--ft-typography-button-font-weight","",cr.fontWeight,"600"),letterSpacing:Ue.extend("--ft-typography-button-letter-spacing","",cr.letterSpacing,"1.246px"),lineHeight:Ue.extend("--ft-typography-button-line-height","",cr.lineHeight,"1.15"),textTransform:Ue.extend("--ft-typography-button-text-transform","",cr.textTransform,"uppercase")},an=Ut`
|
|
127
132
|
.ft-typography--title {
|
|
128
|
-
font-family: ${
|
|
129
|
-
font-size: ${
|
|
130
|
-
font-weight: ${
|
|
131
|
-
letter-spacing: ${
|
|
132
|
-
line-height: ${
|
|
133
|
-
text-transform: ${
|
|
134
|
-
}
|
|
135
|
-
`,
|
|
133
|
+
font-family: ${fr};
|
|
134
|
+
font-size: ${hr};
|
|
135
|
+
font-weight: ${ur};
|
|
136
|
+
letter-spacing: ${pr};
|
|
137
|
+
line-height: ${dr};
|
|
138
|
+
text-transform: ${yr};
|
|
139
|
+
}
|
|
140
|
+
`,ln=Ut`
|
|
136
141
|
.ft-typography--title-dense {
|
|
137
|
-
font-family: ${
|
|
138
|
-
font-size: ${
|
|
139
|
-
font-weight: ${
|
|
140
|
-
letter-spacing: ${
|
|
141
|
-
line-height: ${
|
|
142
|
-
text-transform: ${
|
|
143
|
-
}
|
|
144
|
-
`,
|
|
142
|
+
font-family: ${br};
|
|
143
|
+
font-size: ${gr};
|
|
144
|
+
font-weight: ${mr};
|
|
145
|
+
letter-spacing: ${vr};
|
|
146
|
+
line-height: ${xr};
|
|
147
|
+
text-transform: ${Or};
|
|
148
|
+
}
|
|
149
|
+
`,cn=Ut`
|
|
145
150
|
.ft-typography--subtitle1 {
|
|
146
|
-
font-family: ${
|
|
147
|
-
font-size: ${
|
|
148
|
-
font-weight: ${
|
|
149
|
-
letter-spacing: ${
|
|
150
|
-
line-height: ${
|
|
151
|
-
text-transform: ${
|
|
152
|
-
}
|
|
153
|
-
`,
|
|
151
|
+
font-family: ${wr};
|
|
152
|
+
font-size: ${Sr};
|
|
153
|
+
font-weight: ${Nr};
|
|
154
|
+
letter-spacing: ${Cr};
|
|
155
|
+
line-height: ${$r};
|
|
156
|
+
text-transform: ${Er};
|
|
157
|
+
}
|
|
158
|
+
`,fn=Ut`
|
|
154
159
|
.ft-typography--subtitle2 {
|
|
155
|
-
font-family: ${
|
|
156
|
-
font-size: ${
|
|
157
|
-
font-weight: ${
|
|
158
|
-
letter-spacing: ${
|
|
159
|
-
line-height: ${
|
|
160
|
-
text-transform: ${
|
|
160
|
+
font-family: ${kr};
|
|
161
|
+
font-size: ${Rr};
|
|
162
|
+
font-weight: ${Ur};
|
|
163
|
+
letter-spacing: ${Ir};
|
|
164
|
+
line-height: ${Lr};
|
|
165
|
+
text-transform: ${Ar};
|
|
161
166
|
}
|
|
162
167
|
|
|
163
|
-
`,
|
|
168
|
+
`,hn=Ut`
|
|
164
169
|
.ft-typography--body1 {
|
|
165
|
-
font-family: ${
|
|
166
|
-
font-size: ${
|
|
167
|
-
font-weight: ${
|
|
168
|
-
letter-spacing: ${
|
|
169
|
-
line-height: ${
|
|
170
|
-
text-transform: ${
|
|
171
|
-
}
|
|
172
|
-
`,
|
|
170
|
+
font-family: ${Wr};
|
|
171
|
+
font-size: ${jr};
|
|
172
|
+
font-weight: ${Fr};
|
|
173
|
+
letter-spacing: ${Pr};
|
|
174
|
+
line-height: ${Dr};
|
|
175
|
+
text-transform: ${Br};
|
|
176
|
+
}
|
|
177
|
+
`,un=Ut`
|
|
173
178
|
.ft-typography--body2 {
|
|
174
179
|
font-family: ${zr.fontFamily};
|
|
175
180
|
font-size: ${zr.fontSize};
|
|
@@ -178,48 +183,48 @@ let $e=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
178
183
|
line-height: ${zr.lineHeight};
|
|
179
184
|
text-transform: ${zr.textTransform};
|
|
180
185
|
}
|
|
181
|
-
`,
|
|
186
|
+
`,pn=Ut`
|
|
182
187
|
.ft-typography--caption {
|
|
183
|
-
font-family: ${
|
|
184
|
-
font-size: ${
|
|
188
|
+
font-family: ${Mr};
|
|
189
|
+
font-size: ${Tr};
|
|
185
190
|
font-weight: ${Kr};
|
|
186
|
-
letter-spacing: ${
|
|
187
|
-
line-height: ${
|
|
188
|
-
text-transform: ${
|
|
191
|
+
letter-spacing: ${Zr};
|
|
192
|
+
line-height: ${_r};
|
|
193
|
+
text-transform: ${Hr};
|
|
189
194
|
}
|
|
190
|
-
`,
|
|
195
|
+
`,dn=Ut`
|
|
191
196
|
.ft-typography--breadcrumb {
|
|
192
|
-
font-family: ${
|
|
193
|
-
font-size: ${
|
|
194
|
-
font-weight: ${
|
|
195
|
-
letter-spacing: ${
|
|
196
|
-
line-height: ${
|
|
197
|
-
text-transform: ${
|
|
198
|
-
}
|
|
199
|
-
`,
|
|
197
|
+
font-family: ${Gr};
|
|
198
|
+
font-size: ${Vr};
|
|
199
|
+
font-weight: ${qr};
|
|
200
|
+
letter-spacing: ${Yr};
|
|
201
|
+
line-height: ${Xr};
|
|
202
|
+
text-transform: ${Jr};
|
|
203
|
+
}
|
|
204
|
+
`,yn=Ut`
|
|
200
205
|
.ft-typography--overline {
|
|
201
|
-
font-family: ${
|
|
202
|
-
font-size: ${
|
|
203
|
-
font-weight: ${
|
|
204
|
-
letter-spacing: ${
|
|
205
|
-
line-height: ${
|
|
206
|
-
text-transform: ${
|
|
207
|
-
}
|
|
208
|
-
`,
|
|
206
|
+
font-family: ${Qr};
|
|
207
|
+
font-size: ${tn};
|
|
208
|
+
font-weight: ${en};
|
|
209
|
+
letter-spacing: ${on};
|
|
210
|
+
line-height: ${rn};
|
|
211
|
+
text-transform: ${nn};
|
|
212
|
+
}
|
|
213
|
+
`,bn=Ut`
|
|
209
214
|
.ft-typography--button {
|
|
210
|
-
font-family: ${
|
|
211
|
-
font-size: ${
|
|
212
|
-
font-weight: ${
|
|
213
|
-
letter-spacing: ${
|
|
214
|
-
line-height: ${
|
|
215
|
-
text-transform: ${
|
|
216
|
-
}
|
|
217
|
-
`,
|
|
215
|
+
font-family: ${sn.fontFamily};
|
|
216
|
+
font-size: ${sn.fontSize};
|
|
217
|
+
font-weight: ${sn.fontWeight};
|
|
218
|
+
letter-spacing: ${sn.letterSpacing};
|
|
219
|
+
line-height: ${sn.lineHeight};
|
|
220
|
+
text-transform: ${sn.textTransform};
|
|
221
|
+
}
|
|
222
|
+
`,gn=Ut`
|
|
218
223
|
.ft-typography {
|
|
219
224
|
vertical-align: inherit;
|
|
220
225
|
}
|
|
221
|
-
`,
|
|
222
|
-
.ft-typography--${
|
|
226
|
+
`,mn=[Object.keys(Ae).map((t=>function(t){const e=Ae[t];return Ut`
|
|
227
|
+
.ft-typography--${Rt(t)} {
|
|
223
228
|
font-family: ${e.fontFamily};
|
|
224
229
|
font-size: ${e.fontSize};
|
|
225
230
|
font-weight: ${e.fontWeight};
|
|
@@ -227,25 +232,25 @@ let $e=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
227
232
|
line-height: ${e.lineHeight};
|
|
228
233
|
text-transform: ${e.textCase};
|
|
229
234
|
}
|
|
230
|
-
`}(t)))];var
|
|
231
|
-
<${
|
|
235
|
+
`}(t)))];var vn=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class xn extends _e{constructor(){super(...arguments),this.variant=sr.body1}render(){return this.element?nr`
|
|
236
|
+
<${ir(this.element)}
|
|
232
237
|
class="ft-typography ft-typography--${this.variant}">
|
|
233
238
|
<slot></slot>
|
|
234
|
-
</${
|
|
235
|
-
`:
|
|
239
|
+
</${ir(this.element)}>
|
|
240
|
+
`:nr`
|
|
236
241
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
237
|
-
`}}
|
|
242
|
+
`}}xn.styles=[an,ln,cn,fn,hn,un,pn,dn,yn,bn,gn,...mn],vn([k()],xn.prototype,"element",void 0),vn([k()],xn.prototype,"variant",void 0),D("ft-typography")(xn);
|
|
238
243
|
/**
|
|
239
244
|
* @license
|
|
240
245
|
* Copyright 2017 Google LLC
|
|
241
246
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
242
247
|
*/
|
|
243
|
-
const
|
|
248
|
+
const On=1,wn=2,Sn=t=>(...e)=>({_$litDirective$:t,values:e});class Nn{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
244
249
|
/**
|
|
245
250
|
* @license
|
|
246
251
|
* Copyright 2020 Google LLC
|
|
247
252
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
248
|
-
*/const{D:
|
|
253
|
+
*/const{D:Cn}=wt,$n=()=>document.createComment(""),En=(t,e,o)=>{const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore($n(),r),n=i.insertBefore($n(),r);o=new Cn(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,s=n!==t;if(s){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==r||s){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,r),t=e}}}return o},kn=(t,e,o=t)=>(t._$AI(e,o),t),Rn={},Un=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},In=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},Ln=Sn(class extends Nn{constructor(t){if(super(t),t.type!==wn)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let i;void 0===o?o=e:void 0!==e&&(i=e);const r=[],n=[];let s=0;for(const e of t)r[s]=i?i(e,s):s,n[s]=o(e,s),s++;return{values:n,keys:r}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,i]){const r=(t=>t._$AH)(t),{values:n,keys:s}=this.ht(e,o,i);if(!Array.isArray(r))return this.dt=s,n;const a=this.dt??=[],l=[];let c,f,h=0,u=r.length-1,p=0,d=n.length-1;for(;h<=u&&p<=d;)if(null===r[h])h++;else if(null===r[u])u--;else if(a[h]===s[p])l[p]=kn(r[h],n[p]),h++,p++;else if(a[u]===s[d])l[d]=kn(r[u],n[d]),u--,d--;else if(a[h]===s[d])l[d]=kn(r[h],n[d]),En(t,l[d+1],r[h]),h++,d--;else if(a[u]===s[p])l[p]=kn(r[u],n[p]),En(t,r[h],r[u]),u--,p++;else if(void 0===c&&(c=In(s,p,d),f=In(a,h,u)),c.has(a[h]))if(c.has(a[u])){const e=f.get(s[p]),o=void 0!==e?r[e]:null;if(null===o){const e=En(t,r[h]);kn(e,n[p]),l[p]=e}else l[p]=kn(o,n[p]),En(t,r[h],o),r[e]=null;p++}else Un(r[u]),u--;else Un(r[h]),h++;for(;p<=d;){const e=En(t,l[d+1]);kn(e,n[p]),l[p++]=e}for(;h<=u;){const t=r[h++];null!==t&&Un(t)}return this.dt=s,((t,e=Rn)=>{t._$AH=e})(t,l),at}}),An=Ue.extend("--ft-ripple-color","",Fe.colorContent),Wn={color:An,backgroundColor:Ue.extend("--ft-ripple-background-color","",An),opacityContentOnSurfacePressed:Ue.external(Fe.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ue.external(Fe.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ue.external(Fe.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ue.external(Fe.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ue.create("--ft-ripple-border-radius","","SIZE","0px")},jn=Ue.extend("--ft-ripple-color","",Fe.colorPrimary),Fn=jn,Pn=Ue.extend("--ft-ripple-background-color","",jn),Dn=Ue.extend("--ft-ripple-color","",Fe.colorSecondary),Bn=Dn,zn=Ue.extend("--ft-ripple-background-color","",Dn),Mn=Ut`
|
|
249
254
|
:host {
|
|
250
255
|
display: contents;
|
|
251
256
|
}
|
|
@@ -258,7 +263,7 @@ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructo
|
|
|
258
263
|
|
|
259
264
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
260
265
|
overflow: hidden;
|
|
261
|
-
border-radius: ${
|
|
266
|
+
border-radius: ${Wn.borderRadius};
|
|
262
267
|
}
|
|
263
268
|
|
|
264
269
|
.ft-ripple .ft-ripple--background,
|
|
@@ -292,11 +297,11 @@ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructo
|
|
|
292
297
|
}
|
|
293
298
|
|
|
294
299
|
.ft-ripple .ft-ripple--background {
|
|
295
|
-
background-color: ${
|
|
300
|
+
background-color: ${Wn.backgroundColor};
|
|
296
301
|
}
|
|
297
302
|
|
|
298
303
|
.ft-ripple .ft-ripple--effect {
|
|
299
|
-
background-color: ${
|
|
304
|
+
background-color: ${Wn.color};
|
|
300
305
|
}
|
|
301
306
|
|
|
302
307
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
@@ -304,15 +309,15 @@ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructo
|
|
|
304
309
|
}
|
|
305
310
|
|
|
306
311
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
307
|
-
background-color: ${
|
|
312
|
+
background-color: ${Bn};
|
|
308
313
|
}
|
|
309
314
|
|
|
310
315
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
311
|
-
background-color: ${
|
|
316
|
+
background-color: ${Pn};
|
|
312
317
|
}
|
|
313
318
|
|
|
314
319
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
315
|
-
background-color: ${
|
|
320
|
+
background-color: ${Fn};
|
|
316
321
|
}
|
|
317
322
|
|
|
318
323
|
.ft-ripple .ft-ripple--background {
|
|
@@ -342,22 +347,22 @@ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructo
|
|
|
342
347
|
}
|
|
343
348
|
|
|
344
349
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
345
|
-
opacity: ${
|
|
350
|
+
opacity: ${Wn.opacityContentOnSurfaceHover};
|
|
346
351
|
}
|
|
347
352
|
|
|
348
353
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
349
|
-
opacity: ${
|
|
354
|
+
opacity: ${Wn.opacityContentOnSurfaceSelected};
|
|
350
355
|
}
|
|
351
356
|
|
|
352
357
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
353
|
-
opacity: ${
|
|
358
|
+
opacity: ${Wn.opacityContentOnSurfaceFocused};
|
|
354
359
|
}
|
|
355
360
|
|
|
356
361
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
357
|
-
opacity: ${
|
|
362
|
+
opacity: ${Wn.opacityContentOnSurfacePressed};
|
|
358
363
|
transform: translate(-50%, -50%) scale(1);
|
|
359
364
|
}
|
|
360
|
-
`,
|
|
365
|
+
`,Tn={color:Ue.extend("--ft-loader-color","",Fe.colorPrimary),size:Ue.create("--ft-loader-size","","SIZE","80px")},Kn=Ut`
|
|
361
366
|
:host {
|
|
362
367
|
line-height: 0;
|
|
363
368
|
}
|
|
@@ -366,8 +371,8 @@ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructo
|
|
|
366
371
|
display: inline-block;
|
|
367
372
|
position: relative;
|
|
368
373
|
|
|
369
|
-
width: ${
|
|
370
|
-
height: ${
|
|
374
|
+
width: ${Tn.size};
|
|
375
|
+
height: ${Tn.size};
|
|
371
376
|
}
|
|
372
377
|
|
|
373
378
|
.ft-loader div {
|
|
@@ -376,7 +381,7 @@ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructo
|
|
|
376
381
|
width: 25%;
|
|
377
382
|
height: 25%;
|
|
378
383
|
border-radius: 50%;
|
|
379
|
-
background: ${
|
|
384
|
+
background: ${Tn.color};
|
|
380
385
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
381
386
|
}
|
|
382
387
|
|
|
@@ -423,10 +428,10 @@ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructo
|
|
|
423
428
|
transform: translate(0, 0);
|
|
424
429
|
}
|
|
425
430
|
100% {
|
|
426
|
-
transform: translate(calc(0.35 * ${
|
|
431
|
+
transform: translate(calc(0.35 * ${Tn.size}), 0);
|
|
427
432
|
}
|
|
428
433
|
}
|
|
429
|
-
`,
|
|
434
|
+
`,Zn={size:Ue.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ue.extend("--ft-icon-fluid-topics-font-family","",Ue.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ue.extend("--ft-icon-file-format-font-family","",Ue.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ue.extend("--ft-icon-material-font-family","",Ue.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ue.create("--ft-icon-vertical-align","","UNKNOWN","unset")},_n=Ut`
|
|
430
435
|
:host, i.ft-icon {
|
|
431
436
|
display: inline-flex;
|
|
432
437
|
align-items: center;
|
|
@@ -435,14 +440,14 @@ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructo
|
|
|
435
440
|
}
|
|
436
441
|
|
|
437
442
|
:host {
|
|
438
|
-
width: ${
|
|
439
|
-
height: ${
|
|
443
|
+
width: ${Zn.size};
|
|
444
|
+
height: ${Zn.size};
|
|
440
445
|
}
|
|
441
446
|
|
|
442
447
|
i.ft-icon {
|
|
443
448
|
width: 100%;
|
|
444
449
|
height: 100%;
|
|
445
|
-
font-size: ${
|
|
450
|
+
font-size: ${Zn.size};
|
|
446
451
|
line-height: 1;
|
|
447
452
|
font-weight: normal;
|
|
448
453
|
text-transform: none;
|
|
@@ -453,28 +458,28 @@ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructo
|
|
|
453
458
|
text-rendering: auto;
|
|
454
459
|
-webkit-font-smoothing: antialiased;
|
|
455
460
|
-moz-osx-font-smoothing: grayscale;
|
|
456
|
-
vertical-align: ${
|
|
461
|
+
vertical-align: ${Zn.verticalAlign};
|
|
457
462
|
}
|
|
458
463
|
|
|
459
464
|
i.ft-icon.ft-icon--fluid-topics {
|
|
460
|
-
font-family: ${
|
|
465
|
+
font-family: ${Zn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
461
466
|
|
|
462
467
|
/* Ugly fix because font is broken */
|
|
463
|
-
font-size: calc(0.75 * ${
|
|
464
|
-
line-height: ${
|
|
468
|
+
font-size: calc(0.75 * ${Zn.size});
|
|
469
|
+
line-height: ${Zn.size};
|
|
465
470
|
position: relative;
|
|
466
471
|
top: -4%;
|
|
467
472
|
justify-content: center;
|
|
468
473
|
}
|
|
469
474
|
|
|
470
475
|
.ft-icon--file-format {
|
|
471
|
-
font-family: ${
|
|
476
|
+
font-family: ${Zn.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
472
477
|
}
|
|
473
478
|
|
|
474
479
|
.ft-icon--material {
|
|
475
|
-
font-family: ${
|
|
480
|
+
font-family: ${Zn.materialFontFamily}, "Material Icons", sans-serif;
|
|
476
481
|
}
|
|
477
|
-
`,
|
|
482
|
+
`,Hn=Ue.extend("--ft-button-color","",Fe.colorPrimary),Gn={backgroundColor:Ue.extend("--ft-button-background-color","",Fe.colorSurface),borderRadius:Ue.extend("--ft-button-border-radius","",Fe.borderRadiusL),color:Hn,fontSize:Ue.extend("--ft-button-font-size","",sn.fontSize),iconSize:Ue.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ue.extend("--ft-button-ripple-color","",Hn),verticalPadding:Ue.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ue.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ue.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ue.external(Fe.colorOpacityDisabled,"Design system")},Vn=Ue.extend("--ft-button-primary-color","",Ue.extend("--ft-button-color","",Fe.colorOnPrimary)),qn={backgroundColor:Ue.extend("--ft-button-primary-background-color","",Ue.extend("--ft-button-background-color","",Fe.colorPrimary)),color:Vn,rippleColor:Ue.extend("--ft-button-primary-ripple-color","",Vn)},Yn=Ue.extend("--ft-button-dense-border-radius","",Ue.extend("--ft-button-border-radius","",Fe.borderRadiusM)),Xn=Ue.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Jn=Ue.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Qn=Ue.create("--ft-button-dense-icon-padding","","SIZE","4px"),ts=[Ut`
|
|
478
483
|
:host {
|
|
479
484
|
display: inline-block;
|
|
480
485
|
max-width: 100%;
|
|
@@ -485,7 +490,7 @@ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructo
|
|
|
485
490
|
box-shadow: 0px 0px 0px transparent;
|
|
486
491
|
border: 0px solid transparent;
|
|
487
492
|
text-shadow: 0px 0px 0px transparent;
|
|
488
|
-
font-size: ${
|
|
493
|
+
font-size: ${Gn.fontSize};
|
|
489
494
|
}
|
|
490
495
|
|
|
491
496
|
button:hover {
|
|
@@ -514,31 +519,31 @@ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructo
|
|
|
514
519
|
border: none;
|
|
515
520
|
pointer-events: auto;
|
|
516
521
|
|
|
517
|
-
--ft-button-internal-line-height: max(calc(${
|
|
518
|
-
--ft-button-internal-color: ${
|
|
519
|
-
${
|
|
520
|
-
${
|
|
522
|
+
--ft-button-internal-line-height: max(calc(${Gn.fontSize} + 2px), ${Gn.iconSize});
|
|
523
|
+
--ft-button-internal-color: ${Gn.color};
|
|
524
|
+
${Ie(Zn.size,Gn.iconSize)};
|
|
525
|
+
${Ie(Wn.color,Gn.rippleColor)};
|
|
521
526
|
|
|
522
|
-
border-radius: ${
|
|
523
|
-
padding: ${
|
|
524
|
-
background-color: ${
|
|
527
|
+
border-radius: ${Gn.borderRadius};
|
|
528
|
+
padding: ${Gn.verticalPadding} ${Gn.horizontalPadding};
|
|
529
|
+
background-color: ${Gn.backgroundColor};
|
|
525
530
|
color: var(--ft-button-internal-color);
|
|
526
531
|
-webkit-mask-image: radial-gradient(white, black);
|
|
527
532
|
}
|
|
528
533
|
|
|
529
534
|
.ft-button.ft-button--outlined {
|
|
530
535
|
border: 1px solid var(--ft-button-internal-color);
|
|
531
|
-
padding: calc(${
|
|
536
|
+
padding: calc(${Gn.verticalPadding} - 1px) calc(${Gn.horizontalPadding} - 1px);
|
|
532
537
|
}
|
|
533
538
|
|
|
534
539
|
.ft-button.ft-button--dense {
|
|
535
|
-
padding: ${
|
|
536
|
-
border-radius: ${
|
|
537
|
-
gap: ${
|
|
540
|
+
padding: ${Xn} ${Jn};
|
|
541
|
+
border-radius: ${Yn};
|
|
542
|
+
gap: ${Qn};
|
|
538
543
|
}
|
|
539
544
|
|
|
540
545
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
541
|
-
padding: calc(${
|
|
546
|
+
padding: calc(${Xn} - 1px) calc(${Jn} - 1px);
|
|
542
547
|
}
|
|
543
548
|
|
|
544
549
|
.ft-button:not([disabled]):hover {
|
|
@@ -546,22 +551,22 @@ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructo
|
|
|
546
551
|
}
|
|
547
552
|
|
|
548
553
|
.ft-button--round {
|
|
549
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
554
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Gn.verticalPadding});
|
|
550
555
|
}
|
|
551
556
|
|
|
552
557
|
.ft-button--round.ft-button--dense {
|
|
553
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
558
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Xn});
|
|
554
559
|
}
|
|
555
560
|
|
|
556
561
|
.ft-button[disabled] {
|
|
557
562
|
filter: grayscale(1);
|
|
558
|
-
opacity: ${
|
|
563
|
+
opacity: ${Gn.opacityDisabled};
|
|
559
564
|
}
|
|
560
565
|
|
|
561
566
|
.ft-button.ft-button--primary {
|
|
562
|
-
background-color: ${
|
|
563
|
-
--ft-button-internal-color: ${
|
|
564
|
-
${
|
|
567
|
+
background-color: ${qn.backgroundColor};
|
|
568
|
+
--ft-button-internal-color: ${qn.color};
|
|
569
|
+
${Ie(Wn.color,qn.rippleColor)};
|
|
565
570
|
}
|
|
566
571
|
|
|
567
572
|
.ft-button:focus {
|
|
@@ -574,13 +579,13 @@ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructo
|
|
|
574
579
|
white-space: nowrap;
|
|
575
580
|
text-overflow: ellipsis;
|
|
576
581
|
display: block;
|
|
577
|
-
margin: 0 ${
|
|
578
|
-
${
|
|
579
|
-
${
|
|
582
|
+
margin: 0 ${Gn.iconPadding};
|
|
583
|
+
${Ie(sn.fontSize,"1em")};
|
|
584
|
+
${Ie(sn.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
580
585
|
}
|
|
581
586
|
|
|
582
587
|
.ft-button--dense .ft-button--label {
|
|
583
|
-
margin: 0 ${
|
|
588
|
+
margin: 0 ${Qn};
|
|
584
589
|
}
|
|
585
590
|
|
|
586
591
|
.ft-button--label[hidden] {
|
|
@@ -593,13 +598,13 @@ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructo
|
|
|
593
598
|
}
|
|
594
599
|
|
|
595
600
|
.ft-button--label[hidden] + ft-icon {
|
|
596
|
-
margin: 0 calc(${
|
|
597
|
-
padding: 0 ${
|
|
601
|
+
margin: 0 calc(${Gn.horizontalPadding} * -1);
|
|
602
|
+
padding: 0 ${Gn.verticalPadding};
|
|
598
603
|
}
|
|
599
604
|
|
|
600
605
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
601
|
-
margin: 0 calc(${
|
|
602
|
-
padding: 0 ${
|
|
606
|
+
margin: 0 calc(${Jn} * -1);
|
|
607
|
+
padding: 0 ${Xn};
|
|
603
608
|
}
|
|
604
609
|
|
|
605
610
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -608,26 +613,26 @@ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructo
|
|
|
608
613
|
}
|
|
609
614
|
|
|
610
615
|
ft-loader {
|
|
611
|
-
${
|
|
612
|
-
${
|
|
616
|
+
${Ie(Tn.size,Gn.iconSize)};
|
|
617
|
+
${Ie(Tn.color,"var(--ft-button-internal-color)")};
|
|
613
618
|
}
|
|
614
|
-
`,
|
|
619
|
+
`,Ge],es=Sn(class extends Nn{constructor(t){if(super(t),t.type!==On||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const i=!!e[t];i===this.it.has(t)||this.st?.has(t)||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return at}});
|
|
615
620
|
/**
|
|
616
621
|
* @license
|
|
617
622
|
* Copyright 2017 Google LLC
|
|
618
623
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
619
|
-
*/var
|
|
624
|
+
*/var os=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class is extends _e{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 W(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 W(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return ue`
|
|
620
625
|
<style>
|
|
621
626
|
.ft-ripple .ft-ripple--effect {
|
|
622
627
|
left: ${this.originX}px;
|
|
623
628
|
top: ${this.originY}px;
|
|
624
629
|
}
|
|
625
630
|
</style>
|
|
626
|
-
<div class="${
|
|
631
|
+
<div class="${es(t)}">
|
|
627
632
|
<div class="ft-ripple--background"></div>
|
|
628
633
|
<div class="ft-ripple--effect"></div>
|
|
629
634
|
</div>
|
|
630
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",o),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",o),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}
|
|
635
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}is.elementDefinitions={},is.styles=Mn,os([k({type:Boolean})],is.prototype,"primary",void 0),os([k({type:Boolean})],is.prototype,"secondary",void 0),os([k({type:Boolean})],is.prototype,"unbounded",void 0),os([k({type:Boolean})],is.prototype,"activated",void 0),os([k({type:Boolean})],is.prototype,"selected",void 0),os([k({type:Boolean})],is.prototype,"disabled",void 0),os([R()],is.prototype,"hovered",void 0),os([R()],is.prototype,"focused",void 0),os([R()],is.prototype,"pressed",void 0),os([R()],is.prototype,"rippling",void 0),os([R()],is.prototype,"originX",void 0),os([R()],is.prototype,"originY",void 0),os([L(".ft-ripple")],is.prototype,"ripple",void 0),os([L(".ft-ripple--effect")],is.prototype,"rippleEffect",void 0),D("ft-ripple")(is);const rs=Ue.create("--ft-tooltip-distance","","SIZE","4px"),ns=Ue.create("--ft-tooltip-color","","COLOR","#FFFFFF"),ss=Ue.create("--ft-tooltip-background-color","","COLOR","#666666"),as=Ue.create("--ft-tooltip-z-index","","NUMBER","100"),ls=Ue.external(Fe.borderRadiusS,"Design system"),cs=Ue.create("--ft-tooltip-max-width","","SIZE","150px"),fs=Ut`
|
|
631
636
|
.ft-tooltip--container {
|
|
632
637
|
display: block;
|
|
633
638
|
}
|
|
@@ -642,21 +647,21 @@ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructo
|
|
|
642
647
|
box-sizing: border-box;
|
|
643
648
|
overflow: hidden;
|
|
644
649
|
width: max-content;
|
|
645
|
-
max-width: ${
|
|
650
|
+
max-width: ${cs};
|
|
646
651
|
text-align: center;
|
|
647
|
-
padding: ${
|
|
648
|
-
z-index: ${
|
|
652
|
+
padding: ${rs};
|
|
653
|
+
z-index: ${as};
|
|
649
654
|
}
|
|
650
655
|
|
|
651
656
|
.ft-tooltip--content {
|
|
652
657
|
padding: 4px 8px;
|
|
653
|
-
border-radius: ${
|
|
654
|
-
background-color: ${
|
|
655
|
-
color: ${
|
|
658
|
+
border-radius: ${ls};
|
|
659
|
+
background-color: ${ss};
|
|
660
|
+
color: ${ns};
|
|
656
661
|
position: relative;
|
|
657
662
|
word-break: break-word;
|
|
658
663
|
}
|
|
659
|
-
`;var cs=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class hs 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 A,this.revealDebouncer=new A}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return fe`
|
|
664
|
+
`,hs=["start","end"],us=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+hs[0],e+"-"+hs[1])),[]),ps=Math.min,ds=Math.max,ys=Math.round,bs=t=>({x:t,y:t}),gs={left:"right",right:"left",bottom:"top",top:"bottom"},ms={start:"end",end:"start"};function vs(t,e,o){return ds(t,ps(e,o))}function xs(t,e){return"function"==typeof t?t(e):t}function Os(t){return t.split("-")[0]}function ws(t){return t.split("-")[1]}function Ss(t){return"x"===t?"y":"x"}function Ns(t){return"y"===t?"height":"width"}function Cs(t){return["top","bottom"].includes(Os(t))?"y":"x"}function $s(t){return Ss(Cs(t))}function Es(t){return t.replace(/left|right|bottom|top/g,(t=>gs[t]))}function ks(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Rs(t,e,o){let{reference:i,floating:r}=t;const n=Cs(e),s=$s(e),a=Ns(s),l=Os(e),c="y"===n,f=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,u=i[a]/2-r[a]/2;let p;switch(l){case"top":p={x:f,y:i.y-r.height};break;case"bottom":p={x:f,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:h};break;case"left":p={x:i.x-r.width,y:h};break;default:p={x:i.x,y:i.y}}switch(ws(e)){case"start":p[s]-=u*(o&&c?-1:1);break;case"end":p[s]+=u*(o&&c?-1:1)}return p}async function Us(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=xs(e,t),d=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}}(p),y=a[u?"floating"===h?"reference":"floating":h],b=ks(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:l})),g="floating"===h?{...s.floating,x:i,y:r}:s.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(a.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=ks(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:m,strategy:l}):g);return{top:(b.top-x.top+d.top)/v.y,bottom:(x.bottom-b.bottom+d.bottom)/v.y,left:(b.left-x.left+d.left)/v.x,right:(x.right-b.right+d.right)/v.x}}function Is(t,e,o){return(t?[...o.filter((e=>ws(e)===t)),...o.filter((e=>ws(e)!==t))]:o.filter((t=>Os(t)===t))).filter((o=>!t||(ws(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>ms[t]))}(o)!==o)))}const Ls=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:u=us,autoAlignment:p=!0,...d}=xs(t,e),y=void 0!==h||u===us?Is(h||null,p,u):u,b=await Us(e,d),g=(null==(o=s.autoPlacement)?void 0:o.index)||0,m=y[g];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const i=ws(t),r=$s(t),n=Ns(r);let s="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=Es(s)),[s,Es(s)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(a!==m)return{reset:{placement:y[0]}};const x=[b[Os(m)],b[v[0]],b[v[1]]],O=[...(null==(i=s.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:x}],w=y[g+1];if(w)return{data:{index:g+1,overflows:O},reset:{placement:w}};const S=O.map((t=>{const e=ws(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,ws(t[0])?2:3).every((t=>t<=0)))),C=(null==(r=N[0])?void 0:r[0])||S[0][0];return C!==a?{data:{index:g+1,overflows:O},reset:{placement:C}}:{}}}};function As(t){return Fs(t)?(t.nodeName||"").toLowerCase():"#document"}function Ws(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function js(t){var e;return null==(e=(Fs(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Fs(t){return t instanceof Node||t instanceof Ws(t).Node}function Ps(t){return t instanceof Element||t instanceof Ws(t).Element}function Ds(t){return t instanceof HTMLElement||t instanceof Ws(t).HTMLElement}function Bs(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Ws(t).ShadowRoot)}function zs(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=_s(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function Ms(t){return["table","td","th"].includes(As(t))}function Ts(t){const e=Ks(),o=_s(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function Ks(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Zs(t){return["html","body","#document"].includes(As(t))}function _s(t){return Ws(t).getComputedStyle(t)}function Hs(t){return Ps(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Gs(t){if("html"===As(t))return t;const e=t.assignedSlot||t.parentNode||Bs(t)&&t.host||js(t);return Bs(e)?e.host:e}function Vs(t){const e=Gs(t);return Zs(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ds(e)&&zs(e)?e:Vs(e)}function qs(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=Vs(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),s=Ws(r);return n?e.concat(s,s.visualViewport||[],zs(r)?r:[],s.frameElement&&o?qs(s.frameElement):[]):e.concat(r,qs(r,[],o))}function Ys(t){const e=_s(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=Ds(t),n=r?t.offsetWidth:o,s=r?t.offsetHeight:i,a=ys(o)!==n||ys(i)!==s;return a&&(o=n,i=s),{width:o,height:i,$:a}}function Xs(t){return Ps(t)?t:t.contextElement}function Js(t){const e=Xs(t);if(!Ds(e))return bs(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=Ys(e);let s=(n?ys(o.width):o.width)/i,a=(n?ys(o.height):o.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Qs=bs(0);function ta(t){const e=Ws(t);return Ks()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Qs}function ea(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=Xs(t);let s=bs(1);e&&(i?Ps(i)&&(s=Js(i)):s=Js(t));const a=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Ws(t))&&e}(n,o,i)?ta(n):bs(0);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,f=r.width/s.x,h=r.height/s.y;if(n){const t=Ws(n),e=i&&Ps(i)?Ws(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Js(o),e=o.getBoundingClientRect(),i=_s(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=r,c+=n,o=Ws(o).frameElement}}return ks({width:f,height:h,x:l,y:c})}function oa(t){return ea(js(t)).left+Hs(t).scrollLeft}function ia(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Ws(t),i=js(t),r=o.visualViewport;let n=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){n=r.width,s=r.height;const t=Ks();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:a,y:l}}(t,o);else if("document"===e)i=function(t){const e=js(t),o=Hs(t),i=t.ownerDocument.body,r=ds(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=ds(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+oa(t);const a=-o.scrollTop;return"rtl"===_s(i).direction&&(s+=ds(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:s,y:a}}(js(t));else if(Ps(e))i=function(t,e){const o=ea(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=Ds(t)?Js(t):bs(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=ta(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return ks(i)}function ra(t,e){const o=Gs(t);return!(o===e||!Ps(o)||Zs(o))&&("fixed"===_s(o).position||ra(o,e))}function na(t,e,o){const i=Ds(e),r=js(e),n="fixed"===o,s=ea(t,!0,n,e);let a={scrollLeft:0,scrollTop:0};const l=bs(0);if(i||!i&&!n)if(("body"!==As(e)||zs(r))&&(a=Hs(e)),i){const t=ea(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=oa(r));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function sa(t,e){return Ds(t)&&"fixed"!==_s(t).position?e?e(t):t.offsetParent:null}function aa(t,e){const o=Ws(t);if(!Ds(t))return o;let i=sa(t,e);for(;i&&Ms(i)&&"static"===_s(i).position;)i=sa(i,e);return i&&("html"===As(i)||"body"===As(i)&&"static"===_s(i).position&&!Ts(i))?o:i||function(t){let e=Gs(t);for(;Ds(e)&&!Zs(e);){if(Ts(e))return e;e=Gs(e)}return null}(t)||o}const la={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=Ds(o),n=js(o);if(o===n)return e;let s={scrollLeft:0,scrollTop:0},a=bs(1);const l=bs(0);if((r||!r&&"fixed"!==i)&&(("body"!==As(o)||zs(n))&&(s=Hs(o)),Ds(o))){const t=ea(o);a=Js(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-s.scrollLeft*a.x+l.x,y:e.y*a.y-s.scrollTop*a.y+l.y}},getDocumentElement:js,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n="clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=qs(t,[],!1).filter((t=>Ps(t)&&"body"!==As(t))),r=null;const n="fixed"===_s(t).position;let s=n?Gs(t):t;for(;Ps(s)&&!Zs(s);){const e=_s(s),o=Ts(s);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||zs(s)&&!o&&ra(t,s))?i=i.filter((t=>t!==s)):r=e,s=Gs(s)}return e.set(t,i),i}(e,this._c):[].concat(o),s=[...n,i],a=s[0],l=s.reduce(((t,o)=>{const i=ia(e,o,r);return t.top=ds(i.top,t.top),t.right=ps(i.right,t.right),t.bottom=ps(i.bottom,t.bottom),t.left=ds(i.left,t.left),t}),ia(e,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:aa,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||aa,n=this.getDimensions;return{reference:na(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Ys(t)},getScale:Js,isElement:Ps,isRTL:function(t){return"rtl"===_s(t).direction}},ca=(t,e,o)=>{const i=new Map,r={platform:la,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:s}=o,a=n.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=Rs(c,i,l),u=i,p={},d=0;for(let o=0;o<a.length;o++){const{name:n,fn:y}=a[o],{x:b,y:g,data:m,reset:v}=await y({x:f,y:h,initialPlacement:i,placement:u,strategy:r,middlewareData:p,rects:c,platform:s,elements:{reference:t,floating:e}});f=null!=b?b:f,h=null!=g?g:h,p={...p,[n]:{...p[n],...m}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(c=!0===v.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:f,y:h}=Rs(c,u,l))),o=-1)}return{x:f,y:h,placement:u,strategy:r,middlewareData:p}})(t,e,{...r,platform:n})};var fa=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class ha extends _e{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 W,this.revealDebouncer=new W}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ue`
|
|
660
665
|
<div part="container"
|
|
661
666
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
662
667
|
@mouseenter=${this.onHover}
|
|
@@ -674,54 +679,54 @@ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructo
|
|
|
674
679
|
</div>
|
|
675
680
|
</div>
|
|
676
681
|
</div>
|
|
677
|
-
`}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(){this.resetTooltipContent()
|
|
682
|
+
`}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="",ca(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:r}=e,{mainAxis:n=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=xs(t,e),c={x:o,y:i},f=await Us(e,l),h=Cs(Os(r)),u=Ss(h);let p=c[u],d=c[h];if(n){const t="y"===u?"bottom":"right";p=vs(p+f["y"===u?"top":"left"],p,p-f[t])}if(s){const t="y"===h?"bottom":"right";d=vs(d+f["y"===h?"top":"left"],d,d-f[t])}const y=a.fn({...e,[u]:p,[h]:d});return{...y,data:{x:y.x-o,y:y.y-i}}}}),Ls({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}ha.elementDefinitions={"ft-typography":xn},ha.styles=fs,fa([k()],ha.prototype,"text",void 0),fa([k({type:Boolean})],ha.prototype,"manual",void 0),fa([k({type:Boolean})],ha.prototype,"inline",void 0),fa([k({type:Number})],ha.prototype,"delay",void 0),fa([k()],ha.prototype,"position",void 0),fa([
|
|
678
683
|
/**
|
|
679
684
|
* @license
|
|
680
685
|
* Copyright 2017 Google LLC
|
|
681
686
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
682
687
|
*/
|
|
683
|
-
function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return
|
|
688
|
+
function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],ha.prototype,"slotNodes",void 0),fa([L(".ft-tooltip--container")],ha.prototype,"container",void 0),fa([L(".ft-tooltip")],ha.prototype,"tooltip",void 0),fa([L(".ft-tooltip--content")],ha.prototype,"tooltipContent",void 0),fa([R()],ha.prototype,"visible",void 0),fa([U({passive:!0})],ha.prototype,"onTouch",null),fa([U({passive:!0})],ha.prototype,"onHover",null),fa([U({passive:!0})],ha.prototype,"onOut",null),D("ft-tooltip")(ha);
|
|
684
689
|
/**
|
|
685
690
|
* @license
|
|
686
691
|
* Copyright 2017 Google LLC
|
|
687
692
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
688
693
|
*/
|
|
689
|
-
class
|
|
694
|
+
class ua extends Nn{constructor(t){if(super(t),this.et=lt,t.type!==wn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===lt||null==t)return this.vt=void 0,this.et=t;if(t===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:[]}}}ua.directiveName="unsafeHTML",ua.resultType=1;const pa=Sn(ua);var da,ya,ba;!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=""}(da||(da={})),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=""}(ya||(ya={})),new Map([...["abw"].map((t=>[t,ya.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,ya.AUDIO])),...["avi"].map((t=>[t,ya.AVI])),...["chm","xhs"].map((t=>[t,ya.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,ya.CODE])),...["csv"].map((t=>[t,ya.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ya.DITA])),...["epub"].map((t=>[t,ya.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ya.EXCEL])),...["flac"].map((t=>[t,ya.FLAC])),...["gif"].map((t=>[t,ya.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ya.GZIP])),...["html","htm","xhtml"].map((t=>[t,ya.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,ya.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ya.JPEG])),...["json"].map((t=>[t,ya.JSON])),...["m4a","m4p"].map((t=>[t,ya.M4A])),...["mov","qt"].map((t=>[t,ya.MOV])),...["mp3"].map((t=>[t,ya.MP3])),...["mp4","m4v"].map((t=>[t,ya.MP4])),...["ogg","oga"].map((t=>[t,ya.OGG])),...["pdf","ps"].map((t=>[t,ya.PDF])),...["png"].map((t=>[t,ya.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ya.POWERPOINT])),...["rar"].map((t=>[t,ya.RAR])),...["stp"].map((t=>[t,ya.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ya.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,ya.VIDEO])),...["wav"].map((t=>[t,ya.WAV])),...["wma"].map((t=>[t,ya.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ya.WORD])),...["xml","xsl","rdf"].map((t=>[t,ya.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ya.YAML])),...["zip"].map((t=>[t,ya.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ba||(ba={}));var ga=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class ma extends _e{constructor(){super(...arguments),this.resolvedIcon=de}render(){const t=this.variant&&Object.values(ba).includes(this.variant)?this.variant:ba.fluid_topics,e=t!==ba.material||!!this.value;return ue`
|
|
690
695
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
691
|
-
${
|
|
696
|
+
${pa(this.resolvedIcon)}
|
|
692
697
|
<slot ?hidden=${e}></slot>
|
|
693
698
|
</i>
|
|
694
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case
|
|
699
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case ba.file_format:this.resolvedIcon=null!==(t=ya[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ba.material:this.resolvedIcon=this.value||de;break;default:this.resolvedIcon=null!==(e=da[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ma.elementDefinitions={},ma.styles=_n,ga([k()],ma.prototype,"variant",void 0),ga([k()],ma.prototype,"value",void 0),ga([R()],ma.prototype,"resolvedIcon",void 0),ga([L("slot")],ma.prototype,"slottedContent",void 0),D("ft-icon")(ma);class va extends _e{render(){return ue`
|
|
695
700
|
<div class="ft-loader">
|
|
696
701
|
<div></div>
|
|
697
702
|
<div></div>
|
|
698
703
|
<div></div>
|
|
699
704
|
<div></div>
|
|
700
705
|
</div>
|
|
701
|
-
`}}
|
|
706
|
+
`}}va.styles=Kn,D("ft-loader")(va);var xa=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Oa extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[qi].form}constructor(...t){super(t),this[qi]=this.attachInternals(),this[qi].role=e}setFormValue(t){this[qi].setFormValue(t)}}}(_e,"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(ue`
|
|
702
707
|
<button part="button"
|
|
703
|
-
class="${
|
|
708
|
+
class="${es(this.buttonClasses)}"
|
|
704
709
|
aria-label="${this.getLabel()}"
|
|
705
710
|
?disabled=${this.isDisabled()}>
|
|
706
711
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
707
712
|
<ft-typography part="label"
|
|
708
713
|
variant=${this.typographyVariant}
|
|
709
714
|
element="span"
|
|
710
|
-
class="ft-button--label ${
|
|
715
|
+
class="ft-button--label ${Qi?"ft-safari-ellipsis-fix":""}"
|
|
711
716
|
?hidden=${!this.hasTextContent()}>
|
|
712
717
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
713
718
|
</ft-typography>
|
|
714
719
|
${this.resolveIcon()}
|
|
715
720
|
</button>
|
|
716
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
721
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?ue`
|
|
717
722
|
<ft-tooltip part="tooltip"
|
|
718
723
|
text="${this.getLabel()}"
|
|
719
724
|
position="${this.tooltipPosition}">
|
|
720
725
|
${t}
|
|
721
726
|
</ft-tooltip>
|
|
722
|
-
`:t}resolveIcon(){return this.loading?
|
|
723
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
724
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:
|
|
727
|
+
`:t}resolveIcon(){return this.loading?ue`
|
|
728
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?ue`
|
|
729
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:de}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}}Oa.elementDefinitions={"ft-ripple":is,"ft-tooltip":ha,"ft-typography":xn,"ft-icon":ma,"ft-loader":va},xa([k({type:String,reflect:!0})],Oa.prototype,"role",void 0),xa([k()],Oa.prototype,"type",void 0),xa([k({type:Boolean})],Oa.prototype,"disabled",void 0),xa([k()],Oa.prototype,"label",void 0),xa([k()],Oa.prototype,"icon",void 0),xa([k()],Oa.prototype,"iconVariant",void 0),xa([k({type:Boolean})],Oa.prototype,"trailingIcon",void 0),xa([k({type:Boolean})],Oa.prototype,"loading",void 0),xa([k()],Oa.prototype,"tooltipPosition",void 0),xa([k({type:Boolean})],Oa.prototype,"hideTooltip",void 0),xa([k({type:Boolean})],Oa.prototype,"forceTooltip",void 0),xa([L(".ft-button")],Oa.prototype,"button",void 0),xa([L(".ft-button--label slot")],Oa.prototype,"slottedContent",void 0);var wa=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Sa extends Oa{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"}}Sa.styles=[Ve,ts],wa([k({type:Boolean})],Sa.prototype,"primary",void 0),wa([k({type:Boolean})],Sa.prototype,"outlined",void 0),wa([k({type:Boolean})],Sa.prototype,"dense",void 0),wa([k({type:Boolean})],Sa.prototype,"round",void 0);const Na=[Ut`
|
|
725
730
|
:host {
|
|
726
731
|
display: inline-block;
|
|
727
732
|
max-width: 100%;
|
|
@@ -771,7 +776,7 @@ class fs extends wn{constructor(t){if(super(t),this.et=at,t.type!==xn)throw Erro
|
|
|
771
776
|
}
|
|
772
777
|
|
|
773
778
|
.ft-button:focus-visible {
|
|
774
|
-
outline-color: ${
|
|
779
|
+
outline-color: ${je.focusFocusRingColor};
|
|
775
780
|
outline-style: solid;
|
|
776
781
|
}
|
|
777
782
|
|
|
@@ -800,153 +805,153 @@ class fs extends wn{constructor(t){if(super(t),this.et=at,t.type!==xn)throw Erro
|
|
|
800
805
|
/** Primary styles **/
|
|
801
806
|
|
|
802
807
|
.ft-button--primary {
|
|
803
|
-
${
|
|
808
|
+
${Ie(Tn.color,je.primaryIconColor)};
|
|
804
809
|
|
|
805
|
-
${
|
|
806
|
-
${
|
|
807
|
-
${
|
|
808
|
-
${
|
|
809
|
-
${
|
|
810
|
+
${Ie(Wn.color,je.primaryStateLayerColor)};
|
|
811
|
+
${Ie(Wn.opacityContentOnSurfaceHover,je.primaryStateLayerOpacityHover)};
|
|
812
|
+
${Ie(Wn.opacityContentOnSurfaceFocused,je.primaryStateLayerOpacityFocus)};
|
|
813
|
+
${Ie(Wn.opacityContentOnSurfaceSelected,je.primaryStateLayerOpacityActive)};
|
|
814
|
+
${Ie(Wn.opacityContentOnSurfacePressed,je.primaryStateLayerOpacityActive)};
|
|
810
815
|
|
|
811
|
-
background-color: ${
|
|
812
|
-
color: ${
|
|
816
|
+
background-color: ${je.primaryBackgroundColor};
|
|
817
|
+
color: ${je.primaryColor};
|
|
813
818
|
border-style: none;
|
|
814
819
|
}
|
|
815
820
|
|
|
816
821
|
.ft-button--primary[disabled] {
|
|
817
|
-
opacity: ${
|
|
822
|
+
opacity: ${je.primaryComponentOpacityDisabled};
|
|
818
823
|
}
|
|
819
824
|
|
|
820
825
|
.ft-button--primary ft-icon {
|
|
821
|
-
color: ${
|
|
826
|
+
color: ${je.primaryIconColor};
|
|
822
827
|
}
|
|
823
828
|
|
|
824
829
|
/** Secondary styles **/
|
|
825
830
|
|
|
826
831
|
.ft-button--secondary {
|
|
827
|
-
${
|
|
832
|
+
${Ie(Tn.color,je.secondaryIconColor)};
|
|
828
833
|
|
|
829
|
-
${
|
|
830
|
-
${
|
|
831
|
-
${
|
|
832
|
-
${
|
|
833
|
-
${
|
|
834
|
+
${Ie(Wn.color,je.secondaryStateLayerColor)};
|
|
835
|
+
${Ie(Wn.opacityContentOnSurfaceHover,je.secondaryStateLayerOpacityHover)};
|
|
836
|
+
${Ie(Wn.opacityContentOnSurfaceFocused,je.secondaryStateLayerOpacityFocus)};
|
|
837
|
+
${Ie(Wn.opacityContentOnSurfaceSelected,je.secondaryStateLayerOpacityActive)};
|
|
838
|
+
${Ie(Wn.opacityContentOnSurfacePressed,je.secondaryStateLayerOpacityActive)};
|
|
834
839
|
|
|
835
|
-
background-color: ${
|
|
836
|
-
color: ${
|
|
837
|
-
border-color: ${
|
|
840
|
+
background-color: ${je.secondaryBackgroundColor};
|
|
841
|
+
color: ${je.secondaryColor};
|
|
842
|
+
border-color: ${je.secondaryBorderColor};
|
|
838
843
|
border-style: solid;
|
|
839
844
|
}
|
|
840
845
|
|
|
841
846
|
.ft-button--secondary[disabled] {
|
|
842
|
-
opacity: ${
|
|
847
|
+
opacity: ${je.secondaryComponentOpacityDisabled};
|
|
843
848
|
}
|
|
844
849
|
|
|
845
850
|
.ft-button--secondary ft-icon {
|
|
846
|
-
color: ${
|
|
851
|
+
color: ${je.secondaryIconColor};
|
|
847
852
|
}
|
|
848
853
|
|
|
849
854
|
/** Tertiary styles **/
|
|
850
855
|
|
|
851
856
|
.ft-button--tertiary {
|
|
852
|
-
${
|
|
857
|
+
${Ie(Tn.color,je.tertiaryIconColor)};
|
|
853
858
|
|
|
854
|
-
${
|
|
855
|
-
${
|
|
856
|
-
${
|
|
857
|
-
${
|
|
858
|
-
${
|
|
859
|
+
${Ie(Wn.color,je.tertiaryStateLayerColor)};
|
|
860
|
+
${Ie(Wn.opacityContentOnSurfaceHover,je.tertiaryStateLayerOpacityHover)};
|
|
861
|
+
${Ie(Wn.opacityContentOnSurfaceFocused,je.tertiaryStateLayerOpacityFocus)};
|
|
862
|
+
${Ie(Wn.opacityContentOnSurfaceSelected,je.tertiaryStateLayerOpacityActive)};
|
|
863
|
+
${Ie(Wn.opacityContentOnSurfacePressed,je.tertiaryStateLayerOpacityActive)};
|
|
859
864
|
|
|
860
|
-
background-color: ${
|
|
861
|
-
color: ${
|
|
865
|
+
background-color: ${je.tertiaryBackgroundColor};
|
|
866
|
+
color: ${je.tertiaryColor};
|
|
862
867
|
border-style: none;
|
|
863
868
|
}
|
|
864
869
|
|
|
865
870
|
.ft-button--tertiary[disabled] {
|
|
866
|
-
opacity: ${
|
|
871
|
+
opacity: ${je.tertiaryComponentOpacityDisabled};
|
|
867
872
|
}
|
|
868
873
|
|
|
869
874
|
.ft-button--tertiary ft-icon {
|
|
870
|
-
color: ${
|
|
875
|
+
color: ${je.tertiaryIconColor};
|
|
871
876
|
}
|
|
872
877
|
|
|
873
878
|
/** Neutral styles **/
|
|
874
879
|
|
|
875
880
|
.ft-button--neutral {
|
|
876
|
-
${
|
|
881
|
+
${Ie(Tn.color,je.neutralIconColor)};
|
|
877
882
|
|
|
878
|
-
${
|
|
879
|
-
${
|
|
880
|
-
${
|
|
881
|
-
${
|
|
882
|
-
${
|
|
883
|
+
${Ie(Wn.backgroundColor,je.neutralStateLayerColor)};
|
|
884
|
+
${Ie(Wn.opacityContentOnSurfaceHover,je.neutralStateLayerOpacityHover)};
|
|
885
|
+
${Ie(Wn.opacityContentOnSurfaceFocused,je.neutralStateLayerOpacityFocus)};
|
|
886
|
+
${Ie(Wn.opacityContentOnSurfaceSelected,je.neutralStateLayerOpacityActive)};
|
|
887
|
+
${Ie(Wn.opacityContentOnSurfacePressed,je.neutralStateLayerOpacityActive)};
|
|
883
888
|
|
|
884
|
-
background-color: ${
|
|
885
|
-
color: ${
|
|
889
|
+
background-color: ${je.neutralBackgroundColor};
|
|
890
|
+
color: ${je.neutralColor};
|
|
886
891
|
border-style: none;
|
|
887
892
|
}
|
|
888
893
|
|
|
889
894
|
.ft-button--neutral[disabled] {
|
|
890
|
-
opacity: ${
|
|
895
|
+
opacity: ${je.neutralComponentOpacityDisabled};
|
|
891
896
|
}
|
|
892
897
|
|
|
893
898
|
.ft-button--neutral ft-icon {
|
|
894
|
-
color: ${
|
|
899
|
+
color: ${je.neutralIconColor};
|
|
895
900
|
}
|
|
896
901
|
|
|
897
902
|
/** Large styles **/
|
|
898
903
|
|
|
899
904
|
.ft-button--large {
|
|
900
|
-
${
|
|
901
|
-
${
|
|
905
|
+
${Ie(Zn.size,je.largeIconSize)};
|
|
906
|
+
${Ie(Tn.size,je.largeIconSize)};
|
|
902
907
|
|
|
903
|
-
height: ${
|
|
904
|
-
padding: 0 ${
|
|
905
|
-
gap: ${
|
|
906
|
-
border-radius: ${
|
|
907
|
-
border-width: ${
|
|
908
|
+
height: ${je.largeHeight};
|
|
909
|
+
padding: 0 ${je.largeHorizontalPadding};
|
|
910
|
+
gap: ${je.largeGap};
|
|
911
|
+
border-radius: ${je.largeBorderRadius};
|
|
912
|
+
border-width: ${je.largeBorderWidth};
|
|
908
913
|
}
|
|
909
914
|
|
|
910
915
|
.ft-button--large:focus-visible {
|
|
911
|
-
outline-width: ${
|
|
912
|
-
outline-offset: ${
|
|
916
|
+
outline-width: ${je.largeFocusOutlineWidth};
|
|
917
|
+
outline-offset: ${je.largeFocusOutlineOffset};
|
|
913
918
|
}
|
|
914
919
|
|
|
915
920
|
.ft-button--large.ft-button--icon-only {
|
|
916
|
-
width: ${
|
|
921
|
+
width: ${je.largeIconOnlyWidth};
|
|
917
922
|
padding: unset;
|
|
918
923
|
}
|
|
919
924
|
|
|
920
925
|
/** Small styles **/
|
|
921
926
|
|
|
922
927
|
.ft-button--small {
|
|
923
|
-
${
|
|
924
|
-
${
|
|
928
|
+
${Ie(Zn.size,je.smallIconSize)};
|
|
929
|
+
${Ie(Tn.size,je.smallIconSize)};
|
|
925
930
|
|
|
926
|
-
height: ${
|
|
927
|
-
padding: 0 ${
|
|
928
|
-
gap: ${
|
|
929
|
-
border-radius: ${
|
|
930
|
-
border-width: ${
|
|
931
|
+
height: ${je.smallHeight};
|
|
932
|
+
padding: 0 ${je.smallHorizontalPadding};
|
|
933
|
+
gap: ${je.smallGap};
|
|
934
|
+
border-radius: ${je.smallBorderRadius};
|
|
935
|
+
border-width: ${je.smallBorderWidth};
|
|
931
936
|
}
|
|
932
937
|
|
|
933
938
|
.ft-button--small:focus-visible {
|
|
934
|
-
outline-width: ${
|
|
935
|
-
outline-offset: ${
|
|
939
|
+
outline-width: ${je.smallFocusOutlineWidth};
|
|
940
|
+
outline-offset: ${je.smallFocusOutlineOffset};
|
|
936
941
|
}
|
|
937
942
|
|
|
938
943
|
.ft-button--small.ft-button--icon-only {
|
|
939
|
-
width: ${
|
|
944
|
+
width: ${je.smallIconOnlyWidth};
|
|
940
945
|
padding: unset;
|
|
941
946
|
}
|
|
942
|
-
`,
|
|
947
|
+
`,Ge];var Ca=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class $a extends Oa{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?sr.caption1medium:sr.body2medium}}$a.styles=[Ve,Na],Ca([k({type:Boolean})],$a.prototype,"primary",void 0),Ca([k({type:Boolean})],$a.prototype,"secondary",void 0),Ca([k({type:Boolean})],$a.prototype,"tertiary",void 0),Ca([k({type:Boolean})],$a.prototype,"neutral",void 0),Ca([k({type:Boolean})],$a.prototype,"small",void 0),D("ft-button")(Sa),D("ftds-button")($a);const Ea=Ue.extend("--ft-checkbox-text-color","",Fe.colorOnSurfaceHigh),ka=Ue.external(Fe.colorPrimary,"Design system"),Ra=Ue.external(Fe.colorOnPrimary,"Design system"),Ua=Ue.extend("--ft-checkbox-border-color","",Fe.colorOnSurfaceMedium),Ia=Ue.external(Fe.colorOnSurfaceDisabled,"Design system"),La=Ut`
|
|
943
948
|
* {
|
|
944
949
|
box-sizing: border-box;
|
|
945
950
|
}
|
|
946
951
|
|
|
947
952
|
.ft-checkbox {
|
|
948
953
|
box-sizing: border-box;
|
|
949
|
-
color: ${
|
|
954
|
+
color: ${Ea};
|
|
950
955
|
|
|
951
956
|
display: inline-flex;
|
|
952
957
|
align-items: center;
|
|
@@ -954,7 +959,7 @@ class fs extends wn{constructor(t){if(super(t),this.et=at,t.type!==xn)throw Erro
|
|
|
954
959
|
}
|
|
955
960
|
|
|
956
961
|
.ft-checkbox--disabled {
|
|
957
|
-
color: ${
|
|
962
|
+
color: ${Ia};
|
|
958
963
|
}
|
|
959
964
|
|
|
960
965
|
input {
|
|
@@ -978,26 +983,26 @@ class fs extends wn{constructor(t){if(super(t),this.et=at,t.type!==xn)throw Erro
|
|
|
978
983
|
|
|
979
984
|
.ft-checkbox--box {
|
|
980
985
|
display: flex;
|
|
981
|
-
border: 2px solid ${
|
|
986
|
+
border: 2px solid ${Ua};
|
|
982
987
|
border-radius: 2px;
|
|
983
988
|
|
|
984
989
|
width: 18px;
|
|
985
990
|
height: 18px;
|
|
986
991
|
|
|
987
|
-
color: ${
|
|
992
|
+
color: ${Ra};
|
|
988
993
|
}
|
|
989
994
|
|
|
990
995
|
|
|
991
996
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
992
997
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
993
|
-
border-color: ${
|
|
994
|
-
background-color: ${
|
|
998
|
+
border-color: ${ka};
|
|
999
|
+
background-color: ${ka};
|
|
995
1000
|
}
|
|
996
1001
|
|
|
997
1002
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
998
|
-
border-color: ${
|
|
1003
|
+
border-color: ${Ia};
|
|
999
1004
|
background-color: transparent;
|
|
1000
|
-
color: ${
|
|
1005
|
+
color: ${Ia};
|
|
1001
1006
|
}
|
|
1002
1007
|
|
|
1003
1008
|
.ft-checkbox--checkmark {
|
|
@@ -1016,8 +1021,8 @@ class fs extends wn{constructor(t){if(super(t),this.et=at,t.type!==xn)throw Erro
|
|
|
1016
1021
|
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
1017
1022
|
opacity: 1;
|
|
1018
1023
|
}
|
|
1019
|
-
`;var
|
|
1020
|
-
<label class="${
|
|
1024
|
+
`;var Aa=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Wa extends _e{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return ue`
|
|
1025
|
+
<label class="${es(t)}" for="checkbox-input">
|
|
1021
1026
|
<div class="ft-checkbox--box-container">
|
|
1022
1027
|
<ft-ripple
|
|
1023
1028
|
?disabled=${this.disabled}
|
|
@@ -1042,14 +1047,14 @@ class fs extends wn{constructor(t){if(super(t),this.et=at,t.type!==xn)throw Erro
|
|
|
1042
1047
|
<slot></slot>
|
|
1043
1048
|
</ft-typography>
|
|
1044
1049
|
</label>
|
|
1045
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}
|
|
1050
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}Wa.elementDefinitions={"ft-ripple":is,"ft-typography":xn},Wa.styles=La,Aa([k()],Wa.prototype,"name",void 0),Aa([k({type:Boolean,reflect:!0})],Wa.prototype,"checked",void 0),Aa([k({type:Boolean})],Wa.prototype,"indeterminate",void 0),Aa([k({type:Boolean})],Wa.prototype,"disabled",void 0),Aa([L(".ft-checkbox")],Wa.prototype,"container",void 0),Aa([L("ft-ripple")],Wa.prototype,"ripple",void 0),D("ft-checkbox")(Wa);const ja=Ue.extend("--ft-radio-text-color","",Fe.colorOnSurfaceHigh),Fa=Ue.external(Fe.colorPrimary,"Design system"),Pa=(Ue.external(Fe.colorOnPrimary,"Design system"),Ue.extend("--ft-radio-border-color","",Fe.colorOnSurfaceMedium)),Da=Ue.external(Fe.colorOnSurfaceDisabled,"Design system"),Ba=Ut`
|
|
1046
1051
|
* {
|
|
1047
1052
|
box-sizing: border-box;
|
|
1048
1053
|
}
|
|
1049
1054
|
|
|
1050
1055
|
.ft-radio {
|
|
1051
1056
|
box-sizing: border-box;
|
|
1052
|
-
color: ${
|
|
1057
|
+
color: ${ja};
|
|
1053
1058
|
|
|
1054
1059
|
display: inline-flex;
|
|
1055
1060
|
align-items: center;
|
|
@@ -1057,7 +1062,7 @@ class fs extends wn{constructor(t){if(super(t),this.et=at,t.type!==xn)throw Erro
|
|
|
1057
1062
|
}
|
|
1058
1063
|
|
|
1059
1064
|
.ft-radio--disabled {
|
|
1060
|
-
color: ${
|
|
1065
|
+
color: ${Da};
|
|
1061
1066
|
}
|
|
1062
1067
|
|
|
1063
1068
|
input {
|
|
@@ -1080,7 +1085,7 @@ class fs extends wn{constructor(t){if(super(t),this.et=at,t.type!==xn)throw Erro
|
|
|
1080
1085
|
}
|
|
1081
1086
|
|
|
1082
1087
|
.ft-radio--box {
|
|
1083
|
-
border: 2px solid ${
|
|
1088
|
+
border: 2px solid ${Pa};
|
|
1084
1089
|
border-radius: 50%;
|
|
1085
1090
|
|
|
1086
1091
|
display: flex;
|
|
@@ -1093,7 +1098,7 @@ class fs extends wn{constructor(t){if(super(t),this.et=at,t.type!==xn)throw Erro
|
|
|
1093
1098
|
|
|
1094
1099
|
.ft-radio--box:after {
|
|
1095
1100
|
content: " ";
|
|
1096
|
-
background-color: ${
|
|
1101
|
+
background-color: ${Fa};
|
|
1097
1102
|
|
|
1098
1103
|
border-radius: 50%;
|
|
1099
1104
|
|
|
@@ -1105,7 +1110,7 @@ class fs extends wn{constructor(t){if(super(t),this.et=at,t.type!==xn)throw Erro
|
|
|
1105
1110
|
}
|
|
1106
1111
|
|
|
1107
1112
|
.ft-radio--checked .ft-radio--box {
|
|
1108
|
-
border-color: ${
|
|
1113
|
+
border-color: ${Fa};
|
|
1109
1114
|
}
|
|
1110
1115
|
|
|
1111
1116
|
|
|
@@ -1114,15 +1119,15 @@ class fs extends wn{constructor(t){if(super(t),this.et=at,t.type!==xn)throw Erro
|
|
|
1114
1119
|
}
|
|
1115
1120
|
|
|
1116
1121
|
.ft-radio--disabled .ft-radio--box {
|
|
1117
|
-
border-color: ${
|
|
1122
|
+
border-color: ${Da};
|
|
1118
1123
|
background-color: transparent;
|
|
1119
1124
|
}
|
|
1120
1125
|
|
|
1121
1126
|
.ft-radio--disabled .ft-radio--box:after {
|
|
1122
|
-
background-color: ${
|
|
1127
|
+
background-color: ${Da};
|
|
1123
1128
|
}
|
|
1124
|
-
`;var
|
|
1125
|
-
<div class="${
|
|
1129
|
+
`;var za=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Ma extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Ta extends _e{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return ue`
|
|
1130
|
+
<div class="${es(t)}">
|
|
1126
1131
|
<div class="ft-radio--box-container">
|
|
1127
1132
|
<ft-ripple
|
|
1128
1133
|
?disabled=${this.disabled}
|
|
@@ -1146,22 +1151,22 @@ class fs extends wn{constructor(t){if(super(t),this.et=at,t.type!==xn)throw Erro
|
|
|
1146
1151
|
</ft-typography>
|
|
1147
1152
|
</label>
|
|
1148
1153
|
</div>
|
|
1149
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new
|
|
1154
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Ma(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Ma(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Ta.elementDefinitions={"ft-ripple":is,"ft-typography":xn},Ta.styles=Ba,za([k()],Ta.prototype,"value",void 0),za([k()],Ta.prototype,"name",void 0),za([k({type:Boolean,reflect:!0})],Ta.prototype,"checked",void 0),za([k({type:Boolean})],Ta.prototype,"disabled",void 0),za([L(".ft-radio")],Ta.prototype,"container",void 0),za([L("ft-ripple")],Ta.prototype,"ripple",void 0),za([L("input")],Ta.prototype,"input",void 0);const Ka=Ut`
|
|
1150
1155
|
:host {
|
|
1151
1156
|
display: contents;
|
|
1152
1157
|
}
|
|
1153
|
-
`;var
|
|
1158
|
+
`;var Za=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class _a extends _e{constructor(){super(...arguments),this.name=""}render(){return ue`
|
|
1154
1159
|
<slot @slotchange=${this.onSlotChange}
|
|
1155
1160
|
@change=${this.onChange}
|
|
1156
1161
|
@keydown=${this.onKeyDown}
|
|
1157
1162
|
></slot>
|
|
1158
|
-
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),o=this.radioButtons.indexOf(e)-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}
|
|
1163
|
+
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),o=this.radioButtons.indexOf(e)-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}_a.elementDefinitions={},_a.styles=Ka,Za([k()],_a.prototype,"name",void 0),Za([
|
|
1159
1164
|
/**
|
|
1160
1165
|
* @license
|
|
1161
1166
|
* Copyright 2021 Google LLC
|
|
1162
1167
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1163
1168
|
*/
|
|
1164
|
-
function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return
|
|
1169
|
+
function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}()],_a.prototype,"radioButtons",void 0),D("ft-radio")(Ta),D("ft-radio-group")(_a);const Ha={borderRadiusM:Ue.external(Fe.borderRadiusM,"Design system"),colorOutline:Ue.external(Fe.colorOutline,"Design system"),colorOnSurface:Ue.external(Fe.colorOnSurface,"Design system"),colorOnSurfaceMedium:Ue.external(Fe.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Ue.external(Fe.colorOnSurfaceDisabled,"Design system"),colorPrimary:Ue.external(Fe.colorPrimary,"Design system"),colorOnPrimary:Ue.external(Fe.colorOnPrimary,"Design system"),fontFamily:Ue.external(zr.fontFamily,"Body2 typography"),fontSize:Ue.external(zr.fontSize,"Body2 typography"),fontWeight:Ue.external(zr.fontWeight,"Body2 typography"),letterSpacing:Ue.external(zr.letterSpacing,"Body2 typography"),lineHeight:Ue.external(zr.lineHeight,"Body2 typography"),textTransform:Ue.external(zr.textTransform,"Body2 typography")},Ga=Ut`
|
|
1165
1170
|
.ft-filter-level--container {
|
|
1166
1171
|
display: flex;
|
|
1167
1172
|
flex-direction: column;
|
|
@@ -1175,14 +1180,14 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1175
1180
|
flex-shrink: 0;
|
|
1176
1181
|
text-decoration: none;
|
|
1177
1182
|
position: relative;
|
|
1178
|
-
border-radius: ${
|
|
1183
|
+
border-radius: ${Ha.borderRadiusM};
|
|
1179
1184
|
overflow: hidden;
|
|
1180
1185
|
display: flex;
|
|
1181
1186
|
align-items: center;
|
|
1182
1187
|
padding: 4px 4px;
|
|
1183
1188
|
gap: 4px;
|
|
1184
1189
|
cursor: pointer;
|
|
1185
|
-
color: ${
|
|
1190
|
+
color: ${Ha.colorOnSurface};
|
|
1186
1191
|
}
|
|
1187
1192
|
|
|
1188
1193
|
.ft-filter-level--go-back:focus {
|
|
@@ -1211,7 +1216,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1211
1216
|
}
|
|
1212
1217
|
|
|
1213
1218
|
ft-button {
|
|
1214
|
-
${
|
|
1219
|
+
${Ie(Gn.color,Ha.colorOnSurface)};
|
|
1215
1220
|
}
|
|
1216
1221
|
|
|
1217
1222
|
ft-radio, ft-checkbox {
|
|
@@ -1225,11 +1230,11 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1225
1230
|
|
|
1226
1231
|
.ft-filter-level--no-values {
|
|
1227
1232
|
margin: 10px 0;
|
|
1228
|
-
color: ${
|
|
1233
|
+
color: ${Ha.colorOnSurfaceMedium};
|
|
1229
1234
|
}
|
|
1230
|
-
`;var
|
|
1235
|
+
`;var Va=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class qa extends _e{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}render(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return ue`
|
|
1231
1236
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1232
|
-
${null==this.parent?null:
|
|
1237
|
+
${null==this.parent?null:ue`
|
|
1233
1238
|
<div tabindex="0"
|
|
1234
1239
|
part="controls go-back"
|
|
1235
1240
|
class="ft-filter-level--go-back"
|
|
@@ -1241,15 +1246,15 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1241
1246
|
<ft-typography variant="body2">${this.parent.label}</ft-typography>
|
|
1242
1247
|
</div>
|
|
1243
1248
|
`}
|
|
1244
|
-
${0===this.options.length&&this.noValuesLabel?
|
|
1249
|
+
${0===this.options.length&&this.noValuesLabel?ue`
|
|
1245
1250
|
<ft-typography class="ft-filter-level--no-values" element="span" variant="body2">
|
|
1246
1251
|
${this.noValuesLabel}
|
|
1247
1252
|
</ft-typography>
|
|
1248
|
-
`:
|
|
1249
|
-
${
|
|
1253
|
+
`:de}
|
|
1254
|
+
${Ln(e,(t=>t.value),(t=>{var e;return ue`
|
|
1250
1255
|
<div class="ft-filter-level--option" part="options">
|
|
1251
1256
|
${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
|
|
1252
|
-
${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?ue
|
|
1257
|
+
${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?de:ue`
|
|
1253
1258
|
<ft-button icon="thin_arrow_right"
|
|
1254
1259
|
part="controls navigate-hierarchy"
|
|
1255
1260
|
label="${t.label}"
|
|
@@ -1259,7 +1264,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1259
1264
|
`}
|
|
1260
1265
|
</div>
|
|
1261
1266
|
`}))}
|
|
1262
|
-
${e.length<t.length?
|
|
1267
|
+
${e.length<t.length?ue`
|
|
1263
1268
|
<ft-button
|
|
1264
1269
|
class="ft-filter-level--display-more"
|
|
1265
1270
|
icon="thin_arrow"
|
|
@@ -1268,19 +1273,19 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1268
1273
|
@click=${this.displayMore}>
|
|
1269
1274
|
${this.moreValuesButtonLabel}
|
|
1270
1275
|
</ft-button>
|
|
1271
|
-
`:
|
|
1276
|
+
`:de}
|
|
1272
1277
|
</div>
|
|
1273
|
-
`}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var e;return
|
|
1278
|
+
`}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var e;return ue`
|
|
1274
1279
|
<ft-checkbox name="${this.filterId}"
|
|
1275
1280
|
part="multivalued-option"
|
|
1276
1281
|
data-value="${t.value}"
|
|
1277
1282
|
.checked=${t.selected}
|
|
1278
1283
|
.disabled=${this.disabled}
|
|
1279
|
-
.indeterminate=${
|
|
1284
|
+
.indeterminate=${F(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
|
|
1280
1285
|
@change=${e=>this.optionsChanged(e,t)}>
|
|
1281
1286
|
${t.renderOption?t.renderOption:t.label}
|
|
1282
1287
|
</ft-checkbox>
|
|
1283
|
-
`}buildMonoValuedOption(t){return
|
|
1288
|
+
`}buildMonoValuedOption(t){return ue`
|
|
1284
1289
|
<ft-radio name="${this.filterId+Math.round(1e6*Math.random())}"
|
|
1285
1290
|
part="monovalued-option"
|
|
1286
1291
|
data-value="${t.value}"
|
|
@@ -1291,7 +1296,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1291
1296
|
@change=${t=>t.stopPropagation()}>
|
|
1292
1297
|
${t.renderOption?t.renderOption:t.label}
|
|
1293
1298
|
</ft-radio>
|
|
1294
|
-
`}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}
|
|
1299
|
+
`}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}qa.elementDefinitions={"ft-button":Sa,"ft-ripple":is,"ft-typography":xn,"ft-checkbox":Wa,"ft-icon":ma,"ft-radio":Ta},qa.styles=Ga,Va([k({type:String})],qa.prototype,"filterId",void 0),Va([k({type:Object})],qa.prototype,"parent",void 0),Va([k({type:Array})],qa.prototype,"options",void 0),Va([k({type:Boolean})],qa.prototype,"multivalued",void 0),Va([k({type:Boolean})],qa.prototype,"disabled",void 0),Va([k({type:Boolean})],qa.prototype,"hideSelectedOptions",void 0),Va([k({type:Boolean})],qa.prototype,"preventNavigation",void 0),Va([k({type:String})],qa.prototype,"filter",void 0),Va([k({type:String})],qa.prototype,"moreValuesButtonLabel",void 0),Va([k({type:String})],qa.prototype,"noValuesLabel",void 0),Va([k({type:Number})],qa.prototype,"displayedValuesLimit",void 0),Va([L(".ft-filter-level--container")],qa.prototype,"container",void 0),Va([R()],qa.prototype,"displayedPages",void 0);const Ya={buttonsColor:Ue.extend("--ft-snap-scroll-buttons-color","",Fe.colorPrimary),buttonsZIndex:Ue.create("--ft-snap-scroll-buttons-z-index","","COLOR","1"),gap:Ue.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Ue.external(Fe.colorSurface,"Design system")},Xa=Ut`
|
|
1295
1300
|
.ft-snap-scroll {
|
|
1296
1301
|
box-sizing: border-box;
|
|
1297
1302
|
position: relative;
|
|
@@ -1326,7 +1331,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1326
1331
|
flex-wrap: nowrap;
|
|
1327
1332
|
align-items: flex-start;
|
|
1328
1333
|
justify-content: flex-start;
|
|
1329
|
-
gap: ${
|
|
1334
|
+
gap: ${Ya.gap};
|
|
1330
1335
|
}
|
|
1331
1336
|
|
|
1332
1337
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1369,11 +1374,11 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1369
1374
|
.ft-snap-scroll--next {
|
|
1370
1375
|
position: absolute;
|
|
1371
1376
|
display: flex;
|
|
1372
|
-
z-index: ${
|
|
1377
|
+
z-index: ${Ya.buttonsZIndex};
|
|
1373
1378
|
opacity: 1;
|
|
1374
1379
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1375
|
-
${
|
|
1376
|
-
${
|
|
1380
|
+
${Ie(Gn.backgroundColor,"transparent")};
|
|
1381
|
+
${Ie(Gn.color,Ya.buttonsColor)};
|
|
1377
1382
|
}
|
|
1378
1383
|
|
|
1379
1384
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1386,37 +1391,37 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1386
1391
|
top: 0;
|
|
1387
1392
|
left: -1px;
|
|
1388
1393
|
bottom: 0;
|
|
1389
|
-
background: linear-gradient(to right, ${
|
|
1394
|
+
background: linear-gradient(to right, ${Ya.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1390
1395
|
}
|
|
1391
1396
|
|
|
1392
1397
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1393
1398
|
top: -1px;
|
|
1394
1399
|
left: 0;
|
|
1395
1400
|
right: 0;
|
|
1396
|
-
background: linear-gradient(to bottom, ${
|
|
1401
|
+
background: linear-gradient(to bottom, ${Ya.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1397
1402
|
}
|
|
1398
1403
|
|
|
1399
1404
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1400
1405
|
top: 0;
|
|
1401
1406
|
right: -1px;
|
|
1402
1407
|
bottom: 0;
|
|
1403
|
-
background: linear-gradient(to left, ${
|
|
1408
|
+
background: linear-gradient(to left, ${Ya.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1404
1409
|
}
|
|
1405
1410
|
|
|
1406
1411
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1407
1412
|
left: 0;
|
|
1408
1413
|
right: 0;
|
|
1409
1414
|
bottom: -1px;
|
|
1410
|
-
background: linear-gradient(to top, ${
|
|
1415
|
+
background: linear-gradient(to top, ${Ya.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1411
1416
|
}
|
|
1412
1417
|
|
|
1413
1418
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1414
1419
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1415
1420
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1416
1421
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1417
|
-
background-color: ${
|
|
1422
|
+
background-color: ${Ya.colorSurface};
|
|
1418
1423
|
}
|
|
1419
|
-
`;var
|
|
1424
|
+
`;var Ja=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Qa extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class tl extends _e{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new W(200),this.updateScrollDebouncer=new W(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,o=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<o||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=es({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":Qi}),e=this.controls&&this.withScroll;return ue`
|
|
1420
1425
|
<div part="container" class="${t}">
|
|
1421
1426
|
<ft-button
|
|
1422
1427
|
class="ft-snap-scroll--previous"
|
|
@@ -1440,7 +1445,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1440
1445
|
@click=${this.next}
|
|
1441
1446
|
></ft-button>
|
|
1442
1447
|
</div>
|
|
1443
|
-
`}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new
|
|
1448
|
+
`}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new Qa(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,o;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(o=this.contentSlot)||void 0===o||o.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}tl.elementDefinitions={"ft-button":Sa},tl.styles=Xa,Ja([k({type:Boolean})],tl.prototype,"horizontal",void 0),Ja([k({type:Boolean})],tl.prototype,"hideScrollbar",void 0),Ja([k({type:Boolean})],tl.prototype,"controls",void 0),Ja([k({type:Boolean})],tl.prototype,"limitSize",void 0),Ja([R()],tl.prototype,"elements",void 0),Ja([R()],tl.prototype,"currentElement",void 0),Ja([R()],tl.prototype,"withScroll",void 0),Ja([R()],tl.prototype,"startReached",void 0),Ja([R()],tl.prototype,"endReached",void 0),Ja([L(".ft-snap-scroll--content")],tl.prototype,"contentSlot",void 0),D("ft-snap-scroll")(tl);const el=Ue.external(Fe.colorOutline,"Design system"),ol=Ue.external(Fe.colorOnSurface,"Design system"),il=Ue.external(Fe.colorOnSurfaceMedium,"Design system"),rl=Ue.external(Fe.colorPrimary,"Design system"),nl=Ue.external(Fe.colorSurface,"Design system"),sl=Ue.external(Fe.transitionDuration,"Design system"),al=Ue.external(Fe.transitionTimingFunction,"Design system"),ll=[pn,Ut`
|
|
1444
1449
|
:host {
|
|
1445
1450
|
display: flex;
|
|
1446
1451
|
max-height: 100%;
|
|
@@ -1453,7 +1458,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1453
1458
|
flex-direction: column;
|
|
1454
1459
|
max-height: 100%;
|
|
1455
1460
|
max-width: 100%;
|
|
1456
|
-
color: ${
|
|
1461
|
+
color: ${ol};
|
|
1457
1462
|
}
|
|
1458
1463
|
|
|
1459
1464
|
.ft-filter--header {
|
|
@@ -1463,13 +1468,13 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1463
1468
|
flex-shrink: 0;
|
|
1464
1469
|
padding: 0 10px;
|
|
1465
1470
|
margin-bottom: 8px;
|
|
1466
|
-
${
|
|
1471
|
+
${Ie(cr.fontSize,"14px")};
|
|
1467
1472
|
}
|
|
1468
1473
|
|
|
1469
1474
|
.ft-filter--header ft-button {
|
|
1470
1475
|
flex-shrink: 0;
|
|
1471
1476
|
margin-left: auto;
|
|
1472
|
-
${
|
|
1477
|
+
${Ie(Gn.iconSize,"18px")};
|
|
1473
1478
|
}
|
|
1474
1479
|
|
|
1475
1480
|
.ft-filter--label {
|
|
@@ -1477,8 +1482,8 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1477
1482
|
flex-shrink: 1;
|
|
1478
1483
|
flex-grow: 1;
|
|
1479
1484
|
word-break: break-word;
|
|
1480
|
-
${
|
|
1481
|
-
${
|
|
1485
|
+
${Ie(cr.lineHeight,"22px")};
|
|
1486
|
+
${Ie(cr.fontWeight,"bold")};
|
|
1482
1487
|
}
|
|
1483
1488
|
|
|
1484
1489
|
.ft-filter--filter {
|
|
@@ -1489,8 +1494,8 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1489
1494
|
padding: 0 10px;
|
|
1490
1495
|
overflow: hidden;
|
|
1491
1496
|
height: 32px;
|
|
1492
|
-
transition: height ${
|
|
1493
|
-
margin ${
|
|
1497
|
+
transition: height ${sl} ${al},
|
|
1498
|
+
margin ${sl} ${al};
|
|
1494
1499
|
transition-delay: 500ms;
|
|
1495
1500
|
}
|
|
1496
1501
|
|
|
@@ -1503,15 +1508,15 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1503
1508
|
display: block;
|
|
1504
1509
|
width: 100%;
|
|
1505
1510
|
border-radius: 4px;
|
|
1506
|
-
border: 1px solid ${
|
|
1511
|
+
border: 1px solid ${el};
|
|
1507
1512
|
padding: 4px;
|
|
1508
|
-
background-color: ${
|
|
1509
|
-
color: ${
|
|
1510
|
-
outline-color: ${
|
|
1513
|
+
background-color: ${nl};
|
|
1514
|
+
color: ${ol};
|
|
1515
|
+
outline-color: ${rl};
|
|
1511
1516
|
}
|
|
1512
1517
|
|
|
1513
1518
|
input::placeholder {
|
|
1514
|
-
color: ${
|
|
1519
|
+
color: ${il};
|
|
1515
1520
|
}
|
|
1516
1521
|
|
|
1517
1522
|
input:placeholder-shown {
|
|
@@ -1527,7 +1532,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1527
1532
|
}
|
|
1528
1533
|
|
|
1529
1534
|
.ft-filter--separator {
|
|
1530
|
-
border-top: 1px solid ${
|
|
1535
|
+
border-top: 1px solid ${el};
|
|
1531
1536
|
margin: 4px 10px;
|
|
1532
1537
|
}
|
|
1533
1538
|
|
|
@@ -1552,16 +1557,16 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1552
1557
|
slot:not([name]) {
|
|
1553
1558
|
display: none;
|
|
1554
1559
|
}
|
|
1555
|
-
`];var
|
|
1560
|
+
`];var cl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class fl extends CustomEvent{constructor(t){super("change",{detail:t})}}class hl extends _e{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new W(300),this.changeDebouncer=new W(10),this.lastDispatchedValues=[]}get flatOptions(){return F(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),e=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return ue`
|
|
1556
1561
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1557
1562
|
part="container">
|
|
1558
|
-
${this.label||t?
|
|
1563
|
+
${this.label||t?ue`
|
|
1559
1564
|
<div class="ft-filter--header" part="header">
|
|
1560
1565
|
<ft-typography class="ft-filter--label" variant="overline" part="label">
|
|
1561
1566
|
${this.label}
|
|
1562
1567
|
</ft-typography>
|
|
1563
1568
|
<slot name="label"></slot>
|
|
1564
|
-
${t&&!this.hideClearButton?
|
|
1569
|
+
${t&&!this.hideClearButton?ue`
|
|
1565
1570
|
<ft-button icon="close" dense @click=${this.clear} part="clear-button">
|
|
1566
1571
|
${this.clearButtonLabel}
|
|
1567
1572
|
</ft-button>
|
|
@@ -1585,8 +1590,8 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1585
1590
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1586
1591
|
@option-change=${this.optionsChanged}></slot>
|
|
1587
1592
|
</div>
|
|
1588
|
-
`}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e))),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var e,o,i,r,n;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(o=this.levelsContainer)||void 0===o||o.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300)),this.lastLevelHasHiddenvalues=null!==(n=null===(r=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector(".ft-filter--levels ft-filter-level:last-child"))||void 0===r?void 0:r.hasHiddenValues)&&void 0!==n&&n}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),o=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,i=o<0?"ft-filter--level-center":"ft-filter--level-left";return
|
|
1589
|
-
${this.raiseSelectedOptions&&e.length>0?
|
|
1593
|
+
`}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e))),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var e,o,i,r,n;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(o=this.levelsContainer)||void 0===o||o.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300)),this.lastLevelHasHiddenvalues=null!==(n=null===(r=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector(".ft-filter--levels ft-filter-level:last-child"))||void 0===r?void 0:r.hasHiddenValues)&&void 0!==n&&n}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),o=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,i=o<0?"ft-filter--level-center":"ft-filter--level-left";return ue`
|
|
1594
|
+
${this.raiseSelectedOptions&&e.length>0?ue`
|
|
1590
1595
|
<ft-filter-level
|
|
1591
1596
|
filterId="${this.id}"
|
|
1592
1597
|
?multivalued=${this.multivalued}
|
|
@@ -1605,7 +1610,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1605
1610
|
${this.renderLevel(i,this.options)}
|
|
1606
1611
|
${this.displayedLevels.map((e=>t.find((t=>t.value===e)))).map(((t,e)=>{var i;const r=(null==t?void 0:t.value)===this.slideIn||(null==t?void 0:t.value)===this.slideOut?"ft-filter--level-right":e===o?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(r,null!==(i=null==t?void 0:t.subOptions)&&void 0!==i?i:[],t)}))}
|
|
1607
1612
|
</ft-snap-scroll>
|
|
1608
|
-
`}renderLevel(t,e,o){return
|
|
1613
|
+
`}renderLevel(t,e,o){return ue`
|
|
1609
1614
|
<ft-filter-level
|
|
1610
1615
|
class="${t}"
|
|
1611
1616
|
filterId="${this.id}"
|
|
@@ -1624,26 +1629,26 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1624
1629
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1625
1630
|
noValuesLabel="${this.noValuesLabel}"
|
|
1626
1631
|
></ft-filter-level>
|
|
1627
|
-
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const o=this.flatOptions.find((e=>e.value===t.detail.value));o.selected=!o.selected;const i=t=>{var e;t!==o&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(i)};this.multivalued?null===(e=o.subOptions)||void 0===e||e.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;
|
|
1632
|
+
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const o=this.flatOptions.find((e=>e.value===t.detail.value));o.selected=!o.selected;const i=t=>{var e;t!==o&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(i)};this.multivalued?null===(e=o.subOptions)||void 0===e||e.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;P(this.lastDispatchedValues,t)||(this.dispatchEvent(new fl(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}hl.elementDefinitions={"ft-button":Sa,"ft-filter-level":qa,"ft-snap-scroll":tl,"ft-typography":xn},hl.styles=ll,cl([k({type:String})],hl.prototype,"id",void 0),cl([k({type:String})],hl.prototype,"label",void 0),cl([k({type:String})],hl.prototype,"filterPlaceHolder",void 0),cl([k({type:String})],hl.prototype,"clearButtonLabel",void 0),cl([k({type:String})],hl.prototype,"moreValuesButtonLabel",void 0),cl([k({type:String})],hl.prototype,"noValuesLabel",void 0),cl([B([])],hl.prototype,"options",void 0),cl([k({type:Boolean})],hl.prototype,"multivalued",void 0),cl([k({type:Boolean})],hl.prototype,"disabled",void 0),cl([k({type:Boolean})],hl.prototype,"raiseSelectedOptions",void 0),cl([k({type:Number})],hl.prototype,"displayedValuesLimit",void 0),cl([k({type:Boolean})],hl.prototype,"hideClearButton",void 0),cl([L(".ft-filter--slot")],hl.prototype,"slotElement",void 0),cl([L(".ft-filter--container")],hl.prototype,"container",void 0),cl([L(".ft-filter--values")],hl.prototype,"valuesContainer",void 0),cl([L(".ft-filter--levels")],hl.prototype,"levelsContainer",void 0),cl([R()],hl.prototype,"lastLevelHasHiddenvalues",void 0),cl([L(".ft-filter--filter input")],hl.prototype,"filterInput",void 0),cl([function(t){return(e,o)=>I(0,0,{get(){return(this.renderRoot??(A??=document.createDocumentFragment())).querySelectorAll(t)}})}(".ft-filter--levels ft-filter-level")],hl.prototype,"levels",void 0),cl([R()],hl.prototype,"withScroll",void 0),cl([R()],hl.prototype,"filter",void 0),cl([R()],hl.prototype,"slideIn",void 0),cl([R()],hl.prototype,"slideOut",void 0);var ul=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class pl extends _e{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return ue`
|
|
1628
1633
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1629
|
-
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}
|
|
1630
|
-
`,
|
|
1631
|
-
`,
|
|
1634
|
+
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}pl.elementDefinitions={},ul([k({type:String})],pl.prototype,"label",void 0),ul([k({type:Object,converter:t=>t})],pl.prototype,"value",void 0),ul([k({type:Boolean,reflect:!0})],pl.prototype,"selected",void 0),ul([k({type:Object})],pl.prototype,"subOptions",void 0),ul([B({})],pl.prototype,"renderOption",void 0),ul([L(".ft-filter-option--slot")],pl.prototype,"slotElement",void 0),D("ft-filter")(hl),D("ft-filter-option")(pl);const dl=Ut`
|
|
1635
|
+
`,yl=Ut`
|
|
1636
|
+
`,bl=Vi.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 gl{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=bl.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?gl.build(t):null!==(e=gl.API)&&void 0!==e?e:gl.API=gl.build()}static await(t){return new Promise((e=>{let o=gl.get(t);if(o)e(o);else{const i=bl.subscribe((()=>{o=gl.get(t),o&&(i(),e(o))}))}}))}}var ml;const vl=Symbol("clearAfterUnitTest");class xl{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[ml]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=bl.getState().uiLocale,bl.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=bl.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};P(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new qe(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},s).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>j(0).then((()=>t())).catch((()=>null)))))}}ml=vl,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new xl((async(t,e)=>(await gl.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new xl((async(t,e)=>(await gl.await()).getCustomMessageContext(t,e))));const Ol=window.FluidTopicsI18nService,wl=window.FluidTopicsCustomI18nService;var Sl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Nl extends _e{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=()=>gl.get(),this.cache=new r,this.cleanSessionDebouncer=new W}render(){return ue`
|
|
1632
1637
|
<slot></slot>
|
|
1633
|
-
`}update(t){super.update(t),t.has("baseUrl")&&
|
|
1638
|
+
`}update(t){super.update(t),t.has("baseUrl")&&bl.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&bl.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&bl.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&bl.actions.setNoCustom(this.noCustom),t.has("editorMode")&&bl.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&bl.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&bl.actions.setSession(this.session),t.has("availableUiLocales")&&bl.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ol.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()))))}}Nl.elementDefinitions={},Nl.styles=yl,Sl([k()],Nl.prototype,"baseUrl",void 0),Sl([k()],Nl.prototype,"apiIntegrationIdentifier",void 0),Sl([k()],Nl.prototype,"uiLocale",void 0),Sl([B([])],Nl.prototype,"availableUiLocales",void 0),Sl([k({type:Boolean})],Nl.prototype,"editorMode",void 0),Sl([k({type:Boolean})],Nl.prototype,"noCustom",void 0),Sl([k({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Nl.prototype,"noCustomComponent",void 0),Sl([k({type:Boolean})],Nl.prototype,"withManualResources",void 0),Sl([B([])],Nl.prototype,"messageContexts",void 0),Sl([B(void 0)],Nl.prototype,"session",void 0),Sl([k({type:Object})],Nl.prototype,"apiProvider",void 0);class Cl{async listMySearches(){var t;return(null===(t=bl.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await gl.await()).listMySearches(bl.getState().session.profile.userId):[]}}const $l=new r;class El{async listMyBookmarks(){return $l.get("bookmarks",(async()=>(await gl.await()).listMyBookmarks(bl.getState().session.profile.userId)))}clearCache(){$l.clear("bookmarks")}}const kl=Vi.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Rl=new class{constructor(){this.currentSession=bl.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new El,bl.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=bl.getState();P(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(){kl.actions.savedSearches(void 0)}clearMyBookmarks(){kl.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Cl,e=await t.listMySearches();kl.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;kl.actions.bookmarks(e)}}};D("ft-app-context")(Nl);var Ul=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};const Il=Symbol("i18nProperties"),Ll=Symbol("i18nUnsubs");function Al(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?wl:Ol}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[Il])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Il])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Il]&&new Set([...this[Il].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Ll].has(t)||this[Ll].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[Ll].forEach((t=>t())),this[Ll].clear()}}return e=Ll,Ul([k({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Wl extends(Al(_e)){}class jl extends(Al(no)){}var Fl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Pl extends jl{constructor(){super(),this.editorMode=!1,this.addStore(bl)}render(){return this.key&&this.context?ue`
|
|
1634
1639
|
<span class="ft-i18n">
|
|
1635
1640
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1636
1641
|
</span>
|
|
1637
|
-
`:this.editorMode?"Select a context and a label key.":ue}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Fa.elementDefinitions={},Fa.styles=ua,ja([Hi()],Fa.prototype,"editorMode",void 0),ja([k()],Fa.prototype,"context",void 0),ja([k()],Fa.prototype,"key",void 0),ja([z([])],Fa.prototype,"args",void 0),ja([k()],Fa.prototype,"defaultMessage",void 0);class Da{static build(t){return new Da(t)}static fromGwt(t){return new Da(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>xa.resolveMessage(this.name,e,...t)})}}D("ft-i18n")(Fa);const za={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}};var Pa,Ba,Ka,Ma,Ta,Za,_a,Ha,Ga,Va,qa,Ya,Xa,Ja;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function f(t){var e=new FileReader,o=h(e);return e.readAsArrayBuffer(t),o}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=h(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=s(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=s(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),a(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,i,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),d.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function g(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(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];g.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new g(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var s=new y(t,i);if(s.signal&&s.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,o={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in a?a.responseURL:o.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new g(i,o))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o.blob&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=y,t.Response=g),e.Headers=l,e.Request=y,e.Response=g,e.fetch=v,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"}(Pa||(Pa={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Ba||(Ba={})),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"}(Ka||(Ka={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Ma||(Ma={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Ta||(Ta={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Za||(Za={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(_a||(_a={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Ha||(Ha={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ga||(Ga={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Va||(Va={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(qa||(qa={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Ya||(Ya={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Xa||(Xa={})),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"}(Ja||(Ja={})),Ja.PERSONAL_BOOK_SHARE_USER,Ja.PERSONAL_BOOK_USER,Ja.HTML_EXPORT_USER,Ja.PERSONAL_BOOK_USER,Ja.PDF_EXPORT_USER,Ja.PERSONAL_BOOK_USER,Ja.KHUB_ADMIN,Ja.CONTENT_PUBLISHER,Ja.ADMIN,Ja.KHUB_ADMIN,Ja.USERS_ADMIN,Ja.PORTAL_ADMIN,Ja.DEVELOPER,Ja.BETA_USER,Ja.DEBUG_USER;class Qa{static async build(){return new Qa(await ba.await())}constructor(t){this.api=t,this.cache=new r,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const tl=t=>t.request.virtualField===Ha.TITLE_ONLY&&t.request.scope===Xa.DOCUMENTS;class el extends Event{constructor(){super(el.eventName)}}el.eventName="search-context-clear-all-filters";class ol{static build(t){return new ol((t=>_i.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:za}))(t.trim()||"context"),Qa.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.ignoreEmptyQuery=!1,this.searchDebouncer=new A(100),this.suggestDebouncer=new A(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await W(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const i=t=>e.some((e=>e.lang==t));i(t)||(t=i(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(Ha.TITLE_ONLY),this.store.actions.setRequestScope(Xa.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Ha.EVERYWHERE),this.store.actions.setRequestScope(Xa.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return tl(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new el)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,i={key:t,values:e,negative:!1},r=[...o.filter((e=>e.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let e=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==e.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=i(this.service.launchSearch(e));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let e=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(t.results);this.store.actions.setResults(e)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),o=e.request,r={input:e.liveQuery,filters:o.filters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=i(this.service.launchSuggest(r));let n=await this.cancelableSuggest;this.store.actions.setSuggestResults(n.suggestions)}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var il=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class rl extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const nl=Symbol("registerInterval");class sl extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[nl]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[nl]):this.dispatchEvent(new rl)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=nl,il([R()],o.prototype,"stateManager",void 0),o}(oo)){}const al=Da.build("designedSearchType"),ll={label:"Search scope",documentTitlesOnly:"Search in document titles only"},cl=Rt`
|
|
1638
|
-
`;var
|
|
1642
|
+
`:this.editorMode?"Select a context and a label key.":de}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=dl,Fl([Ye()],Pl.prototype,"editorMode",void 0),Fl([k()],Pl.prototype,"context",void 0),Fl([k()],Pl.prototype,"key",void 0),Fl([B([])],Pl.prototype,"args",void 0),Fl([k()],Pl.prototype,"defaultMessage",void 0);class Dl{static build(t){return new Dl(t)}static fromGwt(t){return new Dl(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Ol.resolveMessage(this.name,e,...t)})}}D("ft-i18n")(Pl);const Bl={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}};var zl,Ml,Tl,Kl,Zl,_l,Hl,Gl,Vl,ql,Yl,Xl,Jl,Ql;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function u(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=u(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=s(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=s(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),a(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,i,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),d.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function g(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})},p.call(y.prototype),p.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];g.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new g(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var s=new y(t,i);if(s.signal&&s.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,o={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in a?a.responseURL:o.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new g(i,o))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o.blob&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=y,t.Response=g),e.Headers=l,e.Request=y,e.Response=g,e.fetch=v,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"}(zl||(zl={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Ml||(Ml={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Tl||(Tl={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Kl||(Kl={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Zl||(Zl={})),function(t){t.ASC="ASC",t.DESC="DESC"}(_l||(_l={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Hl||(Hl={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Gl||(Gl={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Vl||(Vl={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(ql||(ql={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Yl||(Yl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Xl||(Xl={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(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"}(Ql||(Ql={})),Ql.PERSONAL_BOOK_SHARE_USER,Ql.PERSONAL_BOOK_USER,Ql.HTML_EXPORT_USER,Ql.PERSONAL_BOOK_USER,Ql.PDF_EXPORT_USER,Ql.PERSONAL_BOOK_USER,Ql.KHUB_ADMIN,Ql.CONTENT_PUBLISHER,Ql.ADMIN,Ql.KHUB_ADMIN,Ql.USERS_ADMIN,Ql.PORTAL_ADMIN,Ql.DEVELOPER,Ql.BETA_USER,Ql.DEBUG_USER;class tc{static async build(){return new tc(await gl.await())}constructor(t){this.api=t,this.cache=new r,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const ec=t=>t.request.virtualField===Gl.TITLE_ONLY&&t.request.scope===Jl.DOCUMENTS;class oc extends Event{constructor(){super(oc.eventName)}}oc.eventName="search-context-clear-all-filters";class ic{static build(t){return new ic((t=>Vi.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:Bl}))(t.trim()||"context"),tc.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.ignoreEmptyQuery=!1,this.searchDebouncer=new W(100),this.suggestDebouncer=new W(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await j(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const i=t=>e.some((e=>e.lang==t));i(t)||(t=i(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(Gl.TITLE_ONLY),this.store.actions.setRequestScope(Jl.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Gl.EVERYWHERE),this.store.actions.setRequestScope(Jl.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return ec(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new oc)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,i={key:t,values:e,negative:!1},r=[...o.filter((e=>e.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let e=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==e.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=i(this.service.launchSearch(e));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let e=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(t.results);this.store.actions.setResults(e)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),o=e.request,r={input:e.liveQuery,filters:o.filters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=i(this.service.launchSuggest(r));let n=await this.cancelableSuggest;this.store.actions.setSuggestResults(n.suggestions)}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var rc=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class nc extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const sc=Symbol("registerInterval");class ac extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[sc]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[sc]):this.dispatchEvent(new nc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=sc,rc([R()],o.prototype,"stateManager",void 0),o}(no)){}const lc=Dl.build("designedSearchType"),cc={label:"Search scope",documentTitlesOnly:"Search in document titles only"},fc=Ut`
|
|
1643
|
+
`;var hc=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class uc extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class pc extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class dc extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class yc extends no{get stateManager(){return null==this._stateManager&&(this._stateManager=ic.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.filters=[],this.sort=[],this.addStore(bl)}render(){return ue`
|
|
1639
1644
|
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
1640
|
-
`}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),t.has("scope")&&void 0!==this.scope&&this.stateManager.setScope(this.scope),t.has("ignoreEmptyQuery")&&void 0!==this.ignoreEmptyQuery&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new
|
|
1645
|
+
`}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),t.has("scope")&&void 0!==this.scope&&this.stateManager.setScope(this.scope),t.has("ignoreEmptyQuery")&&void 0!==this.ignoreEmptyQuery&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new pc(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new dc(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new uc(t))}reloadSavedSearches(){Rl.clearMySearches()}clear(){this.stateManager.clear()}}yc.elementDefinitions={},yc.styles=fc,hc([k()],yc.prototype,"query",void 0),hc([k()],yc.prototype,"contentLocale",void 0),hc([k({type:Number})],yc.prototype,"pageSize",void 0),hc([k({type:Boolean})],yc.prototype,"searchInDocumentTitlesOnly",void 0),hc([k()],yc.prototype,"scope",void 0),hc([k({type:Boolean})],yc.prototype,"ignoreEmptyQuery",void 0),hc([B([])],yc.prototype,"filters",void 0),hc([B([])],yc.prototype,"sort",void 0),hc([Ye({store:"search"})],yc.prototype,"request",void 0),hc([Ye({store:"search"})],yc.prototype,"paging",void 0),hc([Ye({store:"search",selector:t=>t.spellcheck})],yc.prototype,"autocorrect",void 0),hc([Ye({store:bl.name})],yc.prototype,"session",void 0),D("ft-search-context")(yc);var bc=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class gc extends(Al(ac)){constructor(){super(),this.addI18nContext(lc,cc)}render(){return ue`
|
|
1641
1646
|
<ft-filter
|
|
1642
|
-
label=${
|
|
1643
|
-
.options=${[{label:
|
|
1647
|
+
label=${lc.messages.label()}
|
|
1648
|
+
.options=${[{label:lc.messages.documentTitlesOnly(),value:t=>{var e;return null===(e=this.stateManager)||void 0===e?void 0:e.setSearchInDocumentTitlesOnly(t)},selected:this.searchInDocumentTitlesOnly}]}
|
|
1644
1649
|
part="filter"
|
|
1645
1650
|
.exportpartsPrefixes=${["filter"]}
|
|
1646
1651
|
multivalued
|
|
1647
1652
|
@change=${this.onSelected}
|
|
1648
1653
|
></ft-filter>
|
|
1649
|
-
`}onSelected(t){var e;null===(e=this.filter)||void 0===e||e.options.forEach((t=>t.value(t.selected)))}}
|
|
1654
|
+
`}onSelected(t){var e;null===(e=this.filter)||void 0===e||e.options.forEach((t=>t.value(t.selected)))}}gc.elementDefinitions={"ft-filter":hl},gc.styles=tr,bc([Ye({selector:ec})],gc.prototype,"searchInDocumentTitlesOnly",void 0),bc([L("ft-filter")],gc.prototype,"filter",void 0),D("ft-search-type")(gc),t.FtSearchType=gc,t.FtSearchTypeCssVariables={},t.searchTypeContext=lc,t.searchTypeDefaultMessages=cc,t.styles=tr}({});
|