@fluid-topics/ft-search-input 1.0.57 → 1.0.59
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-input.light.js +27 -27
- package/build/ft-search-input.min.js +193 -193
- package/package.json +9 -9
|
@@ -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,n=window.customElements,o=new WeakMap,r=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,o){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(o))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=o.prototype.attributeChangedCallback,l=new Set(o.observedAttributes||[]);h(o,l,a);const c={elementClass:o,connectedCallback:o.prototype.connectedCallback,disconnectedCallback:o.prototype.disconnectedCallback,adoptedCallback:o.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:o.formAssociated,formAssociatedCallback:o.prototype.formAssociatedCallback,formDisabledCallback:o.prototype.formDisabledCallback,formResetCallback:o.prototype.formResetCallback,formStateRestoreCallback:o.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(o,c);let u=i.call(n,t);u||(u=f(t),e.call(n,t,u)),this===window.customElements&&(s.set(o,c),c.standInClass=u);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)r.delete(t),d(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(o),this._whenDefinedPromises.delete(t)),o}upgrade(){b.push(this),n.upgrade.apply(n,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 n=this._awaitingUpgrade.get(e);n||this._awaitingUpgrade.set(e,n=new Set),i?n.add(t):n.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),o.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,u=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},f=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=u(i)||window.customElements,o=n._getDefinition(e);return o?d(i,o):r.set(i,n),i}connectedCallback(){const t=o.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=o.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=o.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=o.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=o.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=o.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=o.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,i)=>{if(0===e.size||void 0===i)return;const n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o),i.call(this,r,t,o)}else n.call(this,r,o)});const o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n),i.call(this,n,t,null)}else o.call(this,n)})},p=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):p(i)},d=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),o.set(t,e),l=t;try{new e.elementClass}catch(t){p(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 n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=n.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 n=e.call(this,...i);return t.set(n,this),n},i.forEach((e=>{const i=window.ElementInternals.prototype,n=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==o.get(i).formAssociated)throw new DOMException(`Failed to execute ${n} on 'ElementInternals': The target element is not a form-associated custom element.`);n?.call(this,...e)}}));class n extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const n=t.getAttribute("name"),o=e.get(n)||[];this[+i]=t,o.push(t),e.set(n,o)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new n(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=o.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ro){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(null!==i)try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,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,n)=>t((t=>{this.isCanceled?n(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?n(new e("Promise has been canceled",void 0,t)):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{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,n){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const o=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=o,o.then((e=>(this.content[t]=e,null!=n&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),n)),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 o{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 n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,o=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}o(!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,n=window.customElements,o=new WeakMap,r=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,o){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(o))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=o.prototype.attributeChangedCallback,l=new Set(o.observedAttributes||[]);h(o,l,a);const c={elementClass:o,connectedCallback:o.prototype.connectedCallback,disconnectedCallback:o.prototype.disconnectedCallback,adoptedCallback:o.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:o.formAssociated,formAssociatedCallback:o.prototype.formAssociatedCallback,formDisabledCallback:o.prototype.formDisabledCallback,formResetCallback:o.prototype.formResetCallback,formStateRestoreCallback:o.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(o,c);let u=i.call(n,t);u||(u=f(t),e.call(n,t,u)),this===window.customElements&&(s.set(o,c),c.standInClass=u);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)r.delete(t),d(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(o),this._whenDefinedPromises.delete(t)),o}upgrade(){b.push(this),n.upgrade.apply(n,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 n=this._awaitingUpgrade.get(e);n||this._awaitingUpgrade.set(e,n=new Set),i?n.add(t):n.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),o.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,u=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},f=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=u(i)||window.customElements,o=n._getDefinition(e);return o?d(i,o):r.set(i,n),i}connectedCallback(){const t=o.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=o.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=o.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=o.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=o.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=o.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=o.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,i)=>{if(0===e.size||void 0===i)return;const n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o),i.call(this,r,t,o)}else n.call(this,r,o)});const o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n),i.call(this,n,t,null)}else o.call(this,n)})},p=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):p(i)},d=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),o.set(t,e),l=t;try{new e.elementClass}catch(t){p(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 n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=n.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 n=e.call(this,...i);return t.set(n,this),n},i.forEach((e=>{const i=window.ElementInternals.prototype,n=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==o.get(i).formAssociated)throw new DOMException(`Failed to execute ${n} on 'ElementInternals': The target element is not a form-associated custom element.`);n?.call(this,...e)}}));class n extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const n=t.getAttribute("name"),o=e.get(n)||[];this[+i]=t,o.push(t),e.set(n,o)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new n(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=o.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ao){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(null!==i)try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,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,n)=>t((t=>{this.isCanceled?n(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?n(new e("Promise has been canceled",void 0,t)):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{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,n){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const o=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=o,o.then((e=>(this.content[t]=e,null!=n&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),n)),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 o{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 n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,o=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}o(!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
|
|
@@ -98,17 +98,17 @@ var gt,mt;let xt=class extends A{constructor(){super(...arguments),this.renderOp
|
|
|
98
98
|
display: inline-block;
|
|
99
99
|
width: 0;
|
|
100
100
|
}
|
|
101
|
-
`;class Ft{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}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,Lt,zt;const Bt=Symbol("internalReduxEventsUnsubscribers"),_t=Symbol("internalStoresUnsubscribers"),Dt=Symbol("internalStores");class Wt extends Rt{constructor(){super(...arguments),this[Tt]=new Map,this[Lt]=new Map,this[zt]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Dt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Dt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Dt].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[Dt].delete(e)}setupStore(t,e){this[Dt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Dt].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[_t].has(t.store):this[_t].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[_t].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 n=t=>this[i](t);e.eventBus.addEventListener(t.eventName,n),this[Bt].push((()=>e.eventBus.removeEventListener(t.eventName,n)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[_t].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Bt].forEach((t=>t())),this[Bt]=[]}unsubscribeFromStore(t){this[_t].has(t)&&this[_t].get(t)(),this[_t].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Kt(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];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 Ht(t){return!!t&&!!t[Re]}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)===Ae}(t)||Array.isArray(t)||!!t[Me]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Me])||Qt(t)||Yt(t))}function qt(t,e,i){void 0===i&&(i=!1),0===Vt(t)?(i?Object.keys:Ue)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Vt(t){var e=t[Re];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Qt(t)?2:Yt(t)?3:0}function Jt(t,e){return 2===Vt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Xt(t,e,i){var n=Vt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Gt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Qt(t){return ke&&t instanceof Map}function Yt(t){return je&&t instanceof Set}function te(t){return t.o||t.t}function ee(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Pe(t);delete e[Re];for(var i=Ue(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function ie(t,e){return void 0===e&&(e=!1),oe(t)||Ht(t)||!Zt(t)||(Vt(t)>1&&(t.set=t.add=t.clear=t.delete=ne),Object.freeze(t),e&&qt(t,(function(t,e){return ie(e,!0)}),!0)),t}function ne(){Kt(2)}function oe(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function re(t){var e=Fe[t];return e||Kt(18,t),e}function se(){return Se}function ae(t,e){e&&(re("Patches"),t.u=[],t.s=[],t.v=e)}function le(t){ce(t),t.p.forEach(fe),t.p=null}function ce(t){t===Se&&(Se=t.l)}function ue(t){return Se={p:[],l:Se,h:t,m:!0,_:0}}function fe(t){var e=t[Re];0===e.i||1===e.i?e.j():e.g=!0}function he(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||re("ES5").S(e,t,n),n?(i[Re].P&&(le(e),Kt(4)),Zt(t)&&(t=pe(e,t),e.l||ve(e,t)),e.u&&re("Patches").M(i[Re].t,t,e.u,e.s)):t=pe(e,i,[]),le(e),e.u&&e.v(e.u,e.s),t!==Ne?t:void 0}function pe(t,e,i){if(oe(e))return e;var n=e[Re];if(!n)return qt(e,(function(o,r){return de(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ve(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=ee(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),qt(r,(function(e,r){return de(t,n,o,e,r,i,s)})),ve(t,o,!1),i&&t.u&&re("Patches").N(n,i,t.u,t.s)}return n.o}function de(t,e,i,n,o,r,s){if(Ht(o)){var a=pe(t,o,r&&e&&3!==e.i&&!Jt(e.R,n)?r.concat(n):void 0);if(Xt(i,n,a),!Ht(a))return;t.m=!1}else s&&i.add(o);if(Zt(o)&&!oe(o)){if(!t.h.D&&t._<1)return;pe(t,o),e&&e.A.l||ve(t,o)}}function ve(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&ie(e,i)}function be(t,e){var i=t[Re];return(i?te(i):t)[e]}function ye(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ge(t){t.P||(t.P=!0,t.l&&ge(t.l))}function me(t){t.o||(t.o=ee(t.t))}function xe(t,e,i){var n=Qt(e)?re("MapSet").F(e,i):Yt(e)?re("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:se(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Ie;i&&(o=[n],r=Te);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):re("ES5").J(e,i);return(i?i.A:se()).p.push(n),n}function we(t){return Ht(t)||Kt(22,t),function t(e){if(!Zt(e))return e;var i,n=e[Re],o=Vt(e);if(n){if(!n.P&&(n.i<4||!re("ES5").K(n)))return n.t;n.I=!0,i=$e(e,o),n.I=!1}else i=$e(e,o);return qt(i,(function(e,o){n&&function(t,e){return 2===Vt(t)?t.get(e):t[e]}(n.t,e)===o||Xt(i,e,t(o))})),3===o?new Set(i):i}(t)}function $e(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ee(t)}Tt=_t,Lt=Dt,zt=Bt;var Oe,Se,Ee="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ke="undefined"!=typeof Map,je="undefined"!=typeof Set,Ce="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ne=Ee?Symbol.for("immer-nothing"):((Oe={})["immer-nothing"]=!0,Oe),Me=Ee?Symbol.for("immer-draftable"):"__$immer_draftable",Re=Ee?Symbol.for("immer-state"):"__$immer_state",Ae=""+Object.prototype.constructor,Ue="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Pe=Object.getOwnPropertyDescriptors||function(t){var e={};return Ue(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Fe={},Ie={get:function(t,e){if(e===Re)return t;var i=te(t);if(!Jt(i,e))return function(t,e,i){var n,o=ye(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Zt(n)?n:n===be(t.t,e)?(me(t),t.o[e]=xe(t.A.h,n,t)):n},has:function(t,e){return e in te(t)},ownKeys:function(t){return Reflect.ownKeys(te(t))},set:function(t,e,i){var n=ye(te(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=be(te(t),e),r=null==o?void 0:o[Re];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Gt(i,o)&&(void 0!==i||Jt(t.t,e)))return!0;me(t),ge(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!==be(t.t,e)||e in t.t?(t.R[e]=!1,me(t),ge(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=te(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Kt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Kt(12)}},Te={};qt(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 Le=function(){function t(t){var e=this;this.O=Ce,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Kt(6),void 0!==n&&"function"!=typeof n&&Kt(7),Zt(t)){var a=ue(e),l=xe(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?le(a):ce(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ae(a,n),he(t,a)}),(function(t){throw le(a),t})):(ae(a,n),he(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Ne&&(s=void 0),e.D&&ie(s,!0),n){var u=[],f=[];re("Patches").M(t,s,u,f),n(u,f)}return s}Kt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"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)||Kt(8),Ht(t)&&(t=we(t));var e=ue(this),i=xe(this,t,void 0);return i[Re].C=!0,ce(e),i},e.finishDraft=function(t,e){var i=(t&&t[Re]).A;return ae(i,e),he(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ce&&Kt(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=re("Patches").$;return Ht(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),ze=new Le,Be=ze.produce;function _e(t){return _e="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},_e(t)}function De(t){var e=function(t,e){if("object"!==_e(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==_e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===_e(e)?e:String(e)}function We(t,e,i){return(e=De(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ke(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function He(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ke(Object(i),!0).forEach((function(e){We(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ke(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. "}ze.produceWithPatches.bind(ze),ze.setAutoFreeze.bind(ze),ze.setUseProxies.bind(ze),ze.applyPatches.bind(ze),ze.createDraft.bind(ze),ze.finishDraft.bind(ze);var qe="function"==typeof Symbol&&Symbol.observable||"@@observable",Ve=function(){return Math.random().toString(36).substring(7).split("").join(".")},Je={INIT:"@@redux/INIT"+Ve(),REPLACE:"@@redux/REPLACE"+Ve(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ve()}};function Xe(t,e,i){var n;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(Xe)(t,e)}if("function"!=typeof t)throw new Error(Ze(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(Ze(3));return r}function f(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 h(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,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return h({type:Je.INIT}),(n={dispatch:h,subscribe:f,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ze(10));o=t,h({type:Je.REPLACE})}})[qe]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ze(11));function i(){t.next&&t.next(u())}return i(),{unsubscribe:e(i)}}})[qe]=function(){return this},t},n}function Ge(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Je.INIT}))throw new Error(Ze(12));if(void 0===i(void 0,{type:Je.PROBE_UNKNOWN_ACTION()}))throw new Error(Ze(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],u=t[l],f=c(u,e);if(void 0===f)throw e&&e.type,new Error(Ze(14));o[l]=f,n=n||f!==u}return(n=n||s.length!==Object.keys(t).length)?o: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 Ye(){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),n=function(){throw new Error(Ze(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=Qe.apply(void 0,r)(i.dispatch),He(He({},i),{},{dispatch:n})}}}function ti(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var ei=ti();ei.withExtraArgument=ti;var ii,ni=ei,oi=(ii=function(t,e){return ii=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])},ii(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}ii(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ri=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},si=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},ai=Object.defineProperty,li=Object.defineProperties,ci=Object.getOwnPropertyDescriptors,ui=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,pi=function(t,e,i){return e in t?ai(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},di=function(t,e){for(var i in e||(e={}))fi.call(e,i)&&pi(t,i,e[i]);if(ui)for(var n=0,o=ui(e);n<o.length;n++){i=o[n];hi.call(e,i)&&pi(t,i,e[i])}return t},vi=function(t,e){return li(t,ci(e))},bi="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 yi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return oi(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,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array),gi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return oi(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,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array);function mi(t){return Zt(t)?Be(t,(function(){})):t}function xi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new yi;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(ni.withExtraArgument(i.extraArgument)):n.push(ni));return n}(t)}}function wi(t){var e,i=xi(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,u=n.preloadedState,f=void 0===u?void 0:u,h=n.enhancers,p=void 0===h?void 0:h;if("function"==typeof r)e=r;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}(r))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=Ge(r)}var d=a;"function"==typeof d&&(d=d(i));var v=Ye.apply(void 0,d),b=Qe;c&&(b=bi(di({trace:!1},"object"==typeof c&&c)));var y=new gi(v),g=y;return Array.isArray(p)?g=si([v],p):"function"==typeof p&&(g=p(y)),Xe(e,f,b.apply(void 0,g))}function $i(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return di(di({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.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 Oi(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function Si(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:mi(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Oi(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,u=di(di({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?Oi(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return mi(t())};else{var c=mi(t);o=function(){return c}}function u(t,e){void 0===t&&(t=o());var i=si([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 n;if(Ht(t))return void 0===(n=i(t,e))?t:n;if(Zt(t))return Be(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return u.getInitialState=o,u}(n,(function(t){for(var e in u)t.addCase(e,u[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?$i(c,n):$i(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 Ei=["name","message","stack","code"],ki=function(t,e){this.payload=t,this.meta=e},ji=function(t,e){this.payload=t,this.meta=e},Ci=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=Ei;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function Ni(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 n=$i(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:vi(di({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=$i(t+"/pending",(function(t,e,i){return{payload:void 0,meta:vi(di({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=$i(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||Ci)(t||"Rejected"),meta:vi(di({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,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 u,f=(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}(),h=new s;function p(t){u=t,h.abort()}var d=function(){return s=this,d=null,v=function(){var s,d,v,b,y,g;return ri(this,(function(m){switch(m.label){case 0:return m.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===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:u||"Aborted"})}))})),a(o(f,t,null==(d=null==i?void 0:i.getPendingMeta)?void 0:d.call(i,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:f,signal:h.signal,abort:p,rejectWithValue:function(t,e){return new ki(t,e)},fulfillWithValue:function(t,e){return new ji(t,e)}})).then((function(e){if(e instanceof ki)throw e;return e instanceof ji?n(e.payload,f,t,e.meta):n(e,f,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof ki?r(null,f,t,g.payload,g.meta):r(g,f,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,d)).next())}));var s,d,v}();return Object.assign(d,{abort:p,requestId:f,arg:t,unwrap:function(){return d.then(Ni)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var Mi="listenerMiddleware";$i(Mi+"/add"),$i(Mi+"/removeAll"),$i(Mi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Re];return Ie.get(e,t)},set:function(e){var i=this[Re];Ie.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Re];if(!o.P)switch(o.i){case 5:n(o)&&ge(o);break;case 4:i(o)&&ge(o)}}}function i(t){for(var e=t.t,i=t.k,n=Ue(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==Re){var s=e[r];if(void 0===s&&!Jt(e,r))return!0;var a=i[r],l=a&&a[Re];if(l?l.t!==s:!Gt(a,s))return!0}}var c=!!e[Re];return n.length!==Ue(e).length+(c?0:1)}function n(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 n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){Fe[t]||(Fe[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=Pe(i);delete r[Re];for(var s=Ue(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:se(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Re,{value:r,writable:!0}),o},S:function(t,i,o){o?Ht(i)&&i[Re].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Re];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)qt(r,(function(e){e!==Re&&(void 0!==o[e]||Jt(o,e)?s[e]||t(r[e]):(s[e]=!0,ge(i)))})),qt(o,(function(t){void 0!==r[t]||Jt(r,t)||(s[t]=!1,ge(i))}));else if(5===a){if(n(i)&&(ge(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var u=Math.min(r.length,o.length),f=0;f<u;f++)r.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(r[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ri{static get(t){var e;const i="string"==typeof t?t:t.name,n="string"==typeof t?void 0:t,o=window.ftReduxStores[i];if(It(o))return o;if(null==n)return;const r=Si({...n,reducers:null!==(e=n.reducers)&&void 0!==e?e:{}}),s=wi({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[n.name]=new Ri(r,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=e,o=t[n];return o?(...t)=>{const e=o(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[n]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Ai=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!h(t,e),attribute:!1,...e};s(o)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}};var Ui,Pi,Fi;const Ii=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Fi=null===(Pi=null===(Ui=window.safari)||void 0===Ui?void 0:Ui.pushNotification)||void 0===Pi?void 0:Pi.toString())&&void 0!==Fi?Fi:""),Ti=1,Li=2,zi=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
101
|
+
`;class Ft{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}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,Lt,zt;const Bt=Symbol("internalReduxEventsUnsubscribers"),_t=Symbol("internalStoresUnsubscribers"),Dt=Symbol("internalStores");class Wt extends Rt{constructor(){super(...arguments),this[Tt]=new Map,this[Lt]=new Map,this[zt]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Dt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Dt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Dt].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[Dt].delete(e)}setupStore(t,e){this[Dt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Dt].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[_t].has(t.store):this[_t].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[_t].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 n=t=>this[i](t);e.eventBus.addEventListener(t.eventName,n),this[Bt].push((()=>e.eventBus.removeEventListener(t.eventName,n)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[_t].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Bt].forEach((t=>t())),this[Bt]=[]}unsubscribeFromStore(t){this[_t].has(t)&&this[_t].get(t)(),this[_t].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Kt(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];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 Ht(t){return!!t&&!!t[Re]}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)===Ae}(t)||Array.isArray(t)||!!t[Me]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Me])||Qt(t)||Yt(t))}function qt(t,e,i){void 0===i&&(i=!1),0===Vt(t)?(i?Object.keys:Ue)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Vt(t){var e=t[Re];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Qt(t)?2:Yt(t)?3:0}function Jt(t,e){return 2===Vt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Xt(t,e,i){var n=Vt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Gt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Qt(t){return ke&&t instanceof Map}function Yt(t){return je&&t instanceof Set}function te(t){return t.o||t.t}function ee(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Pe(t);delete e[Re];for(var i=Ue(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function ie(t,e){return void 0===e&&(e=!1),oe(t)||Ht(t)||!Zt(t)||(Vt(t)>1&&(t.set=t.add=t.clear=t.delete=ne),Object.freeze(t),e&&qt(t,(function(t,e){return ie(e,!0)}),!0)),t}function ne(){Kt(2)}function oe(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function re(t){var e=Fe[t];return e||Kt(18,t),e}function se(){return Se}function ae(t,e){e&&(re("Patches"),t.u=[],t.s=[],t.v=e)}function le(t){ce(t),t.p.forEach(fe),t.p=null}function ce(t){t===Se&&(Se=t.l)}function ue(t){return Se={p:[],l:Se,h:t,m:!0,_:0}}function fe(t){var e=t[Re];0===e.i||1===e.i?e.j():e.g=!0}function he(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||re("ES5").S(e,t,n),n?(i[Re].P&&(le(e),Kt(4)),Zt(t)&&(t=pe(e,t),e.l||ve(e,t)),e.u&&re("Patches").M(i[Re].t,t,e.u,e.s)):t=pe(e,i,[]),le(e),e.u&&e.v(e.u,e.s),t!==Ne?t:void 0}function pe(t,e,i){if(oe(e))return e;var n=e[Re];if(!n)return qt(e,(function(o,r){return de(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ve(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=ee(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),qt(r,(function(e,r){return de(t,n,o,e,r,i,s)})),ve(t,o,!1),i&&t.u&&re("Patches").N(n,i,t.u,t.s)}return n.o}function de(t,e,i,n,o,r,s){if(Ht(o)){var a=pe(t,o,r&&e&&3!==e.i&&!Jt(e.R,n)?r.concat(n):void 0);if(Xt(i,n,a),!Ht(a))return;t.m=!1}else s&&i.add(o);if(Zt(o)&&!oe(o)){if(!t.h.D&&t._<1)return;pe(t,o),e&&e.A.l||ve(t,o)}}function ve(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&ie(e,i)}function be(t,e){var i=t[Re];return(i?te(i):t)[e]}function ye(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ge(t){t.P||(t.P=!0,t.l&&ge(t.l))}function me(t){t.o||(t.o=ee(t.t))}function xe(t,e,i){var n=Qt(e)?re("MapSet").F(e,i):Yt(e)?re("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:se(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Ie;i&&(o=[n],r=Te);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):re("ES5").J(e,i);return(i?i.A:se()).p.push(n),n}function we(t){return Ht(t)||Kt(22,t),function t(e){if(!Zt(e))return e;var i,n=e[Re],o=Vt(e);if(n){if(!n.P&&(n.i<4||!re("ES5").K(n)))return n.t;n.I=!0,i=$e(e,o),n.I=!1}else i=$e(e,o);return qt(i,(function(e,o){n&&function(t,e){return 2===Vt(t)?t.get(e):t[e]}(n.t,e)===o||Xt(i,e,t(o))})),3===o?new Set(i):i}(t)}function $e(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ee(t)}Tt=_t,Lt=Dt,zt=Bt;var Oe,Se,Ee="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ke="undefined"!=typeof Map,je="undefined"!=typeof Set,Ce="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ne=Ee?Symbol.for("immer-nothing"):((Oe={})["immer-nothing"]=!0,Oe),Me=Ee?Symbol.for("immer-draftable"):"__$immer_draftable",Re=Ee?Symbol.for("immer-state"):"__$immer_state",Ae=""+Object.prototype.constructor,Ue="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Pe=Object.getOwnPropertyDescriptors||function(t){var e={};return Ue(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Fe={},Ie={get:function(t,e){if(e===Re)return t;var i=te(t);if(!Jt(i,e))return function(t,e,i){var n,o=ye(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Zt(n)?n:n===be(t.t,e)?(me(t),t.o[e]=xe(t.A.h,n,t)):n},has:function(t,e){return e in te(t)},ownKeys:function(t){return Reflect.ownKeys(te(t))},set:function(t,e,i){var n=ye(te(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=be(te(t),e),r=null==o?void 0:o[Re];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Gt(i,o)&&(void 0!==i||Jt(t.t,e)))return!0;me(t),ge(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!==be(t.t,e)||e in t.t?(t.R[e]=!1,me(t),ge(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=te(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Kt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Kt(12)}},Te={};qt(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 Le=function(){function t(t){var e=this;this.O=Ce,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Kt(6),void 0!==n&&"function"!=typeof n&&Kt(7),Zt(t)){var a=ue(e),l=xe(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?le(a):ce(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ae(a,n),he(t,a)}),(function(t){throw le(a),t})):(ae(a,n),he(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Ne&&(s=void 0),e.D&&ie(s,!0),n){var u=[],f=[];re("Patches").M(t,s,u,f),n(u,f)}return s}Kt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"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)||Kt(8),Ht(t)&&(t=we(t));var e=ue(this),i=xe(this,t,void 0);return i[Re].C=!0,ce(e),i},e.finishDraft=function(t,e){var i=(t&&t[Re]).A;return ae(i,e),he(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ce&&Kt(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=re("Patches").$;return Ht(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),ze=new Le,Be=ze.produce;function _e(t){return _e="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},_e(t)}function De(t){var e=function(t,e){if("object"!==_e(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==_e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===_e(e)?e:String(e)}function We(t,e,i){return(e=De(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ke(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function He(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ke(Object(i),!0).forEach((function(e){We(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ke(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. "}ze.produceWithPatches.bind(ze),ze.setAutoFreeze.bind(ze),ze.setUseProxies.bind(ze),ze.applyPatches.bind(ze),ze.createDraft.bind(ze),ze.finishDraft.bind(ze);var qe="function"==typeof Symbol&&Symbol.observable||"@@observable",Ve=function(){return Math.random().toString(36).substring(7).split("").join(".")},Je={INIT:"@@redux/INIT"+Ve(),REPLACE:"@@redux/REPLACE"+Ve(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ve()}};function Xe(t,e,i){var n;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(Xe)(t,e)}if("function"!=typeof t)throw new Error(Ze(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(Ze(3));return r}function f(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 h(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,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return h({type:Je.INIT}),(n={dispatch:h,subscribe:f,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ze(10));o=t,h({type:Je.REPLACE})}})[qe]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ze(11));function i(){t.next&&t.next(u())}return i(),{unsubscribe:e(i)}}})[qe]=function(){return this},t},n}function Ge(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Je.INIT}))throw new Error(Ze(12));if(void 0===i(void 0,{type:Je.PROBE_UNKNOWN_ACTION()}))throw new Error(Ze(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],u=t[l],f=c(u,e);if(void 0===f)throw e&&e.type,new Error(Ze(14));o[l]=f,n=n||f!==u}return(n=n||s.length!==Object.keys(t).length)?o: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 Ye(){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),n=function(){throw new Error(Ze(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=Qe.apply(void 0,r)(i.dispatch),He(He({},i),{},{dispatch:n})}}}function ti(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var ei=ti();ei.withExtraArgument=ti;var ii,ni=ei,oi=(ii=function(t,e){return ii=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])},ii(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}ii(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ri=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},si=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},ai=Object.defineProperty,li=Object.defineProperties,ci=Object.getOwnPropertyDescriptors,ui=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,pi=function(t,e,i){return e in t?ai(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},di=function(t,e){for(var i in e||(e={}))fi.call(e,i)&&pi(t,i,e[i]);if(ui)for(var n=0,o=ui(e);n<o.length;n++){i=o[n];hi.call(e,i)&&pi(t,i,e[i])}return t},vi=function(t,e){return li(t,ci(e))},bi="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 yi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return oi(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,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array),gi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return oi(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,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array);function mi(t){return Zt(t)?Be(t,(function(){})):t}function xi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new yi;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(ni.withExtraArgument(i.extraArgument)):n.push(ni));return n}(t)}}function wi(t){var e,i=xi(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,u=n.preloadedState,f=void 0===u?void 0:u,h=n.enhancers,p=void 0===h?void 0:h;if("function"==typeof r)e=r;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}(r))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=Ge(r)}var d=a;"function"==typeof d&&(d=d(i));var v=Ye.apply(void 0,d),b=Qe;c&&(b=bi(di({trace:!1},"object"==typeof c&&c)));var y=new gi(v),g=y;return Array.isArray(p)?g=si([v],p):"function"==typeof p&&(g=p(y)),Xe(e,f,b.apply(void 0,g))}function $i(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return di(di({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.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 Oi(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function Si(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:mi(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Oi(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,u=di(di({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?Oi(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return mi(t())};else{var c=mi(t);o=function(){return c}}function u(t,e){void 0===t&&(t=o());var i=si([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 n;if(Ht(t))return void 0===(n=i(t,e))?t:n;if(Zt(t))return Be(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return u.getInitialState=o,u}(n,(function(t){for(var e in u)t.addCase(e,u[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?$i(c,n):$i(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 Ei=["name","message","stack","code"],ki=function(t,e){this.payload=t,this.meta=e},ji=function(t,e){this.payload=t,this.meta=e},Ci=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=Ei;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function Ni(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 n=$i(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:vi(di({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=$i(t+"/pending",(function(t,e,i){return{payload:void 0,meta:vi(di({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=$i(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||Ci)(t||"Rejected"),meta:vi(di({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,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 u,f=(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}(),h=new s;function p(t){u=t,h.abort()}var d=function(){return s=this,d=null,v=function(){var s,d,v,b,y,g;return ri(this,(function(m){switch(m.label){case 0:return m.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===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:u||"Aborted"})}))})),a(o(f,t,null==(d=null==i?void 0:i.getPendingMeta)?void 0:d.call(i,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:f,signal:h.signal,abort:p,rejectWithValue:function(t,e){return new ki(t,e)},fulfillWithValue:function(t,e){return new ji(t,e)}})).then((function(e){if(e instanceof ki)throw e;return e instanceof ji?n(e.payload,f,t,e.meta):n(e,f,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof ki?r(null,f,t,g.payload,g.meta):r(g,f,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,d)).next())}));var s,d,v}();return Object.assign(d,{abort:p,requestId:f,arg:t,unwrap:function(){return d.then(Ni)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var Mi="listenerMiddleware";$i(Mi+"/add"),$i(Mi+"/removeAll"),$i(Mi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Re];return Ie.get(e,t)},set:function(e){var i=this[Re];Ie.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Re];if(!o.P)switch(o.i){case 5:n(o)&&ge(o);break;case 4:i(o)&&ge(o)}}}function i(t){for(var e=t.t,i=t.k,n=Ue(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==Re){var s=e[r];if(void 0===s&&!Jt(e,r))return!0;var a=i[r],l=a&&a[Re];if(l?l.t!==s:!Gt(a,s))return!0}}var c=!!e[Re];return n.length!==Ue(e).length+(c?0:1)}function n(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 n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){Fe[t]||(Fe[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=Pe(i);delete r[Re];for(var s=Ue(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:se(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Re,{value:r,writable:!0}),o},S:function(t,i,o){o?Ht(i)&&i[Re].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Re];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)qt(r,(function(e){e!==Re&&(void 0!==o[e]||Jt(o,e)?s[e]||t(r[e]):(s[e]=!0,ge(i)))})),qt(o,(function(t){void 0!==r[t]||Jt(r,t)||(s[t]=!1,ge(i))}));else if(5===a){if(n(i)&&(ge(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var u=Math.min(r.length,o.length),f=0;f<u;f++)r.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(r[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ri{static get(t){var e;const i="string"==typeof t?t:t.name,n="string"==typeof t?void 0:t,o=window.ftReduxStores[i];if(It(o))return o;if(null==n)return;const r=Si({...n,reducers:null!==(e=n.reducers)&&void 0!==e?e:{}}),s=wi({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[n.name]=new Ri(r,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=e,o=t[n];return o?(...t)=>{const e=o(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[n]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Ai=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!h(t,e),attribute:!1,...e};s(o)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}},Ui=Symbol("elementInternals");var Pi,Fi,Ii;const Ti=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ii=null===(Fi=null===(Pi=window.safari)||void 0===Pi?void 0:Pi.pushNotification)||void 0===Fi?void 0:Fi.toString())&&void 0!==Ii?Ii:""),Li=1,zi=2,Bi=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
102
102
|
/**
|
|
103
103
|
* @license
|
|
104
104
|
* Copyright 2017 Google LLC
|
|
105
105
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
106
|
-
*/class
|
|
106
|
+
*/class _i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
107
107
|
/**
|
|
108
108
|
* @license
|
|
109
109
|
* Copyright 2018 Google LLC
|
|
110
110
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
111
|
-
*/const
|
|
111
|
+
*/const Di=Bi(class extends _i{constructor(t){var e;if(super(t),t.type!==Li||"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,n;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 o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return et}}),Wi=$t.extend("--ft-ripple-color",St.colorContent),Ki={color:Wi,backgroundColor:$t.extend("--ft-ripple-background-color",Wi),opacityContentOnSurfacePressed:$t.external(St.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:$t.external(St.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:$t.external(St.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:$t.external(St.opacityContentOnSurfaceSelected,"Design system"),borderRadius:$t.create("--ft-ripple-border-radius","SIZE","0px")},Hi=$t.extend("--ft-ripple-color",St.colorPrimary),Zi=Hi,qi=$t.extend("--ft-ripple-background-color",Hi),Vi=$t.extend("--ft-ripple-color",St.colorSecondary),Ji=Vi,Xi=$t.extend("--ft-ripple-background-color",Vi),Gi=w`
|
|
112
112
|
:host {
|
|
113
113
|
display: contents;
|
|
114
114
|
}
|
|
@@ -121,7 +121,7 @@ var gt,mt;let xt=class extends A{constructor(){super(...arguments),this.renderOp
|
|
|
121
121
|
|
|
122
122
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
123
123
|
overflow: hidden;
|
|
124
|
-
border-radius: ${
|
|
124
|
+
border-radius: ${Ki.borderRadius};
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
.ft-ripple .ft-ripple--background,
|
|
@@ -155,27 +155,27 @@ var gt,mt;let xt=class extends A{constructor(){super(...arguments),this.renderOp
|
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
.ft-ripple .ft-ripple--background {
|
|
158
|
-
background-color: ${
|
|
158
|
+
background-color: ${Ki.backgroundColor};
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
.ft-ripple .ft-ripple--effect {
|
|
162
|
-
background-color: ${
|
|
162
|
+
background-color: ${Ki.color};
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
166
|
-
background-color: ${
|
|
166
|
+
background-color: ${Xi};
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
170
|
-
background-color: ${
|
|
170
|
+
background-color: ${Ji};
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
174
|
-
background-color: ${
|
|
174
|
+
background-color: ${qi};
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
178
|
-
background-color: ${
|
|
178
|
+
background-color: ${Zi};
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
.ft-ripple .ft-ripple--background {
|
|
@@ -205,141 +205,141 @@ var gt,mt;let xt=class extends A{constructor(){super(...arguments),this.renderOp
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
208
|
-
opacity: ${
|
|
208
|
+
opacity: ${Ki.opacityContentOnSurfaceHover};
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
212
|
-
opacity: ${
|
|
212
|
+
opacity: ${Ki.opacityContentOnSurfaceSelected};
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
216
|
-
opacity: ${
|
|
216
|
+
opacity: ${Ki.opacityContentOnSurfaceFocused};
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
220
|
-
opacity: ${
|
|
220
|
+
opacity: ${Ki.opacityContentOnSurfacePressed};
|
|
221
221
|
transform: translate(-50%, -50%) scale(1);
|
|
222
222
|
}
|
|
223
|
-
`;var
|
|
223
|
+
`;var Qi=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Yi extends Rt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o(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 o(10),this.moveRipple=t=>{var e,i;let{x:n,y:o}=this.getCoordinates(t),r=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!=n?n-r.x:r.width/2),this.originY=Math.round(null!=o?o-r.y:r.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 tt`
|
|
224
224
|
<style>
|
|
225
225
|
.ft-ripple .ft-ripple--effect {
|
|
226
226
|
left: ${this.originX}px;
|
|
227
227
|
top: ${this.originY}px;
|
|
228
228
|
}
|
|
229
229
|
</style>
|
|
230
|
-
<div class="${
|
|
230
|
+
<div class="${Di(t)}">
|
|
231
231
|
<div class="ft-ripple--background"></div>
|
|
232
232
|
<div class="ft-ripple--effect"></div>
|
|
233
233
|
</div>
|
|
234
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),o=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",n),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),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",n),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),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 n,o;return null!=e.x?({x:n,y:o}=e):null!=i.touches&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}
|
|
234
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),o=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",n),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),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",n),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),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 n,o;return null!=e.x?({x:n,y:o}=e):null!=i.touches&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Yi.elementDefinitions={},Yi.styles=Gi,Qi([s({type:Boolean})],Yi.prototype,"primary",void 0),Qi([s({type:Boolean})],Yi.prototype,"secondary",void 0),Qi([s({type:Boolean})],Yi.prototype,"unbounded",void 0),Qi([s({type:Boolean})],Yi.prototype,"activated",void 0),Qi([s({type:Boolean})],Yi.prototype,"selected",void 0),Qi([s({type:Boolean})],Yi.prototype,"disabled",void 0),Qi([a()],Yi.prototype,"hovered",void 0),Qi([a()],Yi.prototype,"focused",void 0),Qi([a()],Yi.prototype,"pressed",void 0),Qi([a()],Yi.prototype,"rippling",void 0),Qi([a()],Yi.prototype,"originX",void 0),Qi([a()],Yi.prototype,"originY",void 0),Qi([c(".ft-ripple")],Yi.prototype,"ripple",void 0),Qi([c(".ft-ripple--effect")],Yi.prototype,"rippleEffect",void 0),p("ft-ripple")(Yi);
|
|
235
235
|
/**
|
|
236
236
|
* @license
|
|
237
237
|
* Copyright 2020 Google LLC
|
|
238
238
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
239
239
|
*/
|
|
240
|
-
const
|
|
240
|
+
const tn=Symbol.for(""),en=t=>{if((null==t?void 0:t.r)===tn)return null==t?void 0:t._$litStatic$},nn=t=>({_$litStatic$:t,r:tn}),on=new Map,rn=(t=>(e,...i)=>{const n=i.length;let o,r;const s=[],a=[];let l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(r=i[c],o=en(r));)l+=o+e[++c],u=!0;c!==n&&a.push(r),s.push(l),c++}if(c===n&&s.push(e[n]),u){const t=s.join("$$lit$$");void 0===(e=on.get(t))&&(s.raw=s,on.set(t,e=s)),i=a}return t(e,...i)})(tt);var sn;!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"}(sn||(sn={}));const an=$t.extend("--ft-typography-font-family",St.titleFont),ln=$t.extend("--ft-typography-font-family",St.contentFont),cn={fontFamily:ln,fontSize:$t.create("--ft-typography-font-size","SIZE","16px"),fontWeight:$t.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:$t.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:$t.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:$t.create("--ft-typography-text-transform","UNKNOWN","inherit")},un=$t.extend("--ft-typography-title-font-family",an),fn=$t.extend("--ft-typography-title-font-size",cn.fontSize,"20px"),hn=$t.extend("--ft-typography-title-font-weight",cn.fontWeight,"normal"),pn=$t.extend("--ft-typography-title-letter-spacing",cn.letterSpacing,"0.15px"),dn=$t.extend("--ft-typography-title-line-height",cn.lineHeight,"1.2"),vn=$t.extend("--ft-typography-title-text-transform",cn.textTransform,"inherit"),bn=$t.extend("--ft-typography-title-dense-font-family",an),yn=$t.extend("--ft-typography-title-dense-font-size",cn.fontSize,"14px"),gn=$t.extend("--ft-typography-title-dense-font-weight",cn.fontWeight,"normal"),mn=$t.extend("--ft-typography-title-dense-letter-spacing",cn.letterSpacing,"0.105px"),xn=$t.extend("--ft-typography-title-dense-line-height",cn.lineHeight,"1.7"),wn=$t.extend("--ft-typography-title-dense-text-transform",cn.textTransform,"inherit"),$n=$t.extend("--ft-typography-subtitle1-font-family",ln),On=$t.extend("--ft-typography-subtitle1-font-size",cn.fontSize,"16px"),Sn=$t.extend("--ft-typography-subtitle1-font-weight",cn.fontWeight,"600"),En=$t.extend("--ft-typography-subtitle1-letter-spacing",cn.letterSpacing,"0.144px"),kn=$t.extend("--ft-typography-subtitle1-line-height",cn.lineHeight,"1.5"),jn=$t.extend("--ft-typography-subtitle1-text-transform",cn.textTransform,"inherit"),Cn=$t.extend("--ft-typography-subtitle2-font-family",ln),Nn=$t.extend("--ft-typography-subtitle2-font-size",cn.fontSize,"14px"),Mn=$t.extend("--ft-typography-subtitle2-font-weight",cn.fontWeight,"normal"),Rn=$t.extend("--ft-typography-subtitle2-letter-spacing",cn.letterSpacing,"0.098px"),An=$t.extend("--ft-typography-subtitle2-line-height",cn.lineHeight,"1.7"),Un=$t.extend("--ft-typography-subtitle2-text-transform",cn.textTransform,"inherit"),Pn=$t.extend("--ft-typography-body1-font-family",ln),Fn=$t.extend("--ft-typography-body1-font-size",cn.fontSize,"16px"),In=$t.extend("--ft-typography-body1-font-weight",cn.fontWeight,"normal"),Tn=$t.extend("--ft-typography-body1-letter-spacing",cn.letterSpacing,"0.496px"),Ln=$t.extend("--ft-typography-body1-line-height",cn.lineHeight,"1.5"),zn=$t.extend("--ft-typography-body1-text-transform",cn.textTransform,"inherit"),Bn=$t.extend("--ft-typography-body2-font-family",ln),_n=$t.extend("--ft-typography-body2-font-size",cn.fontSize,"14px"),Dn=$t.extend("--ft-typography-body2-font-weight",cn.fontWeight,"normal"),Wn=$t.extend("--ft-typography-body2-letter-spacing",cn.letterSpacing,"0.252px"),Kn=$t.extend("--ft-typography-body2-line-height",cn.lineHeight,"1.4"),Hn=$t.extend("--ft-typography-body2-text-transform",cn.textTransform,"inherit"),Zn=$t.extend("--ft-typography-caption-font-family",ln),qn=$t.extend("--ft-typography-caption-font-size",cn.fontSize,"12px"),Vn=$t.extend("--ft-typography-caption-font-weight",cn.fontWeight,"normal"),Jn=$t.extend("--ft-typography-caption-letter-spacing",cn.letterSpacing,"0.396px"),Xn=$t.extend("--ft-typography-caption-line-height",cn.lineHeight,"1.33"),Gn=$t.extend("--ft-typography-caption-text-transform",cn.textTransform,"inherit"),Qn=$t.extend("--ft-typography-breadcrumb-font-family",ln),Yn=$t.extend("--ft-typography-breadcrumb-font-size",cn.fontSize,"10px"),to=$t.extend("--ft-typography-breadcrumb-font-weight",cn.fontWeight,"normal"),eo=$t.extend("--ft-typography-breadcrumb-letter-spacing",cn.letterSpacing,"0.33px"),io=$t.extend("--ft-typography-breadcrumb-line-height",cn.lineHeight,"1.6"),no=$t.extend("--ft-typography-breadcrumb-text-transform",cn.textTransform,"inherit"),oo=$t.extend("--ft-typography-overline-font-family",ln),ro=$t.extend("--ft-typography-overline-font-size",cn.fontSize,"10px"),so=$t.extend("--ft-typography-overline-font-weight",cn.fontWeight,"normal"),ao=$t.extend("--ft-typography-overline-letter-spacing",cn.letterSpacing,"1.5px"),lo=$t.extend("--ft-typography-overline-line-height",cn.lineHeight,"1.6"),co=$t.extend("--ft-typography-overline-text-transform",cn.textTransform,"uppercase"),uo={fontFamily:$t.extend("--ft-typography-button-font-family",ln),fontSize:$t.extend("--ft-typography-button-font-size",cn.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-button-font-weight",cn.fontWeight,"600"),letterSpacing:$t.extend("--ft-typography-button-letter-spacing",cn.letterSpacing,"1.246px"),lineHeight:$t.extend("--ft-typography-button-line-height",cn.lineHeight,"1.15"),textTransform:$t.extend("--ft-typography-button-text-transform",cn.textTransform,"uppercase")},fo=w`
|
|
241
241
|
.ft-typography--title {
|
|
242
|
-
font-family: ${
|
|
243
|
-
font-size: ${
|
|
244
|
-
font-weight: ${
|
|
245
|
-
letter-spacing: ${
|
|
246
|
-
line-height: ${
|
|
247
|
-
text-transform: ${
|
|
248
|
-
}
|
|
249
|
-
`,fo=w`
|
|
250
|
-
.ft-typography--title-dense {
|
|
251
|
-
font-family: ${vn};
|
|
252
|
-
font-size: ${bn};
|
|
253
|
-
font-weight: ${yn};
|
|
254
|
-
letter-spacing: ${gn};
|
|
255
|
-
line-height: ${mn};
|
|
256
|
-
text-transform: ${xn};
|
|
242
|
+
font-family: ${un};
|
|
243
|
+
font-size: ${fn};
|
|
244
|
+
font-weight: ${hn};
|
|
245
|
+
letter-spacing: ${pn};
|
|
246
|
+
line-height: ${dn};
|
|
247
|
+
text-transform: ${vn};
|
|
257
248
|
}
|
|
258
249
|
`,ho=w`
|
|
259
|
-
.ft-typography--
|
|
260
|
-
font-family: ${
|
|
261
|
-
font-size: ${
|
|
262
|
-
font-weight: ${
|
|
263
|
-
letter-spacing: ${
|
|
264
|
-
line-height: ${
|
|
265
|
-
text-transform: ${
|
|
250
|
+
.ft-typography--title-dense {
|
|
251
|
+
font-family: ${bn};
|
|
252
|
+
font-size: ${yn};
|
|
253
|
+
font-weight: ${gn};
|
|
254
|
+
letter-spacing: ${mn};
|
|
255
|
+
line-height: ${xn};
|
|
256
|
+
text-transform: ${wn};
|
|
266
257
|
}
|
|
267
258
|
`,po=w`
|
|
268
|
-
.ft-typography--
|
|
269
|
-
font-family: ${
|
|
270
|
-
font-size: ${
|
|
271
|
-
font-weight: ${
|
|
272
|
-
letter-spacing: ${
|
|
273
|
-
line-height: ${
|
|
274
|
-
text-transform: ${
|
|
259
|
+
.ft-typography--subtitle1 {
|
|
260
|
+
font-family: ${$n};
|
|
261
|
+
font-size: ${On};
|
|
262
|
+
font-weight: ${Sn};
|
|
263
|
+
letter-spacing: ${En};
|
|
264
|
+
line-height: ${kn};
|
|
265
|
+
text-transform: ${jn};
|
|
275
266
|
}
|
|
276
|
-
|
|
277
267
|
`,vo=w`
|
|
278
|
-
.ft-typography--
|
|
279
|
-
font-family: ${
|
|
280
|
-
font-size: ${
|
|
281
|
-
font-weight: ${
|
|
282
|
-
letter-spacing: ${
|
|
283
|
-
line-height: ${
|
|
284
|
-
text-transform: ${
|
|
268
|
+
.ft-typography--subtitle2 {
|
|
269
|
+
font-family: ${Cn};
|
|
270
|
+
font-size: ${Nn};
|
|
271
|
+
font-weight: ${Mn};
|
|
272
|
+
letter-spacing: ${Rn};
|
|
273
|
+
line-height: ${An};
|
|
274
|
+
text-transform: ${Un};
|
|
285
275
|
}
|
|
276
|
+
|
|
286
277
|
`,bo=w`
|
|
287
|
-
.ft-typography--
|
|
288
|
-
font-family: ${
|
|
289
|
-
font-size: ${
|
|
290
|
-
font-weight: ${
|
|
291
|
-
letter-spacing: ${
|
|
292
|
-
line-height: ${
|
|
293
|
-
text-transform: ${
|
|
278
|
+
.ft-typography--body1 {
|
|
279
|
+
font-family: ${Pn};
|
|
280
|
+
font-size: ${Fn};
|
|
281
|
+
font-weight: ${In};
|
|
282
|
+
letter-spacing: ${Tn};
|
|
283
|
+
line-height: ${Ln};
|
|
284
|
+
text-transform: ${zn};
|
|
294
285
|
}
|
|
295
286
|
`,yo=w`
|
|
296
|
-
.ft-typography--
|
|
297
|
-
font-family: ${
|
|
298
|
-
font-size: ${
|
|
299
|
-
font-weight: ${
|
|
300
|
-
letter-spacing: ${
|
|
301
|
-
line-height: ${
|
|
302
|
-
text-transform: ${
|
|
287
|
+
.ft-typography--body2 {
|
|
288
|
+
font-family: ${Bn};
|
|
289
|
+
font-size: ${_n};
|
|
290
|
+
font-weight: ${Dn};
|
|
291
|
+
letter-spacing: ${Wn};
|
|
292
|
+
line-height: ${Kn};
|
|
293
|
+
text-transform: ${Hn};
|
|
303
294
|
}
|
|
304
295
|
`,go=w`
|
|
305
|
-
.ft-typography--
|
|
306
|
-
font-family: ${
|
|
307
|
-
font-size: ${
|
|
308
|
-
font-weight: ${
|
|
309
|
-
letter-spacing: ${
|
|
310
|
-
line-height: ${
|
|
311
|
-
text-transform: ${
|
|
296
|
+
.ft-typography--caption {
|
|
297
|
+
font-family: ${Zn};
|
|
298
|
+
font-size: ${qn};
|
|
299
|
+
font-weight: ${Vn};
|
|
300
|
+
letter-spacing: ${Jn};
|
|
301
|
+
line-height: ${Xn};
|
|
302
|
+
text-transform: ${Gn};
|
|
312
303
|
}
|
|
313
304
|
`,mo=w`
|
|
314
|
-
.ft-typography--
|
|
315
|
-
font-family: ${
|
|
316
|
-
font-size: ${
|
|
317
|
-
font-weight: ${
|
|
318
|
-
letter-spacing: ${
|
|
319
|
-
line-height: ${
|
|
320
|
-
text-transform: ${
|
|
305
|
+
.ft-typography--breadcrumb {
|
|
306
|
+
font-family: ${Qn};
|
|
307
|
+
font-size: ${Yn};
|
|
308
|
+
font-weight: ${to};
|
|
309
|
+
letter-spacing: ${eo};
|
|
310
|
+
line-height: ${io};
|
|
311
|
+
text-transform: ${no};
|
|
321
312
|
}
|
|
322
313
|
`,xo=w`
|
|
323
|
-
.ft-typography--
|
|
324
|
-
font-family: ${
|
|
325
|
-
font-size: ${
|
|
326
|
-
font-weight: ${
|
|
327
|
-
letter-spacing: ${
|
|
328
|
-
line-height: ${
|
|
329
|
-
text-transform: ${co
|
|
314
|
+
.ft-typography--overline {
|
|
315
|
+
font-family: ${oo};
|
|
316
|
+
font-size: ${ro};
|
|
317
|
+
font-weight: ${so};
|
|
318
|
+
letter-spacing: ${ao};
|
|
319
|
+
line-height: ${lo};
|
|
320
|
+
text-transform: ${co};
|
|
330
321
|
}
|
|
331
322
|
`,wo=w`
|
|
323
|
+
.ft-typography--button {
|
|
324
|
+
font-family: ${uo.fontFamily};
|
|
325
|
+
font-size: ${uo.fontSize};
|
|
326
|
+
font-weight: ${uo.fontWeight};
|
|
327
|
+
letter-spacing: ${uo.letterSpacing};
|
|
328
|
+
line-height: ${uo.lineHeight};
|
|
329
|
+
text-transform: ${uo.textTransform};
|
|
330
|
+
}
|
|
331
|
+
`,$o=w`
|
|
332
332
|
.ft-typography {
|
|
333
333
|
vertical-align: inherit;
|
|
334
334
|
}
|
|
335
|
-
`;var
|
|
336
|
-
<${
|
|
335
|
+
`;var Oo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class So extends Rt{constructor(){super(...arguments),this.variant=sn.body1}render(){return this.element?rn`
|
|
336
|
+
<${nn(this.element)}
|
|
337
337
|
class="ft-typography ft-typography--${this.variant}">
|
|
338
338
|
<slot></slot>
|
|
339
|
-
</${
|
|
340
|
-
`:
|
|
339
|
+
</${nn(this.element)}>
|
|
340
|
+
`:rn`
|
|
341
341
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
342
|
-
`}}
|
|
342
|
+
`}}So.styles=[fo,ho,po,vo,bo,yo,go,mo,xo,wo,$o],Oo([s()],So.prototype,"element",void 0),Oo([s()],So.prototype,"variant",void 0),p("ft-typography")(So);const Eo={distance:$t.create("--ft-tooltip-distance","SIZE","4px"),color:$t.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:$t.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:$t.create("--ft-tooltip-z-index","NUMBER","100"),borderRadiusS:$t.external(St.borderRadiusS,"Design system"),maxWidth:$t.create("--ft-tooltip-max-width","SIZE","150px")},ko=w`
|
|
343
343
|
.ft-tooltip--container {
|
|
344
344
|
display: block;
|
|
345
345
|
}
|
|
@@ -354,21 +354,21 @@ const Yi=Symbol.for(""),tn=t=>{if((null==t?void 0:t.r)===Yi)return null==t?void
|
|
|
354
354
|
box-sizing: border-box;
|
|
355
355
|
overflow: hidden;
|
|
356
356
|
width: max-content;
|
|
357
|
-
max-width: ${
|
|
357
|
+
max-width: ${Eo.maxWidth};
|
|
358
358
|
text-align: center;
|
|
359
|
-
padding: ${
|
|
360
|
-
z-index: ${
|
|
359
|
+
padding: ${Eo.distance};
|
|
360
|
+
z-index: ${Eo.zIndex};
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
.ft-tooltip--content {
|
|
364
364
|
padding: 4px 8px;
|
|
365
|
-
border-radius: ${
|
|
366
|
-
background-color: ${
|
|
367
|
-
color: ${
|
|
365
|
+
border-radius: ${Eo.borderRadiusS};
|
|
366
|
+
background-color: ${Eo.backgroundColor};
|
|
367
|
+
color: ${Eo.color};
|
|
368
368
|
position: relative;
|
|
369
369
|
word-break: break-word;
|
|
370
370
|
}
|
|
371
|
-
`;var
|
|
371
|
+
`;var jo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Co extends Rt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return tt`
|
|
372
372
|
<div part="container"
|
|
373
373
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
374
374
|
@mouseenter=${this.onHover}
|
|
@@ -386,13 +386,13 @@ const Yi=Symbol.for(""),tn=t=>{if((null==t?void 0:t.r)===Yi)return null==t?void
|
|
|
386
386
|
</div>
|
|
387
387
|
</div>
|
|
388
388
|
</div>
|
|
389
|
-
`}
|
|
389
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,n=(t.offsetHeight-i)/2,o=(t.offsetWidth-e)/2;let r=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-i-this.tooltip.offsetTop,r=t.offsetLeft+o-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+o-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+n-this.tooltip.offsetTop,r=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+n-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=r+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,u=l.x+l.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(c,u))+"px";let f=-l.y,h=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(f,h))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${Eo.maxWidth})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Co.elementDefinitions={"ft-typography":So},Co.styles=ko,jo([s()],Co.prototype,"text",void 0),jo([s({type:Boolean})],Co.prototype,"manual",void 0),jo([s({type:Boolean})],Co.prototype,"inline",void 0),jo([s({type:Number})],Co.prototype,"delay",void 0),jo([s()],Co.prototype,"position",void 0),jo([
|
|
390
390
|
/**
|
|
391
391
|
* @license
|
|
392
392
|
* Copyright 2017 Google LLC
|
|
393
393
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
394
394
|
*/
|
|
395
|
-
function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return l({descriptor:n=>({get(){var n;const o="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(o),s=null!=r?f(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):l({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],
|
|
395
|
+
function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return l({descriptor:n=>({get(){var n;const o="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(o),s=null!=r?f(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):l({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Co.prototype,"slotNodes",void 0),jo([c(".ft-tooltip--container")],Co.prototype,"container",void 0),jo([c(".ft-tooltip")],Co.prototype,"tooltip",void 0),jo([c(".ft-tooltip--content")],Co.prototype,"tooltipContent",void 0),jo([a()],Co.prototype,"visible",void 0),p("ft-tooltip")(Co);const No={color:$t.extend("--ft-loader-color",St.colorPrimary),size:$t.create("--ft-loader-size","SIZE","80px")},Mo=w`
|
|
396
396
|
:host {
|
|
397
397
|
line-height: 0;
|
|
398
398
|
}
|
|
@@ -401,8 +401,8 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
401
401
|
display: inline-block;
|
|
402
402
|
position: relative;
|
|
403
403
|
|
|
404
|
-
width: ${
|
|
405
|
-
height: ${
|
|
404
|
+
width: ${No.size};
|
|
405
|
+
height: ${No.size};
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
.ft-loader div {
|
|
@@ -411,7 +411,7 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
411
411
|
width: 25%;
|
|
412
412
|
height: 25%;
|
|
413
413
|
border-radius: 50%;
|
|
414
|
-
background: ${
|
|
414
|
+
background: ${No.color};
|
|
415
415
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
416
416
|
}
|
|
417
417
|
|
|
@@ -458,23 +458,23 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
458
458
|
transform: translate(0, 0);
|
|
459
459
|
}
|
|
460
460
|
100% {
|
|
461
|
-
transform: translate(calc(0.35 * ${
|
|
461
|
+
transform: translate(calc(0.35 * ${No.size}), 0);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
`;class
|
|
464
|
+
`;class Ro extends Rt{render(){return tt`
|
|
465
465
|
<div class="ft-loader">
|
|
466
466
|
<div></div>
|
|
467
467
|
<div></div>
|
|
468
468
|
<div></div>
|
|
469
469
|
<div></div>
|
|
470
470
|
</div>
|
|
471
|
-
`}}
|
|
471
|
+
`}}Ro.styles=Mo,p("ft-loader")(Ro);
|
|
472
472
|
/**
|
|
473
473
|
* @license
|
|
474
474
|
* Copyright 2017 Google LLC
|
|
475
475
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
476
476
|
*/
|
|
477
|
-
class
|
|
477
|
+
class Ao extends _i{constructor(t){if(super(t),this.et=it,t.type!==zi)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===it||null==t)return this.ft=void 0,this.et=t;if(t===et)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:[]}}}Ao.directiveName="unsafeHTML",Ao.resultType=1;const Uo=Bi(Ao);var Po,Fo;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Po||(Po={})),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=""}(Fo||(Fo={}));const Io=new Map([...["abw"].map((t=>[t,Fo.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,Fo.AUDIO])),...["avi"].map((t=>[t,Fo.AVI])),...["chm","xhs"].map((t=>[t,Fo.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,Fo.CODE])),...["csv"].map((t=>[t,Fo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Fo.DITA])),...["epub"].map((t=>[t,Fo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Fo.EXCEL])),...["flac"].map((t=>[t,Fo.FLAC])),...["gif"].map((t=>[t,Fo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Fo.GZIP])),...["html","htm","xhtml"].map((t=>[t,Fo.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,Fo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Fo.JPEG])),...["json"].map((t=>[t,Fo.JSON])),...["m4a","m4p"].map((t=>[t,Fo.M4A])),...["mov","qt"].map((t=>[t,Fo.MOV])),...["mp3"].map((t=>[t,Fo.MP3])),...["mp4","m4v"].map((t=>[t,Fo.MP4])),...["ogg","oga"].map((t=>[t,Fo.OGG])),...["pdf","ps"].map((t=>[t,Fo.PDF])),...["png"].map((t=>[t,Fo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Fo.POWERPOINT])),...["rar"].map((t=>[t,Fo.RAR])),...["stp"].map((t=>[t,Fo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Fo.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,Fo.VIDEO])),...["wav"].map((t=>[t,Fo.WAV])),...["wma"].map((t=>[t,Fo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Fo.WORD])),...["xml","xsl","rdf"].map((t=>[t,Fo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Fo.YAML])),...["zip"].map((t=>[t,Fo.ZIP]))]),To=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Lo={size:$t.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:$t.extend("--ft-icon-fluid-topics-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:$t.extend("--ft-icon-file-format-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:$t.extend("--ft-icon-material-font-family",$t.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:$t.create("--ft-icon-vertical-align","UNKNOWN","unset")},zo=w`
|
|
478
478
|
:host, i.ft-icon {
|
|
479
479
|
display: inline-flex;
|
|
480
480
|
align-items: center;
|
|
@@ -483,14 +483,14 @@ class Ro extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Erro
|
|
|
483
483
|
}
|
|
484
484
|
|
|
485
485
|
:host {
|
|
486
|
-
width: ${
|
|
487
|
-
height: ${
|
|
486
|
+
width: ${Lo.size};
|
|
487
|
+
height: ${Lo.size};
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
i.ft-icon {
|
|
491
491
|
width: 100%;
|
|
492
492
|
height: 100%;
|
|
493
|
-
font-size: ${
|
|
493
|
+
font-size: ${Lo.size};
|
|
494
494
|
line-height: 1;
|
|
495
495
|
font-weight: normal;
|
|
496
496
|
text-transform: none;
|
|
@@ -501,33 +501,33 @@ class Ro extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Erro
|
|
|
501
501
|
text-rendering: auto;
|
|
502
502
|
-webkit-font-smoothing: antialiased;
|
|
503
503
|
-moz-osx-font-smoothing: grayscale;
|
|
504
|
-
vertical-align: ${
|
|
504
|
+
vertical-align: ${Lo.verticalAlign};
|
|
505
505
|
}
|
|
506
506
|
|
|
507
507
|
i.ft-icon.ft-icon--fluid-topics {
|
|
508
|
-
font-family: ${
|
|
508
|
+
font-family: ${Lo.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
509
509
|
|
|
510
510
|
/* Ugly fix because font is broken */
|
|
511
|
-
font-size: calc(0.75 * ${
|
|
512
|
-
line-height: ${
|
|
511
|
+
font-size: calc(0.75 * ${Lo.size});
|
|
512
|
+
line-height: ${Lo.size};
|
|
513
513
|
position: relative;
|
|
514
514
|
top: -4%;
|
|
515
515
|
justify-content: center;
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
.ft-icon--file-format {
|
|
519
|
-
font-family: ${
|
|
519
|
+
font-family: ${Lo.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
.ft-icon--material {
|
|
523
|
-
font-family: ${
|
|
523
|
+
font-family: ${Lo.materialFontFamily}, "Material Icons", sans-serif;
|
|
524
524
|
}
|
|
525
|
-
`;var
|
|
525
|
+
`;var Bo;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Bo||(Bo={}));var _o=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Do extends Rt{constructor(){super(...arguments),this.resolvedIcon=it}render(){const t=this.variant&&Object.values(Bo).includes(this.variant)?this.variant:Bo.fluid_topics,e=t!==Bo.material||!!this.value;return tt`
|
|
526
526
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
527
|
-
${
|
|
527
|
+
${Uo(this.resolvedIcon)}
|
|
528
528
|
<slot ?hidden=${e}></slot>
|
|
529
529
|
</i>
|
|
530
|
-
`}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
|
|
530
|
+
`}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 Bo.file_format:this.resolvedIcon=null!==(t=Fo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Bo.material:this.resolvedIcon=this.value||it;break;default:this.resolvedIcon=null!==(e=Po[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Do.elementDefinitions={},Do.styles=zo,_o([s()],Do.prototype,"variant",void 0),_o([s()],Do.prototype,"value",void 0),_o([a()],Do.prototype,"resolvedIcon",void 0),_o([c("slot")],Do.prototype,"slottedContent",void 0),p("ft-icon")(Do);const Wo=$t.extend("--ft-button-color",St.colorPrimary),Ko={backgroundColor:$t.extend("--ft-button-background-color",St.colorSurface),borderRadius:$t.extend("--ft-button-border-radius",St.borderRadiusL),color:Wo,fontSize:$t.extend("--ft-button-font-size",uo.fontSize),iconSize:$t.create("--ft-button-icon-size","SIZE","24px"),rippleColor:$t.extend("--ft-button-ripple-color",Wo),verticalPadding:$t.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:$t.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:$t.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:$t.external(St.colorOpacityDisabled,"Design system")},Ho=$t.extend("--ft-button-primary-color",$t.extend("--ft-button-color",St.colorOnPrimary)),Zo={backgroundColor:$t.extend("--ft-button-primary-background-color",$t.extend("--ft-button-background-color",St.colorPrimary)),color:Ho,rippleColor:$t.extend("--ft-button-primary-ripple-color",Ho)},qo=$t.extend("--ft-button-dense-border-radius",$t.extend("--ft-button-border-radius",St.borderRadiusM)),Vo=$t.create("--ft-button-dense-vertical-padding","SIZE","2px"),Jo=$t.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Xo=$t.create("--ft-button-dense-icon-padding","SIZE","4px"),Go=[w`
|
|
531
531
|
:host {
|
|
532
532
|
display: inline-block;
|
|
533
533
|
max-width: 100%;
|
|
@@ -538,7 +538,7 @@ class Ro extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Erro
|
|
|
538
538
|
box-shadow: 0px 0px 0px transparent;
|
|
539
539
|
border: 0px solid transparent;
|
|
540
540
|
text-shadow: 0px 0px 0px transparent;
|
|
541
|
-
font-size: ${
|
|
541
|
+
font-size: ${Ko.fontSize};
|
|
542
542
|
}
|
|
543
543
|
|
|
544
544
|
button:hover {
|
|
@@ -567,31 +567,31 @@ class Ro extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Erro
|
|
|
567
567
|
border: none;
|
|
568
568
|
pointer-events: auto;
|
|
569
569
|
|
|
570
|
-
--ft-button-internal-line-height: max(calc(${
|
|
571
|
-
--ft-button-internal-color: ${
|
|
572
|
-
${Ot(
|
|
573
|
-
${Ot(
|
|
570
|
+
--ft-button-internal-line-height: max(calc(${Ko.fontSize} + 2px), ${Ko.iconSize});
|
|
571
|
+
--ft-button-internal-color: ${Ko.color};
|
|
572
|
+
${Ot(Lo.size,Ko.iconSize)};
|
|
573
|
+
${Ot(Ki.color,Ko.rippleColor)};
|
|
574
574
|
|
|
575
|
-
border-radius: ${
|
|
576
|
-
padding: ${
|
|
577
|
-
background-color: ${
|
|
575
|
+
border-radius: ${Ko.borderRadius};
|
|
576
|
+
padding: ${Ko.verticalPadding} ${Ko.horizontalPadding};
|
|
577
|
+
background-color: ${Ko.backgroundColor};
|
|
578
578
|
color: var(--ft-button-internal-color);
|
|
579
579
|
-webkit-mask-image: radial-gradient(white, black);
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
.ft-button.ft-button--outlined {
|
|
583
583
|
border: 1px solid var(--ft-button-internal-color);
|
|
584
|
-
padding: calc(${
|
|
584
|
+
padding: calc(${Ko.verticalPadding} - 1px) calc(${Ko.horizontalPadding} - 1px);
|
|
585
585
|
}
|
|
586
586
|
|
|
587
587
|
.ft-button.ft-button--dense {
|
|
588
|
-
padding: ${
|
|
589
|
-
border-radius: ${
|
|
590
|
-
gap: ${
|
|
588
|
+
padding: ${Vo} ${Jo};
|
|
589
|
+
border-radius: ${qo};
|
|
590
|
+
gap: ${Xo};
|
|
591
591
|
}
|
|
592
592
|
|
|
593
593
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
594
|
-
padding: calc(${
|
|
594
|
+
padding: calc(${Vo} - 1px) calc(${Jo} - 1px);
|
|
595
595
|
}
|
|
596
596
|
|
|
597
597
|
.ft-button:not([disabled]):hover {
|
|
@@ -599,22 +599,22 @@ class Ro extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Erro
|
|
|
599
599
|
}
|
|
600
600
|
|
|
601
601
|
.ft-button--round {
|
|
602
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
602
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ko.verticalPadding});
|
|
603
603
|
}
|
|
604
604
|
|
|
605
605
|
.ft-button--round.ft-button--dense {
|
|
606
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
606
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Vo});
|
|
607
607
|
}
|
|
608
608
|
|
|
609
609
|
.ft-button[disabled] {
|
|
610
610
|
filter: grayscale(1);
|
|
611
|
-
opacity: ${
|
|
611
|
+
opacity: ${Ko.opacityDisabled};
|
|
612
612
|
}
|
|
613
613
|
|
|
614
614
|
.ft-button.ft-button--primary {
|
|
615
|
-
background-color: ${
|
|
616
|
-
--ft-button-internal-color: ${
|
|
617
|
-
${Ot(
|
|
615
|
+
background-color: ${Zo.backgroundColor};
|
|
616
|
+
--ft-button-internal-color: ${Zo.color};
|
|
617
|
+
${Ot(Ki.color,Zo.rippleColor)};
|
|
618
618
|
}
|
|
619
619
|
|
|
620
620
|
.ft-button:focus {
|
|
@@ -627,13 +627,13 @@ class Ro extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Erro
|
|
|
627
627
|
white-space: nowrap;
|
|
628
628
|
text-overflow: ellipsis;
|
|
629
629
|
display: block;
|
|
630
|
-
margin: 0 ${
|
|
631
|
-
${Ot(
|
|
632
|
-
${Ot(
|
|
630
|
+
margin: 0 ${Ko.iconPadding};
|
|
631
|
+
${Ot(uo.fontSize,"1em")};
|
|
632
|
+
${Ot(uo.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
.ft-button--dense .ft-button--label {
|
|
636
|
-
margin: 0 ${
|
|
636
|
+
margin: 0 ${Xo};
|
|
637
637
|
}
|
|
638
638
|
|
|
639
639
|
.ft-button--label[hidden] {
|
|
@@ -646,13 +646,13 @@ class Ro extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Erro
|
|
|
646
646
|
}
|
|
647
647
|
|
|
648
648
|
.ft-button--label[hidden] + ft-icon {
|
|
649
|
-
margin: 0 calc(${
|
|
650
|
-
padding: 0 ${
|
|
649
|
+
margin: 0 calc(${Ko.horizontalPadding} * -1);
|
|
650
|
+
padding: 0 ${Ko.verticalPadding};
|
|
651
651
|
}
|
|
652
652
|
|
|
653
653
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
654
|
-
margin: 0 calc(${
|
|
655
|
-
padding: 0 ${
|
|
654
|
+
margin: 0 calc(${Jo} * -1);
|
|
655
|
+
padding: 0 ${Vo};
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -661,33 +661,33 @@ class Ro extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Erro
|
|
|
661
661
|
}
|
|
662
662
|
|
|
663
663
|
ft-loader {
|
|
664
|
-
${Ot(
|
|
665
|
-
${Ot(
|
|
664
|
+
${Ot(No.size,Ko.iconSize)};
|
|
665
|
+
${Ot(No.color,"var(--ft-button-internal-color)")};
|
|
666
666
|
}
|
|
667
|
-
`,At];var
|
|
667
|
+
`,At];var Qo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Yo extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Ui].form}constructor(...t){super(t),this[Ui]=this.attachInternals(),this[Ui].role=e}setFormValue(t){this[Ui].setFormValue(t)}}}(Rt,"button")){constructor(){super(...arguments),this.role="button",this.type="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=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}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(tt`
|
|
668
668
|
<button part="button"
|
|
669
|
-
class="${
|
|
669
|
+
class="${Di(t)}"
|
|
670
670
|
aria-label="${this.getLabel()}"
|
|
671
671
|
?disabled=${this.isDisabled()}>
|
|
672
672
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
673
673
|
<ft-typography part="label"
|
|
674
674
|
variant="button"
|
|
675
675
|
element="span"
|
|
676
|
-
class="ft-button--label ${
|
|
676
|
+
class="ft-button--label ${Ti?"ft-safari-ellipsis-fix":""}"
|
|
677
677
|
?hidden=${!this.hasTextContent()}>
|
|
678
678
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
679
679
|
</ft-typography>
|
|
680
680
|
${this.resolveIcon()}
|
|
681
681
|
</button>
|
|
682
682
|
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?tt`
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
683
|
+
<ft-tooltip part="tooltip"
|
|
684
|
+
text="${this.getLabel()}"
|
|
685
|
+
position="${this.tooltipPosition}">
|
|
686
|
+
${t}
|
|
687
|
+
</ft-tooltip>
|
|
688
688
|
`:t}resolveIcon(){return this.loading?tt`
|
|
689
689
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?tt`
|
|
690
|
-
|
|
690
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:it}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}}Yo.elementDefinitions={"ft-ripple":Yi,"ft-tooltip":Co,"ft-typography":So,"ft-icon":Do,"ft-loader":Ro},Yo.styles=[Pt,Go],Qo([s({type:String,reflect:!0})],Yo.prototype,"role",void 0),Qo([s()],Yo.prototype,"type",void 0),Qo([s({type:Boolean})],Yo.prototype,"primary",void 0),Qo([s({type:Boolean})],Yo.prototype,"outlined",void 0),Qo([s({type:Boolean})],Yo.prototype,"disabled",void 0),Qo([s({type:Boolean})],Yo.prototype,"dense",void 0),Qo([s({type:Boolean})],Yo.prototype,"round",void 0),Qo([s()],Yo.prototype,"label",void 0),Qo([s()],Yo.prototype,"icon",void 0),Qo([s()],Yo.prototype,"iconVariant",void 0),Qo([s({type:Boolean})],Yo.prototype,"trailingIcon",void 0),Qo([s({type:Boolean})],Yo.prototype,"loading",void 0),Qo([s()],Yo.prototype,"tooltipPosition",void 0),Qo([s({type:Boolean})],Yo.prototype,"hideTooltip",void 0),Qo([s({type:Boolean})],Yo.prototype,"forceTooltip",void 0),Qo([c(".ft-button")],Yo.prototype,"button",void 0),Qo([c(".ft-button--label slot")],Yo.prototype,"slottedContent",void 0),p("ft-button")(Yo);const tr={height:$t.create("--ft-search-input-height","SIZE","38px"),borderRadius:$t.extend("--ft-search-input-border-radius",St.borderRadiusS),desktopFiltersHeight:$t.create("--ft-search-input-desktop-filters-height","SIZE","350px"),floatingZIndex:$t.create("--ft-search-input-floating-components-z-index","NUMBER","3"),colorSurface:$t.external(St.colorSurface,"Design system"),colorOnSurface:$t.external(St.colorOnSurface,"Design system"),colorOnSurfaceMedium:$t.external(St.colorOnSurfaceMedium,"Design system"),colorOutline:$t.external(St.colorOutline,"Design system"),colorPrimary:$t.external(St.colorPrimary,"Design system"),elevation02:$t.external(St.elevation02,"Design system"),buttonColor:$t.external(Ko.color,"Button"),buttonRippleColor:$t.external(Ko.rippleColor,"Button")},er=w`
|
|
691
691
|
* {
|
|
692
692
|
box-sizing: border-box;
|
|
693
693
|
}
|
|
@@ -697,11 +697,11 @@ class Ro extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Erro
|
|
|
697
697
|
display: flex;
|
|
698
698
|
flex-direction: row;
|
|
699
699
|
align-items: center;
|
|
700
|
-
height: ${
|
|
700
|
+
height: ${tr.height};
|
|
701
701
|
|
|
702
|
-
background: ${
|
|
703
|
-
border: 1px solid ${
|
|
704
|
-
border-radius: ${
|
|
702
|
+
background: ${tr.colorSurface};
|
|
703
|
+
border: 1px solid ${tr.colorOutline};
|
|
704
|
+
border-radius: ${tr.borderRadius};
|
|
705
705
|
}
|
|
706
706
|
|
|
707
707
|
.ft-search-input--input-container {
|
|
@@ -716,23 +716,23 @@ class Ro extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Erro
|
|
|
716
716
|
width: 100%;
|
|
717
717
|
display: grid;
|
|
718
718
|
padding: 0 8px;
|
|
719
|
-
border-radius: ${
|
|
719
|
+
border-radius: ${tr.borderRadius};
|
|
720
720
|
}
|
|
721
721
|
|
|
722
722
|
.ft-search-input--input-container:focus-within .ft-search-input--input-outline {
|
|
723
|
-
outline: 2px solid ${
|
|
723
|
+
outline: 2px solid ${tr.colorPrimary};
|
|
724
724
|
}
|
|
725
725
|
|
|
726
726
|
.ft-search-input--input {
|
|
727
727
|
height: 100%;
|
|
728
728
|
border: none;
|
|
729
729
|
background-color: transparent;
|
|
730
|
-
color: ${
|
|
730
|
+
color: ${tr.colorOnSurface};
|
|
731
731
|
outline: none;
|
|
732
732
|
}
|
|
733
733
|
|
|
734
734
|
.ft-search-input--input::placeholder {
|
|
735
|
-
color: ${
|
|
735
|
+
color: ${tr.colorOnSurfaceMedium};
|
|
736
736
|
}
|
|
737
737
|
|
|
738
738
|
.ft-search-input--actions {
|
|
@@ -742,13 +742,13 @@ class Ro extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Erro
|
|
|
742
742
|
align-items: center;
|
|
743
743
|
height: 100%;
|
|
744
744
|
|
|
745
|
-
${Ot(
|
|
745
|
+
${Ot(Eo.zIndex,`calc(${tr.floatingZIndex} + 1)`)};
|
|
746
746
|
}
|
|
747
747
|
|
|
748
748
|
.ft-search-input > ft-button,
|
|
749
749
|
.ft-search-input--actions ft-button {
|
|
750
750
|
flex-shrink: 0;
|
|
751
|
-
${Ot(
|
|
751
|
+
${Ot(Ko.backgroundColor,"transparent")};
|
|
752
752
|
}
|
|
753
753
|
|
|
754
754
|
.ft-search-input .ft-search-input--launch-search,
|
|
@@ -766,31 +766,31 @@ class Ro extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Erro
|
|
|
766
766
|
|
|
767
767
|
.ft-search-input--separator {
|
|
768
768
|
height: 20px;
|
|
769
|
-
border-right: 1px solid ${
|
|
769
|
+
border-right: 1px solid ${tr.colorOutline};
|
|
770
770
|
}
|
|
771
|
-
`,
|
|
772
|
-
`,
|
|
771
|
+
`,ir=w`
|
|
772
|
+
`,nr=Ri.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 or{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=nr.getState(),n=null!=t?t:i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static get(t){var e;return null!=t?or.build(t):null!==(e=or.API)&&void 0!==e?e:or.API=or.build()}static await(t){return new Promise((e=>{let i=or.get(t);if(i)e(i);else{const n=nr.subscribe((()=>{i=or.get(t),i&&(n(),e(i))}))}}))}}var rr;const sr=Symbol("clearAfterUnitTest");class ar{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new n,this.listeners={},this.currentUiLocale="",this[rr]=()=>{this.defaultMessages={},this.cache=new n,this.listeners={}},this.currentUiLocale=nr.getState().uiLocale,nr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=nr.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 n={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};h(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var n,o,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(o=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==o?o:{};return new Ft(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},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=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}rr=sr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new ar((async(t,e)=>(await or.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new ar((async(t,e)=>(await or.await()).getCustomMessageContext(t,e))));const lr=window.FluidTopicsI18nService,cr=window.FluidTopicsCustomI18nService;var ur=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class fr extends Rt{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=()=>or.get(),this.cache=new n,this.cleanSessionDebouncer=new o}render(){return tt`
|
|
773
773
|
<slot></slot>
|
|
774
|
-
`}update(t){super.update(t),t.has("baseUrl")&&
|
|
775
|
-
`;var
|
|
774
|
+
`}update(t){super.update(t),t.has("baseUrl")&&nr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&nr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&nr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&nr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&nr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&nr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&nr.actions.setSession(this.session),t.has("availableUiLocales")&&nr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>lr.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()))))}}fr.elementDefinitions={},fr.styles=ir,ur([s()],fr.prototype,"baseUrl",void 0),ur([s()],fr.prototype,"apiIntegrationIdentifier",void 0),ur([s()],fr.prototype,"uiLocale",void 0),ur([d([])],fr.prototype,"availableUiLocales",void 0),ur([s({type:Boolean})],fr.prototype,"editorMode",void 0),ur([s({type:Boolean})],fr.prototype,"noCustom",void 0),ur([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],fr.prototype,"noCustomComponent",void 0),ur([s({type:Boolean})],fr.prototype,"withManualResources",void 0),ur([d([])],fr.prototype,"messageContexts",void 0),ur([d(void 0)],fr.prototype,"session",void 0),ur([s({type:Object})],fr.prototype,"apiProvider",void 0);class hr{async listMySearches(){var t;return(null===(t=nr.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await or.await()).listMySearches(nr.getState().session.profile.userId):[]}}const pr=new n;class dr{async listMyBookmarks(){return pr.get("bookmarks",(async()=>(await or.await()).listMyBookmarks(nr.getState().session.profile.userId)))}clearCache(){pr.clear("bookmarks")}}const vr=Ri.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=nr.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new dr,nr.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=nr.getState();h(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){vr.actions.savedSearches(void 0)}clearMyBookmarks(){vr.actions.bookmarks(void 0)}async reloadMySearches(){const t=new hr,e=await t.listMySearches();vr.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;vr.actions.bookmarks(e)}}},p("ft-app-context")(fr);class br extends Event{constructor(){super(br.eventName)}}br.eventName="search-context-clear-all-filters";var yr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class gr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const mr=Symbol("registerInterval");class xr 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[mr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[mr]):this.dispatchEvent(new gr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=mr,yr([a()],i.prototype,"stateManager",void 0),i}(Wt)){}const wr=w`
|
|
775
|
+
`;var $r=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Or=Symbol("i18nProperties"),Sr=Symbol("i18nUnsubs");function Er(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?cr:lr}i18n(t,e,...i){var n;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const o=null!==(n=t.args)&&void 0!==n?n:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...o)}onI18nUpdate(t){var e;null===(e=this[Or])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Or])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Or]&&new Set([...this[Or].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Sr].has(t)||this[Sr].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[Sr].forEach((t=>t())),this[Sr].clear()}}return e=Sr,$r([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class kr extends(Er(Rt)){}class jr extends(Er(Wt)){}var Cr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Nr extends jr{constructor(){super(),this.editorMode=!1,this.addStore(nr)}render(){return this.key&&this.context?tt`
|
|
776
776
|
<span class="ft-i18n">
|
|
777
777
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
778
778
|
</span>
|
|
779
|
-
`:this.editorMode?"Select a context and a label key.":it}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}
|
|
779
|
+
`:this.editorMode?"Select a context and a label key.":it}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Nr.elementDefinitions={},Nr.styles=wr,Cr([Ai()],Nr.prototype,"editorMode",void 0),Cr([s()],Nr.prototype,"context",void 0),Cr([s()],Nr.prototype,"key",void 0),Cr([d([])],Nr.prototype,"args",void 0),Cr([s()],Nr.prototype,"defaultMessage",void 0);class Mr{static build(t){return new Mr(t)}static fromGwt(t){return new Mr(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)=>lr.resolveMessage(this.name,e,...t)})}}p("ft-i18n")(Nr);const Rr=Mr.build("designedSearchInput"),Ar=w`
|
|
780
780
|
* {
|
|
781
781
|
box-sizing: border-box;
|
|
782
782
|
}
|
|
783
783
|
|
|
784
784
|
.ft-search-input-suggestion {
|
|
785
785
|
position: absolute;
|
|
786
|
-
z-index: ${
|
|
786
|
+
z-index: ${tr.floatingZIndex};
|
|
787
787
|
top: calc(100% + 2px);
|
|
788
788
|
left: -1px;
|
|
789
789
|
right: -1px;
|
|
790
|
-
background: ${
|
|
791
|
-
border: 1px solid ${
|
|
792
|
-
border-radius: 0 0 ${
|
|
793
|
-
box-shadow: ${
|
|
790
|
+
background: ${tr.colorSurface};
|
|
791
|
+
border: 1px solid ${tr.colorOutline};
|
|
792
|
+
border-radius: 0 0 ${tr.borderRadius} ${tr.borderRadius};
|
|
793
|
+
box-shadow: ${tr.elevation02};
|
|
794
794
|
}
|
|
795
795
|
|
|
796
796
|
.ft-search-input-suggestion--suggestion {
|
|
@@ -801,7 +801,7 @@ class Ro extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Erro
|
|
|
801
801
|
padding: 8px;
|
|
802
802
|
gap: 8px;
|
|
803
803
|
cursor: pointer;
|
|
804
|
-
color: ${
|
|
804
|
+
color: ${tr.colorOnSurface};
|
|
805
805
|
min-height: 44px;
|
|
806
806
|
}
|
|
807
807
|
|
|
@@ -823,11 +823,11 @@ class Ro extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Erro
|
|
|
823
823
|
* @license
|
|
824
824
|
* Copyright 2020 Google LLC
|
|
825
825
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
826
|
-
*/,{I:
|
|
826
|
+
*/,{I:Ur}=bt,Pr=()=>document.createComment(""),Fr=(t,e,i)=>{var n;const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Pr(),r),n=o.insertBefore(Pr(),r);i=new Ur(e,n,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(n=i._$AQ)||void 0===n||n.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},Ir=(t,e,i=t)=>(t._$AI(e,i),t),Tr={},Lr=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const n=t._$AB.nextSibling;for(;i!==n;){const t=i.nextSibling;i.remove(),i=t}},zr=(t,e,i)=>{const n=new Map;for(let o=e;o<=i;o++)n.set(t[o],o);return n},Br=Bi(class extends _i{constructor(t){if(super(t),t.type!==zi)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let n;void 0===i?i=e:void 0!==e&&(n=e);const o=[],r=[];let s=0;for(const e of t)o[s]=n?n(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,n]){var o;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,n);if(!Array.isArray(r))return this.ht=a,s;const l=null!==(o=this.ht)&&void 0!==o?o:this.ht=[],c=[];let u,f,h=0,p=r.length-1,d=0,v=s.length-1;for(;h<=p&&d<=v;)if(null===r[h])h++;else if(null===r[p])p--;else if(l[h]===a[d])c[d]=Ir(r[h],s[d]),h++,d++;else if(l[p]===a[v])c[v]=Ir(r[p],s[v]),p--,v--;else if(l[h]===a[v])c[v]=Ir(r[h],s[v]),Fr(t,c[v+1],r[h]),h++,v--;else if(l[p]===a[d])c[d]=Ir(r[p],s[d]),Fr(t,r[h],r[p]),p--,d++;else if(void 0===u&&(u=zr(a,d,v),f=zr(l,h,p)),u.has(l[h]))if(u.has(l[p])){const e=f.get(a[d]),i=void 0!==e?r[e]:null;if(null===i){const e=Fr(t,r[h]);Ir(e,s[d]),c[d]=e}else c[d]=Ir(i,s[d]),Fr(t,r[h],i),r[e]=null;d++}else Lr(r[p]),p--;else Lr(r[h]),h++;for(;d<=v;){const e=Fr(t,c[v+1]);Ir(e,s[d]),c[d++]=e}for(;h<=p;){const t=r[h++];null!==t&&Lr(t)}return this.ht=a,((t,e=Tr)=>{t._$AH=e})(t,c),et}});var _r=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Dr extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let Wr=class extends xr{render(){return tt`
|
|
827
827
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
828
828
|
part="container"
|
|
829
829
|
@keydown=${t=>this.onSuggestKeyDown(t)}>
|
|
830
|
-
${
|
|
830
|
+
${Br(this.suggestResults||[],(t=>t.value),(t=>tt`
|
|
831
831
|
<a href="#"
|
|
832
832
|
part="suggestion"
|
|
833
833
|
class="ft-search-input-suggestion--suggestion"
|
|
@@ -839,16 +839,16 @@ class Ro extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Erro
|
|
|
839
839
|
</a>
|
|
840
840
|
`))}
|
|
841
841
|
</div>
|
|
842
|
-
`}onSuggestKeyDown(t){var e,i,n,o,r,s;switch(t.key){case"ArrowUp":null===(n=null!==(i=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.getLastSuggestionElement())||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(s=null!==(r=null===(o=this.getFocusedSuggestionElement())||void 0===o?void 0:o.nextElementSibling)&&void 0!==r?r:this.getFirstSuggestionElement())||void 0===s||s.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.dispatchEvent(new
|
|
842
|
+
`}onSuggestKeyDown(t){var e,i,n,o,r,s;switch(t.key){case"ArrowUp":null===(n=null!==(i=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.getLastSuggestionElement())||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(s=null!==(r=null===(o=this.getFocusedSuggestionElement())||void 0===o?void 0:o.nextElementSibling)&&void 0!==r?r:this.getFirstSuggestionElement())||void 0===s||s.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.dispatchEvent(new Dr(e))}getIcon(t){const e="DOCUMENT"===t.type?Bo.file_format:Bo.fluid_topics;let i;switch(t.type){case"MAP":i="BOOK"===t.editorialType?Po.BOOK:Po.ARTICLE;break;case"DOCUMENT":i=function(t,e){var i,n,o,r;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[s,a]=((null!==(i=To.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(r=null!==(o=null!==(n=Io.get(a))&&void 0!==n?n:Io.get(e))&&void 0!==o?o:Io.get(s))&&void 0!==r?r:Fo.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":i=Po.TOPICS}return tt`
|
|
843
843
|
<ft-icon .variant="${e}" .value="${i}" part="suggestion-icon"></ft-icon>
|
|
844
|
-
`}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};
|
|
845
|
-
<div class="${
|
|
844
|
+
`}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};Wr.elementDefinitions={"ft-ripple":Yi,"ft-typography":So,"ft-icon":Do},Wr.styles=[Ut,Ar],_r([Ai()],Wr.prototype,"suggestResults",void 0),Wr=_r([(t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:n}=e;return{kind:i,elements:n,finisher(e){customElements.define(t,e)}}})(t,e))("ft-search-input-suggestion")],Wr);var Kr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Hr extends(Er(xr)){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.addI18nContext(Rr)}render(){var t,e;let i={"ft-search-input":!0,"ft-search-input--with-suggestions":null!==(e=null===(t=this.suggestResults)||void 0===t?void 0:t.length)&&void 0!==e&&e,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return tt`
|
|
845
|
+
<div class="${Di(i)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
|
|
846
846
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
847
847
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
848
848
|
<input class="ft-search-input--input ft-typography--body2"
|
|
849
849
|
part="input"
|
|
850
850
|
type="text"
|
|
851
|
-
placeholder="${
|
|
851
|
+
placeholder="${Rr.messages.placeholder()}"
|
|
852
852
|
.value="${this.liveQuery}"
|
|
853
853
|
@keydown=${t=>this.onSearchBarKeyDown(t)}
|
|
854
854
|
@keyup=${t=>this.onSearchBarKeyUp(t)}>
|
|
@@ -864,7 +864,7 @@ class Ro extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Erro
|
|
|
864
864
|
part="clear-query"
|
|
865
865
|
icon="close"
|
|
866
866
|
round dense
|
|
867
|
-
label="${
|
|
867
|
+
label="${Rr.messages.clearButton()}"
|
|
868
868
|
@click=${()=>this.liveQuery=""}
|
|
869
869
|
></ft-button>
|
|
870
870
|
<div class="ft-search-input--separator"></div>
|
|
@@ -873,9 +873,9 @@ class Ro extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Erro
|
|
|
873
873
|
part="launch-search-in-input"
|
|
874
874
|
icon="search"
|
|
875
875
|
round dense
|
|
876
|
-
label="${
|
|
876
|
+
label="${Rr.messages.searchButton()}"
|
|
877
877
|
@click=${()=>this.launchSearch()}
|
|
878
878
|
></ft-button>
|
|
879
879
|
</div>
|
|
880
880
|
</div>
|
|
881
|
-
`}onSearchBarKeyDown(t){if("ArrowDown"===t.key)t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion()}onSearchBarKeyUp(t){var e,i;"Enter"===t.key?(null===(e=this.stateManager)||void 0===e||e.setQuery(this.input.value),this.forceCloseSuggestion=!0):null===(i=this.stateManager)||void 0===i||i.setLiveQuery(this.input.value)}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var e;null===(e=this.stateManager)||void 0===e||e.setQuery(t.detail),this.forceCloseSuggestion=!0}}
|
|
881
|
+
`}onSearchBarKeyDown(t){if("ArrowDown"===t.key)t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion()}onSearchBarKeyUp(t){var e,i;"Enter"===t.key?(null===(e=this.stateManager)||void 0===e||e.setQuery(this.input.value),this.forceCloseSuggestion=!0):null===(i=this.stateManager)||void 0===i||i.setLiveQuery(this.input.value)}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var e;null===(e=this.stateManager)||void 0===e||e.setQuery(t.detail),this.forceCloseSuggestion=!0}}Hr.elementDefinitions={"ft-search-input-suggestion":Wr,"ft-button":Yo},Hr.styles=[yo,er],Kr([Ai()],Hr.prototype,"request",void 0),Kr([Ai()],Hr.prototype,"liveQuery",void 0),Kr([Ai()],Hr.prototype,"suggestResults",void 0),Kr([a()],Hr.prototype,"forceCloseSuggestion",void 0),Kr([c(".ft-search-input--input")],Hr.prototype,"input",void 0),Kr([c("ft-search-input-suggestion")],Hr.prototype,"suggestion",void 0),p("ft-search-input")(Hr),t.FtSearchInput=Hr,t.FtSearchInputCssVariables=tr,t.styles=er}({});
|