@fluid-topics/ft-wc-utils 0.3.21 → 0.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,8 +14,10 @@ export declare class FtLitElement extends FtLitElement_base {
14
14
  protected getTemplate(): unknown;
15
15
  protected render(): unknown;
16
16
  protected updated(props: PropertyValues): void;
17
- private setExportpartsAttribute;
18
17
  protected contentAvailableCallback(props: PropertyValues): void;
18
+ private exportpartsDebouncer;
19
+ private scheduleExportpartsUpdate;
20
+ private setExportpartsAttribute;
19
21
  }
20
22
  export {};
21
23
  //# sourceMappingURL=FtLitElement.d.ts.map
@@ -8,7 +8,12 @@ import { html, LitElement } from "lit";
8
8
  import { ScopedRegistryHost } from "@lit-labs/scoped-registry-mixin";
9
9
  import { property } from "lit/decorators.js";
10
10
  import { jsonProperty } from "./decorators";
11
+ import { Debouncer } from "./Debouncer";
11
12
  export class FtLitElement extends ScopedRegistryHost(LitElement) {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.exportpartsDebouncer = new Debouncer(5);
16
+ }
12
17
  /**
13
18
  * @deprecated Unless inline styles are required for your use-case, prefer static styles member
14
19
  */
@@ -36,15 +41,22 @@ export class FtLitElement extends ScopedRegistryHost(LitElement) {
36
41
  updated(props) {
37
42
  super.updated(props);
38
43
  setTimeout(() => {
39
- var _a;
40
44
  this.contentAvailableCallback(props);
45
+ this.scheduleExportpartsUpdate();
46
+ }, 0);
47
+ }
48
+ contentAvailableCallback(props) {
49
+ }
50
+ scheduleExportpartsUpdate() {
51
+ this.exportpartsDebouncer.run(() => {
52
+ var _a;
41
53
  if ((_a = this.exportpartsPrefix) === null || _a === void 0 ? void 0 : _a.trim()) {
42
54
  this.setExportpartsAttribute([this.exportpartsPrefix]);
43
55
  }
44
56
  else if (this.exportpartsPrefixes != null && this.exportpartsPrefixes.length > 0) {
45
57
  this.setExportpartsAttribute(this.exportpartsPrefixes);
46
58
  }
47
- }, 0);
59
+ });
48
60
  }
49
61
  setExportpartsAttribute(prefixes) {
50
62
  var _a, _b, _c, _d, _e, _f;
@@ -69,8 +81,6 @@ export class FtLitElement extends ScopedRegistryHost(LitElement) {
69
81
  const prefixedSubParts = [...allSubParts.values()].flatMap(part => trimmedPrefixes.map(prefix => `${part}:${prefix}--${part}`));
70
82
  this.setAttribute("exportparts", [...this.part, ...prefixedSubParts].join(", "));
71
83
  }
72
- contentAvailableCallback(props) {
73
- }
74
84
  }
75
85
  __decorate([
76
86
  property()
@@ -15,7 +15,7 @@ const e=window,n=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"
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 O=window,g=O.trustedTypes,x=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,S=`lit$${(Math.random()+"").slice(9)}$`,E="?"+S,j=`<${E}>`,R=document,N=(t="")=>R.createComment(t),C=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,$=t=>M(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,k=/>/g,P=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}),B=T(1),D=T(2),W=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),I=new WeakMap,K=R.createTreeWalker(R,129,null,!1),z=(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 c,u,a=-1,l=0;for(;l<n.length&&(s.lastIndex=l,u=s.exec(n),null!==u);)l=s.lastIndex,s===_?"!--"===u[1]?s=A:void 0!==u[1]?s=k:void 0!==u[2]?(L.test(u[2])&&(i=RegExp("</"+u[2],"g")),s=P):void 0!==u[3]&&(s=P):s===P?">"===u[0]?(s=null!=i?i:_,a=-1):void 0===u[1]?a=-2:(a=s.lastIndex-u[2].length,c=u[1],s=void 0===u[3]?P:'"'===u[3]?F:U):s===F||s===U?s=P:s===A||s===k?s=_:(s=P,i=void 0);const f=s===P&&t[e+1].startsWith("/>")?" ":"";o+=s===_?n+j:a>=0?(r.push(c),n.slice(0,a)+"$lit$"+n.slice(a)+S+f):n+S+(-2===a?(r.push(void 0),e):f)}const c=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(c):c,r]};class V{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let i=0,o=0;const s=t.length-1,c=this.parts,[u,a]=z(t,e);if(this.el=V.createElement(u,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())&&c.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);c.push({type:1,index:i,name:e[2],strings:t,ctor:"."===e[1]?G:"?"===e[1]?Y:"@"===e[1]?tt:X})}else c.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=g?g.emptyScript:"";for(let n=0;n<e;n++)r.append(t[n],N()),K.nextNode(),c.push({type:2,index:++i});r.append(t[e],N())}}}else if(8===r.nodeType)if(r.data===E)c.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(S,t+1));)c.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 q(t,e,n=t,r){var i,o,s,c;if(e===W)return e;let u=void 0!==r?null===(i=n._$Co)||void 0===i?void 0:i[r]:n._$Cl;const a=C(e)?void 0:e._$litDirective$;return(null==u?void 0:u.constructor)!==a&&(null===(o=null==u?void 0:u._$AO)||void 0===o||o.call(u,!1),void 0===a?u=void 0:(u=new a(t),u._$AT(t,n,r)),void 0!==r?(null!==(s=(c=n)._$Co)&&void 0!==s?s:c._$Co=[])[r]=u:n._$Cl=u),void 0!==u&&(e=q(t,u._$AS(t,e.values),u,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,c=0,u=r[0];for(;void 0!==u;){if(s===u.index){let e;2===u.type?e=new Z(o,o.nextSibling,this,t):1===u.type?e=new u.ctor(o,u.name,u.strings,this,t):6===u.type&&(e=new et(o,this,t)),this.u.push(e),u=r[++c]}s!==(null==u?void 0:u.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=H,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=q(this,t,e),C(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==W&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):$(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!==H&&C(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=V.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=I.get(t.strings);return void 0===e&&I.set(t.strings,e=new V(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(N()),this.O(N()),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=H,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=H}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=q(this,t,e,0),o=!C(t)||t!==this._$AH&&t!==W,o&&(this._$AH=t);else{const r=t;let s,c;for(t=i[0],s=0;s<i.length-1;s++)c=q(this,r[n+s],e,s),c===W&&(c=this._$AH[s]),o||(o=!C(c)||c!==this._$AH[s]),c===H?t=H:t!==H&&(t+=(null!=c?c:"")+i[s+1]),this._$AH[s]=c}o&&!r&&this.j(t)}j(t){t===H?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===H?void 0:t}}const Q=g?g.emptyScript:"";class Y extends X{constructor(){super(...arguments),this.type=4}j(t){t&&t!==H?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=q(this,t,e,0))&&void 0!==n?n:H)===W)return;const r=this._$AH,i=t===H&&r!==H||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==H&&(r===H||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){q(this,t)}}const nt={P:"$lit$",A:S,M:E,C:1,L:z,R:J,D:$,V:q,I:Z,H:X,N:Y,U:tt,B:G,F:et},rt=O.litHtmlPolyfillSupport;null==rt||rt(V,Z),(null!==(w=O.litHtmlVersions)&&void 0!==w?w:O.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(N(),t),t,void 0,null!=n?n:{})}return s._$AI(t),s
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 O=window,g=O.trustedTypes,x=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,S=`lit$${(Math.random()+"").slice(9)}$`,E="?"+S,j=`<${E}>`,R=document,N=(t="")=>R.createComment(t),C=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,$=t=>M(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,k=/>/g,U=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),P=/'/g,F=/"/g,L=/^(?:script|style|textarea|title)$/i,T=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),B=T(1),D=T(2),W=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),I=new WeakMap,K=R.createTreeWalker(R,129,null,!1),z=(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 c,u,a=-1,l=0;for(;l<n.length&&(s.lastIndex=l,u=s.exec(n),null!==u);)l=s.lastIndex,s===_?"!--"===u[1]?s=A:void 0!==u[1]?s=k:void 0!==u[2]?(L.test(u[2])&&(i=RegExp("</"+u[2],"g")),s=U):void 0!==u[3]&&(s=U):s===U?">"===u[0]?(s=null!=i?i:_,a=-1):void 0===u[1]?a=-2:(a=s.lastIndex-u[2].length,c=u[1],s=void 0===u[3]?U:'"'===u[3]?F:P):s===F||s===P?s=U:s===A||s===k?s=_:(s=U,i=void 0);const f=s===U&&t[e+1].startsWith("/>")?" ":"";o+=s===_?n+j:a>=0?(r.push(c),n.slice(0,a)+"$lit$"+n.slice(a)+S+f):n+S+(-2===a?(r.push(void 0),e):f)}const c=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(c):c,r]};class V{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let i=0,o=0;const s=t.length-1,c=this.parts,[u,a]=z(t,e);if(this.el=V.createElement(u,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())&&c.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);c.push({type:1,index:i,name:e[2],strings:t,ctor:"."===e[1]?G:"?"===e[1]?Y:"@"===e[1]?tt:X})}else c.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=g?g.emptyScript:"";for(let n=0;n<e;n++)r.append(t[n],N()),K.nextNode(),c.push({type:2,index:++i});r.append(t[e],N())}}}else if(8===r.nodeType)if(r.data===E)c.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(S,t+1));)c.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 q(t,e,n=t,r){var i,o,s,c;if(e===W)return e;let u=void 0!==r?null===(i=n._$Co)||void 0===i?void 0:i[r]:n._$Cl;const a=C(e)?void 0:e._$litDirective$;return(null==u?void 0:u.constructor)!==a&&(null===(o=null==u?void 0:u._$AO)||void 0===o||o.call(u,!1),void 0===a?u=void 0:(u=new a(t),u._$AT(t,n,r)),void 0!==r?(null!==(s=(c=n)._$Co)&&void 0!==s?s:c._$Co=[])[r]=u:n._$Cl=u),void 0!==u&&(e=q(t,u._$AS(t,e.values),u,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,c=0,u=r[0];for(;void 0!==u;){if(s===u.index){let e;2===u.type?e=new Z(o,o.nextSibling,this,t):1===u.type?e=new u.ctor(o,u.name,u.strings,this,t):6===u.type&&(e=new et(o,this,t)),this.u.push(e),u=r[++c]}s!==(null==u?void 0:u.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=H,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=q(this,t,e),C(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==W&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):$(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!==H&&C(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=V.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=I.get(t.strings);return void 0===e&&I.set(t.strings,e=new V(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(N()),this.O(N()),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=H,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=H}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=q(this,t,e,0),o=!C(t)||t!==this._$AH&&t!==W,o&&(this._$AH=t);else{const r=t;let s,c;for(t=i[0],s=0;s<i.length-1;s++)c=q(this,r[n+s],e,s),c===W&&(c=this._$AH[s]),o||(o=!C(c)||c!==this._$AH[s]),c===H?t=H:t!==H&&(t+=(null!=c?c:"")+i[s+1]),this._$AH[s]=c}o&&!r&&this.j(t)}j(t){t===H?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===H?void 0:t}}const Q=g?g.emptyScript:"";class Y extends X{constructor(){super(...arguments),this.type=4}j(t){t&&t!==H?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=q(this,t,e,0))&&void 0!==n?n:H)===W)return;const r=this._$AH,i=t===H&&r!==H||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==H&&(r===H||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){q(this,t)}}const nt={P:"$lit$",A:S,M:E,C:1,L:z,R:J,D:$,V:q,I:Z,H:X,N:Y,U:tt,B:G,F:et},rt=O.litHtmlPolyfillSupport;null==rt||rt(V,Z),(null!==(w=O.litHtmlVersions)&&void 0!==w?w:O.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(N(),t),t,void 0,null!=n?n:{})}return s._$AI(t),s
19
19
  /**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
@@ -97,12 +97,12 @@ var vt;const pt=null!=(null===(vt=window.HTMLSlotElement)||void 0===vt?void 0:vt
97
97
  * @license
98
98
  * Copyright 2018 Google LLC
99
99
  * SPDX-License-Identifier: BSD-3-Clause
100
- */const kt=Ot(class extends gt{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 Pt=Object.freeze({__proto__:null,styleMap:kt});
100
+ */const kt=Ot(class extends gt{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 Ut=Object.freeze({__proto__:null,styleMap:kt});
101
101
  /**
102
102
  * @license
103
103
  * Copyright 2017 Google LLC
104
104
  * SPDX-License-Identifier: BSD-3-Clause
105
- */class Ut extends gt{constructor(t){if(super(t),this.it=H,t.type!==wt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===H||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=Ot(Ut);var Lt=Object.freeze({__proto__:null,UnsafeHTMLDirective:Ut,unsafeHTML:Ft});
105
+ */class Pt extends gt{constructor(t){if(super(t),this.it=H,t.type!==wt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===H||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:[]}}}Pt.directiveName="unsafeHTML",Pt.resultType=1;const Ft=Ot(Pt);var Lt=Object.freeze({__proto__:null,UnsafeHTMLDirective:Pt,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)}}}function Tt(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 Bt(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(!Bt(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(!Bt(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(!Bt(t[o],e[o]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}class Dt{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 Wt={colorPrimary:Dt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:Dt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:Dt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:Dt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:Dt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:Dt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Dt.create("--ft-color-error","COLOR","#B00020"),colorOutline:Dt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Dt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:Dt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:Dt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:Dt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:Dt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:Dt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Dt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Dt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:Dt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:Dt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Dt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Dt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Dt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Dt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Dt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Dt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:Dt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:Dt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:Dt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:Dt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:Dt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:Dt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Dt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Dt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:Dt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Dt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Dt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Dt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Dt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Dt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Dt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:Dt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Dt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Dt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Dt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Dt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:Dt.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:Dt.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:Dt.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:Dt.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:Dt.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:Dt.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:Dt.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:Dt.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:Dt.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:Dt.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:Dt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:Dt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:Dt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:Dt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:Dt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Dt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Dt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:Dt.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,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){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}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")};
121
121
  /**
122
122
  * @license
123
123
  * Copyright 2021 Google LLC
124
124
  * SPDX-License-Identifier: BSD-3-Clause
125
- */var Ht=function(t,e,n,r){for(var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r,c=t.length-1;c>=0;c--)(i=t[c])&&(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 It 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 u(i,this.constructor.elementStyles),i}}}(ut)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),B`
125
+ */var It=function(t,e,n,r){for(var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r,c=t.length-1;c>=0;c--)(i=t[c])&&(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 Kt 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 u(i,this.constructor.elementStyles),i}}}(ut)){constructor(){super(...arguments),this.exportpartsDebouncer=new Tt(5)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),B`
126
126
  ${t.map((t=>B`
127
127
  <style>${t}</style>
128
128
  `))}
129
129
  ${this.getTemplate()}
130
- `}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,n,r,i,o,s;const c=t=>null!=t&&t.trim().length>0,u=t.filter(c).map((t=>t.trim()));if(0===u.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(c).map((t=>t.trim())).forEach((t=>a.add(t)))}if(0===a.size)return void this.removeAttribute("exportparts");const l=[...a.values()].flatMap((t=>u.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...l].join(", "))}contentAvailableCallback(t){}}Ht([ht()],It.prototype,"exportpartsPrefix",void 0),Ht([Tt([])],It.prototype,"exportpartsPrefixes",void 0);const Kt=c`
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 c=t=>null!=t&&t.trim().length>0,u=t.filter(c).map((t=>t.trim()));if(0===u.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(c).map((t=>t.trim())).forEach((t=>a.add(t)))}if(0===a.size)return void this.removeAttribute("exportparts");const l=[...a.values()].flatMap((t=>u.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...l].join(", "))}}It([ht()],Kt.prototype,"exportpartsPrefix",void 0),It([Bt([])],Kt.prototype,"exportpartsPrefixes",void 0);const zt=c`
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
- `,zt=c`
139
+ `,Vt=c`
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 Vt(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 qt(t){return!!t&&!!t[ke]}function Jt(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)===Pe}(t)||Array.isArray(t)||!!t[Ae]||!!t.constructor[Ae]||te(t)||ee(t))}function Zt(t,e,n){void 0===n&&(n=!1),0===Xt(t)?(n?Object.keys:Ue)(t).forEach((function(r){n&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(n,r){return e(r,n,t)}))}function Xt(t){var e=t[ke];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:te(t)?2:ee(t)?3:0}function Gt(t,e){return 2===Xt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Qt(t,e,n){var r=Xt(t);2===r?t.set(e,n):3===r?(t.delete(e),t.add(n)):t[e]=n}function Yt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function te(t){return Ce&&t instanceof Map}function ee(t){return Me&&t instanceof Set}function ne(t){return t.o||t.t}function re(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Fe(t);delete e[ke];for(var n=Ue(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 ie(t,e){return void 0===e&&(e=!1),se(t)||qt(t)||!Jt(t)||(Xt(t)>1&&(t.set=t.add=t.clear=t.delete=oe),Object.freeze(t),e&&Zt(t,(function(t,e){return ie(e,!0)}),!0)),t}function oe(){Vt(2)}function se(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ce(t){var e=Le[t];return e||Vt(18,t),e}function ue(){return Re}function ae(t,e){e&&(ce("Patches"),t.u=[],t.s=[],t.v=e)}function le(t){fe(t),t.p.forEach(de),t.p=null}function fe(t){t===Re&&(Re=t.l)}function he(t){return Re={p:[],l:Re,h:t,m:!0,_:0}}function de(t){var e=t[ke];0===e.i||1===e.i?e.j():e.O=!0}function ve(t,e){e._=e.p.length;var n=e.p[0],r=void 0!==t&&t!==n;return e.h.g||ce("ES5").S(e,t,r),r?(n[ke].P&&(le(e),Vt(4)),Jt(t)&&(t=pe(e,t),e.l||ye(e,t)),e.u&&ce("Patches").M(n[ke].t,t,e.u,e.s)):t=pe(e,n,[]),le(e),e.u&&e.v(e.u,e.s),t!==_e?t:void 0}function pe(t,e,n){if(se(e))return e;var r=e[ke];if(!r)return Zt(e,(function(i,o){return be(t,r,e,i,o,n)}),!0),e;if(r.A!==t)return e;if(!r.P)return ye(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=re(r.k):r.o;Zt(3===r.i?new Set(i):i,(function(e,o){return be(t,r,i,e,o,n)})),ye(t,i,!1),n&&t.u&&ce("Patches").R(r,n,t.u,t.s)}return r.o}function be(t,e,n,r,i,o){if(qt(i)){var s=pe(t,i,o&&e&&3!==e.i&&!Gt(e.D,r)?o.concat(r):void 0);if(Qt(n,r,s),!qt(s))return;t.m=!1}if(Jt(i)&&!se(i)){if(!t.h.F&&t._<1)return;pe(t,i),e&&e.A.l||ye(t,i)}}function ye(t,e,n){void 0===n&&(n=!1),t.h.F&&t.m&&ie(e,n)}function me(t,e){var n=t[ke];return(n?ne(n):t)[e]}function we(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 Oe(t){t.P||(t.P=!0,t.l&&Oe(t.l))}function ge(t){t.o||(t.o=re(t.t))}function xe(t,e,n){var r=te(e)?ce("MapSet").N(e,n):ee(e)?ce("MapSet").T(e,n):t.g?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:ue(),P:!1,I:!1,D:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,o=Te;n&&(i=[r],o=Be);var s=Proxy.revocable(i,o),c=s.revoke,u=s.proxy;return r.k=u,r.j=c,u}(e,n):ce("ES5").J(e,n);return(n?n.A:ue()).p.push(r),r}function Se(t){return qt(t)||Vt(22,t),function t(e){if(!Jt(e))return e;var n,r=e[ke],i=Xt(e);if(r){if(!r.P&&(r.i<4||!ce("ES5").K(r)))return r.t;r.I=!0,n=Ee(e,i),r.I=!1}else n=Ee(e,i);return Zt(n,(function(e,i){r&&function(t,e){return 2===Xt(t)?t.get(e):t[e]}(r.t,e)===i||Qt(n,e,t(i))})),3===i?new Set(n):n}(t)}function Ee(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return re(t)}var je,Re,Ne="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ce="undefined"!=typeof Map,Me="undefined"!=typeof Set,$e="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,_e=Ne?Symbol.for("immer-nothing"):((je={})["immer-nothing"]=!0,je),Ae=Ne?Symbol.for("immer-draftable"):"__$immer_draftable",ke=Ne?Symbol.for("immer-state"):"__$immer_state",Pe=""+Object.prototype.constructor,Ue="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Fe=Object.getOwnPropertyDescriptors||function(t){var e={};return Ue(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},Le={},Te={get:function(t,e){if(e===ke)return t;var n=ne(t);if(!Gt(n,e))return function(t,e,n){var r,i=we(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||!Jt(r)?r:r===me(t.t,e)?(ge(t),t.o[e]=xe(t.A.h,r,t)):r},has:function(t,e){return e in ne(t)},ownKeys:function(t){return Reflect.ownKeys(ne(t))},set:function(t,e,n){var r=we(ne(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var i=me(ne(t),e),o=null==i?void 0:i[ke];if(o&&o.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(Yt(n,i)&&(void 0!==n||Gt(t.t,e)))return!0;ge(t),Oe(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!==me(t.t,e)||e in t.t?(t.D[e]=!1,ge(t),Oe(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=ne(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(){Vt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Vt(12)}},Be={};Zt(Te,(function(t,e){Be[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Be.deleteProperty=function(t,e){return Be.set.call(this,t,e,void 0)},Be.set=function(t,e,n){return Te.set.call(this,t[0],e,n,t[0])};var De=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&&Vt(6),void 0!==r&&"function"!=typeof r&&Vt(7),Jt(t)){var c=he(e),u=xe(e,t,void 0),a=!0;try{s=n(u),a=!1}finally{a?le(c):fe(c)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ae(c,r),ve(t,c)}),(function(t){throw le(c),t})):(ae(c,r),ve(s,c))}if(!t||"object"!=typeof t){if(void 0===(s=n(t))&&(s=t),s===_e&&(s=void 0),e.F&&ie(s,!0),r){var l=[],f=[];ce("Patches").M(t,s,l,f),r(l,f)}return s}Vt(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){Jt(t)||Vt(8),qt(t)&&(t=Se(t));var e=he(this),n=xe(this,t,void 0);return n[ke].C=!0,fe(e),n},e.finishDraft=function(t,e){var n=(t&&t[ke]).A;return ae(n,e),ve(void 0,n)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!$e&&Vt(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=ce("Patches").$;return qt(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),We=new De;function He(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ie(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 Ke(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ie(Object(n),!0).forEach((function(e){He(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ze(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}We.produce,We.produceWithPatches.bind(We),We.setAutoFreeze.bind(We),We.setUseProxies.bind(We),We.applyPatches.bind(We),We.createDraft.bind(We),We.finishDraft.bind(We);var Ve="function"==typeof Symbol&&Symbol.observable||"@@observable",qe=function(){return Math.random().toString(36).substring(7).split("").join(".")},Je={INIT:"@@redux/INIT"+qe(),REPLACE:"@@redux/REPLACE"+qe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+qe()}};function Ze(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 Xe(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ze(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(ze(1));return n(Xe)(t,e)}if("function"!=typeof t)throw new Error(ze(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(ze(3));return o}function f(t){if("function"!=typeof t)throw new Error(ze(4));if(u)throw new Error(ze(5));var e=!0;return a(),c.push(t),function(){if(e){if(u)throw new Error(ze(6));e=!1,a();var n=c.indexOf(t);c.splice(n,1),s=null}}}function h(t){if(!Ze(t))throw new Error(ze(7));if(void 0===t.type)throw new Error(ze(8));if(u)throw new Error(ze(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(ze(10));i=t,h({type:Je.REPLACE})}function v(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ze(11));function n(){t.next&&t.next(l())}return n(),{unsubscribe:e(n)}}})[Ve]=function(){return this},t}return h({type:Je.INIT}),(r={dispatch:h,subscribe:f,getState:l,replaceReducer:d})[Ve]=v,r}function Ge(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:Je.INIT}))throw new Error(ze(12));if(void 0===n(void 0,{type:Je.PROBE_UNKNOWN_ACTION()}))throw new Error(ze(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(ze(14));i[u]=f,r=r||f!==l}return(r=r||s.length!==Object.keys(t).length)?i:t}}function Qe(){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 Ye(){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(ze(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=e.map((function(t){return t(i)}));return r=Qe.apply(void 0,o)(n.dispatch),Ke(Ke({},n),{},{dispatch:r})}}}function tn(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 en=tn();en.withExtraArgument=tn;var nn,rn,on,sn,cn=en,un=(nn=function(t,e){return nn=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])},nn(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}nn(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),an=function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},ln=Object.defineProperty,fn=Object.getOwnPropertySymbols,hn=Object.prototype.hasOwnProperty,dn=Object.prototype.propertyIsEnumerable,vn=function(t,e,n){return e in t?ln(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},pn="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Qe:Qe.apply(null,arguments)},bn=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 un(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,an([void 0],t[0].concat(this)))):new(e.bind.apply(e,an([void 0],t.concat(this))))},e}(Array);function yn(){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 bn;return n&&(function(t){return"boolean"==typeof t}(n)?r.push(cn):r.push(cn.withExtraArgument(n.extraArgument))),r}(t)}}function mn(t){var e,n=yn(),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=Ge(o)}var v=c;"function"==typeof v&&(v=v(n));var p=Ye.apply(void 0,v),b=Qe;a&&(b=pn(function(t,e){for(var n in e||(e={}))hn.call(e,n)&&vn(t,n,e[n]);if(fn)for(var r=0,i=fn(e);r<i.length;r++)n=i[r],dn.call(e,n)&&vn(t,n,e[n]);return t}({trace:!1},"object"==typeof a&&a)));var y=[p];return Array.isArray(d)?y=an([p],d):"function"==typeof d&&(y=d(y)),Xe(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[ke];return Te.get(e,t)},set:function(e){var n=this[ke];Te.set(n,t,e)}},n}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][ke];if(!i.P)switch(i.i){case 5:r(i)&&Oe(i);break;case 4:n(i)&&Oe(i)}}}function n(t){for(var e=t.t,n=t.k,r=Ue(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==ke){var s=e[o];if(void 0===s&&!Gt(e,o))return!0;var c=n[o],u=c&&c[ke];if(u?u.t!==s:!Yt(c,s))return!0}}var a=!!e[ke];return r.length!==Ue(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){Le[t]||(Le[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=Fe(n);delete o[ke];for(var s=Ue(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:ue(),P:!1,I:!1,D:{},l:n,t:e,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,ke,{value:o,writable:!0}),i},S:function(t,n,i){i?qt(n)&&n[ke].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var n=e[ke];if(n){var i=n.t,o=n.k,s=n.D,c=n.i;if(4===c)Zt(o,(function(e){e!==ke&&(void 0!==i[e]||Gt(i,e)?s[e]||t(o[e]):(s[e]=!0,Oe(n)))})),Zt(i,(function(t){void 0!==o[t]||Gt(o,t)||(s[t]=!1,Oe(n))}));else if(5===c){if(r(n)&&(Oe(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 wn=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(sn=null===(on=null===(rn=window.safari)||void 0===rn?void 0:rn.pushNotification)||void 0===on?void 0:on.toString())&&void 0!==sn?sn:"");var On=Object.freeze({__proto__:null,isSafari:wn,Debouncer:class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}},customElement:t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},jsonProperty:Tt,deepEqual:Bt,delay:t=>new Promise((e=>setTimeout(e,t))),designSystemVariables:Wt,FtCssVariableFactory:Dt,setVariable:function(t,e){return s(`${t.name}: ${e}`)},FtLitElement:It,noTextSelect:Kt,wordWrap:zt,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)=>!Bt(t,e)});const i=n;i.reduxProperties=i.reduxProperties||new Map,i.reduxProperties.set(r,null!=t?t:t=>t[r])},FtLitElementRedux:class extends It{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]=mn({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=On,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 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[Ue]}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)===Pe}(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[Ue];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[Ue];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 Ne}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===Ne&&(Ne=t.l)}function de(t){return Ne={p:[],l:Ne,h:t,m:!0,_:0}}function ve(t){var e=t[Ue];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[Ue].P&&(fe(e),qt(4)),Zt(t)&&(t=be(e,t),e.l||me(e,t)),e.u&&ue("Patches").M(n[Ue].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[Ue];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[Ue];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[Ue],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,Ne,Ce="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=Ce?Symbol.for("immer-nothing"):((Re={})["immer-nothing"]=!0,Re),ke=Ce?Symbol.for("immer-draftable"):"__$immer_draftable",Ue=Ce?Symbol.for("immer-state"):"__$immer_state",Pe=""+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===Ue)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[Ue];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[Ue].C=!0,he(e),n},e.finishDraft=function(t,e){var n=(t&&t[Ue]).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[Ue];return Be.get(e,t)},set:function(e){var n=this[Ue];Be.set(n,t,e)}},n}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Ue];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!==Ue){var s=e[o];if(void 0===s&&!Qt(e,o))return!0;var c=n[o],u=c&&c[Ue];if(u?u.t!==s:!te(c,s))return!0}}var a=!!e[Ue];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[Ue];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,Ue,{value:o,writable:!0}),i},S:function(t,n,i){i?Jt(n)&&n[Ue].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var n=e[Ue];if(n){var i=n.t,o=n.k,s=n.D,c=n.i;if(4===c)Xt(o,(function(e){e!==Ue&&(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=Ut,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={});
package/build/redux.d.ts CHANGED
@@ -2,7 +2,7 @@ import { FtLitElement } from "./FtLitElement";
2
2
  import { MiddlewareArray, Slice, Store } from "@reduxjs/toolkit";
3
3
  export declare type ReduxSelector<T, U extends FtLitElementRedux> = (rootState: T, element: U) => unknown;
4
4
  export declare const redux: <T, U extends FtLitElementRedux>(selector?: ReduxSelector<T, U> | undefined, hasChanged?: ((value: U, oldValue: U) => boolean) | undefined) => (proto: Object, name: string) => void;
5
- export declare abstract class FtLitElementRedux extends FtLitElement {
5
+ export declare class FtLitElementRedux extends FtLitElement {
6
6
  reduxProperties?: Map<string, ReduxSelector<unknown, FtLitElementRedux>>;
7
7
  private unsubscribeFromStore;
8
8
  private internalStore?;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-wc-utils",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
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": "44d378afb4633e1b5a2be18fb6051968816e577a"
20
+ "gitHead": "5ca6dd4bc6ec9dca0bf645892ec3f07e4b62683d"
21
21
  }