@fluid-topics/ft-search-facet 1.0.46 → 1.0.48
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-facet.min.js +94 -94
- package/package.json +7 -7
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,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||[]);f(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 h=i.call(o,t);h||(h=u(t),e.call(o,t,h)),this===window.customElements&&(s.set(r,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){b.push(this),o.upgrade.apply(o,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 i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=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},u=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,r=o._getDefinition(e);return r?p(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Dr){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class r{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,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||[]);f(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 h=i.call(o,t);h||(h=u(t),e.call(o,t,h)),this===window.customElements&&(s.set(r,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){b.push(this),o.upgrade.apply(o,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 i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=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},u=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,r=o._getDefinition(e);return r?p(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(_r){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class r{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -55,24 +55,24 @@ var h;const u=null!=(null===(h=window.HTMLSlotElement)||void 0===h?void 0:h.prot
|
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2019 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
-
*/const g=window,x=g.ShadowRoot&&(void 0===g.ShadyCSS||g.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,m=Symbol(),w=new WeakMap;let $=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==m)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(x&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=w.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&w.set(e,t))}return t}toString(){return this.cssText}};const
|
|
58
|
+
*/const g=window,x=g.ShadowRoot&&(void 0===g.ShadyCSS||g.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,m=Symbol(),w=new WeakMap;let $=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==m)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(x&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=w.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&w.set(e,t))}return t}toString(){return this.cssText}};const S=t=>new $("string"==typeof t?t:t+"",void 0,m),O=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new $(i,t,m)},k=(t,e)=>{x?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=g.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},E=x?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return S(e)})(t):t
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
|
-
*/;var
|
|
63
|
+
*/;var C;const j=window,R=j.trustedTypes,N=R?R.emptyScript:"",M=j.reactiveElementPolyfillSupport,A={toAttribute(t,e){switch(e){case Boolean:t=t?N:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},P=(t,e)=>e!==t&&(e==e||t==t),F={attribute:!0,type:String,converter:A,reflect:!1,hasChanged:P};let z=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=F){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const r=this[t];this[e]=o,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||F}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(E(t))}else void 0!==t&&e.push(E(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return k(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=F){var o;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:A).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,r=o._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=o.getPropertyOptions(r),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:A;this._$El=r,this[r]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||P)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
|
|
64
64
|
/**
|
|
65
65
|
* @license
|
|
66
66
|
* Copyright 2017 Google LLC
|
|
67
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
68
|
*/
|
|
69
|
-
var L;
|
|
69
|
+
var L;z.finalized=!0,z.elementProperties=new Map,z.elementStyles=[],z.shadowRootOptions={mode:"open"},null==M||M({ReactiveElement:z}),(null!==(C=j.reactiveElementVersions)&&void 0!==C?C:j.reactiveElementVersions=[]).push("1.6.1");const U=window,I=U.trustedTypes,T=I?I.createPolicy("lit-html",{createHTML:t=>t}):void 0,B="$lit$",_=`lit$${(Math.random()+"").slice(9)}$`,D="?"+_,W=`<${D}>`,H=document,V=()=>H.createComment(""),q=t=>null===t||"object"!=typeof t&&"function"!=typeof t,K=Array.isArray,Z=t=>K(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),J="[ \t\n\f\r]",X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Q=/-->/g,G=/>/g,Y=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,et=/"/g,it=/^(?:script|style|textarea|title)$/i,ot=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),rt=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),st=new WeakMap,at=H.createTreeWalker(H,129,null,!1),lt=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",s=X;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===X?"!--"===l[1]?s=Q:void 0!==l[1]?s=G:void 0!==l[2]?(it.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=Y):void 0!==l[3]&&(s=Y):s===Y?">"===l[0]?(s=null!=r?r:X,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Y:'"'===l[3]?et:tt):s===et||s===tt?s=Y:s===Q||s===G?s=X:(s=Y,r=void 0);const u=s===Y&&t[e+1].startsWith("/>")?" ":"";n+=s===X?i+W:c>=0?(o.push(a),i.slice(0,c)+B+i.slice(c)+_+u):i+_+(-2===c?(o.push(void 0),e):u)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==T?T.createHTML(a):a,o]};class ct{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const s=t.length-1,a=this.parts,[l,c]=lt(t,e);if(this.el=ct.createElement(l,i),at.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=at.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(B)||e.startsWith(_)){const i=c[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+B).split(_),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?pt:"?"===e[1]?bt:"@"===e[1]?yt:dt})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(it.test(o.tagName)){const t=o.textContent.split(_),e=t.length-1;if(e>0){o.textContent=I?I.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],V()),at.nextNode(),a.push({type:2,index:++r});o.append(t[e],V())}}}else if(8===o.nodeType)if(o.data===D)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(_,t+1));)a.push({type:7,index:r}),t+=_.length-1}r++}}static createElement(t,e){const i=H.createElement("template");return i.innerHTML=t,i}}function ht(t,e,i=t,o){var r,n,s,a;if(e===rt)return e;let l=void 0!==o?null===(r=i._$Co)||void 0===r?void 0:r[o]:i._$Cl;const c=q(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=ht(t,l._$AS(t,e.values),l,o)),e}let ut=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){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:H).importNode(i,!0);at.currentNode=r;let n=at.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new ft(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new gt(n,this,t)),this._$AV.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(n=at.nextNode(),s++)}return r}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},ft=class t{constructor(t,e,i,o){var r;this.type=2,this._$AH=nt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ht(this,t,e),q(t)?t===nt||null==t||""===t?(this._$AH!==nt&&this._$AR(),this._$AH=nt):t!==this._$AH&&t!==rt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Z(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!==nt&&q(this._$AH)?this._$AA.nextSibling.data=t:this.$(H.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ct.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(i);else{const t=new ut(r,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=st.get(t.strings);return void 0===e&&st.set(t.strings,e=new ct(t)),e}T(e){K(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,r=0;for(const n of e)r===i.length?i.push(o=new t(this.k(V()),this.k(V()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},dt=class{constructor(t,e,i,o,r){this.type=1,this._$AH=nt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=nt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=ht(this,t,e,0),n=!q(t)||t!==this._$AH&&t!==rt,n&&(this._$AH=t);else{const o=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=ht(this,o[i+s],e,s),a===rt&&(a=this._$AH[s]),n||(n=!q(a)||a!==this._$AH[s]),a===nt?t=nt:t!==nt&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}n&&!o&&this.j(t)}j(t){t===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},pt=class extends dt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===nt?void 0:t}};const vt=I?I.emptyScript:"";let bt=class extends dt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==nt?this.element.setAttribute(this.name,vt):this.element.removeAttribute(this.name)}},yt=class extends dt{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ht(this,t,e,0))&&void 0!==i?i:nt)===rt)return;const o=this._$AH,r=t===nt&&o!==nt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==nt&&(o===nt||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}},gt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ht(this,t)}};const xt={O:B,P:_,A:D,C:1,M:lt,L:ut,D:Z,R:ht,I:ft,V:dt,H:bt,N:yt,U:pt,F:gt},mt=U.litHtmlPolyfillSupport;null==mt||mt(ct,ft),(null!==(L=U.litHtmlVersions)&&void 0!==L?L:U.litHtmlVersions=[]).push("2.7.3");
|
|
70
70
|
/**
|
|
71
71
|
* @license
|
|
72
72
|
* Copyright 2017 Google LLC
|
|
73
73
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
74
|
*/
|
|
75
|
-
var wt,$t;let Ot=class extends F{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,r;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=n._$litPart$;if(void 0===s){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;n._$litPart$=s=new ft(e.insertBefore(V(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return rt}};Ot.finalized=!0,Ot._$litElement$=!0,null===(wt=globalThis.litElementHydrateSupport)||void 0===wt||wt.call(globalThis,{LitElement:Ot});const St=globalThis.litElementPolyfillSupport;null==St||St({LitElement:Ot}),(null!==($t=globalThis.litElementVersions)&&void 0!==$t?$t:globalThis.litElementVersions=[]).push("3.3.2");class kt{static create(t,e,i){let o=t=>O(null!=t?t:i),r=S`var(${O(t)}, ${o(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>S`var(${O(t)}, ${o(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),r=S`var(${O(t)}, ${o(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>S`var(${O(t)}, ${o(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):O(null!=e?e:t.defaultValue),o=S`var(${O(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>S`var(${O(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function Ct(t,e){return O(`${t.name}: ${e}`)}const Et={colorPrimary:kt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:kt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:kt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:kt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:kt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:kt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:kt.create("--ft-color-error","COLOR","#B00020"),colorOutline:kt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:kt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:kt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:kt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:kt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:kt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:kt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:kt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:kt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:kt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:kt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:kt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:kt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:kt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:kt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:kt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:kt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:kt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:kt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:kt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:kt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:kt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:kt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:kt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:kt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:kt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:kt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:kt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:kt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:kt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:kt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:kt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:kt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:kt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:kt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:kt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:kt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:kt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:kt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:kt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:kt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:kt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:kt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:kt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class jt extends Ot{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return k(i,t.elementStyles),i}}var Rt,Nt=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const Mt=Symbol("constructorPrototype"),At=Symbol("constructorName"),Pt=Symbol("exportpartsDebouncer");class zt extends jt{constructor(){super(),this[Rt]=new r(5),this[At]=this.constructor.name,this[Mt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[At]&&Object.setPrototypeOf(this,this[Mt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Pt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,r,n,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!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(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,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Rt=Pt,Nt([s()],zt.prototype,"exportpartsPrefix",void 0),Nt([y([])],zt.prototype,"exportpartsPrefixes",void 0),Nt([s()],zt.prototype,"customStylesheet",void 0);const Ft=S`
|
|
75
|
+
var wt,$t;let St=class extends z{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,r;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=n._$litPart$;if(void 0===s){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;n._$litPart$=s=new ft(e.insertBefore(V(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return rt}};St.finalized=!0,St._$litElement$=!0,null===(wt=globalThis.litElementHydrateSupport)||void 0===wt||wt.call(globalThis,{LitElement:St});const Ot=globalThis.litElementPolyfillSupport;null==Ot||Ot({LitElement:St}),(null!==($t=globalThis.litElementVersions)&&void 0!==$t?$t:globalThis.litElementVersions=[]).push("3.3.2");class kt{static create(t,e,i){let o=t=>S(null!=t?t:i),r=O`var(${S(t)}, ${o(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>O`var(${S(t)}, ${o(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),r=O`var(${S(t)}, ${o(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>O`var(${S(t)}, ${o(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):S(null!=e?e:t.defaultValue),o=O`var(${S(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>O`var(${S(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function Et(t,e){return S(`${t.name}: ${e}`)}const Ct={colorPrimary:kt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:kt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:kt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:kt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:kt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:kt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:kt.create("--ft-color-error","COLOR","#B00020"),colorOutline:kt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:kt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:kt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:kt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:kt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:kt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:kt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:kt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:kt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:kt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:kt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:kt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:kt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:kt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:kt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:kt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:kt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:kt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:kt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:kt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:kt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:kt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:kt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:kt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:kt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:kt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:kt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:kt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:kt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:kt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:kt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:kt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:kt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:kt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:kt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:kt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:kt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.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:kt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:kt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:kt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:kt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:kt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:kt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:kt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:kt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class jt extends St{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return k(i,t.elementStyles),i}}var Rt,Nt=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const Mt=Symbol("constructorPrototype"),At=Symbol("constructorName"),Pt=Symbol("exportpartsDebouncer");class Ft extends jt{constructor(){super(),this[Rt]=new r(5),this[At]=this.constructor.name,this[Mt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[At]&&Object.setPrototypeOf(this,this[Mt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Pt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,r,n,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!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(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,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Rt=Pt,Nt([s()],Ft.prototype,"exportpartsPrefix",void 0),Nt([y([])],Ft.prototype,"exportpartsPrefixes",void 0),Nt([s()],Ft.prototype,"customStylesheet",void 0);const zt=O`
|
|
76
76
|
.ft-no-text-select {
|
|
77
77
|
-webkit-touch-callout: none;
|
|
78
78
|
-webkit-user-select: none;
|
|
@@ -81,7 +81,7 @@ var wt,$t;let Ot=class extends F{constructor(){super(...arguments),this.renderOp
|
|
|
81
81
|
-ms-user-select: none;
|
|
82
82
|
user-select: none;
|
|
83
83
|
}
|
|
84
|
-
`;
|
|
84
|
+
`;O`
|
|
85
85
|
.ft-word-wrap {
|
|
86
86
|
white-space: normal;
|
|
87
87
|
word-wrap: break-word;
|
|
@@ -93,7 +93,7 @@ var wt,$t;let Ot=class extends F{constructor(){super(...arguments),this.renderOp
|
|
|
93
93
|
-webkit-hyphens: auto;
|
|
94
94
|
hyphens: auto
|
|
95
95
|
}
|
|
96
|
-
`;const Lt=
|
|
96
|
+
`;const Lt=O`
|
|
97
97
|
.ft-safari-ellipsis-fix {
|
|
98
98
|
margin-right: 0;
|
|
99
99
|
|
|
@@ -104,13 +104,13 @@ var wt,$t;let Ot=class extends F{constructor(){super(...arguments),this.renderOp
|
|
|
104
104
|
display: inline-block;
|
|
105
105
|
width: 0;
|
|
106
106
|
}
|
|
107
|
-
`;class Ut{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function It(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Bt(t){return!!t&&!!t[ke]}function Tt(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Ce}(t)||Array.isArray(t)||!!t[Se]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Se])||qt(t)||Kt(t))}function Dt(t,e,i){void 0===i&&(i=!1),0===_t(t)?(i?Object.keys:Ee)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function _t(t){var e=t[ke];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:qt(t)?2:Kt(t)?3:0}function Wt(t,e){return 2===_t(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Ht(t,e,i){var o=_t(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function Vt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function qt(t){return me&&t instanceof Map}function Kt(t){return we&&t instanceof Set}function Zt(t){return t.o||t.t}function Jt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=je(t);delete e[ke];for(var i=Ee(e),o=0;o<i.length;o++){var r=i[o],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function Xt(t,e){return void 0===e&&(e=!1),Gt(t)||Bt(t)||!Tt(t)||(_t(t)>1&&(t.set=t.add=t.clear=t.delete=Qt),Object.freeze(t),e&&Dt(t,(function(t,e){return Xt(e,!0)}),!0)),t}function Qt(){It(2)}function Gt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Yt(t){var e=Re[t];return e||It(18,t),e}function te(){return ge}function ee(t,e){e&&(Yt("Patches"),t.u=[],t.s=[],t.v=e)}function ie(t){oe(t),t.p.forEach(ne),t.p=null}function oe(t){t===ge&&(ge=t.l)}function re(t){return ge={p:[],l:ge,h:t,m:!0,_:0}}function ne(t){var e=t[ke];0===e.i||1===e.i?e.j():e.g=!0}function se(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||Yt("ES5").S(e,t,o),o?(i[ke].P&&(ie(e),It(4)),Tt(t)&&(t=ae(e,t),e.l||ce(e,t)),e.u&&Yt("Patches").M(i[ke].t,t,e.u,e.s)):t=ae(e,i,[]),ie(e),e.u&&e.v(e.u,e.s),t!==Oe?t:void 0}function ae(t,e,i){if(Gt(e))return e;var o=e[ke];if(!o)return Dt(e,(function(r,n){return le(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return ce(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=Jt(o.k):o.o,n=r,s=!1;3===o.i&&(n=new Set(r),r.clear(),s=!0),Dt(n,(function(e,n){return le(t,o,r,e,n,i,s)})),ce(t,r,!1),i&&t.u&&Yt("Patches").N(o,i,t.u,t.s)}return o.o}function le(t,e,i,o,r,n,s){if(Bt(r)){var a=ae(t,r,n&&e&&3!==e.i&&!Wt(e.R,o)?n.concat(o):void 0);if(Ht(i,o,a),!Bt(a))return;t.m=!1}else s&&i.add(r);if(Tt(r)&&!Gt(r)){if(!t.h.D&&t._<1)return;ae(t,r),e&&e.A.l||ce(t,r)}}function ce(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&Xt(e,i)}function he(t,e){var i=t[ke];return(i?Zt(i):t)[e]}function ue(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function fe(t){t.P||(t.P=!0,t.l&&fe(t.l))}function de(t){t.o||(t.o=Jt(t.t))}function pe(t,e,i){var o=qt(e)?Yt("MapSet").F(e,i):Kt(e)?Yt("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:te(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=Ne;i&&(r=[o],n=Me);var s=Proxy.revocable(r,n),a=s.revoke,l=s.proxy;return o.k=l,o.j=a,l}(e,i):Yt("ES5").J(e,i);return(i?i.A:te()).p.push(o),o}function ve(t){return Bt(t)||It(22,t),function t(e){if(!Tt(e))return e;var i,o=e[ke],r=_t(e);if(o){if(!o.P&&(o.i<4||!Yt("ES5").K(o)))return o.t;o.I=!0,i=be(e,r),o.I=!1}else i=be(e,r);return Dt(i,(function(e,r){o&&function(t,e){return 2===_t(t)?t.get(e):t[e]}(o.t,e)===r||Ht(i,e,t(r))})),3===r?new Set(i):i}(t)}function be(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Jt(t)}var ye,ge,xe="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),me="undefined"!=typeof Map,we="undefined"!=typeof Set,$e="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Oe=xe?Symbol.for("immer-nothing"):((ye={})["immer-nothing"]=!0,ye),Se=xe?Symbol.for("immer-draftable"):"__$immer_draftable",ke=xe?Symbol.for("immer-state"):"__$immer_state",Ce=""+Object.prototype.constructor,Ee="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,je=Object.getOwnPropertyDescriptors||function(t){var e={};return Ee(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Re={},Ne={get:function(t,e){if(e===ke)return t;var i=Zt(t);if(!Wt(i,e))return function(t,e,i){var o,r=ue(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!Tt(o)?o:o===he(t.t,e)?(de(t),t.o[e]=pe(t.A.h,o,t)):o},has:function(t,e){return e in Zt(t)},ownKeys:function(t){return Reflect.ownKeys(Zt(t))},set:function(t,e,i){var o=ue(Zt(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=he(Zt(t),e),n=null==r?void 0:r[ke];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Vt(i,r)&&(void 0!==i||Wt(t.t,e)))return!0;de(t),fe(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==he(t.t,e)||e in t.t?(t.R[e]=!1,de(t),fe(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Zt(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){It(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){It(12)}},Me={};Dt(Ne,(function(t,e){Me[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Me.deleteProperty=function(t,e){return Me.set.call(this,t,e,void 0)},Me.set=function(t,e,i){return Ne.set.call(this,t[0],e,i,t[0])};var Ae=function(){function t(t){var e=this;this.O=$e,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&It(6),void 0!==o&&"function"!=typeof o&&It(7),Tt(t)){var a=re(e),l=pe(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?ie(a):oe(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ee(a,o),se(t,a)}),(function(t){throw ie(a),t})):(ee(a,o),se(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Oe&&(s=void 0),e.D&&Xt(s,!0),o){var h=[],u=[];Yt("Patches").M(t,s,h,u),o(h,u)}return s}It(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Tt(t)||It(8),Bt(t)&&(t=ve(t));var e=re(this),i=pe(this,t,void 0);return i[ke].C=!0,oe(e),i},e.finishDraft=function(t,e){var i=(t&&t[ke]).A;return ee(i,e),se(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!$e&&It(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var r=Yt("Patches").$;return Bt(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Pe=new Ae,ze=Pe.produce;function Fe(t){return Fe="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},Fe(t)}function Le(t){var e=function(t,e){if("object"!==Fe(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==Fe(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Fe(e)?e:String(e)}function Ue(t,e,i){return(e=Le(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ie(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function Be(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ie(Object(i),!0).forEach((function(e){Ue(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ie(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Te(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. "}Pe.produceWithPatches.bind(Pe),Pe.setAutoFreeze.bind(Pe),Pe.setUseProxies.bind(Pe),Pe.applyPatches.bind(Pe),Pe.createDraft.bind(Pe),Pe.finishDraft.bind(Pe);var De="function"==typeof Symbol&&Symbol.observable||"@@observable",_e=function(){return Math.random().toString(36).substring(7).split("").join(".")},We={INIT:"@@redux/INIT"+_e(),REPLACE:"@@redux/REPLACE"+_e(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+_e()}};function He(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Te(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Te(1));return i(He)(t,e)}if("function"!=typeof t)throw new Error(Te(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(Te(3));return n}function u(t){if("function"!=typeof t)throw new Error(Te(4));if(l)throw new Error(Te(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Te(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function f(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Te(7));if(void 0===t.type)throw new Error(Te(8));if(l)throw new Error(Te(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return f({type:We.INIT}),(o={dispatch:f,subscribe:u,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Te(10));r=t,f({type:We.REPLACE})}})[De]=function(){var t,e=u;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Te(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[De]=function(){return this},t},o}function Ve(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:We.INIT}))throw new Error(Te(12));if(void 0===i(void 0,{type:We.PROBE_UNKNOWN_ACTION()}))throw new Error(Te(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},a=0;a<s.length;a++){var l=s[a],c=i[l],h=t[l],u=c(h,e);if(void 0===u)throw e&&e.type,new Error(Te(14));r[l]=u,o=o||u!==h}return(o=o||s.length!==Object.keys(t).length)?r:t}}function qe(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Ke(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(Te(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=qe.apply(void 0,n)(i.dispatch),Be(Be({},i),{},{dispatch:o})}}}function Ze(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var Je=Ze();Je.withExtraArgument=Ze;var Xe,Qe=Je,Ge=(Xe=function(t,e){return Xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Xe(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Xe(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Ye=function(t,e){var i,o,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(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,o=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],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}},ti=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},ei=Object.defineProperty,ii=Object.defineProperties,oi=Object.getOwnPropertyDescriptors,ri=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,si=Object.prototype.propertyIsEnumerable,ai=function(t,e,i){return e in t?ei(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},li=function(t,e){for(var i in e||(e={}))ni.call(e,i)&&ai(t,i,e[i]);if(ri)for(var o=0,r=ri(e);o<r.length;o++){i=r[o];si.call(e,i)&&ai(t,i,e[i])}return t},ci=function(t,e){return ii(t,oi(e))},hi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?qe:qe.apply(null,arguments)};var ui=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ge(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,ti([void 0],t[0].concat(this)))):new(e.bind.apply(e,ti([void 0],t.concat(this))))},e}(Array),fi=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ge(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,ti([void 0],t[0].concat(this)))):new(e.bind.apply(e,ti([void 0],t.concat(this))))},e}(Array);function di(t){return Tt(t)?ze(t,(function(){})):t}function pi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new ui;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(Qe.withExtraArgument(i.extraArgument)):o.push(Qe));return o}(t)}}function vi(t){var e,i=pi(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,s=o.middleware,a=void 0===s?i():s,l=o.devTools,c=void 0===l||l,h=o.preloadedState,u=void 0===h?void 0:h,f=o.enhancers,d=void 0===f?void 0:f;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Ve(n)}var p=a;"function"==typeof p&&(p=p(i));var v=Ke.apply(void 0,p),b=qe;c&&(b=hi(li({trace:!1},"object"==typeof c&&c)));var y=new fi(v),g=y;return Array.isArray(d)?g=ti([v],d):"function"==typeof d&&(g=d(y)),He(e,u,b.apply(void 0,g))}function bi(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return li(li({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function yi(t){var e,i={},o=[],r={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function gi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:di(t.initialState),r=t.reducers||{},n=Object.keys(r),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?yi(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],s=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,h=li(li({},r),a);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?yi(e):[e,i,o],s=n[0],a=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return di(t())};else{var c=di(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var i=ti([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(Bt(t))return void 0===(o=i(t,e))?t:o;if(Tt(t))return ze(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return h.getInitialState=r,h}(o,(function(t){for(var e in h)t.addCase(e,h[e]);for(var i=0,o=s;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,s[t]=i,a[c]=i,l[t]=o?bi(c,o):bi(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var xi=["name","message","stack","code"],mi=function(t,e){this.payload=t,this.meta=e},wi=function(t,e){this.payload=t,this.meta=e},$i=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=xi;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Oi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=bi(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:ci(li({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=bi(t+"/pending",(function(t,e,i){return{payload:void 0,meta:ci(li({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=bi(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||$i)(t||"Rejected"),meta:ci(li({},n||{}),{arg:o,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),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,u=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),f=new s;function d(t){h=t,f.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return Ye(this,(function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(m=b)||"object"!=typeof m||"function"!=typeof m.then?[3,2]:[4,b];case 1:b=x.sent(),x.label=2;case 2:if(!1===b||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return f.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(r(u,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:u,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:u,signal:f.signal,abort:d,rejectWithValue:function(t,e){return new mi(t,e)},fulfillWithValue:function(t,e){return new wi(t,e)}})).then((function(e){if(e instanceof mi)throw e;return e instanceof wi?o(e.payload,u,t,e.meta):o(e,u,t)}))])];case 3:return v=x.sent(),[3,5];case 4:return g=x.sent(),v=g instanceof mi?n(null,u,t,g.payload,g.meta):n(g,u,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(v)&&v.meta.condition||a(v),[2,v]}var m}))},new Promise((function(t,e){var i=function(t){try{r(v.next(t))}catch(t){e(t)}},o=function(t){try{r(v.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};r((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:d,requestId:u,arg:t,unwrap:function(){return p.then(Oi)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Si,ki,Ci,Ei="listenerMiddleware";bi(Ei+"/add"),bi(Ei+"/removeAll"),bi(Ei+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[ke];return Ne.get(e,t)},set:function(e){var i=this[ke];Ne.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][ke];if(!r.P)switch(r.i){case 5:o(r)&&fe(r);break;case 4:i(r)&&fe(r)}}}function i(t){for(var e=t.t,i=t.k,o=Ee(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==ke){var s=e[n];if(void 0===s&&!Wt(e,n))return!0;var a=i[n],l=a&&a[ke];if(l?l.t!==s:!Vt(a,s))return!0}}var c=!!e[ke];return o.length!==Ee(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var r={};!function(t,e){Re[t]||(Re[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=je(i);delete n[ke];for(var s=Ee(n),a=0;a<s.length;a++){var l=s[a];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:te(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,ke,{value:n,writable:!0}),r},S:function(t,i,r){r?Bt(i)&&i[ke].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[ke];if(i){var r=i.t,n=i.k,s=i.R,a=i.i;if(4===a)Dt(n,(function(e){e!==ke&&(void 0!==r[e]||Wt(r,e)?s[e]||t(n[e]):(s[e]=!0,fe(i)))})),Dt(r,(function(t){void 0!==n[t]||Wt(n,t)||(s[t]=!1,fe(i))}));else if(5===a){if(o(i)&&(fe(i),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),u=0;u<h;u++)n.hasOwnProperty(u)||(s[u]=!0),void 0===s[u]&&t(n[u])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}();const ji=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!v(t,e),attribute:!1,...e};s(r)(t,i);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}},Ri=Symbol("internalReduxEventsUnsubscribers"),Ni=Symbol("internalStoresUnsubscribers"),Mi=Symbol("internalStores");class Ai extends zt{constructor(){super(...arguments),this[Si]=new Map,this[ki]=new Map,this[Ci]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Mi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Mi].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Mi].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Pi(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Mi].delete(e)}setupStore(t,e){this[Mi].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Mi].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Ni].set(t,e.subscribe((()=>this.updateFromStores()))),Pi(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[Ri].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[Ni]).forEach((t=>this.unsubscribeFromStore(t))),this[Ri].forEach((t=>t())),this[Ri]=[]}unsubscribeFromStore(t){this[Ni].has(t)&&this[Ni].get(t)(),this[Ni].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function Pi(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}Si=Ni,ki=Mi,Ci=Ri;class zi{static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,o=window.ftReduxStores[e];if(Pi(o))return o;if(null==i)return;const r=gi(i),n=vi({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?r.getInitialState():r.reducer(t,e)});return window.ftReduxStores[i.name]=new zi(r,n)}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,i)=>{const o=t[e];if(o)return(...t)=>{const e=o(...t);return this.reduxStore.dispatch(e),e}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var Fi,Li,Ui;const Ii=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ui=null===(Li=null===(Fi=window.safari)||void 0===Fi?void 0:Fi.pushNotification)||void 0===Li?void 0:Li.toString())&&void 0!==Ui?Ui:""),Bi=S`
|
|
107
|
+
`;class Ut{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function It(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Tt,Bt,_t;const Dt=Symbol("internalReduxEventsUnsubscribers"),Wt=Symbol("internalStoresUnsubscribers"),Ht=Symbol("internalStores");class Vt extends Ft{constructor(){super(...arguments),this[Tt]=new Map,this[Bt]=new Map,this[_t]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ht].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ht].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ht].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:It(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Ht].delete(e)}setupStore(t,e){this[Ht].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ht].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[Wt].has(t.store):this[Wt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Wt].set(t,e.subscribe((()=>this.updateFromStores()))),It(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[Dt].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Wt].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Dt].forEach((t=>t())),this[Dt]=[]}unsubscribeFromStore(t){this[Wt].has(t)&&this[Wt].get(t)(),this[Wt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function qt(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Kt(t){return!!t&&!!t[Pe]}function Zt(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Fe}(t)||Array.isArray(t)||!!t[Ae]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Ae])||te(t)||ee(t))}function Jt(t,e,i){void 0===i&&(i=!1),0===Xt(t)?(i?Object.keys:ze)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function Xt(t){var e=t[Pe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:te(t)?2:ee(t)?3:0}function Qt(t,e){return 2===Xt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Gt(t,e,i){var o=Xt(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function Yt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function te(t){return je&&t instanceof Map}function ee(t){return Re&&t instanceof Set}function ie(t){return t.o||t.t}function oe(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Le(t);delete e[Pe];for(var i=ze(e),o=0;o<i.length;o++){var r=i[o],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function re(t,e){return void 0===e&&(e=!1),se(t)||Kt(t)||!Zt(t)||(Xt(t)>1&&(t.set=t.add=t.clear=t.delete=ne),Object.freeze(t),e&&Jt(t,(function(t,e){return re(e,!0)}),!0)),t}function ne(){qt(2)}function se(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ae(t){var e=Ue[t];return e||qt(18,t),e}function le(){return Ee}function ce(t,e){e&&(ae("Patches"),t.u=[],t.s=[],t.v=e)}function he(t){ue(t),t.p.forEach(de),t.p=null}function ue(t){t===Ee&&(Ee=t.l)}function fe(t){return Ee={p:[],l:Ee,h:t,m:!0,_:0}}function de(t){var e=t[Pe];0===e.i||1===e.i?e.j():e.g=!0}function pe(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||ae("ES5").S(e,t,o),o?(i[Pe].P&&(he(e),qt(4)),Zt(t)&&(t=ve(e,t),e.l||ye(e,t)),e.u&&ae("Patches").M(i[Pe].t,t,e.u,e.s)):t=ve(e,i,[]),he(e),e.u&&e.v(e.u,e.s),t!==Me?t:void 0}function ve(t,e,i){if(se(e))return e;var o=e[Pe];if(!o)return Jt(e,(function(r,n){return be(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return ye(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=oe(o.k):o.o,n=r,s=!1;3===o.i&&(n=new Set(r),r.clear(),s=!0),Jt(n,(function(e,n){return be(t,o,r,e,n,i,s)})),ye(t,r,!1),i&&t.u&&ae("Patches").N(o,i,t.u,t.s)}return o.o}function be(t,e,i,o,r,n,s){if(Kt(r)){var a=ve(t,r,n&&e&&3!==e.i&&!Qt(e.R,o)?n.concat(o):void 0);if(Gt(i,o,a),!Kt(a))return;t.m=!1}else s&&i.add(r);if(Zt(r)&&!se(r)){if(!t.h.D&&t._<1)return;ve(t,r),e&&e.A.l||ye(t,r)}}function ye(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&re(e,i)}function ge(t,e){var i=t[Pe];return(i?ie(i):t)[e]}function xe(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function me(t){t.P||(t.P=!0,t.l&&me(t.l))}function we(t){t.o||(t.o=oe(t.t))}function $e(t,e,i){var o=te(e)?ae("MapSet").F(e,i):ee(e)?ae("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:le(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=Ie;i&&(r=[o],n=Te);var s=Proxy.revocable(r,n),a=s.revoke,l=s.proxy;return o.k=l,o.j=a,l}(e,i):ae("ES5").J(e,i);return(i?i.A:le()).p.push(o),o}function Se(t){return Kt(t)||qt(22,t),function t(e){if(!Zt(e))return e;var i,o=e[Pe],r=Xt(e);if(o){if(!o.P&&(o.i<4||!ae("ES5").K(o)))return o.t;o.I=!0,i=Oe(e,r),o.I=!1}else i=Oe(e,r);return Jt(i,(function(e,r){o&&function(t,e){return 2===Xt(t)?t.get(e):t[e]}(o.t,e)===r||Gt(i,e,t(r))})),3===r?new Set(i):i}(t)}function Oe(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return oe(t)}Tt=Wt,Bt=Ht,_t=Dt;var ke,Ee,Ce="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),je="undefined"!=typeof Map,Re="undefined"!=typeof Set,Ne="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Me=Ce?Symbol.for("immer-nothing"):((ke={})["immer-nothing"]=!0,ke),Ae=Ce?Symbol.for("immer-draftable"):"__$immer_draftable",Pe=Ce?Symbol.for("immer-state"):"__$immer_state",Fe=""+Object.prototype.constructor,ze="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Le=Object.getOwnPropertyDescriptors||function(t){var e={};return ze(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Ue={},Ie={get:function(t,e){if(e===Pe)return t;var i=ie(t);if(!Qt(i,e))return function(t,e,i){var o,r=xe(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!Zt(o)?o:o===ge(t.t,e)?(we(t),t.o[e]=$e(t.A.h,o,t)):o},has:function(t,e){return e in ie(t)},ownKeys:function(t){return Reflect.ownKeys(ie(t))},set:function(t,e,i){var o=xe(ie(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=ge(ie(t),e),n=null==r?void 0:r[Pe];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Yt(i,r)&&(void 0!==i||Qt(t.t,e)))return!0;we(t),me(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==ge(t.t,e)||e in t.t?(t.R[e]=!1,we(t),me(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=ie(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){qt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){qt(12)}},Te={};Jt(Ie,(function(t,e){Te[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Te.deleteProperty=function(t,e){return Te.set.call(this,t,e,void 0)},Te.set=function(t,e,i){return Ie.set.call(this,t[0],e,i,t[0])};var Be=function(){function t(t){var e=this;this.O=Ne,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&qt(6),void 0!==o&&"function"!=typeof o&&qt(7),Zt(t)){var a=fe(e),l=$e(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?he(a):ue(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ce(a,o),pe(t,a)}),(function(t){throw he(a),t})):(ce(a,o),pe(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Me&&(s=void 0),e.D&&re(s,!0),o){var h=[],u=[];ae("Patches").M(t,s,h,u),o(h,u)}return s}qt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Zt(t)||qt(8),Kt(t)&&(t=Se(t));var e=fe(this),i=$e(this,t,void 0);return i[Pe].C=!0,ue(e),i},e.finishDraft=function(t,e){var i=(t&&t[Pe]).A;return ce(i,e),pe(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ne&&qt(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var r=ae("Patches").$;return Kt(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),_e=new Be,De=_e.produce;function We(t){return We="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},We(t)}function He(t){var e=function(t,e){if("object"!==We(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==We(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===We(e)?e:String(e)}function Ve(t,e,i){return(e=He(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function qe(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function Ke(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?qe(Object(i),!0).forEach((function(e){Ve(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):qe(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ze(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. "}_e.produceWithPatches.bind(_e),_e.setAutoFreeze.bind(_e),_e.setUseProxies.bind(_e),_e.applyPatches.bind(_e),_e.createDraft.bind(_e),_e.finishDraft.bind(_e);var Je="function"==typeof Symbol&&Symbol.observable||"@@observable",Xe=function(){return Math.random().toString(36).substring(7).split("").join(".")},Qe={INIT:"@@redux/INIT"+Xe(),REPLACE:"@@redux/REPLACE"+Xe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Xe()}};function Ge(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Ze(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Ze(1));return i(Ge)(t,e)}if("function"!=typeof t)throw new Error(Ze(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(Ze(3));return n}function u(t){if("function"!=typeof t)throw new Error(Ze(4));if(l)throw new Error(Ze(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Ze(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function f(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Ze(7));if(void 0===t.type)throw new Error(Ze(8));if(l)throw new Error(Ze(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return f({type:Qe.INIT}),(o={dispatch:f,subscribe:u,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ze(10));r=t,f({type:Qe.REPLACE})}})[Je]=function(){var t,e=u;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ze(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[Je]=function(){return this},t},o}function Ye(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Qe.INIT}))throw new Error(Ze(12));if(void 0===i(void 0,{type:Qe.PROBE_UNKNOWN_ACTION()}))throw new Error(Ze(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},a=0;a<s.length;a++){var l=s[a],c=i[l],h=t[l],u=c(h,e);if(void 0===u)throw e&&e.type,new Error(Ze(14));r[l]=u,o=o||u!==h}return(o=o||s.length!==Object.keys(t).length)?r:t}}function ti(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function ei(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(Ze(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=ti.apply(void 0,n)(i.dispatch),Ke(Ke({},i),{},{dispatch:o})}}}function ii(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var oi=ii();oi.withExtraArgument=ii;var ri,ni=oi,si=(ri=function(t,e){return ri=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},ri(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}ri(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ai=function(t,e){var i,o,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(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,o=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],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}},li=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},ci=Object.defineProperty,hi=Object.defineProperties,ui=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertySymbols,di=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable,vi=function(t,e,i){return e in t?ci(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},bi=function(t,e){for(var i in e||(e={}))di.call(e,i)&&vi(t,i,e[i]);if(fi)for(var o=0,r=fi(e);o<r.length;o++){i=r[o];pi.call(e,i)&&vi(t,i,e[i])}return t},yi=function(t,e){return hi(t,ui(e))},gi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ti:ti.apply(null,arguments)};var xi=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return si(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,li([void 0],t[0].concat(this)))):new(e.bind.apply(e,li([void 0],t.concat(this))))},e}(Array),mi=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return si(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,li([void 0],t[0].concat(this)))):new(e.bind.apply(e,li([void 0],t.concat(this))))},e}(Array);function wi(t){return Zt(t)?De(t,(function(){})):t}function $i(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new xi;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(ni.withExtraArgument(i.extraArgument)):o.push(ni));return o}(t)}}function Si(t){var e,i=$i(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,s=o.middleware,a=void 0===s?i():s,l=o.devTools,c=void 0===l||l,h=o.preloadedState,u=void 0===h?void 0:h,f=o.enhancers,d=void 0===f?void 0:f;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Ye(n)}var p=a;"function"==typeof p&&(p=p(i));var v=ei.apply(void 0,p),b=ti;c&&(b=gi(bi({trace:!1},"object"==typeof c&&c)));var y=new mi(v),g=y;return Array.isArray(d)?g=li([v],d):"function"==typeof d&&(g=d(y)),Ge(e,u,b.apply(void 0,g))}function Oi(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return bi(bi({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function ki(t){var e,i={},o=[],r={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function Ei(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:wi(t.initialState),r=t.reducers||{},n=Object.keys(r),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?ki(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],s=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,h=bi(bi({},r),a);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?ki(e):[e,i,o],s=n[0],a=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return wi(t())};else{var c=wi(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var i=li([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(Kt(t))return void 0===(o=i(t,e))?t:o;if(Zt(t))return De(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return h.getInitialState=r,h}(o,(function(t){for(var e in h)t.addCase(e,h[e]);for(var i=0,o=s;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,s[t]=i,a[c]=i,l[t]=o?Oi(c,o):Oi(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Ci=["name","message","stack","code"],ji=function(t,e){this.payload=t,this.meta=e},Ri=function(t,e){this.payload=t,this.meta=e},Ni=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=Ci;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Mi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=Oi(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:yi(bi({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Oi(t+"/pending",(function(t,e,i){return{payload:void 0,meta:yi(bi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Oi(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Ni)(t||"Rejected"),meta:yi(bi({},n||{}),{arg:o,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),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,u=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),f=new s;function d(t){h=t,f.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return ai(this,(function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(m=b)||"object"!=typeof m||"function"!=typeof m.then?[3,2]:[4,b];case 1:b=x.sent(),x.label=2;case 2:if(!1===b||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return f.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(r(u,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:u,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:u,signal:f.signal,abort:d,rejectWithValue:function(t,e){return new ji(t,e)},fulfillWithValue:function(t,e){return new Ri(t,e)}})).then((function(e){if(e instanceof ji)throw e;return e instanceof Ri?o(e.payload,u,t,e.meta):o(e,u,t)}))])];case 3:return v=x.sent(),[3,5];case 4:return g=x.sent(),v=g instanceof ji?n(null,u,t,g.payload,g.meta):n(g,u,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(v)&&v.meta.condition||a(v),[2,v]}var m}))},new Promise((function(t,e){var i=function(t){try{r(v.next(t))}catch(t){e(t)}},o=function(t){try{r(v.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};r((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:d,requestId:u,arg:t,unwrap:function(){return p.then(Mi)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Ai="listenerMiddleware";Oi(Ai+"/add"),Oi(Ai+"/removeAll"),Oi(Ai+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Pe];return Ie.get(e,t)},set:function(e){var i=this[Pe];Ie.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Pe];if(!r.P)switch(r.i){case 5:o(r)&&me(r);break;case 4:i(r)&&me(r)}}}function i(t){for(var e=t.t,i=t.k,o=ze(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==Pe){var s=e[n];if(void 0===s&&!Qt(e,n))return!0;var a=i[n],l=a&&a[Pe];if(l?l.t!==s:!Yt(a,s))return!0}}var c=!!e[Pe];return o.length!==ze(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var r={};!function(t,e){Ue[t]||(Ue[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=Le(i);delete n[Pe];for(var s=ze(n),a=0;a<s.length;a++){var l=s[a];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:le(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Pe,{value:n,writable:!0}),r},S:function(t,i,r){r?Kt(i)&&i[Pe].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Pe];if(i){var r=i.t,n=i.k,s=i.R,a=i.i;if(4===a)Jt(n,(function(e){e!==Pe&&(void 0!==r[e]||Qt(r,e)?s[e]||t(n[e]):(s[e]=!0,me(i)))})),Jt(r,(function(t){void 0!==n[t]||Qt(n,t)||(s[t]=!1,me(i))}));else if(5===a){if(o(i)&&(me(i),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),u=0;u<h;u++)n.hasOwnProperty(u)||(s[u]=!0),void 0===s[u]&&t(n[u])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}();class Pi{static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,o=window.ftReduxStores[e];if(It(o))return o;if(null==i)return;const r=Ei(i),n=Si({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return r.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return r.reducer(t,e)}}});return window.ftReduxStores[i.name]=new Pi(r,n)}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,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:{[o]:t}})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}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 Fi=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!v(t,e),attribute:!1,...e};s(r)(t,i);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}};var zi,Li,Ui;const Ii=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ui=null===(Li=null===(zi=window.safari)||void 0===zi?void 0:zi.pushNotification)||void 0===Li?void 0:Li.toString())&&void 0!==Ui?Ui:""),Ti=O`
|
|
108
108
|
`
|
|
109
109
|
/**
|
|
110
110
|
* @license
|
|
111
111
|
* Copyright 2020 Google LLC
|
|
112
112
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
113
|
-
*/,
|
|
113
|
+
*/,Bi=Symbol.for(""),_i=t=>{if((null==t?void 0:t.r)===Bi)return null==t?void 0:t._$litStatic$},Di=t=>({_$litStatic$:t,r:Bi}),Wi=new Map,Hi=(t=>(e,...i)=>{const o=i.length;let r,n;const s=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(n=i[c],r=_i(n));)l+=r+e[++c],h=!0;c!==o&&a.push(n),s.push(l),c++}if(c===o&&s.push(e[o]),h){const t=s.join("$$lit$$");void 0===(e=Wi.get(t))&&(s.raw=s,Wi.set(t,e=s)),i=a}return t(e,...i)})(ot);var Vi;!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"}(Vi||(Vi={}));const qi=kt.extend("--ft-typography-font-family",Ct.titleFont),Ki=kt.extend("--ft-typography-font-family",Ct.contentFont),Zi={fontFamily:Ki,fontSize:kt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:kt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:kt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:kt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:kt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Ji=kt.extend("--ft-typography-title-font-family",qi),Xi=kt.extend("--ft-typography-title-font-size",Zi.fontSize,"20px"),Qi=kt.extend("--ft-typography-title-font-weight",Zi.fontWeight,"normal"),Gi=kt.extend("--ft-typography-title-letter-spacing",Zi.letterSpacing,"0.15px"),Yi=kt.extend("--ft-typography-title-line-height",Zi.lineHeight,"1.2"),to=kt.extend("--ft-typography-title-text-transform",Zi.textTransform,"inherit"),eo=kt.extend("--ft-typography-title-dense-font-family",qi),io=kt.extend("--ft-typography-title-dense-font-size",Zi.fontSize,"14px"),oo=kt.extend("--ft-typography-title-dense-font-weight",Zi.fontWeight,"normal"),ro=kt.extend("--ft-typography-title-dense-letter-spacing",Zi.letterSpacing,"0.105px"),no=kt.extend("--ft-typography-title-dense-line-height",Zi.lineHeight,"1.7"),so=kt.extend("--ft-typography-title-dense-text-transform",Zi.textTransform,"inherit"),ao=kt.extend("--ft-typography-subtitle1-font-family",Ki),lo=kt.extend("--ft-typography-subtitle1-font-size",Zi.fontSize,"16px"),co=kt.extend("--ft-typography-subtitle1-font-weight",Zi.fontWeight,"600"),ho=kt.extend("--ft-typography-subtitle1-letter-spacing",Zi.letterSpacing,"0.144px"),uo=kt.extend("--ft-typography-subtitle1-line-height",Zi.lineHeight,"1.5"),fo=kt.extend("--ft-typography-subtitle1-text-transform",Zi.textTransform,"inherit"),po=kt.extend("--ft-typography-subtitle2-font-family",Ki),vo=kt.extend("--ft-typography-subtitle2-font-size",Zi.fontSize,"14px"),bo=kt.extend("--ft-typography-subtitle2-font-weight",Zi.fontWeight,"normal"),yo=kt.extend("--ft-typography-subtitle2-letter-spacing",Zi.letterSpacing,"0.098px"),go=kt.extend("--ft-typography-subtitle2-line-height",Zi.lineHeight,"1.7"),xo=kt.extend("--ft-typography-subtitle2-text-transform",Zi.textTransform,"inherit"),mo=kt.extend("--ft-typography-body1-font-family",Ki),wo=kt.extend("--ft-typography-body1-font-size",Zi.fontSize,"16px"),$o=kt.extend("--ft-typography-body1-font-weight",Zi.fontWeight,"normal"),So=kt.extend("--ft-typography-body1-letter-spacing",Zi.letterSpacing,"0.496px"),Oo=kt.extend("--ft-typography-body1-line-height",Zi.lineHeight,"1.5"),ko=kt.extend("--ft-typography-body1-text-transform",Zi.textTransform,"inherit"),Eo={fontFamily:kt.extend("--ft-typography-body2-font-family",Ki),fontSize:kt.extend("--ft-typography-body2-font-size",Zi.fontSize,"14px"),fontWeight:kt.extend("--ft-typography-body2-font-weight",Zi.fontWeight,"normal"),letterSpacing:kt.extend("--ft-typography-body2-letter-spacing",Zi.letterSpacing,"0.252px"),lineHeight:kt.extend("--ft-typography-body2-line-height",Zi.lineHeight,"1.4"),textTransform:kt.extend("--ft-typography-body2-text-transform",Zi.textTransform,"inherit")},Co=kt.extend("--ft-typography-caption-font-family",Ki),jo=kt.extend("--ft-typography-caption-font-size",Zi.fontSize,"12px"),Ro=kt.extend("--ft-typography-caption-font-weight",Zi.fontWeight,"normal"),No=kt.extend("--ft-typography-caption-letter-spacing",Zi.letterSpacing,"0.396px"),Mo=kt.extend("--ft-typography-caption-line-height",Zi.lineHeight,"1.33"),Ao=kt.extend("--ft-typography-caption-text-transform",Zi.textTransform,"inherit"),Po=kt.extend("--ft-typography-breadcrumb-font-family",Ki),Fo=kt.extend("--ft-typography-breadcrumb-font-size",Zi.fontSize,"10px"),zo=kt.extend("--ft-typography-breadcrumb-font-weight",Zi.fontWeight,"normal"),Lo=kt.extend("--ft-typography-breadcrumb-letter-spacing",Zi.letterSpacing,"0.33px"),Uo=kt.extend("--ft-typography-breadcrumb-line-height",Zi.lineHeight,"1.6"),Io=kt.extend("--ft-typography-breadcrumb-text-transform",Zi.textTransform,"inherit"),To=kt.extend("--ft-typography-overline-font-family",Ki),Bo=kt.extend("--ft-typography-overline-font-size",Zi.fontSize,"10px"),_o=kt.extend("--ft-typography-overline-font-weight",Zi.fontWeight,"normal"),Do=kt.extend("--ft-typography-overline-letter-spacing",Zi.letterSpacing,"1.5px"),Wo=kt.extend("--ft-typography-overline-line-height",Zi.lineHeight,"1.6"),Ho=kt.extend("--ft-typography-overline-text-transform",Zi.textTransform,"uppercase"),Vo={fontFamily:kt.extend("--ft-typography-button-font-family",Ki),fontSize:kt.extend("--ft-typography-button-font-size",Zi.fontSize,"14px"),fontWeight:kt.extend("--ft-typography-button-font-weight",Zi.fontWeight,"600"),letterSpacing:kt.extend("--ft-typography-button-letter-spacing",Zi.letterSpacing,"1.246px"),lineHeight:kt.extend("--ft-typography-button-line-height",Zi.lineHeight,"1.15"),textTransform:kt.extend("--ft-typography-button-text-transform",Zi.textTransform,"uppercase")},qo=O`
|
|
114
114
|
.ft-typography--title {
|
|
115
115
|
font-family: ${Ji};
|
|
116
116
|
font-size: ${Xi};
|
|
@@ -119,7 +119,7 @@ var wt,$t;let Ot=class extends F{constructor(){super(...arguments),this.renderOp
|
|
|
119
119
|
line-height: ${Yi};
|
|
120
120
|
text-transform: ${to};
|
|
121
121
|
}
|
|
122
|
-
`,Ko=
|
|
122
|
+
`,Ko=O`
|
|
123
123
|
.ft-typography--title-dense {
|
|
124
124
|
font-family: ${eo};
|
|
125
125
|
font-size: ${io};
|
|
@@ -128,7 +128,7 @@ var wt,$t;let Ot=class extends F{constructor(){super(...arguments),this.renderOp
|
|
|
128
128
|
line-height: ${no};
|
|
129
129
|
text-transform: ${so};
|
|
130
130
|
}
|
|
131
|
-
`,Zo=
|
|
131
|
+
`,Zo=O`
|
|
132
132
|
.ft-typography--subtitle1 {
|
|
133
133
|
font-family: ${ao};
|
|
134
134
|
font-size: ${lo};
|
|
@@ -137,7 +137,7 @@ var wt,$t;let Ot=class extends F{constructor(){super(...arguments),this.renderOp
|
|
|
137
137
|
line-height: ${uo};
|
|
138
138
|
text-transform: ${fo};
|
|
139
139
|
}
|
|
140
|
-
`,Jo=
|
|
140
|
+
`,Jo=O`
|
|
141
141
|
.ft-typography--subtitle2 {
|
|
142
142
|
font-family: ${po};
|
|
143
143
|
font-size: ${vo};
|
|
@@ -147,52 +147,52 @@ var wt,$t;let Ot=class extends F{constructor(){super(...arguments),this.renderOp
|
|
|
147
147
|
text-transform: ${xo};
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
`,Xo=
|
|
150
|
+
`,Xo=O`
|
|
151
151
|
.ft-typography--body1 {
|
|
152
152
|
font-family: ${mo};
|
|
153
153
|
font-size: ${wo};
|
|
154
154
|
font-weight: ${$o};
|
|
155
|
-
letter-spacing: ${
|
|
156
|
-
line-height: ${
|
|
155
|
+
letter-spacing: ${So};
|
|
156
|
+
line-height: ${Oo};
|
|
157
157
|
text-transform: ${ko};
|
|
158
158
|
}
|
|
159
|
-
`,Qo=
|
|
159
|
+
`,Qo=O`
|
|
160
160
|
.ft-typography--body2 {
|
|
161
|
-
font-family: ${
|
|
162
|
-
font-size: ${
|
|
163
|
-
font-weight: ${
|
|
164
|
-
letter-spacing: ${
|
|
165
|
-
line-height: ${
|
|
166
|
-
text-transform: ${
|
|
167
|
-
}
|
|
168
|
-
`,Go=
|
|
161
|
+
font-family: ${Eo.fontFamily};
|
|
162
|
+
font-size: ${Eo.fontSize};
|
|
163
|
+
font-weight: ${Eo.fontWeight};
|
|
164
|
+
letter-spacing: ${Eo.letterSpacing};
|
|
165
|
+
line-height: ${Eo.lineHeight};
|
|
166
|
+
text-transform: ${Eo.textTransform};
|
|
167
|
+
}
|
|
168
|
+
`,Go=O`
|
|
169
169
|
.ft-typography--caption {
|
|
170
|
-
font-family: ${
|
|
170
|
+
font-family: ${Co};
|
|
171
171
|
font-size: ${jo};
|
|
172
172
|
font-weight: ${Ro};
|
|
173
173
|
letter-spacing: ${No};
|
|
174
174
|
line-height: ${Mo};
|
|
175
175
|
text-transform: ${Ao};
|
|
176
176
|
}
|
|
177
|
-
`,Yo=
|
|
177
|
+
`,Yo=O`
|
|
178
178
|
.ft-typography--breadcrumb {
|
|
179
179
|
font-family: ${Po};
|
|
180
|
-
font-size: ${
|
|
181
|
-
font-weight: ${
|
|
180
|
+
font-size: ${Fo};
|
|
181
|
+
font-weight: ${zo};
|
|
182
182
|
letter-spacing: ${Lo};
|
|
183
183
|
line-height: ${Uo};
|
|
184
184
|
text-transform: ${Io};
|
|
185
185
|
}
|
|
186
|
-
`,tr=
|
|
186
|
+
`,tr=O`
|
|
187
187
|
.ft-typography--overline {
|
|
188
|
-
font-family: ${
|
|
189
|
-
font-size: ${
|
|
190
|
-
font-weight: ${
|
|
191
|
-
letter-spacing: ${
|
|
188
|
+
font-family: ${To};
|
|
189
|
+
font-size: ${Bo};
|
|
190
|
+
font-weight: ${_o};
|
|
191
|
+
letter-spacing: ${Do};
|
|
192
192
|
line-height: ${Wo};
|
|
193
193
|
text-transform: ${Ho};
|
|
194
194
|
}
|
|
195
|
-
`,er=
|
|
195
|
+
`,er=O`
|
|
196
196
|
.ft-typography--button {
|
|
197
197
|
font-family: ${Vo.fontFamily};
|
|
198
198
|
font-size: ${Vo.fontSize};
|
|
@@ -201,15 +201,15 @@ var wt,$t;let Ot=class extends F{constructor(){super(...arguments),this.renderOp
|
|
|
201
201
|
line-height: ${Vo.lineHeight};
|
|
202
202
|
text-transform: ${Vo.textTransform};
|
|
203
203
|
}
|
|
204
|
-
`,ir=
|
|
204
|
+
`,ir=O`
|
|
205
205
|
.ft-typography {
|
|
206
206
|
vertical-align: inherit;
|
|
207
207
|
}
|
|
208
|
-
`;var or=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class rr extends
|
|
209
|
-
<${
|
|
208
|
+
`;var or=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class rr extends Ft{constructor(){super(...arguments),this.variant=Vi.body1}render(){return this.element?Hi`
|
|
209
|
+
<${Di(this.element)}
|
|
210
210
|
class="ft-typography ft-typography--${this.variant}">
|
|
211
211
|
<slot></slot>
|
|
212
|
-
</${
|
|
212
|
+
</${Di(this.element)}>
|
|
213
213
|
`:Hi`
|
|
214
214
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
215
215
|
`}}rr.styles=[qo,Ko,Zo,Jo,Xo,Qo,Go,Yo,tr,er,ir],or([s()],rr.prototype,"element",void 0),or([s()],rr.prototype,"variant",void 0),b("ft-typography")(rr);
|
|
@@ -223,7 +223,7 @@ const nr=1,sr=2,ar=t=>(...e)=>({_$litDirective$:t,values:e});class lr{constructo
|
|
|
223
223
|
* @license
|
|
224
224
|
* Copyright 2020 Google LLC
|
|
225
225
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
226
|
-
*/const{I:cr}=xt,hr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const r=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=r.insertBefore(hr(),n),o=r.insertBefore(hr(),n);i=new cr(e,o,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==n||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,n),t=e}}}return i},fr=(t,e,i=t)=>(t._$AI(e,i),t),dr={},pr=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},vr=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},br=ar(class extends lr{constructor(t){if(super(t),t.type!==sr)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const r=[],n=[];let s=0;for(const e of t)r[s]=o?o(e,s):s,n[s]=i(e,s),s++;return{values:n,keys:r}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var r;const n=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,o);if(!Array.isArray(n))return this.ht=a,s;const l=null!==(r=this.ht)&&void 0!==r?r:this.ht=[],c=[];let h,u,f=0,d=n.length-1,p=0,v=s.length-1;for(;f<=d&&p<=v;)if(null===n[f])f++;else if(null===n[d])d--;else if(l[f]===a[p])c[p]=fr(n[f],s[p]),f++,p++;else if(l[d]===a[v])c[v]=fr(n[d],s[v]),d--,v--;else if(l[f]===a[v])c[v]=fr(n[f],s[v]),ur(t,c[v+1],n[f]),f++,v--;else if(l[d]===a[p])c[p]=fr(n[d],s[p]),ur(t,n[f],n[d]),d--,p++;else if(void 0===h&&(h=vr(a,p,v),u=vr(l,f,d)),h.has(l[f]))if(h.has(l[d])){const e=u.get(a[p]),i=void 0!==e?n[e]:null;if(null===i){const e=ur(t,n[f]);fr(e,s[p]),c[p]=e}else c[p]=fr(i,s[p]),ur(t,n[f],i),n[e]=null;p++}else pr(n[d]),d--;else pr(n[f]),f++;for(;p<=v;){const e=ur(t,c[v+1]);fr(e,s[p]),c[p++]=e}for(;f<=d;){const t=n[f++];null!==t&&pr(t)}return this.ht=a,((t,e=dr)=>{t._$AH=e})(t,c),rt}}),yr=ar(class extends lr{constructor(t){var e;if(super(t),t.type!==nr||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.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]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const r=t.element.classList;this.it.forEach((t=>{t in e||(r.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return rt}}),gr=kt.extend("--ft-ripple-color",
|
|
226
|
+
*/const{I:cr}=xt,hr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const r=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=r.insertBefore(hr(),n),o=r.insertBefore(hr(),n);i=new cr(e,o,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==n||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,n),t=e}}}return i},fr=(t,e,i=t)=>(t._$AI(e,i),t),dr={},pr=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},vr=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},br=ar(class extends lr{constructor(t){if(super(t),t.type!==sr)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const r=[],n=[];let s=0;for(const e of t)r[s]=o?o(e,s):s,n[s]=i(e,s),s++;return{values:n,keys:r}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var r;const n=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,o);if(!Array.isArray(n))return this.ht=a,s;const l=null!==(r=this.ht)&&void 0!==r?r:this.ht=[],c=[];let h,u,f=0,d=n.length-1,p=0,v=s.length-1;for(;f<=d&&p<=v;)if(null===n[f])f++;else if(null===n[d])d--;else if(l[f]===a[p])c[p]=fr(n[f],s[p]),f++,p++;else if(l[d]===a[v])c[v]=fr(n[d],s[v]),d--,v--;else if(l[f]===a[v])c[v]=fr(n[f],s[v]),ur(t,c[v+1],n[f]),f++,v--;else if(l[d]===a[p])c[p]=fr(n[d],s[p]),ur(t,n[f],n[d]),d--,p++;else if(void 0===h&&(h=vr(a,p,v),u=vr(l,f,d)),h.has(l[f]))if(h.has(l[d])){const e=u.get(a[p]),i=void 0!==e?n[e]:null;if(null===i){const e=ur(t,n[f]);fr(e,s[p]),c[p]=e}else c[p]=fr(i,s[p]),ur(t,n[f],i),n[e]=null;p++}else pr(n[d]),d--;else pr(n[f]),f++;for(;p<=v;){const e=ur(t,c[v+1]);fr(e,s[p]),c[p++]=e}for(;f<=d;){const t=n[f++];null!==t&&pr(t)}return this.ht=a,((t,e=dr)=>{t._$AH=e})(t,c),rt}}),yr=ar(class extends lr{constructor(t){var e;if(super(t),t.type!==nr||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.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]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const r=t.element.classList;this.it.forEach((t=>{t in e||(r.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return rt}}),gr=kt.extend("--ft-ripple-color",Ct.colorContent),xr={color:gr,backgroundColor:kt.extend("--ft-ripple-background-color",gr),opacityContentOnSurfacePressed:kt.external(Ct.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:kt.external(Ct.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:kt.external(Ct.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:kt.external(Ct.opacityContentOnSurfaceSelected,"Design system"),borderRadius:kt.create("--ft-ripple-border-radius","SIZE","0px")},mr=kt.extend("--ft-ripple-color",Ct.colorPrimary),wr=mr,$r=kt.extend("--ft-ripple-background-color",mr),Sr=kt.extend("--ft-ripple-color",Ct.colorSecondary),Or=Sr,kr=kt.extend("--ft-ripple-background-color",Sr),Er=O`
|
|
227
227
|
:host {
|
|
228
228
|
display: contents;
|
|
229
229
|
}
|
|
@@ -258,7 +258,7 @@ const nr=1,sr=2,ar=t=>(...e)=>({_$litDirective$:t,values:e});class lr{constructo
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
261
|
-
background-color: ${
|
|
261
|
+
background-color: ${Or};
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
@@ -318,7 +318,7 @@ const nr=1,sr=2,ar=t=>(...e)=>({_$litDirective$:t,values:e});class lr{constructo
|
|
|
318
318
|
* @license
|
|
319
319
|
* Copyright 2017 Google LLC
|
|
320
320
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
321
|
-
*/var
|
|
321
|
+
*/var Cr=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class jr extends Ft{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.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new r(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new r(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return ot`
|
|
322
322
|
<style>
|
|
323
323
|
.ft-ripple .ft-ripple--effect,
|
|
324
324
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -335,7 +335,7 @@ const nr=1,sr=2,ar=t=>(...e)=>({_$litDirective$:t,values:e});class lr{constructo
|
|
|
335
335
|
<div class="ft-ripple--background"></div>
|
|
336
336
|
<div class="ft-ripple--effect"></div>
|
|
337
337
|
</div>
|
|
338
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),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",i),t.removeEventListener("touchstart",o),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,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}jr.elementDefinitions={},jr.styles=Cr
|
|
338
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),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",i),t.removeEventListener("touchstart",o),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,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}jr.elementDefinitions={},jr.styles=Er,Cr([s({type:Boolean})],jr.prototype,"primary",void 0),Cr([s({type:Boolean})],jr.prototype,"secondary",void 0),Cr([s({type:Boolean})],jr.prototype,"unbounded",void 0),Cr([s({type:Boolean})],jr.prototype,"activated",void 0),Cr([s({type:Boolean})],jr.prototype,"selected",void 0),Cr([s({type:Boolean})],jr.prototype,"disabled",void 0),Cr([a()],jr.prototype,"hovered",void 0),Cr([a()],jr.prototype,"focused",void 0),Cr([a()],jr.prototype,"pressed",void 0),Cr([a()],jr.prototype,"rippling",void 0),Cr([a()],jr.prototype,"rippleSize",void 0),Cr([a()],jr.prototype,"originX",void 0),Cr([a()],jr.prototype,"originY",void 0),Cr([c(".ft-ripple")],jr.prototype,"ripple",void 0),Cr([c(".ft-ripple--effect")],jr.prototype,"rippleEffect",void 0),b("ft-ripple")(jr);const Rr=kt.create("--ft-tooltip-distance","SIZE","4px"),Nr=kt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Mr=kt.create("--ft-tooltip-background-color","COLOR","#666666"),Ar=kt.create("--ft-tooltip-z-index","NUMBER","1"),Pr=kt.external(Ct.borderRadiusS,"Design system"),Fr=kt.create("--ft-tooltip-max-width","SIZE","150px"),zr=O`
|
|
339
339
|
.ft-tooltip--container {
|
|
340
340
|
display: block;
|
|
341
341
|
position: relative;
|
|
@@ -351,7 +351,7 @@ const nr=1,sr=2,ar=t=>(...e)=>({_$litDirective$:t,values:e});class lr{constructo
|
|
|
351
351
|
box-sizing: border-box;
|
|
352
352
|
overflow: hidden;
|
|
353
353
|
width: max-content;
|
|
354
|
-
max-width: ${
|
|
354
|
+
max-width: ${Fr};
|
|
355
355
|
text-align: center;
|
|
356
356
|
padding: ${Rr};
|
|
357
357
|
z-index: ${Ar};
|
|
@@ -367,7 +367,7 @@ const nr=1,sr=2,ar=t=>(...e)=>({_$litDirective$:t,values:e});class lr{constructo
|
|
|
367
367
|
position: relative;
|
|
368
368
|
word-break: break-word;
|
|
369
369
|
}
|
|
370
|
-
`;var Lr=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Ur extends
|
|
370
|
+
`;var Lr=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Ur extends Ft{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new r,this.revealDebouncer=new r}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ot`
|
|
371
371
|
<div part="container"
|
|
372
372
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
373
373
|
@mouseenter=${this.onHover}
|
|
@@ -385,7 +385,7 @@ const nr=1,sr=2,ar=t=>(...e)=>({_$litDirective$:t,values:e});class lr{constructo
|
|
|
385
385
|
</div>
|
|
386
386
|
</div>
|
|
387
387
|
</div>
|
|
388
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(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();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let r=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,r=o;break;case"bottom":n=e.height,r=o;break;case"left":n=i,r=-this.tooltip.clientWidth;break;case"right":n=i,r=e.width}e.left+r+this.tooltip.clientWidth>window.innerWidth&&(r=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+r<0&&(r=4-e.left);const s=this.tooltip.style;s.left=r+"px",s.top=n+"px",s.maxWidth=`max(${e.width}px, ${
|
|
388
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(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();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let r=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,r=o;break;case"bottom":n=e.height,r=o;break;case"left":n=i,r=-this.tooltip.clientWidth;break;case"right":n=i,r=e.width}e.left+r+this.tooltip.clientWidth>window.innerWidth&&(r=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+r<0&&(r=4-e.left);const s=this.tooltip.style;s.left=r+"px",s.top=n+"px",s.maxWidth=`max(${e.width}px, ${Fr})`}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())}}Ur.elementDefinitions={"ft-typography":rr},Ur.styles=zr,Lr([s()],Ur.prototype,"text",void 0),Lr([s({type:Boolean})],Ur.prototype,"manual",void 0),Lr([s({type:Boolean})],Ur.prototype,"inline",void 0),Lr([s({type:Number})],Ur.prototype,"delay",void 0),Lr([s()],Ur.prototype,"position",void 0),Lr([function(t,e,i){let o,r=t;return"object"==typeof t?(r=t.slot,o=t):o={flatten:e},i?f({slot:r,flatten:e,selector:i}):l({descriptor:t=>({get(){var t,e;const i="slot"+(r?`[name=${r}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==n?void 0:n.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Ur.prototype,"slotNodes",void 0),Lr([c(".ft-tooltip--container")],Ur.prototype,"container",void 0),Lr([c("slot")],Ur.prototype,"target",void 0),Lr([c(".ft-tooltip")],Ur.prototype,"tooltip",void 0),Lr([c(".ft-tooltip--content")],Ur.prototype,"tooltipContent",void 0),Lr([a()],Ur.prototype,"visible",void 0),b("ft-tooltip")(Ur);const Ir={color:kt.extend("--ft-loader-color",Ct.colorPrimary),size:kt.create("--ft-loader-size","SIZE","80px")},Tr=O`
|
|
389
389
|
:host {
|
|
390
390
|
line-height: 0;
|
|
391
391
|
}
|
|
@@ -454,20 +454,20 @@ const nr=1,sr=2,ar=t=>(...e)=>({_$litDirective$:t,values:e});class lr{constructo
|
|
|
454
454
|
transform: translate(calc(0.35 * ${Ir.size}), 0);
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
`;class
|
|
457
|
+
`;class Br extends Ft{render(){return ot`
|
|
458
458
|
<div class="ft-loader">
|
|
459
459
|
<div></div>
|
|
460
460
|
<div></div>
|
|
461
461
|
<div></div>
|
|
462
462
|
<div></div>
|
|
463
463
|
</div>
|
|
464
|
-
`}}
|
|
464
|
+
`}}Br.styles=Tr,b("ft-loader")(Br);
|
|
465
465
|
/**
|
|
466
466
|
* @license
|
|
467
467
|
* Copyright 2017 Google LLC
|
|
468
468
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
469
469
|
*/
|
|
470
|
-
class
|
|
470
|
+
class _r extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nt||null==t)return this.ft=void 0,this.et=t;if(t===rt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}_r.directiveName="unsafeHTML",_r.resultType=1;const Dr=ar(_r);var Wr,Hr;!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.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=""}(Wr||(Wr={})),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=""}(Hr||(Hr={})),new Map([...["abw"].map((t=>[t,Hr.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,Hr.AUDIO])),...["avi"].map((t=>[t,Hr.AVI])),...["chm","xhs"].map((t=>[t,Hr.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,Hr.CODE])),...["csv"].map((t=>[t,Hr.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Hr.DITA])),...["epub"].map((t=>[t,Hr.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Hr.EXCEL])),...["flac"].map((t=>[t,Hr.FLAC])),...["gif"].map((t=>[t,Hr.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Hr.GZIP])),...["html","htm","xhtml"].map((t=>[t,Hr.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,Hr.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Hr.JPEG])),...["json"].map((t=>[t,Hr.JSON])),...["m4a","m4p"].map((t=>[t,Hr.M4A])),...["mov","qt"].map((t=>[t,Hr.MOV])),...["mp3"].map((t=>[t,Hr.MP3])),...["mp4","m4v"].map((t=>[t,Hr.MP4])),...["ogg","oga"].map((t=>[t,Hr.OGG])),...["pdf","ps"].map((t=>[t,Hr.PDF])),...["png"].map((t=>[t,Hr.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Hr.POWERPOINT])),...["rar"].map((t=>[t,Hr.RAR])),...["stp"].map((t=>[t,Hr.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Hr.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,Hr.VIDEO])),...["wav"].map((t=>[t,Hr.WAV])),...["wma"].map((t=>[t,Hr.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Hr.WORD])),...["xml","xsl","rdf"].map((t=>[t,Hr.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Hr.YAML])),...["zip"].map((t=>[t,Hr.ZIP]))]);const Vr={size:kt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:kt.extend("--ft-icon-fluid-topics-font-family",kt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:kt.extend("--ft-icon-file-format-font-family",kt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:kt.extend("--ft-icon-material-font-family",kt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:kt.create("--ft-icon-vertical-align","UNKNOWN","unset")},qr=O`
|
|
471
471
|
:host, i.ft-icon {
|
|
472
472
|
display: inline-flex;
|
|
473
473
|
align-items: center;
|
|
@@ -515,12 +515,12 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
515
515
|
.ft-icon--material {
|
|
516
516
|
font-family: ${Vr.materialFontFamily}, "Material Icons", sans-serif;
|
|
517
517
|
}
|
|
518
|
-
`;var Kr;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Kr||(Kr={}));var Zr=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Jr extends
|
|
518
|
+
`;var Kr;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Kr||(Kr={}));var Zr=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Jr extends Ft{constructor(){super(...arguments),this.resolvedIcon=nt}render(){const t=this.variant&&Object.values(Kr).includes(this.variant)?this.variant:Kr.fluid_topics,e=t!==Kr.material||!!this.value;return ot`
|
|
519
519
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
520
|
-
${
|
|
520
|
+
${Dr(this.resolvedIcon)}
|
|
521
521
|
<slot ?hidden=${e}></slot>
|
|
522
522
|
</i>
|
|
523
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Kr.file_format:this.resolvedIcon=null!==(t=Hr[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Kr.material:this.resolvedIcon=this.value||nt;break;default:this.resolvedIcon=null!==(e=Wr[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Jr.elementDefinitions={},Jr.styles=qr,Zr([s()],Jr.prototype,"variant",void 0),Zr([s()],Jr.prototype,"value",void 0),Zr([a()],Jr.prototype,"resolvedIcon",void 0),Zr([c("slot")],Jr.prototype,"slottedContent",void 0),b("ft-icon")(Jr);const Xr=kt.extend("--ft-button-color",
|
|
523
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Kr.file_format:this.resolvedIcon=null!==(t=Hr[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Kr.material:this.resolvedIcon=this.value||nt;break;default:this.resolvedIcon=null!==(e=Wr[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Jr.elementDefinitions={},Jr.styles=qr,Zr([s()],Jr.prototype,"variant",void 0),Zr([s()],Jr.prototype,"value",void 0),Zr([a()],Jr.prototype,"resolvedIcon",void 0),Zr([c("slot")],Jr.prototype,"slottedContent",void 0),b("ft-icon")(Jr);const Xr=kt.extend("--ft-button-color",Ct.colorPrimary),Qr={backgroundColor:kt.extend("--ft-button-background-color",Ct.colorSurface),borderRadius:kt.extend("--ft-button-border-radius",Ct.borderRadiusL),color:Xr,fontSize:kt.extend("--ft-button-font-size",Vo.fontSize),iconSize:kt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:kt.extend("--ft-button-ripple-color",Xr),verticalPadding:kt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:kt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:kt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:kt.external(Ct.colorOpacityDisabled,"Design system")},Gr=kt.extend("--ft-button-primary-color",kt.extend("--ft-button-color",Ct.colorOnPrimary)),Yr={backgroundColor:kt.extend("--ft-button-primary-background-color",kt.extend("--ft-button-background-color",Ct.colorPrimary)),color:Gr,rippleColor:kt.extend("--ft-button-primary-ripple-color",Gr)},tn=kt.extend("--ft-button-dense-border-radius",kt.extend("--ft-button-border-radius",Ct.borderRadiusM)),en=kt.create("--ft-button-dense-vertical-padding","SIZE","2px"),on=kt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),rn=kt.create("--ft-button-dense-icon-padding","SIZE","4px"),nn=[O`
|
|
524
524
|
:host {
|
|
525
525
|
display: inline-block;
|
|
526
526
|
max-width: 100%;
|
|
@@ -562,8 +562,8 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
562
562
|
|
|
563
563
|
--ft-button-internal-line-height: max(calc(${Qr.fontSize} + 2px), ${Qr.iconSize});
|
|
564
564
|
--ft-button-internal-color: ${Qr.color};
|
|
565
|
-
${
|
|
566
|
-
${
|
|
565
|
+
${Et(Vr.size,Qr.iconSize)};
|
|
566
|
+
${Et(xr.color,Qr.rippleColor)};
|
|
567
567
|
|
|
568
568
|
border-radius: ${Qr.borderRadius};
|
|
569
569
|
padding: ${Qr.verticalPadding} ${Qr.horizontalPadding};
|
|
@@ -607,7 +607,7 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
607
607
|
.ft-button.ft-button--primary {
|
|
608
608
|
background-color: ${Yr.backgroundColor};
|
|
609
609
|
--ft-button-internal-color: ${Yr.color};
|
|
610
|
-
${
|
|
610
|
+
${Et(xr.color,Yr.rippleColor)};
|
|
611
611
|
}
|
|
612
612
|
|
|
613
613
|
.ft-button:focus {
|
|
@@ -621,8 +621,8 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
621
621
|
text-overflow: ellipsis;
|
|
622
622
|
display: block;
|
|
623
623
|
margin: 0 ${Qr.iconPadding};
|
|
624
|
-
${
|
|
625
|
-
${
|
|
624
|
+
${Et(Vo.fontSize,"1em")};
|
|
625
|
+
${Et(Vo.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
626
626
|
}
|
|
627
627
|
|
|
628
628
|
.ft-button--dense .ft-button--label {
|
|
@@ -654,10 +654,10 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
654
654
|
}
|
|
655
655
|
|
|
656
656
|
ft-loader {
|
|
657
|
-
${
|
|
658
|
-
${
|
|
657
|
+
${Et(Ir.size,Qr.iconSize)};
|
|
658
|
+
${Et(Ir.color,"var(--ft-button-internal-color)")};
|
|
659
659
|
}
|
|
660
|
-
`,
|
|
660
|
+
`,zt];var sn=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class an extends Ft{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!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=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"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};return this.addTooltipIfNeeded(ot`
|
|
661
661
|
<button part="button"
|
|
662
662
|
class="${yr(t)}"
|
|
663
663
|
aria-label="${this.getLabel()}"
|
|
@@ -680,7 +680,7 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
680
680
|
</ft-tooltip>
|
|
681
681
|
`:t}resolveIcon(){return this.loading?ot`
|
|
682
682
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?ot`
|
|
683
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:nt}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}}an.elementDefinitions={"ft-ripple":jr,"ft-tooltip":Ur,"ft-typography":rr,"ft-icon":Jr,"ft-loader":
|
|
683
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:nt}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}}an.elementDefinitions={"ft-ripple":jr,"ft-tooltip":Ur,"ft-typography":rr,"ft-icon":Jr,"ft-loader":Br},an.styles=[Lt,nn],sn([s({type:String,reflect:!0})],an.prototype,"role",void 0),sn([s({type:Boolean})],an.prototype,"primary",void 0),sn([s({type:Boolean})],an.prototype,"outlined",void 0),sn([s({type:Boolean})],an.prototype,"disabled",void 0),sn([s({type:Boolean})],an.prototype,"dense",void 0),sn([s({type:Boolean})],an.prototype,"round",void 0),sn([s()],an.prototype,"label",void 0),sn([s()],an.prototype,"icon",void 0),sn([s()],an.prototype,"iconVariant",void 0),sn([s({type:Boolean})],an.prototype,"trailingIcon",void 0),sn([s({type:Boolean})],an.prototype,"loading",void 0),sn([s()],an.prototype,"tooltipPosition",void 0),sn([s({type:Boolean})],an.prototype,"hideTooltip",void 0),sn([s({type:Boolean})],an.prototype,"forceTooltip",void 0),sn([c(".ft-button")],an.prototype,"button",void 0),sn([c(".ft-button--label slot")],an.prototype,"slottedContent",void 0),b("ft-button")(an);const ln=kt.extend("--ft-checkbox-text-color",Ct.colorOnSurfaceHigh),cn=kt.external(Ct.colorPrimary,"Design system"),hn=kt.external(Ct.colorOnPrimary,"Design system"),un=kt.extend("--ft-checkbox-border-color",Ct.colorOnSurfaceMedium),fn=kt.external(Ct.colorOnSurfaceDisabled,"Design system"),dn=O`
|
|
684
684
|
* {
|
|
685
685
|
box-sizing: border-box;
|
|
686
686
|
}
|
|
@@ -757,7 +757,7 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
757
757
|
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
758
758
|
opacity: 1;
|
|
759
759
|
}
|
|
760
|
-
`;var pn=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class vn extends
|
|
760
|
+
`;var pn=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class vn extends Ft{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 ot`
|
|
761
761
|
<label class="${yr(t)}" for="checkbox-input">
|
|
762
762
|
<div class="ft-checkbox--box-container">
|
|
763
763
|
<ft-ripple
|
|
@@ -783,7 +783,7 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
783
783
|
<slot></slot>
|
|
784
784
|
</ft-typography>
|
|
785
785
|
</label>
|
|
786
|
-
`}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)}}vn.elementDefinitions={"ft-ripple":jr,"ft-typography":rr},vn.styles=dn,pn([s()],vn.prototype,"name",void 0),pn([s({type:Boolean,reflect:!0})],vn.prototype,"checked",void 0),pn([s({type:Boolean})],vn.prototype,"indeterminate",void 0),pn([s({type:Boolean})],vn.prototype,"disabled",void 0),pn([c(".ft-checkbox")],vn.prototype,"container",void 0),pn([c("ft-ripple")],vn.prototype,"ripple",void 0),b("ft-checkbox")(vn);const bn=kt.extend("--ft-radio-text-color",
|
|
786
|
+
`}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)}}vn.elementDefinitions={"ft-ripple":jr,"ft-typography":rr},vn.styles=dn,pn([s()],vn.prototype,"name",void 0),pn([s({type:Boolean,reflect:!0})],vn.prototype,"checked",void 0),pn([s({type:Boolean})],vn.prototype,"indeterminate",void 0),pn([s({type:Boolean})],vn.prototype,"disabled",void 0),pn([c(".ft-checkbox")],vn.prototype,"container",void 0),pn([c("ft-ripple")],vn.prototype,"ripple",void 0),b("ft-checkbox")(vn);const bn=kt.extend("--ft-radio-text-color",Ct.colorOnSurfaceHigh),yn=kt.external(Ct.colorPrimary,"Design system"),gn=(kt.external(Ct.colorOnPrimary,"Design system"),kt.extend("--ft-radio-border-color",Ct.colorOnSurfaceMedium)),xn=kt.external(Ct.colorOnSurfaceDisabled,"Design system"),mn=O`
|
|
787
787
|
* {
|
|
788
788
|
box-sizing: border-box;
|
|
789
789
|
}
|
|
@@ -862,7 +862,7 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
862
862
|
.ft-radio--disabled .ft-radio--box:after {
|
|
863
863
|
background-color: ${xn};
|
|
864
864
|
}
|
|
865
|
-
`;var wn=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class $n extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class
|
|
865
|
+
`;var wn=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class $n extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Sn extends Ft{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 ot`
|
|
866
866
|
<div class="${yr(t)}">
|
|
867
867
|
<div class="ft-radio--box-container">
|
|
868
868
|
<ft-ripple
|
|
@@ -887,16 +887,16 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
887
887
|
</ft-typography>
|
|
888
888
|
</label>
|
|
889
889
|
</div>
|
|
890
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new $n(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 $n(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}
|
|
890
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new $n(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 $n(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Sn.elementDefinitions={"ft-ripple":jr,"ft-typography":rr},Sn.styles=mn,wn([s()],Sn.prototype,"value",void 0),wn([s()],Sn.prototype,"name",void 0),wn([s({type:Boolean,reflect:!0})],Sn.prototype,"checked",void 0),wn([s({type:Boolean})],Sn.prototype,"disabled",void 0),wn([c(".ft-radio")],Sn.prototype,"container",void 0),wn([c("ft-ripple")],Sn.prototype,"ripple",void 0),wn([c("input")],Sn.prototype,"input",void 0);const On=O`
|
|
891
891
|
:host {
|
|
892
892
|
display: contents;
|
|
893
893
|
}
|
|
894
|
-
`;var kn=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class
|
|
894
|
+
`;var kn=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class En extends Ft{constructor(){super(...arguments),this.name=""}render(){return ot`
|
|
895
895
|
<slot @slotchange=${this.onSlotChange}
|
|
896
896
|
@change=${this.onChange}
|
|
897
897
|
@keydown=${this.onKeyDown}
|
|
898
898
|
></slot>
|
|
899
|
-
`}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),i=this.radioButtons.indexOf(e)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].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)}}
|
|
899
|
+
`}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),i=this.radioButtons.indexOf(e)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].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)}}En.elementDefinitions={},En.styles=On,kn([s()],En.prototype,"name",void 0),kn([f()],En.prototype,"radioButtons",void 0),b("ft-radio")(Sn),b("ft-radio-group")(En);const Cn={borderRadiusM:kt.external(Ct.borderRadiusM,"Design system"),colorOutline:kt.external(Ct.colorOutline,"Design system"),colorOnSurface:kt.external(Ct.colorOnSurface,"Design system"),colorOnSurfaceMedium:kt.external(Ct.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:kt.external(Ct.colorOnSurfaceDisabled,"Design system"),colorPrimary:kt.external(Ct.colorPrimary,"Design system"),colorOnPrimary:kt.external(Ct.colorOnPrimary,"Design system"),fontFamily:kt.external(Eo.fontFamily,"Body2 typography"),fontSize:kt.external(Eo.fontSize,"Body2 typography"),fontWeight:kt.external(Eo.fontWeight,"Body2 typography"),letterSpacing:kt.external(Eo.letterSpacing,"Body2 typography"),lineHeight:kt.external(Eo.lineHeight,"Body2 typography"),textTransform:kt.external(Eo.textTransform,"Body2 typography")},jn=O`
|
|
900
900
|
.ft-filter-level--container {
|
|
901
901
|
display: flex;
|
|
902
902
|
flex-direction: column;
|
|
@@ -910,14 +910,14 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
910
910
|
flex-shrink: 0;
|
|
911
911
|
text-decoration: none;
|
|
912
912
|
position: relative;
|
|
913
|
-
border-radius: ${
|
|
913
|
+
border-radius: ${Cn.borderRadiusM};
|
|
914
914
|
overflow: hidden;
|
|
915
915
|
display: flex;
|
|
916
916
|
align-items: center;
|
|
917
917
|
padding: 4px 4px;
|
|
918
918
|
gap: 4px;
|
|
919
919
|
cursor: pointer;
|
|
920
|
-
color: ${
|
|
920
|
+
color: ${Cn.colorOnSurface};
|
|
921
921
|
}
|
|
922
922
|
|
|
923
923
|
.ft-filter-level--go-back:focus {
|
|
@@ -946,7 +946,7 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
946
946
|
}
|
|
947
947
|
|
|
948
948
|
ft-button {
|
|
949
|
-
${
|
|
949
|
+
${Et(Qr.color,Cn.colorOnSurface)};
|
|
950
950
|
}
|
|
951
951
|
|
|
952
952
|
ft-radio, ft-checkbox {
|
|
@@ -960,9 +960,9 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
960
960
|
|
|
961
961
|
.ft-filter-level--no-values {
|
|
962
962
|
margin: 10px 0;
|
|
963
|
-
color: ${
|
|
963
|
+
color: ${Cn.colorOnSurfaceMedium};
|
|
964
964
|
}
|
|
965
|
-
`;var Rn=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Nn extends
|
|
965
|
+
`;var Rn=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Nn extends Ft{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 ot`
|
|
966
966
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
967
967
|
${null==this.parent?null:ot`
|
|
968
968
|
<div tabindex="0"
|
|
@@ -1026,7 +1026,7 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
1026
1026
|
@change=${t=>t.stopPropagation()}>
|
|
1027
1027
|
${t.renderOption?t.renderOption:t.label}
|
|
1028
1028
|
</ft-radio>
|
|
1029
|
-
`}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}))}}Nn.elementDefinitions={"ft-button":an,"ft-ripple":jr,"ft-typography":rr,"ft-checkbox":vn,"ft-icon":Jr,"ft-radio":
|
|
1029
|
+
`}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}))}}Nn.elementDefinitions={"ft-button":an,"ft-ripple":jr,"ft-typography":rr,"ft-checkbox":vn,"ft-icon":Jr,"ft-radio":Sn},Nn.styles=jn,Rn([s({type:String})],Nn.prototype,"filterId",void 0),Rn([s({type:Object})],Nn.prototype,"parent",void 0),Rn([s({type:Array})],Nn.prototype,"options",void 0),Rn([s({type:Boolean})],Nn.prototype,"multivalued",void 0),Rn([s({type:Boolean})],Nn.prototype,"disabled",void 0),Rn([s({type:Boolean})],Nn.prototype,"hideSelectedOptions",void 0),Rn([s({type:Boolean})],Nn.prototype,"preventNavigation",void 0),Rn([s({type:String})],Nn.prototype,"filter",void 0),Rn([s({type:String})],Nn.prototype,"moreValuesButtonLabel",void 0),Rn([s({type:String})],Nn.prototype,"noValuesLabel",void 0),Rn([s({type:Number})],Nn.prototype,"displayedValuesLimit",void 0),Rn([c(".ft-filter-level--container")],Nn.prototype,"container",void 0),Rn([a()],Nn.prototype,"displayedPages",void 0);const Mn={buttonsColor:kt.extend("--ft-snap-scroll-buttons-color",Ct.colorPrimary),buttonsZIndex:kt.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:kt.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:kt.external(Ct.colorSurface,"Design system")},An=O`
|
|
1030
1030
|
.ft-snap-scroll {
|
|
1031
1031
|
box-sizing: border-box;
|
|
1032
1032
|
position: relative;
|
|
@@ -1107,8 +1107,8 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
1107
1107
|
z-index: ${Mn.buttonsZIndex};
|
|
1108
1108
|
opacity: 1;
|
|
1109
1109
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1110
|
-
${
|
|
1111
|
-
${
|
|
1110
|
+
${Et(Qr.backgroundColor,"transparent")};
|
|
1111
|
+
${Et(Qr.color,Mn.buttonsColor)};
|
|
1112
1112
|
}
|
|
1113
1113
|
|
|
1114
1114
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1151,7 +1151,7 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
1151
1151
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1152
1152
|
background-color: ${Mn.colorSurface};
|
|
1153
1153
|
}
|
|
1154
|
-
`;var Pn=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class
|
|
1154
|
+
`;var Pn=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Fn extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class zn extends Ft{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 r(200),this.updateScrollDebouncer=new r(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,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||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=yr({"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":Ii}),e=this.controls&&this.withScroll;return ot`
|
|
1155
1155
|
<div part="container" class="${t}">
|
|
1156
1156
|
<ft-button
|
|
1157
1157
|
class="ft-snap-scroll--previous"
|
|
@@ -1175,7 +1175,7 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
1175
1175
|
@click=${this.next}
|
|
1176
1176
|
></ft-button>
|
|
1177
1177
|
</div>
|
|
1178
|
-
`}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==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))),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
|
|
1178
|
+
`}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==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))),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 Fn(this.currentElement,this.elements[this.currentElement]))}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,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.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)}}zn.elementDefinitions={"ft-button":an},zn.styles=An,Pn([s({type:Boolean})],zn.prototype,"horizontal",void 0),Pn([s({type:Boolean})],zn.prototype,"hideScrollbar",void 0),Pn([s({type:Boolean})],zn.prototype,"controls",void 0),Pn([s({type:Boolean})],zn.prototype,"limitSize",void 0),Pn([a()],zn.prototype,"elements",void 0),Pn([a()],zn.prototype,"currentElement",void 0),Pn([a()],zn.prototype,"withScroll",void 0),Pn([a()],zn.prototype,"startReached",void 0),Pn([a()],zn.prototype,"endReached",void 0),Pn([c(".ft-snap-scroll--content")],zn.prototype,"contentSlot",void 0),b("ft-snap-scroll")(zn);const Ln=kt.external(Ct.colorOutline,"Design system"),Un=kt.external(Ct.colorOnSurface,"Design system"),In=kt.external(Ct.colorOnSurfaceMedium,"Design system"),Tn=kt.external(Ct.colorPrimary,"Design system"),Bn=kt.external(Ct.colorSurface,"Design system"),_n=kt.external(Ct.transitionDuration,"Design system"),Dn=kt.external(Ct.transitionTimingFunction,"Design system"),Wn=[Go,O`
|
|
1179
1179
|
:host {
|
|
1180
1180
|
display: flex;
|
|
1181
1181
|
max-height: 100%;
|
|
@@ -1198,13 +1198,13 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
1198
1198
|
flex-shrink: 0;
|
|
1199
1199
|
padding: 0 10px;
|
|
1200
1200
|
margin-bottom: 8px;
|
|
1201
|
-
${
|
|
1201
|
+
${Et(Zi.fontSize,"14px")};
|
|
1202
1202
|
}
|
|
1203
1203
|
|
|
1204
1204
|
.ft-filter--header ft-button {
|
|
1205
1205
|
flex-shrink: 0;
|
|
1206
1206
|
margin-left: auto;
|
|
1207
|
-
${
|
|
1207
|
+
${Et(Qr.iconSize,"18px")};
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
1210
|
.ft-filter--label {
|
|
@@ -1212,8 +1212,8 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
1212
1212
|
flex-shrink: 1;
|
|
1213
1213
|
flex-grow: 1;
|
|
1214
1214
|
word-break: break-word;
|
|
1215
|
-
${
|
|
1216
|
-
${
|
|
1215
|
+
${Et(Zi.lineHeight,"22px")};
|
|
1216
|
+
${Et(Zi.fontWeight,"bold")};
|
|
1217
1217
|
}
|
|
1218
1218
|
|
|
1219
1219
|
.ft-filter--filter {
|
|
@@ -1224,8 +1224,8 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
1224
1224
|
padding: 0 10px;
|
|
1225
1225
|
overflow: hidden;
|
|
1226
1226
|
height: 32px;
|
|
1227
|
-
transition: height ${
|
|
1228
|
-
margin ${
|
|
1227
|
+
transition: height ${_n} ${Dn},
|
|
1228
|
+
margin ${_n} ${Dn};
|
|
1229
1229
|
transition-delay: 500ms;
|
|
1230
1230
|
}
|
|
1231
1231
|
|
|
@@ -1240,9 +1240,9 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
1240
1240
|
border-radius: 4px;
|
|
1241
1241
|
border: 1px solid ${Ln};
|
|
1242
1242
|
padding: 4px;
|
|
1243
|
-
background-color: ${
|
|
1243
|
+
background-color: ${Bn};
|
|
1244
1244
|
color: ${Un};
|
|
1245
|
-
outline-color: ${
|
|
1245
|
+
outline-color: ${Tn};
|
|
1246
1246
|
}
|
|
1247
1247
|
|
|
1248
1248
|
input::placeholder {
|
|
@@ -1287,7 +1287,7 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
1287
1287
|
slot:not([name]) {
|
|
1288
1288
|
display: none;
|
|
1289
1289
|
}
|
|
1290
|
-
`];var Hn=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Vn extends CustomEvent{constructor(t){super("change",{detail:t})}}class qn extends
|
|
1290
|
+
`];var Hn=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Vn extends CustomEvent{constructor(t){super("change",{detail:t})}}class qn extends Ft{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 r(300),this.changeDebouncer=new r(10),this.lastDispatchedValues=[]}get flatOptions(){return p(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,i=this.filterPlaceHolder.replace("{0}",this.label);return ot`
|
|
1291
1291
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1292
1292
|
part="container">
|
|
1293
1293
|
${this.label||t?ot`
|
|
@@ -1359,20 +1359,20 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
1359
1359
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1360
1360
|
noValuesLabel="${this.noValuesLabel}"
|
|
1361
1361
|
></ft-filter-level>
|
|
1362
|
-
`}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 i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),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;v(this.lastDispatchedValues,t)||(this.dispatchEvent(new Vn(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)}}qn.elementDefinitions={"ft-button":an,"ft-filter-level":Nn,"ft-snap-scroll":
|
|
1362
|
+
`}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 i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),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;v(this.lastDispatchedValues,t)||(this.dispatchEvent(new Vn(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)}}qn.elementDefinitions={"ft-button":an,"ft-filter-level":Nn,"ft-snap-scroll":zn,"ft-typography":rr},qn.styles=Wn,Hn([s({type:String})],qn.prototype,"id",void 0),Hn([s({type:String})],qn.prototype,"label",void 0),Hn([s({type:String})],qn.prototype,"filterPlaceHolder",void 0),Hn([s({type:String})],qn.prototype,"clearButtonLabel",void 0),Hn([s({type:String})],qn.prototype,"moreValuesButtonLabel",void 0),Hn([s({type:String})],qn.prototype,"noValuesLabel",void 0),Hn([y([])],qn.prototype,"options",void 0),Hn([s({type:Boolean})],qn.prototype,"multivalued",void 0),Hn([s({type:Boolean})],qn.prototype,"disabled",void 0),Hn([s({type:Boolean})],qn.prototype,"raiseSelectedOptions",void 0),Hn([s({type:Number})],qn.prototype,"displayedValuesLimit",void 0),Hn([s({type:Boolean})],qn.prototype,"hideClearButton",void 0),Hn([c(".ft-filter--slot")],qn.prototype,"slotElement",void 0),Hn([c(".ft-filter--container")],qn.prototype,"container",void 0),Hn([c(".ft-filter--values")],qn.prototype,"valuesContainer",void 0),Hn([c(".ft-filter--levels")],qn.prototype,"levelsContainer",void 0),Hn([a()],qn.prototype,"lastLevelHasHiddenvalues",void 0),Hn([c(".ft-filter--filter input")],qn.prototype,"filterInput",void 0),Hn([function(t){return l({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}(".ft-filter--levels ft-filter-level")],qn.prototype,"levels",void 0),Hn([a()],qn.prototype,"withScroll",void 0),Hn([a()],qn.prototype,"filter",void 0),Hn([a()],qn.prototype,"slideIn",void 0),Hn([a()],qn.prototype,"slideOut",void 0);var Kn=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Zn extends Ft{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return ot`
|
|
1363
1363
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1364
|
-
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Zn.elementDefinitions={},Kn([s({type:String})],Zn.prototype,"label",void 0),Kn([s({type:Object,converter:t=>t})],Zn.prototype,"value",void 0),Kn([s({type:Boolean,reflect:!0})],Zn.prototype,"selected",void 0),Kn([s({type:Object})],Zn.prototype,"subOptions",void 0),Kn([y({})],Zn.prototype,"renderOption",void 0),Kn([c(".ft-filter-option--slot")],Zn.prototype,"slotElement",void 0),b("ft-filter")(qn),b("ft-filter-option")(Zn);const Jn={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},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}},Xn=
|
|
1365
|
-
`,Qn=
|
|
1364
|
+
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Zn.elementDefinitions={},Kn([s({type:String})],Zn.prototype,"label",void 0),Kn([s({type:Object,converter:t=>t})],Zn.prototype,"value",void 0),Kn([s({type:Boolean,reflect:!0})],Zn.prototype,"selected",void 0),Kn([s({type:Object})],Zn.prototype,"subOptions",void 0),Kn([y({})],Zn.prototype,"renderOption",void 0),Kn([c(".ft-filter-option--slot")],Zn.prototype,"slotElement",void 0),b("ft-filter")(qn),b("ft-filter-option")(Zn);const Jn={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},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}},Xn=O`
|
|
1365
|
+
`,Qn=Pi.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 Gn{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Qn.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?Gn.build(t):null!==(e=Gn.API)&&void 0!==e?e:Gn.API=Gn.build()}static await(t){return new Promise((e=>{let i=Gn.get(t);if(i)e(i);else{const o=Qn.subscribe((()=>{i=Gn.get(t),i&&(o(),e(i))}))}}))}}var Yn;const ts=Symbol("clearAfterUnitTest");class es{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[Yn]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=Qn.getState().uiLocale,Qn.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Qn.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};v(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,r,n;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(r=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==r?r:{};return new Ut(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>d(0).then((()=>t())).catch((()=>null)))))}}Yn=ts,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new es((async(t,e)=>(await Gn.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new es((async(t,e)=>(await Gn.await()).getCustomMessageContext(t,e))));const is=window.FluidTopicsI18nService,os=window.FluidTopicsCustomI18nService;var rs=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class ns extends Ft{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=()=>Gn.get(),this.cache=new o,this.cleanSessionDebouncer=new r}render(){return ot`
|
|
1366
1366
|
<slot></slot>
|
|
1367
|
-
`}updated(t){super.updated(t),t.has("baseUrl")&&Qn.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Qn.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Qn.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Qn.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Qn.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Qn.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Qn.actions.setSession(this.session),t.has("availableUiLocales")&&Qn.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>is.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()))))}}ns.elementDefinitions={},ns.styles=Xn,rs([s()],ns.prototype,"baseUrl",void 0),rs([s()],ns.prototype,"apiIntegrationIdentifier",void 0),rs([s()],ns.prototype,"uiLocale",void 0),rs([y([])],ns.prototype,"availableUiLocales",void 0),rs([s({type:Boolean})],ns.prototype,"editorMode",void 0),rs([s({type:Boolean})],ns.prototype,"noCustom",void 0),rs([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ns.prototype,"noCustomComponent",void 0),rs([s({type:Boolean})],ns.prototype,"withManualResources",void 0),rs([y([])],ns.prototype,"messageContexts",void 0),rs([y(void 0)],ns.prototype,"session",void 0),rs([s({type:Object})],ns.prototype,"apiProvider",void 0),b("ft-app-context")(ns);class ss{static async build(){return new ss(await Gn.await())}constructor(t){this.api=t,this.cache=new o,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.cache.get(`search-${this.hash(t)}`,(()=>this.api.search(t)),18e4)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}hash(t){return JSON.stringify(t).split("").reduce(((t,e)=>(t<<5)-t+e.charCodeAt(0)|0),0)}}class as extends Event{constructor(){super(as.eventName)}}as.eventName="search-context-clear-all-filters";class ls{static build(t){return new ls((t=>
|
|
1368
|
-
`;var bs=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const ys=Symbol("i18nProperties"),gs=Symbol("i18nUnsubs");function xs(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?os:is}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[ys])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[ys])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ys]&&new Set([...this[ys].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[gs].has(t)||this[gs].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[gs].forEach((t=>t())),this[gs].clear()}}return e=gs,bs([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class ms extends(xs(
|
|
1367
|
+
`}updated(t){super.updated(t),t.has("baseUrl")&&Qn.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Qn.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Qn.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Qn.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Qn.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Qn.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Qn.actions.setSession(this.session),t.has("availableUiLocales")&&Qn.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>is.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()))))}}ns.elementDefinitions={},ns.styles=Xn,rs([s()],ns.prototype,"baseUrl",void 0),rs([s()],ns.prototype,"apiIntegrationIdentifier",void 0),rs([s()],ns.prototype,"uiLocale",void 0),rs([y([])],ns.prototype,"availableUiLocales",void 0),rs([s({type:Boolean})],ns.prototype,"editorMode",void 0),rs([s({type:Boolean})],ns.prototype,"noCustom",void 0),rs([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ns.prototype,"noCustomComponent",void 0),rs([s({type:Boolean})],ns.prototype,"withManualResources",void 0),rs([y([])],ns.prototype,"messageContexts",void 0),rs([y(void 0)],ns.prototype,"session",void 0),rs([s({type:Object})],ns.prototype,"apiProvider",void 0),b("ft-app-context")(ns);class ss{static async build(){return new ss(await Gn.await())}constructor(t){this.api=t,this.cache=new o,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.cache.get(`search-${this.hash(t)}`,(()=>this.api.search(t)),18e4)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}hash(t){return JSON.stringify(t).split("").reduce(((t,e)=>(t<<5)-t+e.charCodeAt(0)|0),0)}}class as extends Event{constructor(){super(as.eventName)}}as.eventName="search-context-clear-all-filters";class ls{static build(t){return new ls((t=>Pi.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:Jn}))(t.trim()||"context"),ss.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.searchDebouncer=new r(10),this.suggestDebouncer=new r(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 d(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,i=this.store.getState().request.contentLocale;if(t!=i){if(e){const o=t=>e.some((e=>e.lang==t));o(t)||(t=o(i)?i: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()}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new as)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let i=this.facetIds.filter((e=>e!=t));e&&i.push(e),this.facetIds=i,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 i=this.store.getState().request.filters,o={key:t,values:e,negative:!1},r=[...i.filter((e=>e.key!==t)),o];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()}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;try{let e=await this.service.launchSearch(this.store.getState().request);if(e.paging.currentPage<=1)this.store.actions.setResults(e.results),this.store.actions.setFacets(e.facets),this.store.actions.setSpellcheck(e.spellcheck);else{let i=(null!==(t=this.store.getState().results)&&void 0!==t?t:[]).concat(e.results);this.store.actions.setResults(i)}this.store.actions.setPaging(e.paging)}catch(t){this.errorHandler&&this.errorHandler(t)}}async fetchSuggestData(){try{let t={input:this.store.getState().liveQuery,filters:this.store.getState().request.filters,sort:this.store.getState().request.sort,contentLocale:this.store.getState().request.contentLocale},e=await this.service.launchSuggest(t);this.store.actions.setSuggestResults(e.suggestions)}catch(t){this.errorHandler&&this.errorHandler(t)}}}var cs=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class hs extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const us=Symbol("registerInterval");class fs extends(function(t){var e;class i 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[us]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[us]):this.dispatchEvent(new hs)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=us,cs([a()],i.prototype,"stateManager",void 0),i}(Vt)){}function ds(t){return t.rootNodes.map((t=>ps(t)))}function ps(t){return{label:t.label,value:t.value,selected:t.selected,subOptions:t.childNodes.map((t=>ps(t)))}}const vs=O`
|
|
1368
|
+
`;var bs=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const ys=Symbol("i18nProperties"),gs=Symbol("i18nUnsubs");function xs(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?os:is}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[ys])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[ys])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ys]&&new Set([...this[ys].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[gs].has(t)||this[gs].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[gs].forEach((t=>t())),this[gs].clear()}}return e=gs,bs([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class ms extends(xs(Ft)){}class ws extends(xs(Vt)){}var $s=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Ss extends ws{constructor(){super(),this.editorMode=!1,this.addStore(Qn)}render(){return this.key&&this.context?ot`
|
|
1369
1369
|
<span class="ft-i18n">
|
|
1370
1370
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1371
1371
|
</span>
|
|
1372
|
-
`:this.editorMode?"Select a context and a label key.":nt}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}
|
|
1373
|
-
`;class
|
|
1372
|
+
`:this.editorMode?"Select a context and a label key.":nt}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Ss.elementDefinitions={},Ss.styles=vs,$s([Fi()],Ss.prototype,"editorMode",void 0),$s([s()],Ss.prototype,"context",void 0),$s([s()],Ss.prototype,"key",void 0),$s([y([])],Ss.prototype,"args",void 0),$s([s()],Ss.prototype,"defaultMessage",void 0);class Os{static build(t){return new Os(t)}static fromGwt(t){return new Os(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>is.resolveMessage(this.name,e,...t)})}}b("ft-i18n")(Ss);const ks=Os.build("designedSearchFacet"),Es=O`
|
|
1373
|
+
`;class Cs{async listMySearches(){var t;return(null===(t=Qn.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Gn.await()).listMySearches(Qn.getState().session.profile.userId):[]}}const js=Pi.get({name:"ft-user-assets",reducers:{setSavedSearches:(t,e)=>{t.savedSearches=e.payload}},initialState:{savedSearches:void 0}});const Rs=new class{clear(){this.clearMySearches()}clearMySearches(){js.actions.setSavedSearches(void 0)}async reloadMySearches(){const t=new Cs,e=await t.listMySearches();js.actions.setSavedSearches(e)}};var Ns=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Ms extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class As extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class Ps extends CustomEvent{constructor(t,e,i){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:i}})}}class Fs extends Vt{get stateManager(){return null==this._stateManager&&(this._stateManager=ls.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.filters=[],this.sort=[],this.addStore(Qn)}render(){return ot`
|
|
1374
1374
|
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
1375
|
-
`}updated(t){super.updated(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(),this.session.sessionAuthenticated||Rs.clear()),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)}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 As(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new Ps(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 Ms(t))}reloadSavedSearches(){Rs.clearMySearches()}}
|
|
1375
|
+
`}updated(t){super.updated(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(),this.session.sessionAuthenticated||Rs.clear()),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)}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 As(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new Ps(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 Ms(t))}reloadSavedSearches(){Rs.clearMySearches()}}Fs.elementDefinitions={},Fs.styles=Es,Ns([s()],Fs.prototype,"query",void 0),Ns([s()],Fs.prototype,"contentLocale",void 0),Ns([s({type:Number})],Fs.prototype,"pageSize",void 0),Ns([y([])],Fs.prototype,"filters",void 0),Ns([y([])],Fs.prototype,"sort",void 0),Ns([Fi({store:"search"})],Fs.prototype,"request",void 0),Ns([Fi({store:"search"})],Fs.prototype,"paging",void 0),Ns([Fi({store:"search",selector:t=>t.spellcheck})],Fs.prototype,"autocorrect",void 0),Ns([Fi({store:Qn.name})],Fs.prototype,"session",void 0),b("ft-search-context")(Fs);var zs,Ls=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Us extends(xs(fs)){constructor(){super(...arguments),this.facetId="",this.maxValues=7,this.raiseSelectedOptions=!1}setSearchStateManager(t){super.setSearchStateManager(t),this.facetId&&t.addFacet(this.facetId),this.addI18nContext(ks),this.addStore(Qn)}render(){var t;let e=null===(t=this.facets)||void 0===t?void 0:t.find((t=>t.key==this.facetId));return e?ot`
|
|
1376
1376
|
<ft-filter
|
|
1377
1377
|
part="filter"
|
|
1378
1378
|
label="${e.label}"
|
|
@@ -1388,4 +1388,4 @@ class Dr extends lr{constructor(t){if(super(t),this.et=nt,t.type!==sr)throw Erro
|
|
|
1388
1388
|
noValuesLabel="${ks.messages.noFilterValuesAvailable()}"
|
|
1389
1389
|
@change=${this.onFacetValueSelected}
|
|
1390
1390
|
></ft-filter>
|
|
1391
|
-
`:this.editorMode?this.facetId?ot`${ks.messages.noFilterValuesAvailable()}`:ot`${ks.messages.noMetadataSelected()}`:nt}updated(t){var e;super.updated(t),t.has("facetId")&&(null===(e=this.stateManager)||void 0===e||e.replaceFacet(t.get("facetId"),this.facetId))}onFacetValueSelected(t){var e;null===(e=this.stateManager)||void 0===e||e.setFilter(this.facetId,t.detail)}clearFacet(){this.filter.clear()}}Us.elementDefinitions={"ft-filter":qn,"ft-typography":rr},Us.styles=
|
|
1391
|
+
`:this.editorMode?this.facetId?ot`${ks.messages.noFilterValuesAvailable()}`:ot`${ks.messages.noMetadataSelected()}`:nt}updated(t){var e;super.updated(t),t.has("facetId")&&(null===(e=this.stateManager)||void 0===e||e.replaceFacet(t.get("facetId"),this.facetId))}onFacetValueSelected(t){var e;null===(e=this.stateManager)||void 0===e||e.setFilter(this.facetId,t.detail)}clearFacet(){this.filter.clear()}}Us.elementDefinitions={"ft-filter":qn,"ft-typography":rr},Us.styles=Ti,Ls([s()],Us.prototype,"facetId",void 0),Ls([s({type:Number})],Us.prototype,"maxValues",void 0),Ls([s({type:Boolean})],Us.prototype,"raiseSelectedOptions",void 0),Ls([Fi({store:"search"})],Us.prototype,"request",void 0),Ls([Fi({store:"search"})],Us.prototype,"facets",void 0),Ls([Fi({store:Qn.name})],Us.prototype,"editorMode",void 0),Ls([c("ft-filter")],Us.prototype,"filter",void 0),Ls([(zs={eventName:as.eventName},(t,e)=>{const i=t;i.reduxEventListeners=i.reduxEventListeners||new Map,i.reduxEventListeners.set(e,zs)})],Us.prototype,"clearFacet",null),b("ft-search-facet")(Us),t.FtSearchFacet=Us,t.FtSearchFacetCssVariables={},t.styles=Ti}({});
|