@fluid-topics/ft-wc-utils 0.3.51 → 0.3.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/CacheRegistry.d.ts +14 -0
- package/build/CacheRegistry.js +55 -0
- package/build/CancelablePromise.d.ts +7 -0
- package/build/CancelablePromise.js +25 -0
- package/build/FtLitElement.d.ts +1 -0
- package/build/FtLitElement.js +11 -0
- package/build/generic-types.d.ts +2 -0
- package/build/generic-types.js +2 -0
- package/build/globals.min.js +16 -16
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/build/redux.d.ts +51 -10
- package/build/redux.js +151 -35
- package/package.json +2 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CancelablePromise } from "./CancelablePromise";
|
|
2
|
+
export declare type CachedContent<T> = undefined | CancelablePromise<T> | T | Error;
|
|
3
|
+
export declare class CacheRegistry {
|
|
4
|
+
private loaders;
|
|
5
|
+
private content;
|
|
6
|
+
private finalContent;
|
|
7
|
+
register<T>(key: string, loader: () => Promise<T>): void;
|
|
8
|
+
registerFinal<T>(key: string, loader: () => Promise<T>): void;
|
|
9
|
+
clearAll(): void;
|
|
10
|
+
clear(key: string): void;
|
|
11
|
+
get<T>(key: string, loader?: () => Promise<T>): Promise<T>;
|
|
12
|
+
getNow<T>(key: string): T | undefined;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=CacheRegistry.d.ts.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { cancelable, CancelablePromise } from "./CancelablePromise";
|
|
2
|
+
export class CacheRegistry {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.loaders = {};
|
|
5
|
+
this.content = {};
|
|
6
|
+
this.finalContent = new Set();
|
|
7
|
+
}
|
|
8
|
+
register(key, loader) {
|
|
9
|
+
this.loaders[key] = loader;
|
|
10
|
+
this.finalContent.delete(key);
|
|
11
|
+
}
|
|
12
|
+
registerFinal(key, loader) {
|
|
13
|
+
this.loaders[key] = loader;
|
|
14
|
+
this.finalContent.add(key);
|
|
15
|
+
}
|
|
16
|
+
clearAll() {
|
|
17
|
+
for (let key in this.content) {
|
|
18
|
+
this.clear(key);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
clear(key) {
|
|
22
|
+
if (!this.finalContent.has(key)) {
|
|
23
|
+
if (this.content[key] instanceof CancelablePromise) {
|
|
24
|
+
this.content[key].cancel();
|
|
25
|
+
}
|
|
26
|
+
delete this.content[key];
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
async get(key, loader) {
|
|
30
|
+
if (this.content[key] === undefined) {
|
|
31
|
+
loader = loader !== null && loader !== void 0 ? loader : this.loaders[key];
|
|
32
|
+
if (loader == undefined) {
|
|
33
|
+
throw new Error("Unknown cache key " + key);
|
|
34
|
+
}
|
|
35
|
+
const cancelablePromise = cancelable(loader());
|
|
36
|
+
this.content[key] = cancelablePromise;
|
|
37
|
+
return cancelablePromise
|
|
38
|
+
.then(v => {
|
|
39
|
+
this.content[key] = v;
|
|
40
|
+
return v;
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
if (this.content[key] instanceof Error) {
|
|
44
|
+
throw this.content[key];
|
|
45
|
+
}
|
|
46
|
+
return this.content[key];
|
|
47
|
+
}
|
|
48
|
+
getNow(key) {
|
|
49
|
+
if (this.content[key] instanceof Promise || this.content[key] instanceof Error) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
return this.content[key];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=CacheRegistry.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare class CancelablePromise<T> extends Promise<T> {
|
|
2
|
+
isCanceled: boolean;
|
|
3
|
+
constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void);
|
|
4
|
+
cancel(): void;
|
|
5
|
+
}
|
|
6
|
+
export declare const cancelable: <T>(promise: Promise<T>) => CancelablePromise<T>;
|
|
7
|
+
//# sourceMappingURL=CancelablePromise.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export class CancelablePromise extends Promise {
|
|
2
|
+
constructor(executor) {
|
|
3
|
+
super((superAccept, superReject) => executor(result => {
|
|
4
|
+
if (this.isCanceled) {
|
|
5
|
+
superReject(new Error("Promise has been canceled"));
|
|
6
|
+
}
|
|
7
|
+
else {
|
|
8
|
+
superAccept(result);
|
|
9
|
+
}
|
|
10
|
+
}, reason => {
|
|
11
|
+
if (this.isCanceled) {
|
|
12
|
+
superReject(new Error("Promise has been canceled"));
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
superReject(reason);
|
|
16
|
+
}
|
|
17
|
+
}));
|
|
18
|
+
this.isCanceled = false;
|
|
19
|
+
}
|
|
20
|
+
cancel() {
|
|
21
|
+
this.isCanceled = true;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export const cancelable = (promise) => new CancelablePromise((accept, reject) => promise.then(accept).catch(reject));
|
|
25
|
+
//# sourceMappingURL=CancelablePromise.js.map
|
package/build/FtLitElement.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare class FtLitElement extends FtLitElement_base {
|
|
|
8
8
|
adoptedCallback(): void;
|
|
9
9
|
exportpartsPrefix?: string;
|
|
10
10
|
exportpartsPrefixes?: string[];
|
|
11
|
+
customStylesheet?: string;
|
|
11
12
|
/**
|
|
12
13
|
* @deprecated Unless inline styles are required for your use-case, prefer static styles member
|
|
13
14
|
*/
|
package/build/FtLitElement.js
CHANGED
|
@@ -53,6 +53,14 @@ export class FtLitElement extends ScopedRegistryHost(LitElement) {
|
|
|
53
53
|
}, 0);
|
|
54
54
|
}
|
|
55
55
|
contentAvailableCallback(props) {
|
|
56
|
+
var _a, _b;
|
|
57
|
+
((_b = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".ft-lit-element--custom-stylesheet")) !== null && _b !== void 0 ? _b : []).forEach(e => e.remove());
|
|
58
|
+
if (this.customStylesheet) {
|
|
59
|
+
const customStyles = document.createElement("style");
|
|
60
|
+
customStyles.classList.add("ft-lit-element--custom-stylesheet");
|
|
61
|
+
customStyles.innerHTML = this.customStylesheet;
|
|
62
|
+
this.shadowRoot.append(customStyles);
|
|
63
|
+
}
|
|
56
64
|
}
|
|
57
65
|
scheduleExportpartsUpdate() {
|
|
58
66
|
this.exportpartsDebouncer.run(() => {
|
|
@@ -95,4 +103,7 @@ __decorate([
|
|
|
95
103
|
__decorate([
|
|
96
104
|
jsonProperty([])
|
|
97
105
|
], FtLitElement.prototype, "exportpartsPrefixes", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
property()
|
|
108
|
+
], FtLitElement.prototype, "customStylesheet", void 0);
|
|
98
109
|
//# sourceMappingURL=FtLitElement.js.map
|
package/build/globals.min.js
CHANGED
|
@@ -4,23 +4,23 @@ var t,e;t=this,e=function(t){
|
|
|
4
4
|
* Copyright 2019 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
const e=window,n=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),i=new WeakMap;class o{constructor(t,e,n){if(this._$cssResult$=!0,n!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=i.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&i.set(e,t))}return t}toString(){return this.cssText}}const s=t=>new o("string"==typeof t?t:t+"",void 0,r),
|
|
7
|
+
const e=window,n=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),i=new WeakMap;class o{constructor(t,e,n){if(this._$cssResult$=!0,n!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=i.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&i.set(e,t))}return t}toString(){return this.cssText}}const s=t=>new o("string"==typeof t?t:t+"",void 0,r),u=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,n,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[r+1]),t[0]);return new o(n,t,r)},c=(t,r)=>{n?t.adoptedStyleSheets=r.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):r.forEach((n=>{const r=document.createElement("style"),i=e.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=n.cssText,t.appendChild(r)}))},a=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return s(e)})(t):t
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2017 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/;var l;const f=window,h=f.trustedTypes,d=h?h.emptyScript:"",v=f.reactiveElementPolyfillSupport,p={toAttribute(t,e){switch(e){case Boolean:t=t?d:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},b=(t,e)=>e!==t&&(e==e||t==t),y={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:b};class m extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const r=this._$Ep(n,e);void 0!==r&&(this._$Ev.set(r,n),t.push(r))})),t}static createProperty(t,e=y){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const n="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(r){const i=this[t];this[e]=r,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||y}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Ep(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return
|
|
12
|
+
*/;var l;const f=window,h=f.trustedTypes,d=h?h.emptyScript:"",v=f.reactiveElementPolyfillSupport,p={toAttribute(t,e){switch(e){case Boolean:t=t?d:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},b=(t,e)=>e!==t&&(e==e||t==t),y={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:b};class m extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const r=this._$Ep(n,e);void 0!==r&&(this._$Ev.set(r,n),t.push(r))})),t}static createProperty(t,e=y){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const n="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(r){const i=this[t];this[e]=r,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||y}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Ep(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return c(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EO(t,e,n=y){var r;const i=this.constructor._$Ep(t,n);if(void 0!==i&&!0===n.reflect){const o=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:p).toAttribute(e,n.type);this._$El=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}_$AK(t,e){var n;const r=this.constructor,i=r._$Ev.get(t);if(void 0!==i&&this._$El!==i){const t=r.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(n=t.converter)||void 0===n?void 0:n.fromAttribute)?t.converter:p;this._$El=i,this[i]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,n){let r=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||b)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(n)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(n)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
17
|
*/
|
|
18
|
-
var w;m.finalized=!0,m.elementProperties=new Map,m.elementStyles=[],m.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:m}),(null!==(l=f.reactiveElementVersions)&&void 0!==l?l:f.reactiveElementVersions=[]).push("1.4.1");const
|
|
18
|
+
var w;m.finalized=!0,m.elementProperties=new Map,m.elementStyles=[],m.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:m}),(null!==(l=f.reactiveElementVersions)&&void 0!==l?l:f.reactiveElementVersions=[]).push("1.4.1");const g=window,O=g.trustedTypes,x=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,S=`lit$${(Math.random()+"").slice(9)}$`,E="?"+S,j=`<${E}>`,R=document,C=(t="")=>R.createComment(t),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,A=t=>M(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,P=/>/g,k=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),U=/'/g,F=/"/g,L=/^(?:script|style|textarea|title)$/i,T=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),D=T(1),B=T(2),W=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),H=new WeakMap,K=R.createTreeWalker(R,129,null,!1),q=(t,e)=>{const n=t.length-1,r=[];let i,o=2===e?"<svg>":"",s=$;for(let e=0;e<n;e++){const n=t[e];let u,c,a=-1,l=0;for(;l<n.length&&(s.lastIndex=l,c=s.exec(n),null!==c);)l=s.lastIndex,s===$?"!--"===c[1]?s=_:void 0!==c[1]?s=P:void 0!==c[2]?(L.test(c[2])&&(i=RegExp("</"+c[2],"g")),s=k):void 0!==c[3]&&(s=k):s===k?">"===c[0]?(s=null!=i?i:$,a=-1):void 0===c[1]?a=-2:(a=s.lastIndex-c[2].length,u=c[1],s=void 0===c[3]?k:'"'===c[3]?F:U):s===F||s===U?s=k:s===_||s===P?s=$:(s=k,i=void 0);const f=s===k&&t[e+1].startsWith("/>")?" ":"";o+=s===$?n+j:a>=0?(r.push(u),n.slice(0,a)+"$lit$"+n.slice(a)+S+f):n+S+(-2===a?(r.push(void 0),e):f)}const u=o+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==x?x.createHTML(u):u,r]};class z{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let i=0,o=0;const s=t.length-1,u=this.parts,[c,a]=q(t,e);if(this.el=z.createElement(c,n),K.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=K.nextNode())&&u.length<s;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(S)){const n=a[o++];if(t.push(e),void 0!==n){const t=r.getAttribute(n.toLowerCase()+"$lit$").split(S),e=/([.?@])?(.*)/.exec(n);u.push({type:1,index:i,name:e[2],strings:t,ctor:"."===e[1]?G:"?"===e[1]?Y:"@"===e[1]?tt:X})}else u.push({type:6,index:i})}for(const e of t)r.removeAttribute(e)}if(L.test(r.tagName)){const t=r.textContent.split(S),e=t.length-1;if(e>0){r.textContent=O?O.emptyScript:"";for(let n=0;n<e;n++)r.append(t[n],C()),K.nextNode(),u.push({type:2,index:++i});r.append(t[e],C())}}}else if(8===r.nodeType)if(r.data===E)u.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(S,t+1));)u.push({type:7,index:i}),t+=S.length-1}i++}}static createElement(t,e){const n=R.createElement("template");return n.innerHTML=t,n}}function V(t,e,n=t,r){var i,o,s,u;if(e===W)return e;let c=void 0!==r?null===(i=n._$Co)||void 0===i?void 0:i[r]:n._$Cl;const a=N(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==a&&(null===(o=null==c?void 0:c._$AO)||void 0===o||o.call(c,!1),void 0===a?c=void 0:(c=new a(t),c._$AT(t,n,r)),void 0!==r?(null!==(s=(u=n)._$Co)&&void 0!==s?s:u._$Co=[])[r]=c:n._$Cl=c),void 0!==c&&(e=V(t,c._$AS(t,e.values),c,r)),e}class J{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:n},parts:r}=this._$AD,i=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(n,!0);K.currentNode=i;let o=K.nextNode(),s=0,u=0,c=r[0];for(;void 0!==c;){if(s===c.index){let e;2===c.type?e=new Z(o,o.nextSibling,this,t):1===c.type?e=new c.ctor(o,c.name,c.strings,this,t):6===c.type&&(e=new et(o,this,t)),this.u.push(e),c=r[++u]}s!==(null==c?void 0:c.index)&&(o=K.nextNode(),s++)}return i}p(t){let e=0;for(const n of this.u)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class Z{constructor(t,e,n,r){var i;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=r,this._$Cm=null===(i=null==r?void 0:r.isConnected)||void 0===i||i}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=V(this,t,e),N(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==W&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):A(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==I&&N(this._$AH)?this._$AA.nextSibling.data=t:this.T(R.createTextNode(t)),this._$AH=t}$(t){var e;const{values:n,_$litType$:r}=t,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=z.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.p(n);else{const t=new J(i,this),e=t.v(this.options);t.p(n),this.T(e),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new z(t)),e}k(t){M(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,r=0;for(const i of t)r===e.length?e.push(n=new Z(this.O(C()),this.O(C()),this,this.options)):n=e[r],n._$AI(i),r++;r<e.length&&(this._$AR(n&&n._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.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._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class X{constructor(t,e,n,r,i){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,r){const i=this.strings;let o=!1;if(void 0===i)t=V(this,t,e,0),o=!N(t)||t!==this._$AH&&t!==W,o&&(this._$AH=t);else{const r=t;let s,u;for(t=i[0],s=0;s<i.length-1;s++)u=V(this,r[n+s],e,s),u===W&&(u=this._$AH[s]),o||(o=!N(u)||u!==this._$AH[s]),u===I?t=I:t!==I&&(t+=(null!=u?u:"")+i[s+1]),this._$AH[s]=u}o&&!r&&this.j(t)}j(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends X{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===I?void 0:t}}const Q=O?O.emptyScript:"";class Y extends X{constructor(){super(...arguments),this.type=4}j(t){t&&t!==I?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class tt extends X{constructor(t,e,n,r,i){super(t,e,n,r,i),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=V(this,t,e,0))&&void 0!==n?n:I)===W)return;const r=this._$AH,i=t===I&&r!==I||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==I&&(r===I||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class et{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){V(this,t)}}const nt={P:"$lit$",A:S,M:E,C:1,L:q,R:J,D:A,V,I:Z,H:X,N:Y,U:tt,B:G,F:et},rt=g.litHtmlPolyfillSupport;null==rt||rt(z,Z),(null!==(w=g.litHtmlVersions)&&void 0!==w?w:g.litHtmlVersions=[]).push("2.4.0");const it=(t,e,n)=>{var r,i;const o=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:e;let s=o._$litPart$;if(void 0===s){const t=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:null;o._$litPart$=s=new Z(e.insertBefore(C(),t),t,void 0,null!=n?n:{})}return s._$AI(t),s
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/};var ot,st;const
|
|
23
|
+
*/};var ot,st;const ut=m;class ct extends m{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=it(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return W}}ct.finalized=!0,ct._$litElement$=!0,null===(ot=globalThis.litElementHydrateSupport)||void 0===ot||ot.call(globalThis,{LitElement:ct});const at=globalThis.litElementPolyfillSupport;null==at||at({LitElement:ct}),(null!==(st=globalThis.litElementVersions)&&void 0!==st?st:globalThis.litElementVersions=[]).push("3.2.2");var lt=Object.freeze({__proto__:null,CSSResult:o,adoptStyles:c,css:u,getCompatibleStyle:a,supportsAdoptingStyleSheets:n,unsafeCSS:s,ReactiveElement:m,defaultConverter:p,notEqual:b,_$LH:nt,html:D,noChange:W,nothing:I,render:it,svg:B,LitElement:ct,UpdatingElement:ut,_$LE:{_$AK:(t,e,n)=>{t._$AK(e,n)},_$AL:t=>t._$AL}});
|
|
24
24
|
/**
|
|
25
25
|
* @license
|
|
26
26
|
* Copyright 2017 Google LLC
|
|
@@ -77,32 +77,32 @@ var vt;const pt=null!=(null===(vt=window.HTMLSlotElement)||void 0===vt?void 0:vt
|
|
|
77
77
|
* @license
|
|
78
78
|
* Copyright 2017 Google LLC
|
|
79
79
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
80
|
-
*/const mt=1,wt=2,
|
|
80
|
+
*/const mt=1,wt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class Ot{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
81
81
|
/**
|
|
82
82
|
* @license
|
|
83
83
|
* Copyright 2020 Google LLC
|
|
84
84
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
85
|
-
*/const{I:xt}=nt,St=()=>document.createComment(""),Et=(t,e,n)=>{var r;const i=t._$AA.parentNode,o=void 0===e?t._$AB:e._$AA;if(void 0===n){const e=i.insertBefore(St(),o),r=i.insertBefore(St(),o);n=new xt(e,r,t,t.options)}else{const e=n._$AB.nextSibling,s=n._$AM,
|
|
85
|
+
*/const{I:xt}=nt,St=()=>document.createComment(""),Et=(t,e,n)=>{var r;const i=t._$AA.parentNode,o=void 0===e?t._$AB:e._$AA;if(void 0===n){const e=i.insertBefore(St(),o),r=i.insertBefore(St(),o);n=new xt(e,r,t,t.options)}else{const e=n._$AB.nextSibling,s=n._$AM,u=s!==t;if(u){let e;null===(r=n._$AQ)||void 0===r||r.call(n,t),n._$AM=t,void 0!==n._$AP&&(e=t._$AU)!==s._$AU&&n._$AP(e)}if(e!==o||u){let t=n._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,o),t=e}}}return n},jt=(t,e,n=t)=>(t._$AI(e,n),t),Rt={},Ct=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let n=t._$AA;const r=t._$AB.nextSibling;for(;n!==r;){const t=n.nextSibling;n.remove(),n=t}},Nt=(t,e,n)=>{const r=new Map;for(let i=e;i<=n;i++)r.set(t[i],i);return r},Mt=gt(class extends Ot{constructor(t){if(super(t),t.type!==wt)throw Error("repeat() can only be used in text expressions")}ht(t,e,n){let r;void 0===n?n=e:void 0!==e&&(r=e);const i=[],o=[];let s=0;for(const e of t)i[s]=r?r(e,s):s,o[s]=n(e,s),s++;return{values:o,keys:i}}render(t,e,n){return this.ht(t,e,n).values}update(t,[e,n,r]){var i;const o=(t=>t._$AH)(t),{values:s,keys:u}=this.ht(e,n,r);if(!Array.isArray(o))return this.ut=u,s;const c=null!==(i=this.ut)&&void 0!==i?i:this.ut=[],a=[];let l,f,h=0,d=o.length-1,v=0,p=s.length-1;for(;h<=d&&v<=p;)if(null===o[h])h++;else if(null===o[d])d--;else if(c[h]===u[v])a[v]=jt(o[h],s[v]),h++,v++;else if(c[d]===u[p])a[p]=jt(o[d],s[p]),d--,p--;else if(c[h]===u[p])a[p]=jt(o[h],s[p]),Et(t,a[p+1],o[h]),h++,p--;else if(c[d]===u[v])a[v]=jt(o[d],s[v]),Et(t,o[h],o[d]),d--,v++;else if(void 0===l&&(l=Nt(u,v,p),f=Nt(c,h,d)),l.has(c[h]))if(l.has(c[d])){const e=f.get(u[v]),n=void 0!==e?o[e]:null;if(null===n){const e=Et(t,o[h]);jt(e,s[v]),a[v]=e}else a[v]=jt(n,s[v]),Et(t,o[h],n),o[e]=null;v++}else Ct(o[d]),d--;else Ct(o[h]),h++;for(;v<=p;){const e=Et(t,a[p+1]);jt(e,s[v]),a[v++]=e}for(;h<=d;){const t=o[h++];null!==t&&Ct(t)}return this.ut=u,((t,e=Rt)=>{t._$AH=e})(t,a),W}});
|
|
86
86
|
/**
|
|
87
87
|
* @license
|
|
88
88
|
* Copyright 2017 Google LLC
|
|
89
89
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
90
|
-
*/var
|
|
90
|
+
*/var At=Object.freeze({__proto__:null,repeat:Mt});
|
|
91
91
|
/**
|
|
92
92
|
* @license
|
|
93
93
|
* Copyright 2018 Google LLC
|
|
94
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
|
-
*/const
|
|
95
|
+
*/const $t=gt(class extends Ot{constructor(t){var e;if(super(t),t.type!==mt||"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 n,r;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(n=this.st)||void 0===n?void 0:n.has(t))&&this.nt.add(t);return this.render(e)}const i=t.element.classList;this.nt.forEach((t=>{t in e||(i.remove(t),this.nt.delete(t))}));for(const t in e){const n=!!e[t];n===this.nt.has(t)||(null===(r=this.st)||void 0===r?void 0:r.has(t))||(n?(i.add(t),this.nt.add(t)):(i.remove(t),this.nt.delete(t)))}return W}});var _t=Object.freeze({__proto__:null,classMap:$t});
|
|
96
96
|
/**
|
|
97
97
|
* @license
|
|
98
98
|
* Copyright 2018 Google LLC
|
|
99
99
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
100
|
-
*/const
|
|
100
|
+
*/const Pt=gt(class extends Ot{constructor(t){var e;if(super(t),t.type!==mt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,n)=>{const r=t[n];return null==r?e:e+`${n=n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[e]){const{style:n}=t.element;if(void 0===this.vt){this.vt=new Set;for(const t in e)this.vt.add(t);return this.render(e)}this.vt.forEach((t=>{null==e[t]&&(this.vt.delete(t),t.includes("-")?n.removeProperty(t):n[t]="")}));for(const t in e){const r=e[t];null!=r&&(this.vt.add(t),t.includes("-")?n.setProperty(t,r):n[t]=r)}return W}});var kt=Object.freeze({__proto__:null,styleMap:Pt});
|
|
101
101
|
/**
|
|
102
102
|
* @license
|
|
103
103
|
* Copyright 2017 Google LLC
|
|
104
104
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
105
|
-
*/class Ut extends
|
|
105
|
+
*/class Ut extends Ot{constructor(t){if(super(t),this.it=I,t.type!==wt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===I||null==t)return this._t=void 0,this.it=t;if(t===W)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ut.directiveName="unsafeHTML",Ut.resultType=1;const Ft=gt(Ut);var Lt=Object.freeze({__proto__:null,UnsafeHTMLDirective:Ut,unsafeHTML:Ft});
|
|
106
106
|
/**
|
|
107
107
|
* @license
|
|
108
108
|
* Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
|
|
@@ -117,17 +117,17 @@ var vt;const pt=null!=(null===(vt=window.HTMLSlotElement)||void 0===vt?void 0:vt
|
|
|
117
117
|
* http://polymer.github.io/PATENTS.txt
|
|
118
118
|
*
|
|
119
119
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
120
|
-
*/if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,n=window.customElements.get,r=window.customElements,i=new WeakMap,o=new WeakMap,s=new WeakMap,c=new WeakMap;let u;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const c=i.prototype.attributeChangedCallback,u=new Set(i.observedAttributes||[]);h(i,u,c);const a={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:c,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:u};this._definitionsByTag.set(t,a),this._definitionsByClass.set(i,a);let l=n.call(r,t);l||(l=f(t),e.call(r,t,l)),this===window.customElements&&(s.set(i,a),a.standInClass=l);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)o.delete(t),v(t,a,!0)}const p=this._whenDefinedPromises.get(t);return void 0!==p&&(p.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){b.push(this),r.upgrade.apply(r,arguments),b.pop()}get(t){return this._definitionsByTag.get(t)?.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 n=this._whenDefinedPromises.get(t);return void 0===n&&(n={},n.promise=new Promise((t=>n.resolve=t)),this._whenDefinedPromises.set(t,n)),n.promise}_upgradeWhenDefined(t,e,n){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),n?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=u;if(e)return u=void 0,e;const n=s.get(this.constructor);if(!n)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],n.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,n),e},window.HTMLElement.prototype=t.prototype;const a=t=>t===document||t instanceof ShadowRoot,l=t=>{let e=t.getRootNode();if(!a(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),a(e)||(e=c.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const n=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(n,HTMLElement.prototype);const r=l(n)||window.customElements,i=r._getDefinition(e);return i?v(n,i):o.set(n,r),n}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,n)=>{if(0===e.size||void 0===n)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o,i),n.call(this,o,t,i)}else r.call(this,o,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),n.call(this,r,t,null)}else i.call(this,r)})},d=e=>{const n=Object.getPrototypeOf(e);if(n!==window.HTMLElement)return n===t||"HTMLElement"===n?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(n)},v=(t,e,n=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),u=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((n=>{t.hasAttribute(n)&&e.attributeChangedCallback.call(t,n,null,t.getAttribute(n))})),n&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},p=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=p.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,n)=>{const r=(n?Object.getPrototypeOf(n):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=r.apply(n||this,arguments);return void 0!==t&&c.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const m=(t,e)=>{const n=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...n,set(t){b.push(this),n.set.call(this,t),b.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,n=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...n){const r=e.call(this,...n);return t.set(r,this),r},n.forEach((e=>{const n=window.ElementInternals.prototype,r=n[e];n[e]=function(...e){const n=t.get(this);if(!0!==i.get(n).formAssociated)throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`);r?.call(this,...e)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class o{constructor(t){const e=new Map;t.forEach(((t,n)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+n]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(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 n of t){const t=i.get(n);t&&!0!==t.formAssociated||e.push(n)}return new o(e)}})}}try{window.customElements.define("custom-element",null)}catch(t){const e=window.customElements.define;window.customElements.define=(t,n,r)=>{try{e.bind(window.customElements)(t,n,r)}catch(e){console.info(t,n,r,e)}}}class Tt{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 n=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of n)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}function Bt(t,e){const n=()=>JSON.parse(JSON.stringify(t));return ht({type:Object,converter:{fromAttribute:t=>{if(null==t)return n();try{return JSON.parse(t)}catch{return n()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}function Dt(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var n,r,i;if(Array.isArray(t)){if((n=t.length)!=e.length)return!1;for(r=n;0!=r--;)if(!Dt(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!Dt(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((n=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!=r--;){var o=i[r];if(!Dt(t[o],e[o]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}class Wt{static create(t,e,n){let r=t=>s(null!=t?t:n),i=c`var(${s(t)}, ${r(n)})`;return i.name=t,i.category=e,i.defaultValue=n,i.defaultCssValue=r,i.get=e=>c`var(${s(t)}, ${r(e)})`,i.breadcrumb=()=>[],i.lastResortDefaultValue=()=>n,i}static extend(t,e,n){let r=t=>e.get(null!=t?t:n),i=c`var(${s(t)}, ${r(n)})`;return i.name=t,i.category=e.category,i.fallbackVariable=e,i.defaultValue=n,i.defaultCssValue=r,i.get=e=>c`var(${s(t)}, ${r(e)})`,i.breadcrumb=()=>[e.name,...e.breadcrumb()],i.lastResortDefaultValue=()=>n,i}static external(t,e){let n=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):s(null!=e?e:t.defaultValue),r=c`var(${s(t.name)}, ${n(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=n,r.get=e=>c`var(${s(t.name)}, ${n(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>{var e,n;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(n=t.fallbackVariable)||void 0===n?void 0:n.lastResortDefaultValue()},r}}const Ht={colorPrimary:Wt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:Wt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:Wt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:Wt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:Wt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:Wt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Wt.create("--ft-color-error","COLOR","#B00020"),colorOutline:Wt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Wt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:Wt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:Wt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:Wt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:Wt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:Wt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Wt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Wt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:Wt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:Wt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Wt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Wt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Wt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Wt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Wt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Wt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:Wt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:Wt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:Wt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:Wt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:Wt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:Wt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Wt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Wt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:Wt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Wt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Wt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Wt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Wt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Wt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Wt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:Wt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Wt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Wt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Wt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Wt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:Wt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:Wt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:Wt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:Wt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:Wt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:Wt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:Wt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:Wt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:Wt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:Wt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:Wt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:Wt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:Wt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:Wt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:Wt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Wt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Wt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:Wt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
120
|
+
*/if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,n=window.customElements.get,r=window.customElements,i=new WeakMap,o=new WeakMap,s=new WeakMap,u=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const u=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,u);const a={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:u,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,a),this._definitionsByClass.set(i,a);let l=n.call(r,t);l||(l=f(t),e.call(r,t,l)),this===window.customElements&&(s.set(i,a),a.standInClass=l);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)o.delete(t),v(t,a,!0)}const p=this._whenDefinedPromises.get(t);return void 0!==p&&(p.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){b.push(this),r.upgrade.apply(r,arguments),b.pop()}get(t){return this._definitionsByTag.get(t)?.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 n=this._whenDefinedPromises.get(t);return void 0===n&&(n={},n.promise=new Promise((t=>n.resolve=t)),this._whenDefinedPromises.set(t,n)),n.promise}_upgradeWhenDefined(t,e,n){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),n?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const n=s.get(this.constructor);if(!n)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],n.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,n),e},window.HTMLElement.prototype=t.prototype;const a=t=>t===document||t instanceof ShadowRoot,l=t=>{let e=t.getRootNode();if(!a(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),a(e)||(e=u.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const n=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(n,HTMLElement.prototype);const r=l(n)||window.customElements,i=r._getDefinition(e);return i?v(n,i):o.set(n,r),n}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,n)=>{if(0===e.size||void 0===n)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o,i),n.call(this,o,t,i)}else r.call(this,o,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),n.call(this,r,t,null)}else i.call(this,r)})},d=e=>{const n=Object.getPrototypeOf(e);if(n!==window.HTMLElement)return n===t||"HTMLElement"===n?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(n)},v=(t,e,n=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),c=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((n=>{t.hasAttribute(n)&&e.attributeChangedCallback.call(t,n,null,t.getAttribute(n))})),n&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},p=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=p.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,n)=>{const r=(n?Object.getPrototypeOf(n):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=r.apply(n||this,arguments);return void 0!==t&&u.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const m=(t,e)=>{const n=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...n,set(t){b.push(this),n.set.call(this,t),b.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,n=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...n){const r=e.call(this,...n);return t.set(r,this),r},n.forEach((e=>{const n=window.ElementInternals.prototype,r=n[e];n[e]=function(...e){const n=t.get(this);if(!0!==i.get(n).formAssociated)throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`);r?.call(this,...e)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class o{constructor(t){const e=new Map;t.forEach(((t,n)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+n]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(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 n of t){const t=i.get(n);t&&!0!==t.formAssociated||e.push(n)}return new o(e)}})}}try{window.customElements.define("custom-element",null)}catch(t){const e=window.customElements.define;window.customElements.define=(t,n,r)=>{try{e.bind(window.customElements)(t,n,r)}catch(e){console.info(t,n,r,e)}}}class Tt extends Promise{constructor(t){super(((e,n)=>t((t=>{this.isCanceled?n(new Error("Promise has been canceled")):e(t)}),(t=>{this.isCanceled?n(new Error("Promise has been canceled")):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const Dt=t=>new Tt(((e,n)=>t.then(e).catch(n)));class Bt{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 n=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of n)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}function Wt(t,e){const n=()=>JSON.parse(JSON.stringify(t));return ht({type:Object,converter:{fromAttribute:t=>{if(null==t)return n();try{return JSON.parse(t)}catch{return n()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}function It(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var n,r,i;if(Array.isArray(t)){if((n=t.length)!=e.length)return!1;for(r=n;0!=r--;)if(!It(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!It(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((n=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!=r--;){var o=i[r];if(!It(t[o],e[o]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}class Ht{static create(t,e,n){let r=t=>s(null!=t?t:n),i=u`var(${s(t)}, ${r(n)})`;return i.name=t,i.category=e,i.defaultValue=n,i.defaultCssValue=r,i.get=e=>u`var(${s(t)}, ${r(e)})`,i.breadcrumb=()=>[],i.lastResortDefaultValue=()=>n,i}static extend(t,e,n){let r=t=>e.get(null!=t?t:n),i=u`var(${s(t)}, ${r(n)})`;return i.name=t,i.category=e.category,i.fallbackVariable=e,i.defaultValue=n,i.defaultCssValue=r,i.get=e=>u`var(${s(t)}, ${r(e)})`,i.breadcrumb=()=>[e.name,...e.breadcrumb()],i.lastResortDefaultValue=()=>n,i}static external(t,e){let n=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):s(null!=e?e:t.defaultValue),r=u`var(${s(t.name)}, ${n(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=n,r.get=e=>u`var(${s(t.name)}, ${n(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>{var e,n;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(n=t.fallbackVariable)||void 0===n?void 0:n.lastResortDefaultValue()},r}}const Kt={colorPrimary:Ht.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:Ht.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:Ht.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:Ht.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:Ht.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:Ht.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Ht.create("--ft-color-error","COLOR","#B00020"),colorOutline:Ht.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Ht.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:Ht.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:Ht.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:Ht.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:Ht.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:Ht.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Ht.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Ht.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:Ht.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:Ht.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Ht.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Ht.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Ht.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Ht.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Ht.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Ht.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:Ht.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:Ht.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:Ht.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:Ht.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:Ht.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:Ht.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Ht.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Ht.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:Ht.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Ht.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Ht.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Ht.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Ht.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Ht.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Ht.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:Ht.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Ht.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Ht.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Ht.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Ht.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:Ht.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:Ht.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:Ht.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:Ht.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:Ht.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:Ht.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:Ht.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:Ht.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:Ht.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:Ht.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:Ht.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:Ht.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:Ht.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:Ht.create("--ft-border-radius-XL","SIZE","16px"),titleFont:Ht.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Ht.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Ht.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:Ht.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
121
121
|
/**
|
|
122
122
|
* @license
|
|
123
123
|
* Copyright 2021 Google LLC
|
|
124
124
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
125
|
-
*/var
|
|
126
|
-
${t.map((t=>
|
|
125
|
+
*/var qt=function(t,e,n,r){for(var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r,u=t.length-1;u>=0;u--)(i=t[u])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};class zt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:n,shadowRootOptions:r}=t;n&&!e&&(t.registry=new CustomElementRegistry,Object.entries(n).forEach((([e,n])=>t.registry.define(e,n))));const i=this.renderOptions.creationScope=this.attachShadow({...r,customElements:t.registry});return c(i,this.constructor.elementStyles),i}}}(ct)){constructor(){super(),this.exportpartsDebouncer=new Bt(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),D`
|
|
126
|
+
${t.map((t=>D`
|
|
127
127
|
<style>${t}</style>
|
|
128
128
|
`))}
|
|
129
129
|
${this.getTemplate()}
|
|
130
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,n,r,i,o,s;const
|
|
130
|
+
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,n;if((null!==(n=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==n?n:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,n,r,i,o,s;const u=t=>null!=t&&t.trim().length>0,c=t.filter(u).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const a=new Set;for(let t of null!==(n=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==n?n:[]){const e=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],n=null!==(s=null===(o=t.getAttribute("exportparts"))||void 0===o?void 0:o.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...n).filter(u).map((t=>t.trim())).forEach((t=>a.add(t)))}if(0===a.size)return void this.removeAttribute("exportparts");const l=[...a.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...l].join(", "))}}qt([ht()],zt.prototype,"exportpartsPrefix",void 0),qt([Wt([])],zt.prototype,"exportpartsPrefixes",void 0),qt([ht()],zt.prototype,"customStylesheet",void 0);const Vt=u`
|
|
131
131
|
.ft-no-text-select {
|
|
132
132
|
-webkit-touch-callout: none;
|
|
133
133
|
-webkit-user-select: none;
|
|
@@ -136,7 +136,7 @@ var vt;const pt=null!=(null===(vt=window.HTMLSlotElement)||void 0===vt?void 0:vt
|
|
|
136
136
|
-ms-user-select: none;
|
|
137
137
|
user-select: none;
|
|
138
138
|
}
|
|
139
|
-
`,
|
|
139
|
+
`,Jt=u`
|
|
140
140
|
.ft-word-wrap {
|
|
141
141
|
white-space: normal;
|
|
142
142
|
word-wrap: break-word;
|
|
@@ -148,4 +148,4 @@ var vt;const pt=null!=(null===(vt=window.HTMLSlotElement)||void 0===vt?void 0:vt
|
|
|
148
148
|
-webkit-hyphens: auto;
|
|
149
149
|
hyphens: auto
|
|
150
150
|
}
|
|
151
|
-
`;function qt(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Jt(t){return!!t&&!!t[Pe]}function Zt(t){return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Ue}(t)||Array.isArray(t)||!!t[ke]||!!t.constructor[ke]||ee(t)||ne(t))}function Xt(t,e,n){void 0===n&&(n=!1),0===Gt(t)?(n?Object.keys:Fe)(t).forEach((function(r){n&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(n,r){return e(r,n,t)}))}function Gt(t){var e=t[Pe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ee(t)?2:ne(t)?3:0}function Qt(t,e){return 2===Gt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Yt(t,e,n){var r=Gt(t);2===r?t.set(e,n):3===r?(t.delete(e),t.add(n)):t[e]=n}function te(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ee(t){return Me&&t instanceof Map}function ne(t){return $e&&t instanceof Set}function re(t){return t.o||t.t}function ie(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Le(t);delete e[Pe];for(var n=Fe(e),r=0;r<n.length;r++){var i=n[r],o=e[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function oe(t,e){return void 0===e&&(e=!1),ce(t)||Jt(t)||!Zt(t)||(Gt(t)>1&&(t.set=t.add=t.clear=t.delete=se),Object.freeze(t),e&&Xt(t,(function(t,e){return oe(e,!0)}),!0)),t}function se(){qt(2)}function ce(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ue(t){var e=Te[t];return e||qt(18,t),e}function ae(){return Ce}function le(t,e){e&&(ue("Patches"),t.u=[],t.s=[],t.v=e)}function fe(t){he(t),t.p.forEach(ve),t.p=null}function he(t){t===Ce&&(Ce=t.l)}function de(t){return Ce={p:[],l:Ce,h:t,m:!0,_:0}}function ve(t){var e=t[Pe];0===e.i||1===e.i?e.j():e.O=!0}function pe(t,e){e._=e.p.length;var n=e.p[0],r=void 0!==t&&t!==n;return e.h.g||ue("ES5").S(e,t,r),r?(n[Pe].P&&(fe(e),qt(4)),Zt(t)&&(t=be(e,t),e.l||me(e,t)),e.u&&ue("Patches").M(n[Pe].t,t,e.u,e.s)):t=be(e,n,[]),fe(e),e.u&&e.v(e.u,e.s),t!==Ae?t:void 0}function be(t,e,n){if(ce(e))return e;var r=e[Pe];if(!r)return Xt(e,(function(i,o){return ye(t,r,e,i,o,n)}),!0),e;if(r.A!==t)return e;if(!r.P)return me(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=ie(r.k):r.o;Xt(3===r.i?new Set(i):i,(function(e,o){return ye(t,r,i,e,o,n)})),me(t,i,!1),n&&t.u&&ue("Patches").R(r,n,t.u,t.s)}return r.o}function ye(t,e,n,r,i,o){if(Jt(i)){var s=be(t,i,o&&e&&3!==e.i&&!Qt(e.D,r)?o.concat(r):void 0);if(Yt(n,r,s),!Jt(s))return;t.m=!1}if(Zt(i)&&!ce(i)){if(!t.h.F&&t._<1)return;be(t,i),e&&e.A.l||me(t,i)}}function me(t,e,n){void 0===n&&(n=!1),t.h.F&&t.m&&oe(e,n)}function we(t,e){var n=t[Pe];return(n?re(n):t)[e]}function Oe(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function ge(t){t.P||(t.P=!0,t.l&&ge(t.l))}function xe(t){t.o||(t.o=ie(t.t))}function Se(t,e,n){var r=ee(e)?ue("MapSet").N(e,n):ne(e)?ue("MapSet").T(e,n):t.g?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:ae(),P:!1,I:!1,D:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,o=Be;n&&(i=[r],o=De);var s=Proxy.revocable(i,o),c=s.revoke,u=s.proxy;return r.k=u,r.j=c,u}(e,n):ue("ES5").J(e,n);return(n?n.A:ae()).p.push(r),r}function Ee(t){return Jt(t)||qt(22,t),function t(e){if(!Zt(e))return e;var n,r=e[Pe],i=Gt(e);if(r){if(!r.P&&(r.i<4||!ue("ES5").K(r)))return r.t;r.I=!0,n=je(e,i),r.I=!1}else n=je(e,i);return Xt(n,(function(e,i){r&&function(t,e){return 2===Gt(t)?t.get(e):t[e]}(r.t,e)===i||Yt(n,e,t(i))})),3===i?new Set(n):n}(t)}function je(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ie(t)}var Re,Ce,Ne="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Me="undefined"!=typeof Map,$e="undefined"!=typeof Set,_e="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ae=Ne?Symbol.for("immer-nothing"):((Re={})["immer-nothing"]=!0,Re),ke=Ne?Symbol.for("immer-draftable"):"__$immer_draftable",Pe=Ne?Symbol.for("immer-state"):"__$immer_state",Ue=""+Object.prototype.constructor,Fe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Le=Object.getOwnPropertyDescriptors||function(t){var e={};return Fe(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},Te={},Be={get:function(t,e){if(e===Pe)return t;var n=re(t);if(!Qt(n,e))return function(t,e,n){var r,i=Oe(e,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,n,e);var r=n[e];return t.I||!Zt(r)?r:r===we(t.t,e)?(xe(t),t.o[e]=Se(t.A.h,r,t)):r},has:function(t,e){return e in re(t)},ownKeys:function(t){return Reflect.ownKeys(re(t))},set:function(t,e,n){var r=Oe(re(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var i=we(re(t),e),o=null==i?void 0:i[Pe];if(o&&o.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(te(n,i)&&(void 0!==n||Qt(t.t,e)))return!0;xe(t),ge(t)}return t.o[e]===n&&"number"!=typeof n&&(void 0!==n||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==we(t.t,e)||e in t.t?(t.D[e]=!1,xe(t),ge(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=re(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){qt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){qt(12)}},De={};Xt(Be,(function(t,e){De[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),De.deleteProperty=function(t,e){return De.set.call(this,t,e,void 0)},De.set=function(t,e,n){return Be.set.call(this,t[0],e,n,t[0])};var We=function(){function t(t){var e=this;this.g=_e,this.F=!0,this.produce=function(t,n,r){if("function"==typeof t&&"function"!=typeof n){var i=n;n=t;var o=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,s=Array(r>1?r-1:0),c=1;c<r;c++)s[c-1]=arguments[c];return o.produce(t,(function(t){var r;return(r=n).call.apply(r,[e,t].concat(s))}))}}var s;if("function"!=typeof n&&qt(6),void 0!==r&&"function"!=typeof r&&qt(7),Zt(t)){var c=de(e),u=Se(e,t,void 0),a=!0;try{s=n(u),a=!1}finally{a?fe(c):he(c)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return le(c,r),pe(t,c)}),(function(t){throw fe(c),t})):(le(c,r),pe(s,c))}if(!t||"object"!=typeof t){if(void 0===(s=n(t))&&(s=t),s===Ae&&(s=void 0),e.F&&oe(s,!0),r){var l=[],f=[];ue("Patches").M(t,s,l,f),r(l,f)}return s}qt(21,t)},this.produceWithPatches=function(t,n){if("function"==typeof t)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.produceWithPatches(n,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,o=e.produce(t,n,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(t){return[t,r,i]})):[o,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Zt(t)||qt(8),Jt(t)&&(t=Ee(t));var e=de(this),n=Se(this,t,void 0);return n[Pe].C=!0,he(e),n},e.finishDraft=function(t,e){var n=(t&&t[Pe]).A;return le(n,e),pe(void 0,n)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!_e&&qt(20),this.g=t},e.applyPatches=function(t,e){var n;for(n=e.length-1;n>=0;n--){var r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));var i=ue("Patches").$;return Jt(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),He=new We;function Ie(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ke(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ze(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ke(Object(n),!0).forEach((function(e){Ie(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ve(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. "}He.produce,He.produceWithPatches.bind(He),He.setAutoFreeze.bind(He),He.setUseProxies.bind(He),He.applyPatches.bind(He),He.createDraft.bind(He),He.finishDraft.bind(He);var qe="function"==typeof Symbol&&Symbol.observable||"@@observable",Je=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ze={INIT:"@@redux/INIT"+Je(),REPLACE:"@@redux/REPLACE"+Je(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Je()}};function Xe(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}function Ge(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Ve(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Ve(1));return n(Ge)(t,e)}if("function"!=typeof t)throw new Error(Ve(2));var i=t,o=e,s=[],c=s,u=!1;function a(){c===s&&(c=s.slice())}function l(){if(u)throw new Error(Ve(3));return o}function f(t){if("function"!=typeof t)throw new Error(Ve(4));if(u)throw new Error(Ve(5));var e=!0;return a(),c.push(t),function(){if(e){if(u)throw new Error(Ve(6));e=!1,a();var n=c.indexOf(t);c.splice(n,1),s=null}}}function h(t){if(!Xe(t))throw new Error(Ve(7));if(void 0===t.type)throw new Error(Ve(8));if(u)throw new Error(Ve(9));try{u=!0,o=i(o,t)}finally{u=!1}for(var e=s=c,n=0;n<e.length;n++)(0,e[n])();return t}function d(t){if("function"!=typeof t)throw new Error(Ve(10));i=t,h({type:Ze.REPLACE})}function v(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ve(11));function n(){t.next&&t.next(l())}return n(),{unsubscribe:e(n)}}})[qe]=function(){return this},t}return h({type:Ze.INIT}),(r={dispatch:h,subscribe:f,getState:l,replaceReducer:d})[qe]=v,r}function Qe(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(n[i]=t[i])}var o,s=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:Ze.INIT}))throw new Error(Ve(12));if(void 0===n(void 0,{type:Ze.PROBE_UNKNOWN_ACTION()}))throw new Error(Ve(13))}))}(n)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var r=!1,i={},c=0;c<s.length;c++){var u=s[c],a=n[u],l=t[u],f=a(l,e);if(void 0===f)throw e&&e.type,new Error(Ve(14));i[u]=f,r=r||f!==l}return(r=r||s.length!==Object.keys(t).length)?i:t}}function Ye(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];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 tn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error(Ve(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=e.map((function(t){return t(i)}));return r=Ye.apply(void 0,o)(n.dispatch),ze(ze({},n),{},{dispatch:r})}}}function en(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(n,r,t):e(i)}}}}var nn=en();nn.withExtraArgument=en;var rn,on,sn,cn,un=nn,an=(rn=function(t,e){return rn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},rn(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 n(){this.constructor=t}rn(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ln=function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},fn=Object.defineProperty,hn=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,pn=function(t,e,n){return e in t?fn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},bn="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)},yn=function(t){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return an(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,ln([void 0],t[0].concat(this)))):new(e.bind.apply(e,ln([void 0],t.concat(this))))},e}(Array);function mn(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,n=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new yn;return n&&(function(t){return"boolean"==typeof t}(n)?r.push(un):r.push(un.withExtraArgument(n.extraArgument))),r}(t)}}function wn(t){var e,n=mn(),r=t||{},i=r.reducer,o=void 0===i?void 0:i,s=r.middleware,c=void 0===s?n():s,u=r.devTools,a=void 0===u||u,l=r.preloadedState,f=void 0===l?void 0:l,h=r.enhancers,d=void 0===h?void 0:h;if("function"==typeof o)e=o;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return e===n}(o))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=Qe(o)}var v=c;"function"==typeof v&&(v=v(n));var p=tn.apply(void 0,v),b=Ye;a&&(b=bn(function(t,e){for(var n in e||(e={}))dn.call(e,n)&&pn(t,n,e[n]);if(hn)for(var r=0,i=hn(e);r<i.length;r++)n=i[r],vn.call(e,n)&&pn(t,n,e[n]);return t}({trace:!1},"object"==typeof a&&a)));var y=[p];return Array.isArray(d)?y=ln([p],d):"function"==typeof d&&(y=d(y)),Ge(e,f,b.apply(void 0,y))}!function(){function t(t,e){var n=i[t];return n?n.enumerable=e:i[t]=n={configurable:!0,enumerable:e,get:function(){var e=this[Pe];return Be.get(e,t)},set:function(e){var n=this[Pe];Be.set(n,t,e)}},n}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Pe];if(!i.P)switch(i.i){case 5:r(i)&&ge(i);break;case 4:n(i)&&ge(i)}}}function n(t){for(var e=t.t,n=t.k,r=Fe(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==Pe){var s=e[o];if(void 0===s&&!Qt(e,o))return!0;var c=n[o],u=c&&c[Pe];if(u?u.t!==s:!te(c,s))return!0}}var a=!!e[Pe];return r.length!==Fe(e).length+(a?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);if(n&&!n.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){Te[t]||(Te[t]=e)}("ES5",{J:function(e,n){var r=Array.isArray(e),i=function(e,n){if(e){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var o=Le(n);delete o[Pe];for(var s=Fe(o),c=0;c<s.length;c++){var u=s[c];o[u]=t(u,e||!!o[u].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(r,e),o={i:r?5:4,A:n?n.A:ae(),P:!1,I:!1,D:{},l:n,t:e,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,Pe,{value:o,writable:!0}),i},S:function(t,n,i){i?Jt(n)&&n[Pe].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var n=e[Pe];if(n){var i=n.t,o=n.k,s=n.D,c=n.i;if(4===c)Xt(o,(function(e){e!==Pe&&(void 0!==i[e]||Qt(i,e)?s[e]||t(o[e]):(s[e]=!0,ge(n)))})),Xt(i,(function(t){void 0!==o[t]||Qt(o,t)||(s[t]=!1,ge(n))}));else if(5===c){if(r(n)&&(ge(n),s.length=!0),o.length<i.length)for(var u=o.length;u<i.length;u++)s[u]=!1;else for(var a=i.length;a<o.length;a++)s[a]=!0;for(var l=Math.min(o.length,i.length),f=0;f<l;f++)o.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(o[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?n(t):r(t)}})}();const On=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(cn=null===(sn=null===(on=window.safari)||void 0===on?void 0:on.pushNotification)||void 0===sn?void 0:sn.toString())&&void 0!==cn?cn:"");var gn=Object.freeze({__proto__:null,isSafari:On,Debouncer:Tt,customElement:t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},jsonProperty:Bt,deepEqual:Dt,delay:t=>new Promise((e=>setTimeout(e,t))),designSystemVariables:Ht,FtCssVariableFactory:Wt,setVariable:function(t,e){return s(`${t.name}: ${e}`)},FtLitElement:Kt,noTextSelect:zt,wordWrap:Vt,ParametrizedLabelResolver:class{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var n,r;let i=null!==(r=null!==(n=this.labels[t])&&void 0!==n?n:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}\\}`,"g"),t))),i}},redux:(t,e)=>(n,r)=>{n.constructor.createProperty(r,{attribute:!1,hasChanged:null!=e?e:(t,e)=>!Dt(t,e)});const i=n;i.reduxProperties=i.reduxProperties||new Map,i.reduxProperties.set(r,null!=t?t:t=>t[r])},FtLitElementRedux:class extends Kt{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((e,n)=>{this[n]=e(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}},getStore:function(t,e,n){window.ftReduxStores||(window.ftReduxStores={});const r=e||t.name;return window.ftReduxStores[r]||(window.ftReduxStores[r]=wn({reducer:t.reducer})),window.ftReduxStores[r]},clearAllStores:function(){window.ftReduxStores={}}});t.lit=lt,t.litClassMap=At,t.litDecorators=yt,t.litRepeat=$t,t.litStyleMap=Pt,t.litUnsafeHTML=Lt,t.wcUtils=gn,Object.defineProperty(t,"W",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).ftGlobals={});
|
|
151
|
+
`;function Zt(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Xt(t){return!!t&&!!t[Fe]}function Gt(t){return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Le}(t)||Array.isArray(t)||!!t[Ue]||!!t.constructor[Ue]||re(t)||ie(t))}function Qt(t,e,n){void 0===n&&(n=!1),0===Yt(t)?(n?Object.keys:Te)(t).forEach((function(r){n&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(n,r){return e(r,n,t)}))}function Yt(t){var e=t[Fe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:re(t)?2:ie(t)?3:0}function te(t,e){return 2===Yt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ee(t,e,n){var r=Yt(t);2===r?t.set(e,n):3===r?(t.delete(e),t.add(n)):t[e]=n}function ne(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function re(t){return $e&&t instanceof Map}function ie(t){return _e&&t instanceof Set}function oe(t){return t.o||t.t}function se(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=De(t);delete e[Fe];for(var n=Te(e),r=0;r<n.length;r++){var i=n[r],o=e[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function ue(t,e){return void 0===e&&(e=!1),ae(t)||Xt(t)||!Gt(t)||(Yt(t)>1&&(t.set=t.add=t.clear=t.delete=ce),Object.freeze(t),e&&Qt(t,(function(t,e){return ue(e,!0)}),!0)),t}function ce(){Zt(2)}function ae(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function le(t){var e=Be[t];return e||Zt(18,t),e}function fe(){return Me}function he(t,e){e&&(le("Patches"),t.u=[],t.s=[],t.v=e)}function de(t){ve(t),t.p.forEach(be),t.p=null}function ve(t){t===Me&&(Me=t.l)}function pe(t){return Me={p:[],l:Me,h:t,m:!0,_:0}}function be(t){var e=t[Fe];0===e.i||1===e.i?e.j():e.O=!0}function ye(t,e){e._=e.p.length;var n=e.p[0],r=void 0!==t&&t!==n;return e.h.g||le("ES5").S(e,t,r),r?(n[Fe].P&&(de(e),Zt(4)),Gt(t)&&(t=me(e,t),e.l||ge(e,t)),e.u&&le("Patches").M(n[Fe].t,t,e.u,e.s)):t=me(e,n,[]),de(e),e.u&&e.v(e.u,e.s),t!==ke?t:void 0}function me(t,e,n){if(ae(e))return e;var r=e[Fe];if(!r)return Qt(e,(function(i,o){return we(t,r,e,i,o,n)}),!0),e;if(r.A!==t)return e;if(!r.P)return ge(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=se(r.k):r.o;Qt(3===r.i?new Set(i):i,(function(e,o){return we(t,r,i,e,o,n)})),ge(t,i,!1),n&&t.u&&le("Patches").R(r,n,t.u,t.s)}return r.o}function we(t,e,n,r,i,o){if(Xt(i)){var s=me(t,i,o&&e&&3!==e.i&&!te(e.D,r)?o.concat(r):void 0);if(ee(n,r,s),!Xt(s))return;t.m=!1}if(Gt(i)&&!ae(i)){if(!t.h.F&&t._<1)return;me(t,i),e&&e.A.l||ge(t,i)}}function ge(t,e,n){void 0===n&&(n=!1),t.h.F&&t.m&&ue(e,n)}function Oe(t,e){var n=t[Fe];return(n?oe(n):t)[e]}function xe(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function Se(t){t.P||(t.P=!0,t.l&&Se(t.l))}function Ee(t){t.o||(t.o=se(t.t))}function je(t,e,n){var r=re(e)?le("MapSet").N(e,n):ie(e)?le("MapSet").T(e,n):t.g?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:fe(),P:!1,I:!1,D:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,o=We;n&&(i=[r],o=Ie);var s=Proxy.revocable(i,o),u=s.revoke,c=s.proxy;return r.k=c,r.j=u,c}(e,n):le("ES5").J(e,n);return(n?n.A:fe()).p.push(r),r}function Re(t){return Xt(t)||Zt(22,t),function t(e){if(!Gt(e))return e;var n,r=e[Fe],i=Yt(e);if(r){if(!r.P&&(r.i<4||!le("ES5").K(r)))return r.t;r.I=!0,n=Ce(e,i),r.I=!1}else n=Ce(e,i);return Qt(n,(function(e,i){r&&function(t,e){return 2===Yt(t)?t.get(e):t[e]}(r.t,e)===i||ee(n,e,t(i))})),3===i?new Set(n):n}(t)}function Ce(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return se(t)}var Ne,Me,Ae="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),$e="undefined"!=typeof Map,_e="undefined"!=typeof Set,Pe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ke=Ae?Symbol.for("immer-nothing"):((Ne={})["immer-nothing"]=!0,Ne),Ue=Ae?Symbol.for("immer-draftable"):"__$immer_draftable",Fe=Ae?Symbol.for("immer-state"):"__$immer_state",Le=""+Object.prototype.constructor,Te="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,De=Object.getOwnPropertyDescriptors||function(t){var e={};return Te(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},Be={},We={get:function(t,e){if(e===Fe)return t;var n=oe(t);if(!te(n,e))return function(t,e,n){var r,i=xe(e,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,n,e);var r=n[e];return t.I||!Gt(r)?r:r===Oe(t.t,e)?(Ee(t),t.o[e]=je(t.A.h,r,t)):r},has:function(t,e){return e in oe(t)},ownKeys:function(t){return Reflect.ownKeys(oe(t))},set:function(t,e,n){var r=xe(oe(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var i=Oe(oe(t),e),o=null==i?void 0:i[Fe];if(o&&o.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(ne(n,i)&&(void 0!==n||te(t.t,e)))return!0;Ee(t),Se(t)}return t.o[e]===n&&"number"!=typeof n&&(void 0!==n||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==Oe(t.t,e)||e in t.t?(t.D[e]=!1,Ee(t),Se(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=oe(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){Zt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Zt(12)}},Ie={};Qt(We,(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,n){return We.set.call(this,t[0],e,n,t[0])};var He=function(){function t(t){var e=this;this.g=Pe,this.F=!0,this.produce=function(t,n,r){if("function"==typeof t&&"function"!=typeof n){var i=n;n=t;var o=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,s=Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return o.produce(t,(function(t){var r;return(r=n).call.apply(r,[e,t].concat(s))}))}}var s;if("function"!=typeof n&&Zt(6),void 0!==r&&"function"!=typeof r&&Zt(7),Gt(t)){var u=pe(e),c=je(e,t,void 0),a=!0;try{s=n(c),a=!1}finally{a?de(u):ve(u)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return he(u,r),ye(t,u)}),(function(t){throw de(u),t})):(he(u,r),ye(s,u))}if(!t||"object"!=typeof t){if(void 0===(s=n(t))&&(s=t),s===ke&&(s=void 0),e.F&&ue(s,!0),r){var l=[],f=[];le("Patches").M(t,s,l,f),r(l,f)}return s}Zt(21,t)},this.produceWithPatches=function(t,n){if("function"==typeof t)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.produceWithPatches(n,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,o=e.produce(t,n,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(t){return[t,r,i]})):[o,r,i]},"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){Gt(t)||Zt(8),Xt(t)&&(t=Re(t));var e=pe(this),n=je(this,t,void 0);return n[Fe].C=!0,ve(e),n},e.finishDraft=function(t,e){var n=(t&&t[Fe]).A;return he(n,e),ye(void 0,n)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!Pe&&Zt(20),this.g=t},e.applyPatches=function(t,e){var n;for(n=e.length-1;n>=0;n--){var r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));var i=le("Patches").$;return Xt(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),Ke=new He,qe=Ke.produce;Ke.produceWithPatches.bind(Ke),Ke.setAutoFreeze.bind(Ke),Ke.setUseProxies.bind(Ke),Ke.applyPatches.bind(Ke),Ke.createDraft.bind(Ke),Ke.finishDraft.bind(Ke);var ze=qe;function Ve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Je(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ze(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Je(Object(n),!0).forEach((function(e){Ve(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xe(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. "}var Ge="function"==typeof Symbol&&Symbol.observable||"@@observable",Qe=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ye={INIT:"@@redux/INIT"+Qe(),REPLACE:"@@redux/REPLACE"+Qe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Qe()}};function tn(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}function en(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Xe(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Xe(1));return n(en)(t,e)}if("function"!=typeof t)throw new Error(Xe(2));var i=t,o=e,s=[],u=s,c=!1;function a(){u===s&&(u=s.slice())}function l(){if(c)throw new Error(Xe(3));return o}function f(t){if("function"!=typeof t)throw new Error(Xe(4));if(c)throw new Error(Xe(5));var e=!0;return a(),u.push(t),function(){if(e){if(c)throw new Error(Xe(6));e=!1,a();var n=u.indexOf(t);u.splice(n,1),s=null}}}function h(t){if(!tn(t))throw new Error(Xe(7));if(void 0===t.type)throw new Error(Xe(8));if(c)throw new Error(Xe(9));try{c=!0,o=i(o,t)}finally{c=!1}for(var e=s=u,n=0;n<e.length;n++)(0,e[n])();return t}function d(t){if("function"!=typeof t)throw new Error(Xe(10));i=t,h({type:Ye.REPLACE})}function v(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Xe(11));function n(){t.next&&t.next(l())}return n(),{unsubscribe:e(n)}}})[Ge]=function(){return this},t}return h({type:Ye.INIT}),(r={dispatch:h,subscribe:f,getState:l,replaceReducer:d})[Ge]=v,r}function nn(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(n[i]=t[i])}var o,s=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:Ye.INIT}))throw new Error(Xe(12));if(void 0===n(void 0,{type:Ye.PROBE_UNKNOWN_ACTION()}))throw new Error(Xe(13))}))}(n)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var r=!1,i={},u=0;u<s.length;u++){var c=s[u],a=n[c],l=t[c],f=a(l,e);if(void 0===f)throw e&&e.type,new Error(Xe(14));i[c]=f,r=r||f!==l}return(r=r||s.length!==Object.keys(t).length)?i:t}}function rn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];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 on(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error(Xe(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=e.map((function(t){return t(i)}));return r=rn.apply(void 0,o)(n.dispatch),Ze(Ze({},n),{},{dispatch:r})}}}function sn(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(n,r,t):e(i)}}}}var un=sn();un.withExtraArgument=sn;var cn,an=un,ln=(cn=function(t,e){return cn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},cn(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 n(){this.constructor=t}cn(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),fn=function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},hn=Object.defineProperty,dn=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,bn=function(t,e,n){return e in t?hn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},yn=function(t,e){for(var n in e||(e={}))vn.call(e,n)&&bn(t,n,e[n]);if(dn)for(var r=0,i=dn(e);r<i.length;r++)n=i[r],pn.call(e,n)&&bn(t,n,e[n]);return t},mn="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?rn:rn.apply(null,arguments)},wn=function(t){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return ln(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,fn([void 0],t[0].concat(this)))):new(e.bind.apply(e,fn([void 0],t.concat(this))))},e}(Array);function gn(t){return Gt(t)?ze(t,(function(){})):t}function On(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,n=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new wn;return n&&(function(t){return"boolean"==typeof t}(n)?r.push(an):r.push(an.withExtraArgument(n.extraArgument))),r}(t)}}function xn(t){var e,n=On(),r=t||{},i=r.reducer,o=void 0===i?void 0:i,s=r.middleware,u=void 0===s?n():s,c=r.devTools,a=void 0===c||c,l=r.preloadedState,f=void 0===l?void 0:l,h=r.enhancers,d=void 0===h?void 0:h;if("function"==typeof o)e=o;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return e===n}(o))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=nn(o)}var v=u;"function"==typeof v&&(v=v(n));var p=on.apply(void 0,v),b=rn;a&&(b=mn(yn({trace:!1},"object"==typeof a&&a)));var y=[p];return Array.isArray(d)?y=fn([p],d):"function"==typeof d&&(y=d(y)),en(e,f,b.apply(void 0,y))}function Sn(t,e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return yn(yn({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return n.toString=function(){return""+t},n.type=t,n.match=function(e){return e.type===t},n}function En(t){var e,n={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[n,r,e]}function jn(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof t.initialState?t.initialState:gn(t.initialState),i=t.reducers||{},o=Object.keys(i),s={},u={},c={};function a(){var e="function"==typeof t.extraReducers?En(t.extraReducers):[t.extraReducers],n=e[0],i=void 0===n?{}:n,o=e[1],s=void 0===o?[]:o,c=e[2],a=void 0===c?void 0:c,l=yn(yn({},i),u);return function(t,e,n,r){void 0===n&&(n=[]);var i,o="function"==typeof e?En(e):[e,n,r],s=o[0],u=o[1],c=o[2];if(function(t){return"function"==typeof t}(t))i=function(){return gn(t())};else{var a=gn(t);i=function(){return a}}function l(t,e){void 0===t&&(t=i());var n=fn([s[e.type]],u.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===n.filter((function(t){return!!t})).length&&(n=[c]),n.reduce((function(t,n){if(n){var r;if(Xt(t))return void 0===(r=n(t,e))?t:r;if(Gt(t))return ze(t,(function(t){return n(t,e)}));if(void 0===(r=n(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return l.getInitialState=i,l}(r,l,s,a)}return o.forEach((function(t){var n,r,o=i[t],a=e+"/"+t;"reducer"in o?(n=o.reducer,r=o.prepare):n=o,s[t]=n,u[a]=n,c[t]=r?Sn(a,r):Sn(a)})),{name:e,reducer:function(t,e){return n||(n=a()),n(t,e)},actions:c,caseReducers:s,getInitialState:function(){return n||(n=a()),n.getInitialState()}}}var Rn,Cn,Nn,Mn="listenerMiddleware";function An(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}Sn(Mn+"/add"),Sn(Mn+"/removeAll"),Sn(Mn+"/remove"),function(){function t(t,e){var n=i[t];return n?n.enumerable=e:i[t]=n={configurable:!0,enumerable:e,get:function(){var e=this[Fe];return We.get(e,t)},set:function(e){var n=this[Fe];We.set(n,t,e)}},n}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Fe];if(!i.P)switch(i.i){case 5:r(i)&&Se(i);break;case 4:n(i)&&Se(i)}}}function n(t){for(var e=t.t,n=t.k,r=Te(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==Fe){var s=e[o];if(void 0===s&&!te(e,o))return!0;var u=n[o],c=u&&u[Fe];if(c?c.t!==s:!ne(u,s))return!0}}var a=!!e[Fe];return r.length!==Te(e).length+(a?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);if(n&&!n.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){Be[t]||(Be[t]=e)}("ES5",{J:function(e,n){var r=Array.isArray(e),i=function(e,n){if(e){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var o=De(n);delete o[Fe];for(var s=Te(o),u=0;u<s.length;u++){var c=s[u];o[c]=t(c,e||!!o[c].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(r,e),o={i:r?5:4,A:n?n.A:fe(),P:!1,I:!1,D:{},l:n,t:e,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,Fe,{value:o,writable:!0}),i},S:function(t,n,i){i?Xt(n)&&n[Fe].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var n=e[Fe];if(n){var i=n.t,o=n.k,s=n.D,u=n.i;if(4===u)Qt(o,(function(e){e!==Fe&&(void 0!==i[e]||te(i,e)?s[e]||t(o[e]):(s[e]=!0,Se(n)))})),Qt(i,(function(t){void 0!==o[t]||te(o,t)||(s[t]=!1,Se(n))}));else if(5===u){if(r(n)&&(Se(n),s.length=!0),o.length<i.length)for(var c=o.length;c<i.length;c++)s[c]=!1;else for(var a=i.length;a<o.length;a++)s[a]=!0;for(var l=Math.min(o.length,i.length),f=0;f<l;f++)o.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(o[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?n(t):r(t)}})}();class $n{constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,n)=>{const r=t[e];if(r)return(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}}})}static get(t){window.ftReduxStores||(window.ftReduxStores={});const e=window.ftReduxStores[t.name];if(An(e))return e;const n=jn(t);if(e)return new $n(n,e);const r=xn({reducer:n.reducer});return window.ftReduxStores[t.name]=new $n(n,r)}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 _n=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Nn=null===(Cn=null===(Rn=window.safari)||void 0===Rn?void 0:Rn.pushNotification)||void 0===Cn?void 0:Cn.toString())&&void 0!==Nn?Nn:"");var Pn=Object.freeze({__proto__:null,isSafari:_n,CacheRegistry:class{constructor(){this.loaders={},this.content={},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.content[t]instanceof Tt&&this.content[t].cancel(),delete this.content[t])}async get(t,e){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=Dt(e());return this.content[t]=n,n.then((e=>(this.content[t]=e,e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}getNow(t){if(!(this.content[t]instanceof Promise||this.content[t]instanceof Error))return this.content[t]}},CancelablePromise:Tt,cancelable:Dt,Debouncer:Bt,customElement:t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},jsonProperty:Wt,deepEqual:It,delay:t=>new Promise((e=>setTimeout(e,t))),designSystemVariables:Kt,FtCssVariableFactory:Ht,setVariable:function(t,e){return s(`${t.name}: ${e}`)},FtLitElement:zt,noTextSelect:Vt,wordWrap:Jt,ParametrizedLabelResolver:class{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var n,r;let i=null!==(r=null!==(n=this.labels[t])&&void 0!==n?n:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}\\}`,"g"),t))),i}},redux:(t,e)=>{var n;const r="function"==typeof t?{}:null!=t?t:{};return e=null!==(n=null!=e?e:r.hasChanged)&&void 0!==n?n:(t,e)=>!It(t,e),(n,i)=>{var o;n.constructor.createProperty(i,{attribute:!1,hasChanged:e});const s=n;s.reduxProperties=s.reduxProperties||new Map;const u=null!==(o="function"==typeof t?t:r.selector)&&void 0!==o?o:t=>t[i];s.reduxProperties.set(i,{selector:u,store:r.store})}},FtLitElementRedux:class extends zt{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:An(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:An(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const n=this.getStore(t.store);n&&(this[e]=t.selector(n.getState(),this))}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}},FtReduxStore:$n,getStore:function(t,e){window.ftReduxStores||(window.ftReduxStores={});const n=e||t.name;return window.ftReduxStores[n]||(window.ftReduxStores[n]=xn({reducer:t.reducer})),window.ftReduxStores[n]},clearAllStores:function(){window.ftReduxStores={}}});t.lit=lt,t.litClassMap=_t,t.litDecorators=yt,t.litRepeat=At,t.litStyleMap=kt,t.litUnsafeHTML=Lt,t.wcUtils=Pn,Object.defineProperty(t,"W",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).ftGlobals={});
|
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import "./silent-define";
|
|
2
2
|
export declare const isSafari: boolean;
|
|
3
|
+
export * from "./CacheRegistry";
|
|
4
|
+
export * from "./CancelablePromise";
|
|
3
5
|
export * from "./Debouncer";
|
|
4
6
|
export * from "./decorators";
|
|
5
7
|
export * from "./deep-equal";
|
|
@@ -7,6 +9,7 @@ export * from "./delay";
|
|
|
7
9
|
export * from "./designSystemVariables";
|
|
8
10
|
export * from "./FtCssVariables";
|
|
9
11
|
export * from "./FtLitElement";
|
|
12
|
+
export * from "./generic-types";
|
|
10
13
|
export * from "./mixins";
|
|
11
14
|
export * from "./ParametrizedLabelResolver";
|
|
12
15
|
export * from "./redux";
|
package/build/index.js
CHANGED
|
@@ -2,6 +2,8 @@ var _a, _b, _c;
|
|
|
2
2
|
import "./silent-define";
|
|
3
3
|
export const isSafari = (navigator.vendor && !!navigator.vendor.match(/apple/i))
|
|
4
4
|
|| ((_c = (_b = (_a = window.safari) === null || _a === void 0 ? void 0 : _a.pushNotification) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : "") === "[object SafariRemoteNotification]";
|
|
5
|
+
export * from "./CacheRegistry";
|
|
6
|
+
export * from "./CancelablePromise";
|
|
5
7
|
export * from "./Debouncer";
|
|
6
8
|
export * from "./decorators";
|
|
7
9
|
export * from "./deep-equal";
|
|
@@ -9,6 +11,7 @@ export * from "./delay";
|
|
|
9
11
|
export * from "./designSystemVariables";
|
|
10
12
|
export * from "./FtCssVariables";
|
|
11
13
|
export * from "./FtLitElement";
|
|
14
|
+
export * from "./generic-types";
|
|
12
15
|
export * from "./mixins";
|
|
13
16
|
export * from "./ParametrizedLabelResolver";
|
|
14
17
|
export * from "./redux";
|
package/build/redux.d.ts
CHANGED
|
@@ -1,24 +1,65 @@
|
|
|
1
1
|
import { FtLitElement } from "./FtLitElement";
|
|
2
|
-
import {
|
|
2
|
+
import { Action, AnyAction, CaseReducerActions, CreateSliceOptions, Dispatch, Observable, Reducer, Slice, SliceCaseReducers, Store, Unsubscribe } from "@reduxjs/toolkit";
|
|
3
|
+
import { Optional } from "./generic-types";
|
|
3
4
|
export declare type ReduxSelector<T, U extends FtLitElementRedux> = (rootState: T, element: U) => unknown;
|
|
4
|
-
|
|
5
|
+
interface ReduxProperty<T, U extends FtLitElementRedux> {
|
|
6
|
+
selector: ReduxSelector<T, U>;
|
|
7
|
+
store?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ReduxPropertyInit<T, U extends FtLitElementRedux> {
|
|
10
|
+
store?: string;
|
|
11
|
+
selector?: ReduxSelector<T, U>;
|
|
12
|
+
hasChanged?: (value: U, oldValue: U) => boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const redux: <T, U extends FtLitElementRedux>(selectorOrInit?: ReduxSelector<T, U> | ReduxPropertyInit<T, U> | undefined, hasChanged?: ((value: U, oldValue: U) => boolean) | undefined) => (proto: Object, name: string) => void;
|
|
5
15
|
export declare class FtLitElementRedux extends FtLitElement {
|
|
6
|
-
reduxProperties?: Map<string,
|
|
7
|
-
private
|
|
8
|
-
private
|
|
16
|
+
reduxProperties?: Map<string, ReduxProperty<unknown, FtLitElementRedux>>;
|
|
17
|
+
private readonly internalStoresUnsubscribers;
|
|
18
|
+
private readonly internalStores;
|
|
19
|
+
private getUnnamedStore;
|
|
20
|
+
/**@deprecated*/
|
|
9
21
|
get store(): any;
|
|
10
|
-
|
|
11
|
-
|
|
22
|
+
/**@deprecated*/
|
|
23
|
+
protected set store(store: Optional<Store>);
|
|
24
|
+
getStore<ReturnType = Optional<Store>>(name?: string): ReturnType;
|
|
25
|
+
protected addStore(store: Store, name?: string): void;
|
|
26
|
+
protected removeStore(storeOrName: Store | string): void;
|
|
12
27
|
private setupStore;
|
|
13
|
-
|
|
28
|
+
private setupStores;
|
|
29
|
+
private updateFromStores;
|
|
30
|
+
private subscribeToStore;
|
|
31
|
+
private unsubscribeFromStores;
|
|
32
|
+
private unsubscribeFromStore;
|
|
33
|
+
protected onStoreAvailable(name?: string): void;
|
|
14
34
|
connectedCallback(): void;
|
|
15
35
|
disconnectedCallback(): void;
|
|
16
36
|
}
|
|
17
37
|
declare global {
|
|
18
38
|
interface Window {
|
|
19
|
-
ftReduxStores?: Record<string, Store
|
|
39
|
+
ftReduxStores?: Record<string, Store<any, any>>;
|
|
20
40
|
}
|
|
21
41
|
}
|
|
22
|
-
export declare
|
|
42
|
+
export declare class FtReduxStore<State = any, CR extends SliceCaseReducers<State> = SliceCaseReducers<State>, A extends Action = AnyAction> implements Store<State, A>, Slice<State, CR, string> {
|
|
43
|
+
private readonly reduxSlice;
|
|
44
|
+
private readonly reduxStore;
|
|
45
|
+
readonly isFtReduxStore = true;
|
|
46
|
+
static get<State = any, CR extends SliceCaseReducers<State> = SliceCaseReducers<State>, A extends Action = AnyAction>(options: CreateSliceOptions<State, CR, string>): FtReduxStore<State, CR, A>;
|
|
47
|
+
private constructor();
|
|
48
|
+
get dispatch(): Dispatch<A>;
|
|
49
|
+
[Symbol.observable](): Observable<any>;
|
|
50
|
+
getState(): any;
|
|
51
|
+
replaceReducer(nextReducer: Reducer<State, A>): void;
|
|
52
|
+
subscribe(listener: () => void): Unsubscribe;
|
|
53
|
+
actions: CaseReducerActions<CR>;
|
|
54
|
+
get name(): string;
|
|
55
|
+
get reducer(): Reducer<State, AnyAction>;
|
|
56
|
+
get caseReducers(): { [Type in keyof CR]: CR[Type] extends {
|
|
57
|
+
reducer: infer Reducer_1;
|
|
58
|
+
} ? Reducer_1 : CR[Type]; };
|
|
59
|
+
getInitialState(): State;
|
|
60
|
+
}
|
|
61
|
+
/**@deprecated Use FtReduxStore.get instead*/
|
|
62
|
+
export declare function getStore(slice: Slice, name?: string): Store;
|
|
23
63
|
export declare function clearAllStores(): void;
|
|
64
|
+
export {};
|
|
24
65
|
//# sourceMappingURL=redux.d.ts.map
|
package/build/redux.js
CHANGED
|
@@ -1,70 +1,186 @@
|
|
|
1
1
|
import { FtLitElement } from "./FtLitElement";
|
|
2
|
-
import { configureStore } from "@reduxjs/toolkit";
|
|
2
|
+
import { configureStore, createSlice } from "@reduxjs/toolkit";
|
|
3
3
|
import { deepEqual } from "./deep-equal";
|
|
4
|
-
export const redux = (
|
|
4
|
+
export const redux = (// TODO next major version: Remove compat
|
|
5
|
+
selectorOrInit, hasChanged) => {
|
|
6
|
+
var _a;
|
|
7
|
+
const init = typeof selectorOrInit === "function" ? {} : (selectorOrInit !== null && selectorOrInit !== void 0 ? selectorOrInit : {});
|
|
8
|
+
hasChanged = (_a = hasChanged !== null && hasChanged !== void 0 ? hasChanged : init.hasChanged) !== null && _a !== void 0 ? _a : ((a, b) => !deepEqual(a, b));
|
|
5
9
|
return (proto, name) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
hasChanged: hasChanged !== null && hasChanged !== void 0 ? hasChanged : ((a, b) => !deepEqual(a, b)),
|
|
9
|
-
});
|
|
10
|
+
var _a;
|
|
11
|
+
proto.constructor.createProperty(name, { attribute: false, hasChanged });
|
|
10
12
|
const reduxProto = proto;
|
|
11
13
|
reduxProto.reduxProperties = reduxProto.reduxProperties || new Map();
|
|
12
|
-
|
|
14
|
+
const selector = (_a = (typeof selectorOrInit === "function" ? selectorOrInit : init.selector)) !== null && _a !== void 0 ? _a : (s => s[name]);
|
|
15
|
+
reduxProto.reduxProperties.set(name, { selector, store: init.store });
|
|
13
16
|
};
|
|
14
17
|
};
|
|
15
18
|
export class FtLitElementRedux extends FtLitElement {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.internalStoresUnsubscribers = new Map();
|
|
22
|
+
this.internalStores = new Map();
|
|
23
|
+
}
|
|
24
|
+
getUnnamedStore() {
|
|
25
|
+
if (this.internalStores.size > 1) {
|
|
26
|
+
throw new Error("Cannot resolve unnamed store when multiple stores are configured.");
|
|
27
|
+
}
|
|
28
|
+
return [...this.internalStores.values()][0];
|
|
29
|
+
}
|
|
30
|
+
/**@deprecated*/
|
|
16
31
|
get store() {
|
|
17
|
-
return this.
|
|
32
|
+
return this.getUnnamedStore(); // Compatibility with use of setter and getter without override TODO next major version: Remove compat
|
|
18
33
|
}
|
|
34
|
+
/**@deprecated*/
|
|
19
35
|
set store(store) {
|
|
20
|
-
this.
|
|
21
|
-
|
|
22
|
-
|
|
36
|
+
this.unsubscribeFromStores();
|
|
37
|
+
this.internalStores.clear();
|
|
38
|
+
if (store) {
|
|
39
|
+
this.addStore(store);
|
|
23
40
|
}
|
|
24
41
|
}
|
|
25
|
-
|
|
26
|
-
|
|
42
|
+
getStore(name) {
|
|
43
|
+
var _a;
|
|
44
|
+
return (name == null
|
|
45
|
+
? ((_a = this.getUnnamedStore()) !== null && _a !== void 0 ? _a : this.store) // Compatibility with getter override TODO next major version: Remove compat
|
|
46
|
+
: this.internalStores.get(name));
|
|
47
|
+
}
|
|
48
|
+
addStore(store, name) {
|
|
49
|
+
name = name !== null && name !== void 0 ? name : (isFtReduxStore(store) ? store.name : "ft-lit-element-redux-default-store");
|
|
50
|
+
this.unsubscribeFromStore(name);
|
|
51
|
+
this.setupStore(name, store);
|
|
52
|
+
}
|
|
53
|
+
removeStore(storeOrName) {
|
|
54
|
+
const name = typeof storeOrName === "string" ? storeOrName : (isFtReduxStore(storeOrName) ? storeOrName.name : "ft-lit-element-redux-default-store");
|
|
55
|
+
this.unsubscribeFromStore(name);
|
|
56
|
+
this.internalStores.delete(name);
|
|
57
|
+
}
|
|
58
|
+
setupStore(name, store) {
|
|
59
|
+
this.internalStores.set(name, store);
|
|
60
|
+
this.updateFromStores();
|
|
61
|
+
this.subscribeToStore(name, store);
|
|
62
|
+
}
|
|
63
|
+
setupStores() {
|
|
64
|
+
this.unsubscribeFromStores();
|
|
65
|
+
if (this.internalStores.size === 0 && this.store != null) { // Compatibility with getter override TODO next major version: Remove compat
|
|
66
|
+
this.addStore(this.store);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
this.updateFromStores();
|
|
70
|
+
this.internalStores.forEach((store, name) => this.subscribeToStore(name, store));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
updateFromStores() {
|
|
27
74
|
if (this.reduxProperties) {
|
|
28
|
-
this.reduxProperties.forEach((
|
|
29
|
-
|
|
75
|
+
this.reduxProperties.forEach((prop, attributeName) => {
|
|
76
|
+
const store = this.getStore(prop.store);
|
|
77
|
+
if (store) {
|
|
78
|
+
this[attributeName] = prop.selector(store.getState(), this);
|
|
79
|
+
}
|
|
30
80
|
});
|
|
31
81
|
}
|
|
32
82
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
83
|
+
subscribeToStore(name, store) {
|
|
84
|
+
this.internalStoresUnsubscribers.set(name, store.subscribe(() => this.updateFromStores()));
|
|
85
|
+
this.onStoreAvailable(name);
|
|
86
|
+
}
|
|
87
|
+
unsubscribeFromStores() {
|
|
88
|
+
Object.keys(this.internalStoresUnsubscribers).forEach(key => this.unsubscribeFromStore(key));
|
|
89
|
+
}
|
|
90
|
+
unsubscribeFromStore(name) {
|
|
91
|
+
if (this.internalStoresUnsubscribers.has(name)) {
|
|
92
|
+
this.internalStoresUnsubscribers.get(name)();
|
|
36
93
|
}
|
|
37
|
-
this.
|
|
38
|
-
this.unsubscribeFromStore = this.store.subscribe(() => {
|
|
39
|
-
this.updateFromStore();
|
|
40
|
-
});
|
|
41
|
-
this.onStoreAvailable();
|
|
42
|
-
this.requestUpdate();
|
|
94
|
+
this.internalStoresUnsubscribers.delete(name);
|
|
43
95
|
}
|
|
44
|
-
onStoreAvailable() {
|
|
96
|
+
onStoreAvailable(name) {
|
|
45
97
|
}
|
|
46
98
|
connectedCallback() {
|
|
47
99
|
super.connectedCallback();
|
|
48
|
-
|
|
49
|
-
this.setupStore();
|
|
50
|
-
}
|
|
100
|
+
this.setupStores();
|
|
51
101
|
}
|
|
52
102
|
disconnectedCallback() {
|
|
53
|
-
|
|
54
|
-
this.unsubscribeFromStore();
|
|
55
|
-
}
|
|
103
|
+
this.unsubscribeFromStores();
|
|
56
104
|
super.disconnectedCallback();
|
|
57
105
|
}
|
|
58
106
|
}
|
|
59
|
-
|
|
107
|
+
function isFtReduxStore(o) {
|
|
108
|
+
var _a;
|
|
109
|
+
return (_a = o) === null || _a === void 0 ? void 0 : _a.isFtReduxStore;
|
|
110
|
+
}
|
|
111
|
+
export class FtReduxStore {
|
|
112
|
+
constructor(reduxSlice, reduxStore) {
|
|
113
|
+
this.reduxSlice = reduxSlice;
|
|
114
|
+
this.reduxStore = reduxStore;
|
|
115
|
+
this.isFtReduxStore = true;
|
|
116
|
+
// Add proxy to automatically dispatch changes
|
|
117
|
+
this.actions = new Proxy(this.reduxSlice.actions, {
|
|
118
|
+
get: (target, p, receiver) => {
|
|
119
|
+
const actionName = p;
|
|
120
|
+
const action = target[actionName];
|
|
121
|
+
if (action) {
|
|
122
|
+
return (...args) => {
|
|
123
|
+
const result = action(...args);
|
|
124
|
+
this.reduxStore.dispatch(result);
|
|
125
|
+
return result;
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
static get(options) {
|
|
132
|
+
if (!window.ftReduxStores) {
|
|
133
|
+
window.ftReduxStores = {};
|
|
134
|
+
}
|
|
135
|
+
const maybeExistingStore = window.ftReduxStores[options.name];
|
|
136
|
+
if (isFtReduxStore(maybeExistingStore)) {
|
|
137
|
+
return maybeExistingStore;
|
|
138
|
+
}
|
|
139
|
+
const reduxSlice = createSlice(options);
|
|
140
|
+
if (maybeExistingStore) { // TODO next major version: Remove compat
|
|
141
|
+
return new FtReduxStore(reduxSlice, maybeExistingStore);
|
|
142
|
+
}
|
|
143
|
+
const reduxStore = configureStore({ reducer: reduxSlice.reducer });
|
|
144
|
+
return window.ftReduxStores[options.name] = new FtReduxStore(reduxSlice, reduxStore);
|
|
145
|
+
}
|
|
146
|
+
// Implement Store
|
|
147
|
+
get dispatch() {
|
|
148
|
+
throw new Error("Don't use this method, actions are automatically dispatched when called.");
|
|
149
|
+
}
|
|
150
|
+
[Symbol.observable]() {
|
|
151
|
+
return this.reduxStore[Symbol.observable]();
|
|
152
|
+
}
|
|
153
|
+
getState() {
|
|
154
|
+
return this.reduxStore.getState();
|
|
155
|
+
}
|
|
156
|
+
replaceReducer(nextReducer) {
|
|
157
|
+
throw new Error("Not implemented yet.");
|
|
158
|
+
}
|
|
159
|
+
subscribe(listener) {
|
|
160
|
+
return this.reduxStore.subscribe(listener);
|
|
161
|
+
}
|
|
162
|
+
get name() {
|
|
163
|
+
return this.reduxSlice.name;
|
|
164
|
+
}
|
|
165
|
+
get reducer() {
|
|
166
|
+
return this.reduxSlice.reducer;
|
|
167
|
+
}
|
|
168
|
+
get caseReducers() {
|
|
169
|
+
return this.reduxSlice.caseReducers;
|
|
170
|
+
}
|
|
171
|
+
getInitialState() {
|
|
172
|
+
return this.reduxSlice.getInitialState();
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
// TODO next major version: Remove this
|
|
176
|
+
/**@deprecated Use FtReduxStore.get instead*/
|
|
177
|
+
export function getStore(slice, name) {
|
|
60
178
|
if (!window.ftReduxStores) {
|
|
61
179
|
window.ftReduxStores = {};
|
|
62
180
|
}
|
|
63
181
|
const storeName = name || slice.name;
|
|
64
182
|
if (!window.ftReduxStores[storeName]) {
|
|
65
|
-
window.ftReduxStores[storeName] = configureStore({
|
|
66
|
-
reducer: slice.reducer
|
|
67
|
-
});
|
|
183
|
+
window.ftReduxStores[storeName] = configureStore({ reducer: slice.reducer });
|
|
68
184
|
}
|
|
69
185
|
return window.ftReduxStores[storeName];
|
|
70
186
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-wc-utils",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.53",
|
|
4
4
|
"description": "Internal web components tools",
|
|
5
5
|
"author": "Fluid Topics <devtopics@antidot.net>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"@reduxjs/toolkit": "^1.6.2",
|
|
18
18
|
"lit": "2.2.8"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "cf1f6c836c7bcacfd0a9abbd39a185077341036e"
|
|
21
21
|
}
|