@fluid-topics/ft-search-selected-facets 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.
|
@@ -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(Vo){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(qo){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
|
|
@@ -55,7 +55,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
57
|
*/
|
|
58
|
-
var P;U.finalized=!0,U.elementProperties=new Map,U.elementStyles=[],U.shadowRootOptions={mode:"open"},null==N||N({ReactiveElement:U}),(null!==(k=E.reactiveElementVersions)&&void 0!==k?k:E.reactiveElementVersions=[]).push("1.6.1");const F=window,
|
|
58
|
+
var P;U.finalized=!0,U.elementProperties=new Map,U.elementStyles=[],U.shadowRootOptions={mode:"open"},null==N||N({ReactiveElement:U}),(null!==(k=E.reactiveElementVersions)&&void 0!==k?k:E.reactiveElementVersions=[]).push("1.6.1");const F=window,I=F.trustedTypes,z=I?I.createPolicy("lit-html",{createHTML:t=>t}):void 0,T="$lit$",L=`lit$${(Math.random()+"").slice(9)}$`,B="?"+L,_=`<${B}>`,D=document,W=()=>D.createComment(""),K=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,Z=t=>H(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),V="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,J=/-->/g,X=/>/g,G=RegExp(`>|${V}(?:([^\\s"'>=/]+)(${V}*=${V}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,Q=/"/g,tt=/^(?:script|style|textarea|title)$/i,et=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),it=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),ot=new WeakMap,rt=D.createTreeWalker(D,129,null,!1),st=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"<svg>":"",s=q;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,u=0;for(;u<i.length&&(s.lastIndex=u,l=s.exec(i),null!==l);)u=s.lastIndex,s===q?"!--"===l[1]?s=J:void 0!==l[1]?s=X:void 0!==l[2]?(tt.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=G):void 0!==l[3]&&(s=G):s===G?">"===l[0]?(s=null!=o?o:q,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?G:'"'===l[3]?Q:Y):s===Q||s===Y?s=G:s===J||s===X?s=q:(s=G,o=void 0);const f=s===G&&t[e+1].startsWith("/>")?" ":"";r+=s===q?i+_:c>=0?(n.push(a),i.slice(0,c)+T+i.slice(c)+L+f):i+L+(-2===c?(n.push(void 0),e):f)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==z?z.createHTML(a):a,n]};class at{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[l,c]=st(t,e);if(this.el=at.createElement(l,i),rt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=rt.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith(T)||e.startsWith(L)){const i=c[r++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+T).split(L),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?ht:"?"===e[1]?dt:"@"===e[1]?vt:ft})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(tt.test(n.tagName)){const t=n.textContent.split(L),e=t.length-1;if(e>0){n.textContent=I?I.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],W()),rt.nextNode(),a.push({type:2,index:++o});n.append(t[e],W())}}}else if(8===n.nodeType)if(n.data===B)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(L,t+1));)a.push({type:7,index:o}),t+=L.length-1}o++}}static createElement(t,e){const i=D.createElement("template");return i.innerHTML=t,i}}function lt(t,e,i=t,n){var o,r,s,a;if(e===it)return e;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const c=K(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(e=lt(t,l._$AS(t,e.values),l,n)),e}let ct=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:D).importNode(i,!0);rt.currentNode=o;let r=rt.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new ut(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new bt(r,this,t)),this._$AV.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=rt.nextNode(),s++)}return o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},ut=class t{constructor(t,e,i,n){var o;this.type=2,this._$AH=nt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=lt(this,t,e),K(t)?t===nt||null==t||""===t?(this._$AH!==nt&&this._$AR(),this._$AH=nt):t!==this._$AH&&t!==it&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Z(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==nt&&K(this._$AH)?this._$AA.nextSibling.data=t:this.$(D.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=at.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new ct(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=ot.get(t.strings);return void 0===e&&ot.set(t.strings,e=new at(t)),e}T(e){H(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,o=0;for(const r of e)o===i.length?i.push(n=new t(this.k(W()),this.k(W()),this,this.options)):n=i[o],n._$AI(r),o++;o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ft=class{constructor(t,e,i,n,o){this.type=1,this._$AH=nt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=nt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let r=!1;if(void 0===o)t=lt(this,t,e,0),r=!K(t)||t!==this._$AH&&t!==it,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=lt(this,n[i+s],e,s),a===it&&(a=this._$AH[s]),r||(r=!K(a)||a!==this._$AH[s]),a===nt?t=nt:t!==nt&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(t)}j(t){t===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},ht=class extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===nt?void 0:t}};const pt=I?I.emptyScript:"";let dt=class extends ft{constructor(){super(...arguments),this.type=4}j(t){t&&t!==nt?this.element.setAttribute(this.name,pt):this.element.removeAttribute(this.name)}},vt=class extends ft{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=lt(this,t,e,0))&&void 0!==i?i:nt)===it)return;const n=this._$AH,o=t===nt&&n!==nt||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==nt&&(n===nt||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}},bt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){lt(this,t)}};const yt={O:T,P:L,A:B,C:1,M:st,L:ct,D:Z,R:lt,I:ut,V:ft,H:dt,N:vt,U:ht,F:bt},gt=F.litHtmlPolyfillSupport;null==gt||gt(at,ut),(null!==(P=F.litHtmlVersions)&&void 0!==P?P:F.litHtmlVersions=[]).push("2.7.3");
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
@@ -93,36 +93,36 @@ var mt,xt;let wt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
93
93
|
display: inline-block;
|
|
94
94
|
width: 0;
|
|
95
95
|
}
|
|
96
|
-
`;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 zt(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var It,Tt,Lt;const Bt=Symbol("internalReduxEventsUnsubscribers"),_t=Symbol("internalStoresUnsubscribers"),Dt=Symbol("internalStores");class Wt extends At{constructor(){super(...arguments),this[It]=new Map,this[Tt]=new Map,this[Lt]=[]}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:zt(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()))),zt(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[Me]}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[Re]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Re])||Yt(t)||Qt(t))}function Vt(t,e,i){void 0===i&&(i=!1),0===qt(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 qt(t){var e=t[Me];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Yt(t)?2:Qt(t)?3:0}function Jt(t,e){return 2===qt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Xt(t,e,i){var n=qt(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 Yt(t){return Ee&&t instanceof Map}function Qt(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[Me];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)||(qt(t)>1&&(t.set=t.add=t.clear=t.delete=ne),Object.freeze(t),e&&Vt(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[Me];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[Me].P&&(le(e),Kt(4)),Zt(t)&&(t=pe(e,t),e.l||ve(e,t)),e.u&&re("Patches").M(i[Me].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[Me];if(!n)return Vt(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),Vt(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[Me];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=Yt(e)?re("MapSet").F(e,i):Qt(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=ze;i&&(o=[n],r=Ie);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[Me],o=qt(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 Vt(i,(function(e,o){n&&function(t,e){return 2===qt(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)}It=_t,Tt=Dt,Lt=Bt;var Oe,Se,ke="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ee="undefined"!=typeof Map,je="undefined"!=typeof Set,Ce="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ne=ke?Symbol.for("immer-nothing"):((Oe={})["immer-nothing"]=!0,Oe),Re=ke?Symbol.for("immer-draftable"):"__$immer_draftable",Me=ke?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={},ze={get:function(t,e){if(e===Me)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[Me];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)}},Ie={};Vt(ze,(function(t,e){Ie[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ie.deleteProperty=function(t,e){return Ie.set.call(this,t,e,void 0)},Ie.set=function(t,e,i){return ze.set.call(this,t[0],e,i,t[0])};var Te=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[Me].C=!0,ce(e),i},e.finishDraft=function(t,e){var i=(t&&t[Me]).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}(),Le=new Te,Be=Le.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. "}Le.produceWithPatches.bind(Le),Le.setAutoFreeze.bind(Le),Le.setUseProxies.bind(Le),Le.applyPatches.bind(Le),Le.createDraft.bind(Le),Le.finishDraft.bind(Le);var Ve="function"==typeof Symbol&&Symbol.observable||"@@observable",qe=function(){return Math.random().toString(36).substring(7).split("").join(".")},Je={INIT:"@@redux/INIT"+qe(),REPLACE:"@@redux/REPLACE"+qe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+qe()}};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})}})[Ve]=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)}}})[Ve]=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 Ye(){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 Qe(){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=Ye.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]?Ye:Ye.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=Qe.apply(void 0,d),b=Ye;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 ki=["name","message","stack","code"],Ei=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=ki;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 Ei(t,e)},fulfillWithValue:function(t,e){return new ji(t,e)}})).then((function(e){if(e instanceof Ei)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 Ei?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 Ri="listenerMiddleware";$i(Ri+"/add"),$i(Ri+"/removeAll"),$i(Ri+"/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[Me];return ze.get(e,t)},set:function(e){var i=this[Me];ze.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Me];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!==Me){var s=e[r];if(void 0===s&&!Jt(e,r))return!0;var a=i[r],l=a&&a[Me];if(l?l.t!==s:!Gt(a,s))return!0}}var c=!!e[Me];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[Me];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,Me,{value:r,writable:!0}),o},S:function(t,i,o){o?Ht(i)&&i[Me].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Me];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Vt(r,(function(e){e!==Me&&(void 0!==o[e]||Jt(o,e)?s[e]||t(r[e]):(s[e]=!0,ge(i)))})),Vt(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 Mi{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(zt(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 Mi(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)=>!p(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 zi=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:""),Ii=1,Ti=2,Li=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
96
|
+
`;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 zt,Tt,Lt;const Bt=Symbol("internalReduxEventsUnsubscribers"),_t=Symbol("internalStoresUnsubscribers"),Dt=Symbol("internalStores");class Wt extends At{constructor(){super(...arguments),this[zt]=new Map,this[Tt]=new Map,this[Lt]=[]}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[Me]}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[Re]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Re])||Yt(t)||Qt(t))}function Vt(t,e,i){void 0===i&&(i=!1),0===qt(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 qt(t){var e=t[Me];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Yt(t)?2:Qt(t)?3:0}function Jt(t,e){return 2===qt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Xt(t,e,i){var n=qt(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 Yt(t){return Ee&&t instanceof Map}function Qt(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[Me];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)||(qt(t)>1&&(t.set=t.add=t.clear=t.delete=ne),Object.freeze(t),e&&Vt(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[Me];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[Me].P&&(le(e),Kt(4)),Zt(t)&&(t=pe(e,t),e.l||ve(e,t)),e.u&&re("Patches").M(i[Me].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[Me];if(!n)return Vt(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),Vt(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[Me];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=Yt(e)?re("MapSet").F(e,i):Qt(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=ze);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[Me],o=qt(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 Vt(i,(function(e,o){n&&function(t,e){return 2===qt(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)}zt=_t,Tt=Dt,Lt=Bt;var Oe,Se,ke="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ee="undefined"!=typeof Map,je="undefined"!=typeof Set,Ce="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ne=ke?Symbol.for("immer-nothing"):((Oe={})["immer-nothing"]=!0,Oe),Re=ke?Symbol.for("immer-draftable"):"__$immer_draftable",Me=ke?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===Me)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[Me];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)}},ze={};Vt(Ie,(function(t,e){ze[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),ze.deleteProperty=function(t,e){return ze.set.call(this,t,e,void 0)},ze.set=function(t,e,i){return Ie.set.call(this,t[0],e,i,t[0])};var Te=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[Me].C=!0,ce(e),i},e.finishDraft=function(t,e){var i=(t&&t[Me]).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}(),Le=new Te,Be=Le.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. "}Le.produceWithPatches.bind(Le),Le.setAutoFreeze.bind(Le),Le.setUseProxies.bind(Le),Le.applyPatches.bind(Le),Le.createDraft.bind(Le),Le.finishDraft.bind(Le);var Ve="function"==typeof Symbol&&Symbol.observable||"@@observable",qe=function(){return Math.random().toString(36).substring(7).split("").join(".")},Je={INIT:"@@redux/INIT"+qe(),REPLACE:"@@redux/REPLACE"+qe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+qe()}};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})}})[Ve]=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)}}})[Ve]=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 Ye(){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 Qe(){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=Ye.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]?Ye:Ye.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=Qe.apply(void 0,d),b=Ye;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 ki=["name","message","stack","code"],Ei=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=ki;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 Ei(t,e)},fulfillWithValue:function(t,e){return new ji(t,e)}})).then((function(e){if(e instanceof Ei)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 Ei?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 Ri="listenerMiddleware";$i(Ri+"/add"),$i(Ri+"/removeAll"),$i(Ri+"/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[Me];return Ie.get(e,t)},set:function(e){var i=this[Me];Ie.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Me];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!==Me){var s=e[r];if(void 0===s&&!Jt(e,r))return!0;var a=i[r],l=a&&a[Me];if(l?l.t!==s:!Gt(a,s))return!0}}var c=!!e[Me];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[Me];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,Me,{value:r,writable:!0}),o},S:function(t,i,o){o?Ht(i)&&i[Me].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Me];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Vt(r,(function(e){e!==Me&&(void 0!==o[e]||Jt(o,e)?s[e]||t(r[e]):(s[e]=!0,ge(i)))})),Vt(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 Mi{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 Mi(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)=>!p(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 zi=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:""),Ti=1,Li=2,Bi=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
97
97
|
/**
|
|
98
98
|
* @license
|
|
99
99
|
* Copyright 2017 Google LLC
|
|
100
100
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
101
|
-
*/class
|
|
101
|
+
*/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)}}
|
|
102
102
|
/**
|
|
103
103
|
* @license
|
|
104
104
|
* Copyright 2020 Google LLC
|
|
105
105
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
106
|
-
*/const{I:
|
|
106
|
+
*/const{I:Di}=yt,Wi=()=>document.createComment(""),Ki=(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(Wi(),r),n=o.insertBefore(Wi(),r);i=new Di(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},Hi=(t,e,i=t)=>(t._$AI(e,i),t),Zi={},Vi=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}},qi=(t,e,i)=>{const n=new Map;for(let o=e;o<=i;o++)n.set(t[o],o);return n},Ji=Bi(class extends _i{constructor(t){if(super(t),t.type!==Li)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]=Hi(r[h],s[d]),h++,d++;else if(l[p]===a[v])c[v]=Hi(r[p],s[v]),p--,v--;else if(l[h]===a[v])c[v]=Hi(r[h],s[v]),Ki(t,c[v+1],r[h]),h++,v--;else if(l[p]===a[d])c[d]=Hi(r[p],s[d]),Ki(t,r[h],r[p]),p--,d++;else if(void 0===u&&(u=qi(a,d,v),f=qi(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=Ki(t,r[h]);Hi(e,s[d]),c[d]=e}else c[d]=Hi(i,s[d]),Ki(t,r[h],i),r[e]=null;d++}else Vi(r[p]),p--;else Vi(r[h]),h++;for(;d<=v;){const e=Ki(t,c[v+1]);Hi(e,s[d]),c[d++]=e}for(;h<=p;){const t=r[h++];null!==t&&Vi(t)}return this.ht=a,((t,e=Zi)=>{t._$AH=e})(t,c),it}}),Xi={spacing:Ot.create("--ft-search-selected-facets-spacing","SIZE","8px")},Gi=$`
|
|
107
107
|
.ft-search-selected-facets--container {
|
|
108
108
|
display: flex;
|
|
109
109
|
flex-wrap: wrap;
|
|
110
|
-
gap: ${
|
|
110
|
+
gap: ${Xi.spacing};
|
|
111
111
|
}
|
|
112
|
-
`,
|
|
113
|
-
`,
|
|
112
|
+
`,Yi=$`
|
|
113
|
+
`,Qi=Mi.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}});
|
|
114
114
|
/**
|
|
115
115
|
* @license
|
|
116
116
|
* Copyright 2017 Google LLC
|
|
117
117
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
118
|
-
*/class
|
|
118
|
+
*/class tn{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Qi.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?tn.build(t):null!==(e=tn.API)&&void 0!==e?e:tn.API=tn.build()}static await(t){return new Promise((e=>{let i=tn.get(t);if(i)e(i);else{const n=Qi.subscribe((()=>{i=tn.get(t),i&&(n(),e(i))}))}}))}}var en;const nn=Symbol("clearAfterUnitTest");class on{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new n,this.listeners={},this.currentUiLocale="",this[en]=()=>{this.defaultMessages={},this.cache=new n,this.listeners={}},this.currentUiLocale=Qi.getState().uiLocale,Qi.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Qi.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};p(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})))}}en=nn,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new on((async(t,e)=>(await tn.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new on((async(t,e)=>(await tn.await()).getCustomMessageContext(t,e))));const rn=window.FluidTopicsI18nService;var sn=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 an extends At{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=()=>tn.get(),this.cache=new n,this.cleanSessionDebouncer=new o}render(){return et`
|
|
119
119
|
<slot></slot>
|
|
120
|
-
`}update(t){super.update(t),t.has("baseUrl")&&
|
|
120
|
+
`}update(t){super.update(t),t.has("baseUrl")&&Qi.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Qi.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Qi.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Qi.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Qi.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Qi.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Qi.actions.setSession(this.session),t.has("availableUiLocales")&&Qi.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>rn.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()))))}}an.elementDefinitions={},an.styles=Yi,sn([s()],an.prototype,"baseUrl",void 0),sn([s()],an.prototype,"apiIntegrationIdentifier",void 0),sn([s()],an.prototype,"uiLocale",void 0),sn([v([])],an.prototype,"availableUiLocales",void 0),sn([s({type:Boolean})],an.prototype,"editorMode",void 0),sn([s({type:Boolean})],an.prototype,"noCustom",void 0),sn([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],an.prototype,"noCustomComponent",void 0),sn([s({type:Boolean})],an.prototype,"withManualResources",void 0),sn([v([])],an.prototype,"messageContexts",void 0),sn([v(void 0)],an.prototype,"session",void 0),sn([s({type:Object})],an.prototype,"apiProvider",void 0);class ln{async listMySearches(){var t;return(null===(t=Qi.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await tn.await()).listMySearches(Qi.getState().session.profile.userId):[]}}const cn=new n;class un{async listMyBookmarks(){return cn.get("bookmarks",(async()=>(await tn.await()).listMyBookmarks(Qi.getState().session.profile.userId)))}clearCache(){cn.clear("bookmarks")}}const fn=Mi.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=Qi.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new un,Qi.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Qi.getState();p(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){fn.actions.savedSearches(void 0)}clearMyBookmarks(){fn.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ln,e=await t.listMySearches();fn.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;fn.actions.bookmarks(e)}}},d("ft-app-context")(an);class hn extends Event{constructor(){super(hn.eventName)}}hn.eventName="search-context-clear-all-filters";var pn=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 dn extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const vn=Symbol("registerInterval");class bn 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[vn]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[vn]):this.dispatchEvent(new dn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=vn,pn([a()],i.prototype,"stateManager",void 0),i}(Wt)){}
|
|
121
121
|
/**
|
|
122
122
|
* @license
|
|
123
123
|
* Copyright 2018 Google LLC
|
|
124
124
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
125
|
-
*/const
|
|
125
|
+
*/const yn=Bi(class extends _i{constructor(t){var e;if(super(t),t.type!==Ti||"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 it}}),gn=Ot.extend("--ft-ripple-color",kt.colorContent),mn={color:gn,backgroundColor:Ot.extend("--ft-ripple-background-color",gn),opacityContentOnSurfacePressed:Ot.external(kt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ot.external(kt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ot.external(kt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ot.external(kt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ot.create("--ft-ripple-border-radius","SIZE","0px")},xn=Ot.extend("--ft-ripple-color",kt.colorPrimary),wn=xn,$n=Ot.extend("--ft-ripple-background-color",xn),On=Ot.extend("--ft-ripple-color",kt.colorSecondary),Sn=On,kn=Ot.extend("--ft-ripple-background-color",On),En=$`
|
|
126
126
|
:host {
|
|
127
127
|
display: contents;
|
|
128
128
|
}
|
|
@@ -135,7 +135,7 @@ var mt,xt;let wt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
135
135
|
|
|
136
136
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
137
137
|
overflow: hidden;
|
|
138
|
-
border-radius: ${
|
|
138
|
+
border-radius: ${mn.borderRadius};
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
.ft-ripple .ft-ripple--background,
|
|
@@ -169,27 +169,27 @@ var mt,xt;let wt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.ft-ripple .ft-ripple--background {
|
|
172
|
-
background-color: ${
|
|
172
|
+
background-color: ${mn.backgroundColor};
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.ft-ripple .ft-ripple--effect {
|
|
176
|
-
background-color: ${
|
|
176
|
+
background-color: ${mn.color};
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
180
|
-
background-color: ${
|
|
180
|
+
background-color: ${kn};
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
184
|
-
background-color: ${
|
|
184
|
+
background-color: ${Sn};
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
188
|
-
background-color: ${
|
|
188
|
+
background-color: ${$n};
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
192
|
-
background-color: ${
|
|
192
|
+
background-color: ${wn};
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
.ft-ripple .ft-ripple--background {
|
|
@@ -219,147 +219,147 @@ var mt,xt;let wt=class extends U{constructor(){super(...arguments),this.renderOp
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
222
|
-
opacity: ${
|
|
222
|
+
opacity: ${mn.opacityContentOnSurfaceHover};
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
226
|
-
opacity: ${
|
|
226
|
+
opacity: ${mn.opacityContentOnSurfaceSelected};
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
230
|
-
opacity: ${
|
|
230
|
+
opacity: ${mn.opacityContentOnSurfaceFocused};
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
234
|
-
opacity: ${
|
|
234
|
+
opacity: ${mn.opacityContentOnSurfacePressed};
|
|
235
235
|
transform: translate(-50%, -50%) scale(1);
|
|
236
236
|
}
|
|
237
|
-
`;var
|
|
237
|
+
`;var jn=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 Cn extends At{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 et`
|
|
238
238
|
<style>
|
|
239
239
|
.ft-ripple .ft-ripple--effect {
|
|
240
240
|
left: ${this.originX}px;
|
|
241
241
|
top: ${this.originY}px;
|
|
242
242
|
}
|
|
243
243
|
</style>
|
|
244
|
-
<div class="${
|
|
244
|
+
<div class="${yn(t)}">
|
|
245
245
|
<div class="ft-ripple--background"></div>
|
|
246
246
|
<div class="ft-ripple--effect"></div>
|
|
247
247
|
</div>
|
|
248
|
-
`}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()}}
|
|
248
|
+
`}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()}}Cn.elementDefinitions={},Cn.styles=En,jn([s({type:Boolean})],Cn.prototype,"primary",void 0),jn([s({type:Boolean})],Cn.prototype,"secondary",void 0),jn([s({type:Boolean})],Cn.prototype,"unbounded",void 0),jn([s({type:Boolean})],Cn.prototype,"activated",void 0),jn([s({type:Boolean})],Cn.prototype,"selected",void 0),jn([s({type:Boolean})],Cn.prototype,"disabled",void 0),jn([a()],Cn.prototype,"hovered",void 0),jn([a()],Cn.prototype,"focused",void 0),jn([a()],Cn.prototype,"pressed",void 0),jn([a()],Cn.prototype,"rippling",void 0),jn([a()],Cn.prototype,"originX",void 0),jn([a()],Cn.prototype,"originY",void 0),jn([c(".ft-ripple")],Cn.prototype,"ripple",void 0),jn([c(".ft-ripple--effect")],Cn.prototype,"rippleEffect",void 0),d("ft-ripple")(Cn);
|
|
249
249
|
/**
|
|
250
250
|
* @license
|
|
251
251
|
* Copyright 2020 Google LLC
|
|
252
252
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
253
253
|
*/
|
|
254
|
-
const
|
|
254
|
+
const Nn=Symbol.for(""),Rn=t=>{if((null==t?void 0:t.r)===Nn)return null==t?void 0:t._$litStatic$},Mn=t=>({_$litStatic$:t,r:Nn}),An=new Map,Un=(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=Rn(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=An.get(t))&&(s.raw=s,An.set(t,e=s)),i=a}return t(e,...i)})(et);var Pn;!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"}(Pn||(Pn={}));const Fn=Ot.extend("--ft-typography-font-family",kt.titleFont),In=Ot.extend("--ft-typography-font-family",kt.contentFont),zn={fontFamily:In,fontSize:Ot.create("--ft-typography-font-size","SIZE","16px"),fontWeight:Ot.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:Ot.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:Ot.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:Ot.create("--ft-typography-text-transform","UNKNOWN","inherit")},Tn=Ot.extend("--ft-typography-title-font-family",Fn),Ln=Ot.extend("--ft-typography-title-font-size",zn.fontSize,"20px"),Bn=Ot.extend("--ft-typography-title-font-weight",zn.fontWeight,"normal"),_n=Ot.extend("--ft-typography-title-letter-spacing",zn.letterSpacing,"0.15px"),Dn=Ot.extend("--ft-typography-title-line-height",zn.lineHeight,"1.2"),Wn=Ot.extend("--ft-typography-title-text-transform",zn.textTransform,"inherit"),Kn=Ot.extend("--ft-typography-title-dense-font-family",Fn),Hn=Ot.extend("--ft-typography-title-dense-font-size",zn.fontSize,"14px"),Zn=Ot.extend("--ft-typography-title-dense-font-weight",zn.fontWeight,"normal"),Vn=Ot.extend("--ft-typography-title-dense-letter-spacing",zn.letterSpacing,"0.105px"),qn=Ot.extend("--ft-typography-title-dense-line-height",zn.lineHeight,"1.7"),Jn=Ot.extend("--ft-typography-title-dense-text-transform",zn.textTransform,"inherit"),Xn=Ot.extend("--ft-typography-subtitle1-font-family",In),Gn=Ot.extend("--ft-typography-subtitle1-font-size",zn.fontSize,"16px"),Yn=Ot.extend("--ft-typography-subtitle1-font-weight",zn.fontWeight,"600"),Qn=Ot.extend("--ft-typography-subtitle1-letter-spacing",zn.letterSpacing,"0.144px"),to=Ot.extend("--ft-typography-subtitle1-line-height",zn.lineHeight,"1.5"),eo=Ot.extend("--ft-typography-subtitle1-text-transform",zn.textTransform,"inherit"),io=Ot.extend("--ft-typography-subtitle2-font-family",In),no=Ot.extend("--ft-typography-subtitle2-font-size",zn.fontSize,"14px"),oo=Ot.extend("--ft-typography-subtitle2-font-weight",zn.fontWeight,"normal"),ro=Ot.extend("--ft-typography-subtitle2-letter-spacing",zn.letterSpacing,"0.098px"),so=Ot.extend("--ft-typography-subtitle2-line-height",zn.lineHeight,"1.7"),ao=Ot.extend("--ft-typography-subtitle2-text-transform",zn.textTransform,"inherit"),lo=Ot.extend("--ft-typography-body1-font-family",In),co=Ot.extend("--ft-typography-body1-font-size",zn.fontSize,"16px"),uo=Ot.extend("--ft-typography-body1-font-weight",zn.fontWeight,"normal"),fo=Ot.extend("--ft-typography-body1-letter-spacing",zn.letterSpacing,"0.496px"),ho=Ot.extend("--ft-typography-body1-line-height",zn.lineHeight,"1.5"),po=Ot.extend("--ft-typography-body1-text-transform",zn.textTransform,"inherit"),vo={fontFamily:Ot.extend("--ft-typography-body2-font-family",In),fontSize:Ot.extend("--ft-typography-body2-font-size",zn.fontSize,"14px"),fontWeight:Ot.extend("--ft-typography-body2-font-weight",zn.fontWeight,"normal"),letterSpacing:Ot.extend("--ft-typography-body2-letter-spacing",zn.letterSpacing,"0.252px"),lineHeight:Ot.extend("--ft-typography-body2-line-height",zn.lineHeight,"1.4"),textTransform:Ot.extend("--ft-typography-body2-text-transform",zn.textTransform,"inherit")},bo=Ot.extend("--ft-typography-caption-font-family",In),yo=Ot.extend("--ft-typography-caption-font-size",zn.fontSize,"12px"),go=Ot.extend("--ft-typography-caption-font-weight",zn.fontWeight,"normal"),mo=Ot.extend("--ft-typography-caption-letter-spacing",zn.letterSpacing,"0.396px"),xo=Ot.extend("--ft-typography-caption-line-height",zn.lineHeight,"1.33"),wo=Ot.extend("--ft-typography-caption-text-transform",zn.textTransform,"inherit"),$o=Ot.extend("--ft-typography-breadcrumb-font-family",In),Oo=Ot.extend("--ft-typography-breadcrumb-font-size",zn.fontSize,"10px"),So=Ot.extend("--ft-typography-breadcrumb-font-weight",zn.fontWeight,"normal"),ko=Ot.extend("--ft-typography-breadcrumb-letter-spacing",zn.letterSpacing,"0.33px"),Eo=Ot.extend("--ft-typography-breadcrumb-line-height",zn.lineHeight,"1.6"),jo=Ot.extend("--ft-typography-breadcrumb-text-transform",zn.textTransform,"inherit"),Co=Ot.extend("--ft-typography-overline-font-family",In),No=Ot.extend("--ft-typography-overline-font-size",zn.fontSize,"10px"),Ro=Ot.extend("--ft-typography-overline-font-weight",zn.fontWeight,"normal"),Mo=Ot.extend("--ft-typography-overline-letter-spacing",zn.letterSpacing,"1.5px"),Ao=Ot.extend("--ft-typography-overline-line-height",zn.lineHeight,"1.6"),Uo=Ot.extend("--ft-typography-overline-text-transform",zn.textTransform,"uppercase"),Po={fontFamily:Ot.extend("--ft-typography-button-font-family",In),fontSize:Ot.extend("--ft-typography-button-font-size",zn.fontSize,"14px"),fontWeight:Ot.extend("--ft-typography-button-font-weight",zn.fontWeight,"600"),letterSpacing:Ot.extend("--ft-typography-button-letter-spacing",zn.letterSpacing,"1.246px"),lineHeight:Ot.extend("--ft-typography-button-line-height",zn.lineHeight,"1.15"),textTransform:Ot.extend("--ft-typography-button-text-transform",zn.textTransform,"uppercase")},Fo=$`
|
|
255
255
|
.ft-typography--title {
|
|
256
|
-
font-family: ${
|
|
257
|
-
font-size: ${
|
|
258
|
-
font-weight: ${
|
|
259
|
-
letter-spacing: ${
|
|
260
|
-
line-height: ${
|
|
261
|
-
text-transform: ${
|
|
262
|
-
}
|
|
263
|
-
`,
|
|
256
|
+
font-family: ${Tn};
|
|
257
|
+
font-size: ${Ln};
|
|
258
|
+
font-weight: ${Bn};
|
|
259
|
+
letter-spacing: ${_n};
|
|
260
|
+
line-height: ${Dn};
|
|
261
|
+
text-transform: ${Wn};
|
|
262
|
+
}
|
|
263
|
+
`,Io=$`
|
|
264
264
|
.ft-typography--title-dense {
|
|
265
|
-
font-family: ${
|
|
266
|
-
font-size: ${
|
|
267
|
-
font-weight: ${
|
|
268
|
-
letter-spacing: ${
|
|
269
|
-
line-height: ${
|
|
270
|
-
text-transform: ${
|
|
265
|
+
font-family: ${Kn};
|
|
266
|
+
font-size: ${Hn};
|
|
267
|
+
font-weight: ${Zn};
|
|
268
|
+
letter-spacing: ${Vn};
|
|
269
|
+
line-height: ${qn};
|
|
270
|
+
text-transform: ${Jn};
|
|
271
271
|
}
|
|
272
272
|
`,zo=$`
|
|
273
273
|
.ft-typography--subtitle1 {
|
|
274
|
-
font-family: ${
|
|
275
|
-
font-size: ${
|
|
276
|
-
font-weight: ${
|
|
277
|
-
letter-spacing: ${
|
|
278
|
-
line-height: ${
|
|
279
|
-
text-transform: ${
|
|
274
|
+
font-family: ${Xn};
|
|
275
|
+
font-size: ${Gn};
|
|
276
|
+
font-weight: ${Yn};
|
|
277
|
+
letter-spacing: ${Qn};
|
|
278
|
+
line-height: ${to};
|
|
279
|
+
text-transform: ${eo};
|
|
280
280
|
}
|
|
281
|
-
`,
|
|
281
|
+
`,To=$`
|
|
282
282
|
.ft-typography--subtitle2 {
|
|
283
|
-
font-family: ${
|
|
284
|
-
font-size: ${
|
|
285
|
-
font-weight: ${
|
|
286
|
-
letter-spacing: ${
|
|
287
|
-
line-height: ${
|
|
288
|
-
text-transform: ${
|
|
283
|
+
font-family: ${io};
|
|
284
|
+
font-size: ${no};
|
|
285
|
+
font-weight: ${oo};
|
|
286
|
+
letter-spacing: ${ro};
|
|
287
|
+
line-height: ${so};
|
|
288
|
+
text-transform: ${ao};
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
`,To=$`
|
|
292
|
-
.ft-typography--body1 {
|
|
293
|
-
font-family: ${ao};
|
|
294
|
-
font-size: ${lo};
|
|
295
|
-
font-weight: ${co};
|
|
296
|
-
letter-spacing: ${uo};
|
|
297
|
-
line-height: ${fo};
|
|
298
|
-
text-transform: ${ho};
|
|
299
|
-
}
|
|
300
291
|
`,Lo=$`
|
|
301
|
-
.ft-typography--
|
|
302
|
-
font-family: ${
|
|
303
|
-
font-size: ${
|
|
304
|
-
font-weight: ${
|
|
305
|
-
letter-spacing: ${
|
|
306
|
-
line-height: ${
|
|
307
|
-
text-transform: ${po
|
|
292
|
+
.ft-typography--body1 {
|
|
293
|
+
font-family: ${lo};
|
|
294
|
+
font-size: ${co};
|
|
295
|
+
font-weight: ${uo};
|
|
296
|
+
letter-spacing: ${fo};
|
|
297
|
+
line-height: ${ho};
|
|
298
|
+
text-transform: ${po};
|
|
308
299
|
}
|
|
309
300
|
`,Bo=$`
|
|
310
|
-
.ft-typography--
|
|
311
|
-
font-family: ${vo};
|
|
312
|
-
font-size: ${
|
|
313
|
-
font-weight: ${
|
|
314
|
-
letter-spacing: ${
|
|
315
|
-
line-height: ${
|
|
316
|
-
text-transform: ${
|
|
301
|
+
.ft-typography--body2 {
|
|
302
|
+
font-family: ${vo.fontFamily};
|
|
303
|
+
font-size: ${vo.fontSize};
|
|
304
|
+
font-weight: ${vo.fontWeight};
|
|
305
|
+
letter-spacing: ${vo.letterSpacing};
|
|
306
|
+
line-height: ${vo.lineHeight};
|
|
307
|
+
text-transform: ${vo.textTransform};
|
|
317
308
|
}
|
|
318
309
|
`,_o=$`
|
|
319
|
-
.ft-typography--
|
|
320
|
-
font-family: ${
|
|
321
|
-
font-size: ${
|
|
322
|
-
font-weight: ${
|
|
323
|
-
letter-spacing: ${
|
|
324
|
-
line-height: ${
|
|
325
|
-
text-transform: ${
|
|
310
|
+
.ft-typography--caption {
|
|
311
|
+
font-family: ${bo};
|
|
312
|
+
font-size: ${yo};
|
|
313
|
+
font-weight: ${go};
|
|
314
|
+
letter-spacing: ${mo};
|
|
315
|
+
line-height: ${xo};
|
|
316
|
+
text-transform: ${wo};
|
|
326
317
|
}
|
|
327
318
|
`,Do=$`
|
|
328
|
-
.ft-typography--
|
|
329
|
-
font-family: ${
|
|
330
|
-
font-size: ${
|
|
331
|
-
font-weight: ${
|
|
332
|
-
letter-spacing: ${
|
|
333
|
-
line-height: ${
|
|
334
|
-
text-transform: ${
|
|
319
|
+
.ft-typography--breadcrumb {
|
|
320
|
+
font-family: ${$o};
|
|
321
|
+
font-size: ${Oo};
|
|
322
|
+
font-weight: ${So};
|
|
323
|
+
letter-spacing: ${ko};
|
|
324
|
+
line-height: ${Eo};
|
|
325
|
+
text-transform: ${jo};
|
|
335
326
|
}
|
|
336
327
|
`,Wo=$`
|
|
337
|
-
.ft-typography--
|
|
338
|
-
font-family: ${
|
|
339
|
-
font-size: ${
|
|
340
|
-
font-weight: ${
|
|
341
|
-
letter-spacing: ${
|
|
342
|
-
line-height: ${
|
|
343
|
-
text-transform: ${Uo
|
|
328
|
+
.ft-typography--overline {
|
|
329
|
+
font-family: ${Co};
|
|
330
|
+
font-size: ${No};
|
|
331
|
+
font-weight: ${Ro};
|
|
332
|
+
letter-spacing: ${Mo};
|
|
333
|
+
line-height: ${Ao};
|
|
334
|
+
text-transform: ${Uo};
|
|
344
335
|
}
|
|
345
336
|
`,Ko=$`
|
|
337
|
+
.ft-typography--button {
|
|
338
|
+
font-family: ${Po.fontFamily};
|
|
339
|
+
font-size: ${Po.fontSize};
|
|
340
|
+
font-weight: ${Po.fontWeight};
|
|
341
|
+
letter-spacing: ${Po.letterSpacing};
|
|
342
|
+
line-height: ${Po.lineHeight};
|
|
343
|
+
text-transform: ${Po.textTransform};
|
|
344
|
+
}
|
|
345
|
+
`,Ho=$`
|
|
346
346
|
.ft-typography {
|
|
347
347
|
vertical-align: inherit;
|
|
348
348
|
}
|
|
349
|
-
`;var
|
|
350
|
-
<${
|
|
349
|
+
`;var Zo=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 Vo extends At{constructor(){super(...arguments),this.variant=Pn.body1}render(){return this.element?Un`
|
|
350
|
+
<${Mn(this.element)}
|
|
351
351
|
class="ft-typography ft-typography--${this.variant}">
|
|
352
352
|
<slot></slot>
|
|
353
|
-
</${
|
|
354
|
-
`:
|
|
353
|
+
</${Mn(this.element)}>
|
|
354
|
+
`:Un`
|
|
355
355
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
356
|
-
`}}
|
|
356
|
+
`}}Vo.styles=[Fo,Io,zo,To,Lo,Bo,_o,Do,Wo,Ko,Ho],Zo([s()],Vo.prototype,"element",void 0),Zo([s()],Vo.prototype,"variant",void 0),d("ft-typography")(Vo);
|
|
357
357
|
/**
|
|
358
358
|
* @license
|
|
359
359
|
* Copyright 2017 Google LLC
|
|
360
360
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
361
361
|
*/
|
|
362
|
-
class
|
|
362
|
+
class qo extends _i{constructor(t){if(super(t),this.et=nt,t.type!==Li)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nt||null==t)return this.ft=void 0,this.et=t;if(t===it)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:[]}}}qo.directiveName="unsafeHTML",qo.resultType=1;const Jo=Bi(qo);var Xo,Go;!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=""}(Xo||(Xo={})),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=""}(Go||(Go={})),new Map([...["abw"].map((t=>[t,Go.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,Go.AUDIO])),...["avi"].map((t=>[t,Go.AVI])),...["chm","xhs"].map((t=>[t,Go.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,Go.CODE])),...["csv"].map((t=>[t,Go.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Go.DITA])),...["epub"].map((t=>[t,Go.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Go.EXCEL])),...["flac"].map((t=>[t,Go.FLAC])),...["gif"].map((t=>[t,Go.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Go.GZIP])),...["html","htm","xhtml"].map((t=>[t,Go.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,Go.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Go.JPEG])),...["json"].map((t=>[t,Go.JSON])),...["m4a","m4p"].map((t=>[t,Go.M4A])),...["mov","qt"].map((t=>[t,Go.MOV])),...["mp3"].map((t=>[t,Go.MP3])),...["mp4","m4v"].map((t=>[t,Go.MP4])),...["ogg","oga"].map((t=>[t,Go.OGG])),...["pdf","ps"].map((t=>[t,Go.PDF])),...["png"].map((t=>[t,Go.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Go.POWERPOINT])),...["rar"].map((t=>[t,Go.RAR])),...["stp"].map((t=>[t,Go.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Go.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,Go.VIDEO])),...["wav"].map((t=>[t,Go.WAV])),...["wma"].map((t=>[t,Go.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Go.WORD])),...["xml","xsl","rdf"].map((t=>[t,Go.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Go.YAML])),...["zip"].map((t=>[t,Go.ZIP]))]);const Yo={size:Ot.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:Ot.extend("--ft-icon-fluid-topics-font-family",Ot.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:Ot.extend("--ft-icon-file-format-font-family",Ot.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:Ot.extend("--ft-icon-material-font-family",Ot.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:Ot.create("--ft-icon-vertical-align","UNKNOWN","unset")},Qo=$`
|
|
363
363
|
:host, i.ft-icon {
|
|
364
364
|
display: inline-flex;
|
|
365
365
|
align-items: center;
|
|
@@ -368,14 +368,14 @@ class Vo extends Bi{constructor(t){if(super(t),this.et=nt,t.type!==Ti)throw Erro
|
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
:host {
|
|
371
|
-
width: ${
|
|
372
|
-
height: ${
|
|
371
|
+
width: ${Yo.size};
|
|
372
|
+
height: ${Yo.size};
|
|
373
373
|
}
|
|
374
374
|
|
|
375
375
|
i.ft-icon {
|
|
376
376
|
width: 100%;
|
|
377
377
|
height: 100%;
|
|
378
|
-
font-size: ${
|
|
378
|
+
font-size: ${Yo.size};
|
|
379
379
|
line-height: 1;
|
|
380
380
|
font-weight: normal;
|
|
381
381
|
text-transform: none;
|
|
@@ -386,33 +386,33 @@ class Vo extends Bi{constructor(t){if(super(t),this.et=nt,t.type!==Ti)throw Erro
|
|
|
386
386
|
text-rendering: auto;
|
|
387
387
|
-webkit-font-smoothing: antialiased;
|
|
388
388
|
-moz-osx-font-smoothing: grayscale;
|
|
389
|
-
vertical-align: ${
|
|
389
|
+
vertical-align: ${Yo.verticalAlign};
|
|
390
390
|
}
|
|
391
391
|
|
|
392
392
|
i.ft-icon.ft-icon--fluid-topics {
|
|
393
|
-
font-family: ${
|
|
393
|
+
font-family: ${Yo.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
394
394
|
|
|
395
395
|
/* Ugly fix because font is broken */
|
|
396
|
-
font-size: calc(0.75 * ${
|
|
397
|
-
line-height: ${
|
|
396
|
+
font-size: calc(0.75 * ${Yo.size});
|
|
397
|
+
line-height: ${Yo.size};
|
|
398
398
|
position: relative;
|
|
399
399
|
top: -4%;
|
|
400
400
|
justify-content: center;
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
.ft-icon--file-format {
|
|
404
|
-
font-family: ${
|
|
404
|
+
font-family: ${Yo.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
.ft-icon--material {
|
|
408
|
-
font-family: ${
|
|
408
|
+
font-family: ${Yo.materialFontFamily}, "Material Icons", sans-serif;
|
|
409
409
|
}
|
|
410
|
-
`;var
|
|
410
|
+
`;var tr;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(tr||(tr={}));var er=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 ir extends At{constructor(){super(...arguments),this.resolvedIcon=nt}render(){const t=this.variant&&Object.values(tr).includes(this.variant)?this.variant:tr.fluid_topics,e=t!==tr.material||!!this.value;return et`
|
|
411
411
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
412
|
-
${
|
|
412
|
+
${Jo(this.resolvedIcon)}
|
|
413
413
|
<slot ?hidden=${e}></slot>
|
|
414
414
|
</i>
|
|
415
|
-
`}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
|
|
415
|
+
`}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 tr.file_format:this.resolvedIcon=null!==(t=Go[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case tr.material:this.resolvedIcon=this.value||nt;break;default:this.resolvedIcon=null!==(e=Xo[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ir.elementDefinitions={},ir.styles=Qo,er([s()],ir.prototype,"variant",void 0),er([s()],ir.prototype,"value",void 0),er([a()],ir.prototype,"resolvedIcon",void 0),er([c("slot")],ir.prototype,"slottedContent",void 0),d("ft-icon")(ir);const nr=Ot.create("--ft-tooltip-distance","SIZE","4px"),or=Ot.create("--ft-tooltip-color","COLOR","#FFFFFF"),rr=Ot.create("--ft-tooltip-background-color","COLOR","#666666"),sr=Ot.create("--ft-tooltip-z-index","NUMBER","100"),ar=Ot.external(kt.borderRadiusS,"Design system"),lr=Ot.create("--ft-tooltip-max-width","SIZE","150px"),cr=$`
|
|
416
416
|
.ft-tooltip--container {
|
|
417
417
|
display: block;
|
|
418
418
|
}
|
|
@@ -427,21 +427,21 @@ class Vo extends Bi{constructor(t){if(super(t),this.et=nt,t.type!==Ti)throw Erro
|
|
|
427
427
|
box-sizing: border-box;
|
|
428
428
|
overflow: hidden;
|
|
429
429
|
width: max-content;
|
|
430
|
-
max-width: ${
|
|
430
|
+
max-width: ${lr};
|
|
431
431
|
text-align: center;
|
|
432
|
-
padding: ${
|
|
433
|
-
z-index: ${
|
|
432
|
+
padding: ${nr};
|
|
433
|
+
z-index: ${sr};
|
|
434
434
|
}
|
|
435
435
|
|
|
436
436
|
.ft-tooltip--content {
|
|
437
437
|
padding: 4px 8px;
|
|
438
|
-
border-radius: ${
|
|
439
|
-
background-color: ${
|
|
440
|
-
color: ${
|
|
438
|
+
border-radius: ${ar};
|
|
439
|
+
background-color: ${rr};
|
|
440
|
+
color: ${or};
|
|
441
441
|
position: relative;
|
|
442
442
|
word-break: break-word;
|
|
443
443
|
}
|
|
444
|
-
`;var
|
|
444
|
+
`;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 At{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 et`
|
|
445
445
|
<div part="container"
|
|
446
446
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
447
447
|
@mouseenter=${this.onHover}
|
|
@@ -459,13 +459,13 @@ class Vo extends Bi{constructor(t){if(super(t),this.et=nt,t.type!==Ti)throw Erro
|
|
|
459
459
|
</div>
|
|
460
460
|
</div>
|
|
461
461
|
</div>
|
|
462
|
-
`}
|
|
462
|
+
`}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, ${lr})`}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))}}fr.elementDefinitions={"ft-typography":Vo},fr.styles=cr,ur([s()],fr.prototype,"text",void 0),ur([s({type:Boolean})],fr.prototype,"manual",void 0),ur([s({type:Boolean})],fr.prototype,"inline",void 0),ur([s({type:Number})],fr.prototype,"delay",void 0),ur([s()],fr.prototype,"position",void 0),ur([
|
|
463
463
|
/**
|
|
464
464
|
* @license
|
|
465
465
|
* Copyright 2017 Google LLC
|
|
466
466
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
467
467
|
*/
|
|
468
|
-
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)],
|
|
468
|
+
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)],fr.prototype,"slotNodes",void 0),ur([c(".ft-tooltip--container")],fr.prototype,"container",void 0),ur([c(".ft-tooltip")],fr.prototype,"tooltip",void 0),ur([c(".ft-tooltip--content")],fr.prototype,"tooltipContent",void 0),ur([a()],fr.prototype,"visible",void 0),d("ft-tooltip")(fr);const hr={color:Ot.extend("--ft-loader-color",kt.colorPrimary),size:Ot.create("--ft-loader-size","SIZE","80px")},pr=$`
|
|
469
469
|
:host {
|
|
470
470
|
line-height: 0;
|
|
471
471
|
}
|
|
@@ -474,8 +474,8 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
474
474
|
display: inline-block;
|
|
475
475
|
position: relative;
|
|
476
476
|
|
|
477
|
-
width: ${
|
|
478
|
-
height: ${
|
|
477
|
+
width: ${hr.size};
|
|
478
|
+
height: ${hr.size};
|
|
479
479
|
}
|
|
480
480
|
|
|
481
481
|
.ft-loader div {
|
|
@@ -484,7 +484,7 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
484
484
|
width: 25%;
|
|
485
485
|
height: 25%;
|
|
486
486
|
border-radius: 50%;
|
|
487
|
-
background: ${
|
|
487
|
+
background: ${hr.color};
|
|
488
488
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
489
489
|
}
|
|
490
490
|
|
|
@@ -531,17 +531,17 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
531
531
|
transform: translate(0, 0);
|
|
532
532
|
}
|
|
533
533
|
100% {
|
|
534
|
-
transform: translate(calc(0.35 * ${
|
|
534
|
+
transform: translate(calc(0.35 * ${hr.size}), 0);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
`;class
|
|
537
|
+
`;class dr extends At{render(){return et`
|
|
538
538
|
<div class="ft-loader">
|
|
539
539
|
<div></div>
|
|
540
540
|
<div></div>
|
|
541
541
|
<div></div>
|
|
542
542
|
<div></div>
|
|
543
543
|
</div>
|
|
544
|
-
`}}
|
|
544
|
+
`}}dr.styles=pr,d("ft-loader")(dr);const vr=Ot.extend("--ft-button-color",kt.colorPrimary),br={backgroundColor:Ot.extend("--ft-button-background-color",kt.colorSurface),borderRadius:Ot.extend("--ft-button-border-radius",kt.borderRadiusL),color:vr,fontSize:Ot.extend("--ft-button-font-size",Po.fontSize),iconSize:Ot.create("--ft-button-icon-size","SIZE","24px"),rippleColor:Ot.extend("--ft-button-ripple-color",vr),verticalPadding:Ot.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:Ot.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:Ot.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:Ot.external(kt.colorOpacityDisabled,"Design system")},yr=Ot.extend("--ft-button-primary-color",Ot.extend("--ft-button-color",kt.colorOnPrimary)),gr={backgroundColor:Ot.extend("--ft-button-primary-background-color",Ot.extend("--ft-button-background-color",kt.colorPrimary)),color:yr,rippleColor:Ot.extend("--ft-button-primary-ripple-color",yr)},mr=Ot.extend("--ft-button-dense-border-radius",Ot.extend("--ft-button-border-radius",kt.borderRadiusM)),xr=Ot.create("--ft-button-dense-vertical-padding","SIZE","2px"),wr=Ot.create("--ft-button-dense-horizontal-padding","SIZE","4px"),$r=Ot.create("--ft-button-dense-icon-padding","SIZE","4px"),Or=[$`
|
|
545
545
|
:host {
|
|
546
546
|
display: inline-block;
|
|
547
547
|
max-width: 100%;
|
|
@@ -552,7 +552,7 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
552
552
|
box-shadow: 0px 0px 0px transparent;
|
|
553
553
|
border: 0px solid transparent;
|
|
554
554
|
text-shadow: 0px 0px 0px transparent;
|
|
555
|
-
font-size: ${
|
|
555
|
+
font-size: ${br.fontSize};
|
|
556
556
|
}
|
|
557
557
|
|
|
558
558
|
button:hover {
|
|
@@ -581,31 +581,31 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
581
581
|
border: none;
|
|
582
582
|
pointer-events: auto;
|
|
583
583
|
|
|
584
|
-
--ft-button-internal-line-height: max(calc(${
|
|
585
|
-
--ft-button-internal-color: ${
|
|
586
|
-
${St(
|
|
587
|
-
${St(
|
|
584
|
+
--ft-button-internal-line-height: max(calc(${br.fontSize} + 2px), ${br.iconSize});
|
|
585
|
+
--ft-button-internal-color: ${br.color};
|
|
586
|
+
${St(Yo.size,br.iconSize)};
|
|
587
|
+
${St(mn.color,br.rippleColor)};
|
|
588
588
|
|
|
589
|
-
border-radius: ${
|
|
590
|
-
padding: ${
|
|
591
|
-
background-color: ${
|
|
589
|
+
border-radius: ${br.borderRadius};
|
|
590
|
+
padding: ${br.verticalPadding} ${br.horizontalPadding};
|
|
591
|
+
background-color: ${br.backgroundColor};
|
|
592
592
|
color: var(--ft-button-internal-color);
|
|
593
593
|
-webkit-mask-image: radial-gradient(white, black);
|
|
594
594
|
}
|
|
595
595
|
|
|
596
596
|
.ft-button.ft-button--outlined {
|
|
597
597
|
border: 1px solid var(--ft-button-internal-color);
|
|
598
|
-
padding: calc(${
|
|
598
|
+
padding: calc(${br.verticalPadding} - 1px) calc(${br.horizontalPadding} - 1px);
|
|
599
599
|
}
|
|
600
600
|
|
|
601
601
|
.ft-button.ft-button--dense {
|
|
602
|
-
padding: ${
|
|
603
|
-
border-radius: ${
|
|
604
|
-
gap: ${
|
|
602
|
+
padding: ${xr} ${wr};
|
|
603
|
+
border-radius: ${mr};
|
|
604
|
+
gap: ${$r};
|
|
605
605
|
}
|
|
606
606
|
|
|
607
607
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
608
|
-
padding: calc(${
|
|
608
|
+
padding: calc(${xr} - 1px) calc(${wr} - 1px);
|
|
609
609
|
}
|
|
610
610
|
|
|
611
611
|
.ft-button:not([disabled]):hover {
|
|
@@ -613,22 +613,22 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
.ft-button--round {
|
|
616
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
616
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${br.verticalPadding});
|
|
617
617
|
}
|
|
618
618
|
|
|
619
619
|
.ft-button--round.ft-button--dense {
|
|
620
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
620
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${xr});
|
|
621
621
|
}
|
|
622
622
|
|
|
623
623
|
.ft-button[disabled] {
|
|
624
624
|
filter: grayscale(1);
|
|
625
|
-
opacity: ${
|
|
625
|
+
opacity: ${br.opacityDisabled};
|
|
626
626
|
}
|
|
627
627
|
|
|
628
628
|
.ft-button.ft-button--primary {
|
|
629
|
-
background-color: ${
|
|
630
|
-
--ft-button-internal-color: ${
|
|
631
|
-
${St(
|
|
629
|
+
background-color: ${gr.backgroundColor};
|
|
630
|
+
--ft-button-internal-color: ${gr.color};
|
|
631
|
+
${St(mn.color,gr.rippleColor)};
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
.ft-button:focus {
|
|
@@ -641,13 +641,13 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
641
641
|
white-space: nowrap;
|
|
642
642
|
text-overflow: ellipsis;
|
|
643
643
|
display: block;
|
|
644
|
-
margin: 0 ${
|
|
645
|
-
${St(
|
|
646
|
-
${St(
|
|
644
|
+
margin: 0 ${br.iconPadding};
|
|
645
|
+
${St(Po.fontSize,"1em")};
|
|
646
|
+
${St(Po.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
647
647
|
}
|
|
648
648
|
|
|
649
649
|
.ft-button--dense .ft-button--label {
|
|
650
|
-
margin: 0 ${
|
|
650
|
+
margin: 0 ${$r};
|
|
651
651
|
}
|
|
652
652
|
|
|
653
653
|
.ft-button--label[hidden] {
|
|
@@ -660,13 +660,13 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
660
660
|
}
|
|
661
661
|
|
|
662
662
|
.ft-button--label[hidden] + ft-icon {
|
|
663
|
-
margin: 0 calc(${
|
|
664
|
-
padding: 0 ${
|
|
663
|
+
margin: 0 calc(${br.horizontalPadding} * -1);
|
|
664
|
+
padding: 0 ${br.verticalPadding};
|
|
665
665
|
}
|
|
666
666
|
|
|
667
667
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
668
|
-
margin: 0 calc(${
|
|
669
|
-
padding: 0 ${
|
|
668
|
+
margin: 0 calc(${wr} * -1);
|
|
669
|
+
padding: 0 ${xr};
|
|
670
670
|
}
|
|
671
671
|
|
|
672
672
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -675,12 +675,12 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
675
675
|
}
|
|
676
676
|
|
|
677
677
|
ft-loader {
|
|
678
|
-
${St(
|
|
679
|
-
${St(
|
|
678
|
+
${St(hr.size,br.iconSize)};
|
|
679
|
+
${St(hr.color,"var(--ft-button-internal-color)")};
|
|
680
680
|
}
|
|
681
|
-
`,Ut];var
|
|
681
|
+
`,Ut];var Sr=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 kr 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)}}}(At,"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(et`
|
|
682
682
|
<button part="button"
|
|
683
|
-
class="${
|
|
683
|
+
class="${yn(t)}"
|
|
684
684
|
aria-label="${this.getLabel()}"
|
|
685
685
|
?disabled=${this.isDisabled()}>
|
|
686
686
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
@@ -694,14 +694,14 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
694
694
|
${this.resolveIcon()}
|
|
695
695
|
</button>
|
|
696
696
|
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?et`
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
697
|
+
<ft-tooltip part="tooltip"
|
|
698
|
+
text="${this.getLabel()}"
|
|
699
|
+
position="${this.tooltipPosition}">
|
|
700
|
+
${t}
|
|
701
|
+
</ft-tooltip>
|
|
702
702
|
`:t}resolveIcon(){return this.loading?et`
|
|
703
703
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?et`
|
|
704
|
-
|
|
704
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:nt}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}kr.elementDefinitions={"ft-ripple":Cn,"ft-tooltip":fr,"ft-typography":Vo,"ft-icon":ir,"ft-loader":dr},kr.styles=[Pt,Or],Sr([s({type:String,reflect:!0})],kr.prototype,"role",void 0),Sr([s()],kr.prototype,"type",void 0),Sr([s({type:Boolean})],kr.prototype,"primary",void 0),Sr([s({type:Boolean})],kr.prototype,"outlined",void 0),Sr([s({type:Boolean})],kr.prototype,"disabled",void 0),Sr([s({type:Boolean})],kr.prototype,"dense",void 0),Sr([s({type:Boolean})],kr.prototype,"round",void 0),Sr([s()],kr.prototype,"label",void 0),Sr([s()],kr.prototype,"icon",void 0),Sr([s()],kr.prototype,"iconVariant",void 0),Sr([s({type:Boolean})],kr.prototype,"trailingIcon",void 0),Sr([s({type:Boolean})],kr.prototype,"loading",void 0),Sr([s()],kr.prototype,"tooltipPosition",void 0),Sr([s({type:Boolean})],kr.prototype,"hideTooltip",void 0),Sr([s({type:Boolean})],kr.prototype,"forceTooltip",void 0),Sr([c(".ft-button")],kr.prototype,"button",void 0),Sr([c(".ft-button--label slot")],kr.prototype,"slottedContent",void 0),d("ft-button")(kr);const Er=Ot.extend("--ft-chip-color",kt.colorOnSurface),jr={backgroundColor:Ot.extend("--ft-chip-background-color",kt.colorSurface),color:Er,fontSize:Ot.extend("--ft-chip-font-size",vo.fontSize),iconSize:Ot.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:Ot.extend("--ft-chip-ripple-color",Er),horizontalPadding:Ot.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:Ot.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:Ot.external(kt.colorOutline,"Design system"),opacityDisabled:Ot.external(kt.colorOpacityDisabled,"Design system")},Cr=Ot.extend("--ft-chip-highlighted-color",Ot.extend("--ft-chip-color",kt.colorOnPrimary)),Nr={backgroundColor:Ot.extend("--ft-chip-highlighted-background-color",Ot.extend("--ft-chip-background-color",kt.colorPrimary)),color:Cr,rippleColor:Ot.extend("--ft-chip-highlighted-ripple-color",Cr)},Rr=Ot.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Mr=Ot.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Ar=[Ut,$`
|
|
705
705
|
:host {
|
|
706
706
|
display: inline-block;
|
|
707
707
|
max-width: 100%;
|
|
@@ -717,20 +717,20 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
717
717
|
box-sizing: border-box;
|
|
718
718
|
pointer-events: auto;
|
|
719
719
|
|
|
720
|
-
--ft-chip-internal-font-size: ${
|
|
720
|
+
--ft-chip-internal-font-size: ${jr.fontSize};
|
|
721
721
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
722
|
-
${St(
|
|
723
|
-
--ft-chip-internal-vertical-padding: ${
|
|
724
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
722
|
+
${St(Yo.size,jr.iconSize)};
|
|
723
|
+
--ft-chip-internal-vertical-padding: ${jr.verticalPadding};
|
|
724
|
+
--ft-chip-internal-horizontal-padding: ${jr.horizontalPadding};
|
|
725
725
|
--ft-chip-internal-icon-padding: 3px;
|
|
726
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
726
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${jr.iconSize});
|
|
727
727
|
|
|
728
|
-
border: 1px solid ${
|
|
729
|
-
color: ${
|
|
730
|
-
${St(
|
|
728
|
+
border: 1px solid ${jr.colorOutline};
|
|
729
|
+
color: ${jr.color};
|
|
730
|
+
${St(mn.color,jr.rippleColor)};
|
|
731
731
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
732
732
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
733
|
-
background-color: ${
|
|
733
|
+
background-color: ${jr.backgroundColor};
|
|
734
734
|
line-height: var(--ft-chip-internal-content-height);
|
|
735
735
|
}
|
|
736
736
|
|
|
@@ -740,8 +740,8 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
740
740
|
|
|
741
741
|
.ft-chip--dense {
|
|
742
742
|
--ft-chip-internal-icon-padding: 3px;
|
|
743
|
-
--ft-chip-internal-vertical-padding: ${
|
|
744
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
743
|
+
--ft-chip-internal-vertical-padding: ${Mr};
|
|
744
|
+
--ft-chip-internal-horizontal-padding: ${Rr};
|
|
745
745
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
746
746
|
}
|
|
747
747
|
|
|
@@ -753,15 +753,15 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
753
753
|
cursor: default;
|
|
754
754
|
pointer-events: none;
|
|
755
755
|
filter: grayscale(1);
|
|
756
|
-
opacity: ${
|
|
756
|
+
opacity: ${jr.opacityDisabled};
|
|
757
757
|
}
|
|
758
758
|
|
|
759
759
|
.ft-chip--highlighted {
|
|
760
760
|
border: none;
|
|
761
761
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
762
|
-
background-color: ${
|
|
763
|
-
${St(
|
|
764
|
-
color: ${
|
|
762
|
+
background-color: ${Nr.backgroundColor};
|
|
763
|
+
${St(mn.color,Nr.rippleColor)};
|
|
764
|
+
color: ${Nr.color};
|
|
765
765
|
}
|
|
766
766
|
|
|
767
767
|
.ft-chip--clickable {
|
|
@@ -791,9 +791,9 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
791
791
|
}
|
|
792
792
|
|
|
793
793
|
.ft-chip--icon-button {
|
|
794
|
-
${St(
|
|
795
|
-
${St(
|
|
796
|
-
${St(
|
|
794
|
+
${St(br.iconSize,jr.iconSize)};
|
|
795
|
+
${St(br.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
796
|
+
${St(br.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
797
797
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
798
798
|
}
|
|
799
799
|
|
|
@@ -801,8 +801,8 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
801
801
|
vertical-align: bottom;
|
|
802
802
|
display: block;
|
|
803
803
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
804
|
-
${St(
|
|
805
|
-
${St(
|
|
804
|
+
${St(vo.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
805
|
+
${St(vo.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
806
806
|
}
|
|
807
807
|
|
|
808
808
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -838,8 +838,8 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
838
838
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
839
839
|
order: -1;
|
|
840
840
|
}
|
|
841
|
-
`];var
|
|
842
|
-
<div class="${
|
|
841
|
+
`];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 Pr extends CustomEvent{constructor(){super("icon-click")}}class Fr extends At{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":zi};return et`
|
|
842
|
+
<div class="${yn(t)}"
|
|
843
843
|
aria-label="${this.getLabel()}"
|
|
844
844
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
845
845
|
@keyup=${this.onKeyUp}>
|
|
@@ -861,10 +861,10 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
861
861
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
862
862
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
863
863
|
</div>
|
|
864
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
864
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Pr))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Pr))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}Fr.elementDefinitions={"ft-ripple":Cn,"ft-typography":Vo,"ft-icon":ir,"ft-button":kr},Fr.styles=Ar,Ur([s({type:Boolean})],Fr.prototype,"highlighted",void 0),Ur([s({type:Boolean})],Fr.prototype,"removable",void 0),Ur([s({type:Boolean})],Fr.prototype,"disabled",void 0),Ur([s({type:Boolean})],Fr.prototype,"clickable",void 0),Ur([s({type:Boolean})],Fr.prototype,"iconClickable",void 0),Ur([s({type:Boolean})],Fr.prototype,"dense",void 0),Ur([s({type:Boolean})],Fr.prototype,"multiLine",void 0),Ur([s()],Fr.prototype,"label",void 0),Ur([s()],Fr.prototype,"iconLabel",void 0),Ur([s()],Fr.prototype,"icon",void 0),Ur([s()],Fr.prototype,"iconVariant",void 0),Ur([s({type:Boolean})],Fr.prototype,"trailingIcon",void 0),Ur([c("ft-typography slot")],Fr.prototype,"slottedContent",void 0),d("ft-chip")(Fr);var Ir=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 zr extends bn{constructor(){super(),this.editorMode=!1,this.addStore(Qi)}render(){return this.editorMode?this.renderDummyFacet():null==this.facets||0===this.facets.length?nt:et`
|
|
865
865
|
|
|
866
866
|
<div class="ft-search-selected-facets--container">
|
|
867
|
-
${
|
|
867
|
+
${Ji(this.facets,(t=>t.key),(t=>{const e=this.getSelectedValues(t);return Ji(e,(e=>t.key+"-"+e),(i=>this.renderFacet(t.key,t.label,e,i)))}))}
|
|
868
868
|
</div>
|
|
869
869
|
`}renderDummyFacet(){return et`
|
|
870
870
|
|
|
@@ -883,4 +883,4 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
883
883
|
${this.getLabelFromValue(n)}
|
|
884
884
|
</ft-chip>
|
|
885
885
|
</ft-tooltip>
|
|
886
|
-
`}getSelectedValues(t){return h(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}getLabelFromValue(t){return this.unquote(t).split("|").pop()}getBreadcrumbFromValue(t){return this.unquote(t).split("|").join(" > ")}quote(t){return`"${t}"`}unquote(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}}zr.elementDefinitions={"ft-chip":
|
|
886
|
+
`}getSelectedValues(t){return h(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}getLabelFromValue(t){return this.unquote(t).split("|").pop()}getBreadcrumbFromValue(t){return this.unquote(t).split("|").join(" > ")}quote(t){return`"${t}"`}unquote(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}}zr.elementDefinitions={"ft-chip":Fr,"ft-tooltip":fr},zr.styles=Gi,Ir([Ai({store:"search"})],zr.prototype,"facets",void 0),Ir([Ai({store:Qi.name})],zr.prototype,"editorMode",void 0),d("ft-search-selected-facets")(zr),t.FtSearchSelectedFacets=zr,t.FtSearchSelectedFacetsCssVariables=Xi,t.styles=Gi}({});
|