@fluid-topics/ft-wc-utils 0.3.54 → 0.3.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ParametrizedLabelResolver.d.ts +4 -1
- package/build/ParametrizedLabelResolver.js +33 -1
- package/build/events.d.ts +9 -0
- package/build/events.js +6 -0
- package/build/globals.min.js +18 -7
- package/build/index.d.ts +2 -0
- package/build/index.js +2 -0
- package/build/mixins.d.ts +1 -0
- package/build/mixins.js +12 -0
- package/build/revivers.d.ts +3 -0
- package/build/revivers.js +18 -0
- package/package.json +2 -2
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export declare type ParametrizedLabels = Record<string, string | undefined>;
|
|
2
|
-
export declare class ParametrizedLabelResolver<T extends ParametrizedLabels> {
|
|
2
|
+
export declare class ParametrizedLabelResolver<T extends ParametrizedLabels = ParametrizedLabels> {
|
|
3
3
|
private defaultLabels;
|
|
4
4
|
private labels;
|
|
5
5
|
constructor(defaultLabels: T, labels: T);
|
|
6
6
|
resolve(key: keyof T, ...args: any[]): string | NonNullable<T[keyof T]>;
|
|
7
|
+
private resolvePluralKey;
|
|
8
|
+
private formatValue;
|
|
9
|
+
private formatDate;
|
|
7
10
|
}
|
|
8
11
|
//# sourceMappingURL=ParametrizedLabelResolver.d.ts.map
|
|
@@ -5,9 +5,41 @@ export class ParametrizedLabelResolver {
|
|
|
5
5
|
}
|
|
6
6
|
resolve(key, ...args) {
|
|
7
7
|
var _a, _b;
|
|
8
|
+
key = this.resolvePluralKey(key, args);
|
|
8
9
|
let label = (_b = (_a = this.labels[key]) !== null && _a !== void 0 ? _a : this.defaultLabels[key]) !== null && _b !== void 0 ? _b : "";
|
|
9
|
-
args.forEach((value, index) => label = label.replace(new RegExp(`\\{${index}\\}`, "g"), value));
|
|
10
|
+
args.forEach((value, index) => label = label.replace(new RegExp(`\\{${index}([^}]*)\\}`, "g"), (match, modifier) => this.formatValue(value, modifier)));
|
|
10
11
|
return label;
|
|
11
12
|
}
|
|
13
|
+
resolvePluralKey(key, args) {
|
|
14
|
+
for (let arg of args) {
|
|
15
|
+
if (typeof arg === "number") {
|
|
16
|
+
const maybeNewKey = `${key}[\\=${arg}]`;
|
|
17
|
+
if (maybeNewKey in this.labels || maybeNewKey in this.defaultLabels) {
|
|
18
|
+
return maybeNewKey;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return key;
|
|
23
|
+
}
|
|
24
|
+
formatValue(value, modifier) {
|
|
25
|
+
return value instanceof Date ? this.formatDate(value, modifier) : value;
|
|
26
|
+
}
|
|
27
|
+
formatDate(value, modifier) {
|
|
28
|
+
const format = (lang) => {
|
|
29
|
+
if (modifier === null || modifier === void 0 ? void 0 : modifier.includes("date")) {
|
|
30
|
+
return value.toLocaleDateString(lang);
|
|
31
|
+
}
|
|
32
|
+
if (modifier === null || modifier === void 0 ? void 0 : modifier.includes("time")) {
|
|
33
|
+
return value.toLocaleTimeString(lang);
|
|
34
|
+
}
|
|
35
|
+
return value.toLocaleString(lang);
|
|
36
|
+
};
|
|
37
|
+
try {
|
|
38
|
+
return format(document.documentElement.lang);
|
|
39
|
+
}
|
|
40
|
+
catch (e) {
|
|
41
|
+
return format();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
12
44
|
}
|
|
13
45
|
//# sourceMappingURL=ParametrizedLabelResolver.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare type FtNotificationType = "info" | "warning" | "error";
|
|
2
|
+
export interface FtNotificationEventDetail {
|
|
3
|
+
type: FtNotificationType;
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class FtNotificationEvent extends CustomEvent<FtNotificationEventDetail> {
|
|
7
|
+
constructor(detail: FtNotificationEventDetail);
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=events.d.ts.map
|
package/build/events.js
ADDED
package/build/globals.min.js
CHANGED
|
@@ -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 g=window,O=g.trustedTypes,x=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,S=`lit$${(Math.random()+"").slice(9)}$`,E="?"+S,j=`<${E}>`,R=document,C=(t="")=>R.createComment(t),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray
|
|
18
|
+
var w;m.finalized=!0,m.elementProperties=new Map,m.elementStyles=[],m.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:m}),(null!==(l=f.reactiveElementVersions)&&void 0!==l?l:f.reactiveElementVersions=[]).push("1.4.1");const g=window,O=g.trustedTypes,x=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,S=`lit$${(Math.random()+"").slice(9)}$`,E="?"+S,j=`<${E}>`,R=document,C=(t="")=>R.createComment(t),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,$=t=>M(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,P=/>/g,k=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),U=/'/g,F=/"/g,L=/^(?:script|style|textarea|title)$/i,T=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),D=T(1),B=T(2),W=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),H=new WeakMap,K=R.createTreeWalker(R,129,null,!1),V=(t,e)=>{const n=t.length-1,r=[];let i,o=2===e?"<svg>":"",s=A;for(let e=0;e<n;e++){const n=t[e];let u,c,a=-1,l=0;for(;l<n.length&&(s.lastIndex=l,c=s.exec(n),null!==c);)l=s.lastIndex,s===A?"!--"===c[1]?s=_:void 0!==c[1]?s=P:void 0!==c[2]?(L.test(c[2])&&(i=RegExp("</"+c[2],"g")),s=k):void 0!==c[3]&&(s=k):s===k?">"===c[0]?(s=null!=i?i:A,a=-1):void 0===c[1]?a=-2:(a=s.lastIndex-c[2].length,u=c[1],s=void 0===c[3]?k:'"'===c[3]?F:U):s===F||s===U?s=k:s===_||s===P?s=A:(s=k,i=void 0);const f=s===k&&t[e+1].startsWith("/>")?" ":"";o+=s===A?n+j:a>=0?(r.push(u),n.slice(0,a)+"$lit$"+n.slice(a)+S+f):n+S+(-2===a?(r.push(void 0),e):f)}const u=o+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==x?x.createHTML(u):u,r]};class q{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let i=0,o=0;const s=t.length-1,u=this.parts,[c,a]=V(t,e);if(this.el=q.createElement(c,n),K.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=K.nextNode())&&u.length<s;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(S)){const n=a[o++];if(t.push(e),void 0!==n){const t=r.getAttribute(n.toLowerCase()+"$lit$").split(S),e=/([.?@])?(.*)/.exec(n);u.push({type:1,index:i,name:e[2],strings:t,ctor:"."===e[1]?G:"?"===e[1]?Y:"@"===e[1]?tt:X})}else u.push({type:6,index:i})}for(const e of t)r.removeAttribute(e)}if(L.test(r.tagName)){const t=r.textContent.split(S),e=t.length-1;if(e>0){r.textContent=O?O.emptyScript:"";for(let n=0;n<e;n++)r.append(t[n],C()),K.nextNode(),u.push({type:2,index:++i});r.append(t[e],C())}}}else if(8===r.nodeType)if(r.data===E)u.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(S,t+1));)u.push({type:7,index:i}),t+=S.length-1}i++}}static createElement(t,e){const n=R.createElement("template");return n.innerHTML=t,n}}function z(t,e,n=t,r){var i,o,s,u;if(e===W)return e;let c=void 0!==r?null===(i=n._$Co)||void 0===i?void 0:i[r]:n._$Cl;const a=N(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==a&&(null===(o=null==c?void 0:c._$AO)||void 0===o||o.call(c,!1),void 0===a?c=void 0:(c=new a(t),c._$AT(t,n,r)),void 0!==r?(null!==(s=(u=n)._$Co)&&void 0!==s?s:u._$Co=[])[r]=c:n._$Cl=c),void 0!==c&&(e=z(t,c._$AS(t,e.values),c,r)),e}class J{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:n},parts:r}=this._$AD,i=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(n,!0);K.currentNode=i;let o=K.nextNode(),s=0,u=0,c=r[0];for(;void 0!==c;){if(s===c.index){let e;2===c.type?e=new Z(o,o.nextSibling,this,t):1===c.type?e=new c.ctor(o,c.name,c.strings,this,t):6===c.type&&(e=new et(o,this,t)),this.u.push(e),c=r[++u]}s!==(null==c?void 0:c.index)&&(o=K.nextNode(),s++)}return i}p(t){let e=0;for(const n of this.u)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class Z{constructor(t,e,n,r){var i;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=r,this._$Cm=null===(i=null==r?void 0:r.isConnected)||void 0===i||i}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=z(this,t,e),N(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==W&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):$(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==I&&N(this._$AH)?this._$AA.nextSibling.data=t:this.T(R.createTextNode(t)),this._$AH=t}$(t){var e;const{values:n,_$litType$:r}=t,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=q.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.p(n);else{const t=new J(i,this),e=t.v(this.options);t.p(n),this.T(e),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new q(t)),e}k(t){M(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,r=0;for(const i of t)r===e.length?e.push(n=new Z(this.O(C()),this.O(C()),this,this.options)):n=e[r],n._$AI(i),r++;r<e.length&&(this._$AR(n&&n._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class X{constructor(t,e,n,r,i){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,r){const i=this.strings;let o=!1;if(void 0===i)t=z(this,t,e,0),o=!N(t)||t!==this._$AH&&t!==W,o&&(this._$AH=t);else{const r=t;let s,u;for(t=i[0],s=0;s<i.length-1;s++)u=z(this,r[n+s],e,s),u===W&&(u=this._$AH[s]),o||(o=!N(u)||u!==this._$AH[s]),u===I?t=I:t!==I&&(t+=(null!=u?u:"")+i[s+1]),this._$AH[s]=u}o&&!r&&this.j(t)}j(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends X{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===I?void 0:t}}const Q=O?O.emptyScript:"";class Y extends X{constructor(){super(...arguments),this.type=4}j(t){t&&t!==I?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class tt extends X{constructor(t,e,n,r,i){super(t,e,n,r,i),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=z(this,t,e,0))&&void 0!==n?n:I)===W)return;const r=this._$AH,i=t===I&&r!==I||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==I&&(r===I||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class et{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){z(this,t)}}const nt={P:"$lit$",A:S,M:E,C:1,L:V,R:J,D:$,V:z,I:Z,H:X,N:Y,U:tt,B:G,F:et},rt=g.litHtmlPolyfillSupport;null==rt||rt(q,Z),(null!==(w=g.litHtmlVersions)&&void 0!==w?w:g.litHtmlVersions=[]).push("2.4.0");const it=(t,e,n)=>{var r,i;const o=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:e;let s=o._$litPart$;if(void 0===s){const t=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:null;o._$litPart$=s=new Z(e.insertBefore(C(),t),t,void 0,null!=n?n:{})}return s._$AI(t),s
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
@@ -87,12 +87,12 @@ var vt;const pt=null!=(null===(vt=window.HTMLSlotElement)||void 0===vt?void 0:vt
|
|
|
87
87
|
* @license
|
|
88
88
|
* Copyright 2017 Google LLC
|
|
89
89
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
90
|
-
*/var
|
|
90
|
+
*/var $t=Object.freeze({__proto__:null,repeat:Mt});
|
|
91
91
|
/**
|
|
92
92
|
* @license
|
|
93
93
|
* Copyright 2018 Google LLC
|
|
94
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
|
-
*/const
|
|
95
|
+
*/const At=gt(class extends Ot{constructor(t){var e;if(super(t),t.type!==mt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var n,r;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(n=this.st)||void 0===n?void 0:n.has(t))&&this.nt.add(t);return this.render(e)}const i=t.element.classList;this.nt.forEach((t=>{t in e||(i.remove(t),this.nt.delete(t))}));for(const t in e){const n=!!e[t];n===this.nt.has(t)||(null===(r=this.st)||void 0===r?void 0:r.has(t))||(n?(i.add(t),this.nt.add(t)):(i.remove(t),this.nt.delete(t)))}return W}});var _t=Object.freeze({__proto__:null,classMap:At});
|
|
96
96
|
/**
|
|
97
97
|
* @license
|
|
98
98
|
* Copyright 2018 Google LLC
|
|
@@ -117,7 +117,7 @@ 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,u=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const u=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,u);const a={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:u,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,a),this._definitionsByClass.set(i,a);let l=n.call(r,t);l||(l=f(t),e.call(r,t,l)),this===window.customElements&&(s.set(i,a),a.standInClass=l);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)o.delete(t),v(t,a,!0)}const p=this._whenDefinedPromises.get(t);return void 0!==p&&(p.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){b.push(this),r.upgrade.apply(r,arguments),b.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let n=this._whenDefinedPromises.get(t);return void 0===n&&(n={},n.promise=new Promise((t=>n.resolve=t)),this._whenDefinedPromises.set(t,n)),n.promise}_upgradeWhenDefined(t,e,n){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),n?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const n=s.get(this.constructor);if(!n)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],n.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,n),e},window.HTMLElement.prototype=t.prototype;const a=t=>t===document||t instanceof ShadowRoot,l=t=>{let e=t.getRootNode();if(!a(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),a(e)||(e=u.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const n=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(n,HTMLElement.prototype);const r=l(n)||window.customElements,i=r._getDefinition(e);return i?v(n,i):o.set(n,r),n}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,n)=>{if(0===e.size||void 0===n)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o,i),n.call(this,o,t,i)}else r.call(this,o,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),n.call(this,r,t,null)}else i.call(this,r)})},d=e=>{const n=Object.getPrototypeOf(e);if(n!==window.HTMLElement)return n===t||"HTMLElement"===n?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(n)},v=(t,e,n=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),c=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((n=>{t.hasAttribute(n)&&e.attributeChangedCallback.call(t,n,null,t.getAttribute(n))})),n&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},p=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=p.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,n)=>{const r=(n?Object.getPrototypeOf(n):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=r.apply(n||this,arguments);return void 0!==t&&u.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const m=(t,e)=>{const n=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...n,set(t){b.push(this),n.set.call(this,t),b.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,n=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...n){const r=e.call(this,...n);return t.set(r,this),r},n.forEach((e=>{const n=window.ElementInternals.prototype,r=n[e];n[e]=function(...e){const n=t.get(this);if(!0!==i.get(n).formAssociated)throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`);r?.call(this,...e)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class o{constructor(t){const e=new Map;t.forEach(((t,n)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+n]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const n of t){const t=i.get(n);t&&!0!==t.formAssociated||e.push(n)}return new o(e)}})}}try{window.customElements.define("custom-element",null)}catch(t){const e=window.customElements.define;window.customElements.define=(t,n,r)=>{try{e.bind(window.customElements)(t,n,r)}catch(e){console.info(t,n,r,e)}}}class Tt extends Promise{constructor(t){super(((e,n)=>t((t=>{this.isCanceled?n(new Error("Promise has been canceled")):e(t)}),(t=>{this.isCanceled?n(new Error("Promise has been canceled")):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const Dt=t=>new Tt(((e,n)=>t.then(e).catch(n)));class Bt{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const n=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of n)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}function Wt(t,e){const n=()=>JSON.parse(JSON.stringify(t));return ht({type:Object,converter:{fromAttribute:t=>{if(null==t)return n();try{return JSON.parse(t)}catch{return n()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}function It(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var n,r,i;if(Array.isArray(t)){if((n=t.length)!=e.length)return!1;for(r=n;0!=r--;)if(!It(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!It(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((n=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!=r--;){var o=i[r];if(!It(t[o],e[o]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}class Ht{static create(t,e,n){let r=t=>s(null!=t?t:n),i=u`var(${s(t)}, ${r(n)})`;return i.name=t,i.category=e,i.defaultValue=n,i.defaultCssValue=r,i.get=e=>u`var(${s(t)}, ${r(e)})`,i.breadcrumb=()=>[],i.lastResortDefaultValue=()=>n,i}static extend(t,e,n){let r=t=>e.get(null!=t?t:n),i=u`var(${s(t)}, ${r(n)})`;return i.name=t,i.category=e.category,i.fallbackVariable=e,i.defaultValue=n,i.defaultCssValue=r,i.get=e=>u`var(${s(t)}, ${r(e)})`,i.breadcrumb=()=>[e.name,...e.breadcrumb()],i.lastResortDefaultValue=()=>n,i}static external(t,e){let n=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):s(null!=e?e:t.defaultValue),r=u`var(${s(t.name)}, ${n(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=n,r.get=e=>u`var(${s(t.name)}, ${n(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>{var e,n;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(n=t.fallbackVariable)||void 0===n?void 0:n.lastResortDefaultValue()},r}}const Kt={colorPrimary:Ht.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:Ht.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:Ht.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:Ht.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:Ht.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:Ht.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Ht.create("--ft-color-error","COLOR","#B00020"),colorOutline:Ht.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Ht.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:Ht.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:Ht.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:Ht.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:Ht.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:Ht.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Ht.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Ht.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:Ht.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:Ht.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Ht.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Ht.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Ht.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Ht.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Ht.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Ht.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:Ht.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:Ht.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:Ht.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:Ht.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:Ht.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:Ht.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Ht.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Ht.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:Ht.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Ht.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Ht.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Ht.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Ht.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Ht.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Ht.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:Ht.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Ht.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Ht.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Ht.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Ht.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:Ht.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:Ht.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:Ht.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:Ht.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:Ht.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:Ht.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:Ht.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:Ht.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:Ht.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:Ht.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:Ht.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:Ht.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:Ht.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:Ht.create("--ft-border-radius-XL","SIZE","16px"),titleFont:Ht.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Ht.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Ht.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:Ht.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
120
|
+
*/if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,n=window.customElements.get,r=window.customElements,i=new WeakMap,o=new WeakMap,s=new WeakMap,u=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const u=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,u);const a={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:u,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,a),this._definitionsByClass.set(i,a);let l=n.call(r,t);l||(l=f(t),e.call(r,t,l)),this===window.customElements&&(s.set(i,a),a.standInClass=l);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)o.delete(t),v(t,a,!0)}const p=this._whenDefinedPromises.get(t);return void 0!==p&&(p.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){b.push(this),r.upgrade.apply(r,arguments),b.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let n=this._whenDefinedPromises.get(t);return void 0===n&&(n={},n.promise=new Promise((t=>n.resolve=t)),this._whenDefinedPromises.set(t,n)),n.promise}_upgradeWhenDefined(t,e,n){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),n?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const n=s.get(this.constructor);if(!n)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],n.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,n),e},window.HTMLElement.prototype=t.prototype;const a=t=>t===document||t instanceof ShadowRoot,l=t=>{let e=t.getRootNode();if(!a(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),a(e)||(e=u.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const n=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(n,HTMLElement.prototype);const r=l(n)||window.customElements,i=r._getDefinition(e);return i?v(n,i):o.set(n,r),n}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,n)=>{if(0===e.size||void 0===n)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o,i),n.call(this,o,t,i)}else r.call(this,o,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),n.call(this,r,t,null)}else i.call(this,r)})},d=e=>{const n=Object.getPrototypeOf(e);if(n!==window.HTMLElement)return n===t||"HTMLElement"===n?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(n)},v=(t,e,n=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),c=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((n=>{t.hasAttribute(n)&&e.attributeChangedCallback.call(t,n,null,t.getAttribute(n))})),n&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},p=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=p.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,n)=>{const r=(n?Object.getPrototypeOf(n):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=r.apply(n||this,arguments);return void 0!==t&&u.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const m=(t,e)=>{const n=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...n,set(t){b.push(this),n.set.call(this,t),b.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,n=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...n){const r=e.call(this,...n);return t.set(r,this),r},n.forEach((e=>{const n=window.ElementInternals.prototype,r=n[e];n[e]=function(...e){const n=t.get(this);if(!0!==i.get(n).formAssociated)throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`);r?.call(this,...e)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class o{constructor(t){const e=new Map;t.forEach(((t,n)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+n]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const n of t){const t=i.get(n);t&&!0!==t.formAssociated||e.push(n)}return new o(e)}})}}try{window.customElements.define("custom-element",null)}catch(t){const e=window.customElements.define;window.customElements.define=(t,n,r)=>{try{e.bind(window.customElements)(t,n,r)}catch(e){console.info(t,n,r,e)}}}class Tt extends Promise{constructor(t){super(((e,n)=>t((t=>{this.isCanceled?n(new Error("Promise has been canceled")):e(t)}),(t=>{this.isCanceled?n(new Error("Promise has been canceled")):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const Dt=t=>new Tt(((e,n)=>t.then(e).catch(n)));class Bt{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const n=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of n)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}function Wt(t,e){const n=()=>JSON.parse(JSON.stringify(t));return ht({type:Object,converter:{fromAttribute:t=>{if(null==t)return n();try{return JSON.parse(t)}catch{return n()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}function It(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var n,r,i;if(Array.isArray(t)){if((n=t.length)!=e.length)return!1;for(r=n;0!=r--;)if(!It(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!It(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((n=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!=r--;){var o=i[r];if(!It(t[o],e[o]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}class Ht{static create(t,e,n){let r=t=>s(null!=t?t:n),i=u`var(${s(t)}, ${r(n)})`;return i.name=t,i.category=e,i.defaultValue=n,i.defaultCssValue=r,i.get=e=>u`var(${s(t)}, ${r(e)})`,i.breadcrumb=()=>[],i.lastResortDefaultValue=()=>n,i}static extend(t,e,n){let r=t=>e.get(null!=t?t:n),i=u`var(${s(t)}, ${r(n)})`;return i.name=t,i.category=e.category,i.fallbackVariable=e,i.defaultValue=n,i.defaultCssValue=r,i.get=e=>u`var(${s(t)}, ${r(e)})`,i.breadcrumb=()=>[e.name,...e.breadcrumb()],i.lastResortDefaultValue=()=>n,i}static external(t,e){let n=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):s(null!=e?e:t.defaultValue),r=u`var(${s(t.name)}, ${n(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=n,r.get=e=>u`var(${s(t.name)}, ${n(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>{var e,n;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(n=t.fallbackVariable)||void 0===n?void 0:n.lastResortDefaultValue()},r}}const Kt={colorPrimary:Ht.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:Ht.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:Ht.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:Ht.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:Ht.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:Ht.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Ht.create("--ft-color-error","COLOR","#B00020"),colorOutline:Ht.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Ht.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:Ht.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:Ht.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:Ht.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:Ht.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:Ht.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Ht.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Ht.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:Ht.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:Ht.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Ht.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Ht.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Ht.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Ht.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Ht.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Ht.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:Ht.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:Ht.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:Ht.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:Ht.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:Ht.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:Ht.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Ht.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Ht.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:Ht.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Ht.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Ht.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Ht.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Ht.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Ht.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Ht.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:Ht.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Ht.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Ht.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Ht.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Ht.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:Ht.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:Ht.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:Ht.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:Ht.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:Ht.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:Ht.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:Ht.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:Ht.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:Ht.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:Ht.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:Ht.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:Ht.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:Ht.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:Ht.create("--ft-border-radius-XL","SIZE","16px"),titleFont:Ht.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Ht.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Ht.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:Ht.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class Vt extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}
|
|
121
121
|
/**
|
|
122
122
|
* @license
|
|
123
123
|
* Copyright 2021 Google LLC
|
|
@@ -127,7 +127,7 @@ var vt;const pt=null!=(null===(vt=window.HTMLSlotElement)||void 0===vt?void 0:vt
|
|
|
127
127
|
<style>${t}</style>
|
|
128
128
|
`))}
|
|
129
129
|
${this.getTemplate()}
|
|
130
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,n;if((null!==(n=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==n?n:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,n,r,i,o,s;const u=t=>null!=t&&t.trim().length>0,c=t.filter(u).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const a=new Set;for(let t of null!==(n=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==n?n:[]){const e=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],n=null!==(s=null===(o=t.getAttribute("exportparts"))||void 0===o?void 0:o.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...n).filter(u).map((t=>t.trim())).forEach((t=>a.add(t)))}if(0===a.size)return void this.removeAttribute("exportparts");const l=[...a.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...l].join(", "))}}qt([ht()],zt.prototype,"exportpartsPrefix",void 0),qt([Wt([])],zt.prototype,"exportpartsPrefixes",void 0),qt([ht()],zt.prototype,"customStylesheet",void 0);const
|
|
130
|
+
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,n;if((null!==(n=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==n?n:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,n,r,i,o,s;const u=t=>null!=t&&t.trim().length>0,c=t.filter(u).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const a=new Set;for(let t of null!==(n=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==n?n:[]){const e=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],n=null!==(s=null===(o=t.getAttribute("exportparts"))||void 0===o?void 0:o.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...n).filter(u).map((t=>t.trim())).forEach((t=>a.add(t)))}if(0===a.size)return void this.removeAttribute("exportparts");const l=[...a.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...l].join(", "))}}qt([ht()],zt.prototype,"exportpartsPrefix",void 0),qt([Wt([])],zt.prototype,"exportpartsPrefixes",void 0),qt([ht()],zt.prototype,"customStylesheet",void 0);const Jt=u`
|
|
131
131
|
.ft-no-text-select {
|
|
132
132
|
-webkit-touch-callout: none;
|
|
133
133
|
-webkit-user-select: none;
|
|
@@ -136,7 +136,7 @@ var vt;const pt=null!=(null===(vt=window.HTMLSlotElement)||void 0===vt?void 0:vt
|
|
|
136
136
|
-ms-user-select: none;
|
|
137
137
|
user-select: none;
|
|
138
138
|
}
|
|
139
|
-
`,
|
|
139
|
+
`,Zt=u`
|
|
140
140
|
.ft-word-wrap {
|
|
141
141
|
white-space: normal;
|
|
142
142
|
word-wrap: break-word;
|
|
@@ -148,4 +148,15 @@ 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 Zt(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Xt(t){return!!t&&!!t[Fe]}function Gt(t){return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Le}(t)||Array.isArray(t)||!!t[Ue]||!!t.constructor[Ue]||re(t)||ie(t))}function Qt(t,e,n){void 0===n&&(n=!1),0===Yt(t)?(n?Object.keys:Te)(t).forEach((function(r){n&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(n,r){return e(r,n,t)}))}function Yt(t){var e=t[Fe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:re(t)?2:ie(t)?3:0}function te(t,e){return 2===Yt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ee(t,e,n){var r=Yt(t);2===r?t.set(e,n):3===r?(t.delete(e),t.add(n)):t[e]=n}function ne(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function re(t){return $e&&t instanceof Map}function ie(t){return _e&&t instanceof Set}function oe(t){return t.o||t.t}function se(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=De(t);delete e[Fe];for(var n=Te(e),r=0;r<n.length;r++){var i=n[r],o=e[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function ue(t,e){return void 0===e&&(e=!1),ae(t)||Xt(t)||!Gt(t)||(Yt(t)>1&&(t.set=t.add=t.clear=t.delete=ce),Object.freeze(t),e&&Qt(t,(function(t,e){return ue(e,!0)}),!0)),t}function ce(){Zt(2)}function ae(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function le(t){var e=Be[t];return e||Zt(18,t),e}function fe(){return Me}function he(t,e){e&&(le("Patches"),t.u=[],t.s=[],t.v=e)}function de(t){ve(t),t.p.forEach(be),t.p=null}function ve(t){t===Me&&(Me=t.l)}function pe(t){return Me={p:[],l:Me,h:t,m:!0,_:0}}function be(t){var e=t[Fe];0===e.i||1===e.i?e.j():e.O=!0}function ye(t,e){e._=e.p.length;var n=e.p[0],r=void 0!==t&&t!==n;return e.h.g||le("ES5").S(e,t,r),r?(n[Fe].P&&(de(e),Zt(4)),Gt(t)&&(t=me(e,t),e.l||ge(e,t)),e.u&&le("Patches").M(n[Fe].t,t,e.u,e.s)):t=me(e,n,[]),de(e),e.u&&e.v(e.u,e.s),t!==ke?t:void 0}function me(t,e,n){if(ae(e))return e;var r=e[Fe];if(!r)return Qt(e,(function(i,o){return we(t,r,e,i,o,n)}),!0),e;if(r.A!==t)return e;if(!r.P)return ge(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=se(r.k):r.o;Qt(3===r.i?new Set(i):i,(function(e,o){return we(t,r,i,e,o,n)})),ge(t,i,!1),n&&t.u&&le("Patches").R(r,n,t.u,t.s)}return r.o}function we(t,e,n,r,i,o){if(Xt(i)){var s=me(t,i,o&&e&&3!==e.i&&!te(e.D,r)?o.concat(r):void 0);if(ee(n,r,s),!Xt(s))return;t.m=!1}if(Gt(i)&&!ae(i)){if(!t.h.F&&t._<1)return;me(t,i),e&&e.A.l||ge(t,i)}}function ge(t,e,n){void 0===n&&(n=!1),t.h.F&&t.m&&ue(e,n)}function Oe(t,e){var n=t[Fe];return(n?oe(n):t)[e]}function xe(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function Se(t){t.P||(t.P=!0,t.l&&Se(t.l))}function Ee(t){t.o||(t.o=se(t.t))}function je(t,e,n){var r=re(e)?le("MapSet").N(e,n):ie(e)?le("MapSet").T(e,n):t.g?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:fe(),P:!1,I:!1,D:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,o=We;n&&(i=[r],o=Ie);var s=Proxy.revocable(i,o),u=s.revoke,c=s.proxy;return r.k=c,r.j=u,c}(e,n):le("ES5").J(e,n);return(n?n.A:fe()).p.push(r),r}function Re(t){return Xt(t)||Zt(22,t),function t(e){if(!Gt(e))return e;var n,r=e[Fe],i=Yt(e);if(r){if(!r.P&&(r.i<4||!le("ES5").K(r)))return r.t;r.I=!0,n=Ce(e,i),r.I=!1}else n=Ce(e,i);return Qt(n,(function(e,i){r&&function(t,e){return 2===Yt(t)?t.get(e):t[e]}(r.t,e)===i||ee(n,e,t(i))})),3===i?new Set(n):n}(t)}function Ce(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return se(t)}var Ne,Me,Ae="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),$e="undefined"!=typeof Map,_e="undefined"!=typeof Set,Pe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ke=Ae?Symbol.for("immer-nothing"):((Ne={})["immer-nothing"]=!0,Ne),Ue=Ae?Symbol.for("immer-draftable"):"__$immer_draftable",Fe=Ae?Symbol.for("immer-state"):"__$immer_state",Le=""+Object.prototype.constructor,Te="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,De=Object.getOwnPropertyDescriptors||function(t){var e={};return Te(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},Be={},We={get:function(t,e){if(e===Fe)return t;var n=oe(t);if(!te(n,e))return function(t,e,n){var r,i=xe(e,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,n,e);var r=n[e];return t.I||!Gt(r)?r:r===Oe(t.t,e)?(Ee(t),t.o[e]=je(t.A.h,r,t)):r},has:function(t,e){return e in oe(t)},ownKeys:function(t){return Reflect.ownKeys(oe(t))},set:function(t,e,n){var r=xe(oe(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var i=Oe(oe(t),e),o=null==i?void 0:i[Fe];if(o&&o.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(ne(n,i)&&(void 0!==n||te(t.t,e)))return!0;Ee(t),Se(t)}return t.o[e]===n&&"number"!=typeof n&&(void 0!==n||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==Oe(t.t,e)||e in t.t?(t.D[e]=!1,Ee(t),Se(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=oe(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){Zt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Zt(12)}},Ie={};Qt(We,(function(t,e){Ie[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ie.deleteProperty=function(t,e){return Ie.set.call(this,t,e,void 0)},Ie.set=function(t,e,n){return We.set.call(this,t[0],e,n,t[0])};var He=function(){function t(t){var e=this;this.g=Pe,this.F=!0,this.produce=function(t,n,r){if("function"==typeof t&&"function"!=typeof n){var i=n;n=t;var o=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,s=Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return o.produce(t,(function(t){var r;return(r=n).call.apply(r,[e,t].concat(s))}))}}var s;if("function"!=typeof n&&Zt(6),void 0!==r&&"function"!=typeof r&&Zt(7),Gt(t)){var u=pe(e),c=je(e,t,void 0),a=!0;try{s=n(c),a=!1}finally{a?de(u):ve(u)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return he(u,r),ye(t,u)}),(function(t){throw de(u),t})):(he(u,r),ye(s,u))}if(!t||"object"!=typeof t){if(void 0===(s=n(t))&&(s=t),s===ke&&(s=void 0),e.F&&ue(s,!0),r){var l=[],f=[];le("Patches").M(t,s,l,f),r(l,f)}return s}Zt(21,t)},this.produceWithPatches=function(t,n){if("function"==typeof t)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.produceWithPatches(n,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,o=e.produce(t,n,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(t){return[t,r,i]})):[o,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Gt(t)||Zt(8),Xt(t)&&(t=Re(t));var e=pe(this),n=je(this,t,void 0);return n[Fe].C=!0,ve(e),n},e.finishDraft=function(t,e){var n=(t&&t[Fe]).A;return he(n,e),ye(void 0,n)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!Pe&&Zt(20),this.g=t},e.applyPatches=function(t,e){var n;for(n=e.length-1;n>=0;n--){var r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));var i=le("Patches").$;return Xt(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),Ke=new He,qe=Ke.produce;Ke.produceWithPatches.bind(Ke),Ke.setAutoFreeze.bind(Ke),Ke.setUseProxies.bind(Ke),Ke.applyPatches.bind(Ke),Ke.createDraft.bind(Ke),Ke.finishDraft.bind(Ke);var ze=qe;function Ve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Je(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ze(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Je(Object(n),!0).forEach((function(e){Ve(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Ge="function"==typeof Symbol&&Symbol.observable||"@@observable",Qe=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ye={INIT:"@@redux/INIT"+Qe(),REPLACE:"@@redux/REPLACE"+Qe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Qe()}};function tn(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function en(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Xe(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Xe(1));return n(en)(t,e)}if("function"!=typeof t)throw new Error(Xe(2));var i=t,o=e,s=[],u=s,c=!1;function a(){u===s&&(u=s.slice())}function l(){if(c)throw new Error(Xe(3));return o}function f(t){if("function"!=typeof t)throw new Error(Xe(4));if(c)throw new Error(Xe(5));var e=!0;return a(),u.push(t),function(){if(e){if(c)throw new Error(Xe(6));e=!1,a();var n=u.indexOf(t);u.splice(n,1),s=null}}}function h(t){if(!tn(t))throw new Error(Xe(7));if(void 0===t.type)throw new Error(Xe(8));if(c)throw new Error(Xe(9));try{c=!0,o=i(o,t)}finally{c=!1}for(var e=s=u,n=0;n<e.length;n++)(0,e[n])();return t}function d(t){if("function"!=typeof t)throw new Error(Xe(10));i=t,h({type:Ye.REPLACE})}function v(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Xe(11));function n(){t.next&&t.next(l())}return n(),{unsubscribe:e(n)}}})[Ge]=function(){return this},t}return h({type:Ye.INIT}),(r={dispatch:h,subscribe:f,getState:l,replaceReducer:d})[Ge]=v,r}function nn(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(n[i]=t[i])}var o,s=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:Ye.INIT}))throw new Error(Xe(12));if(void 0===n(void 0,{type:Ye.PROBE_UNKNOWN_ACTION()}))throw new Error(Xe(13))}))}(n)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var r=!1,i={},u=0;u<s.length;u++){var c=s[u],a=n[c],l=t[c],f=a(l,e);if(void 0===f)throw e&&e.type,new Error(Xe(14));i[c]=f,r=r||f!==l}return(r=r||s.length!==Object.keys(t).length)?i:t}}function rn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function on(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error(Xe(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=e.map((function(t){return t(i)}));return r=rn.apply(void 0,o)(n.dispatch),Ze(Ze({},n),{},{dispatch:r})}}}function sn(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(n,r,t):e(i)}}}}var un=sn();un.withExtraArgument=sn;var cn,an=un,ln=(cn=function(t,e){return cn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},cn(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}cn(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),fn=function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},hn=Object.defineProperty,dn=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,bn=function(t,e,n){return e in t?hn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},yn=function(t,e){for(var n in e||(e={}))vn.call(e,n)&&bn(t,n,e[n]);if(dn)for(var r=0,i=dn(e);r<i.length;r++)n=i[r],pn.call(e,n)&&bn(t,n,e[n]);return t},mn="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?rn:rn.apply(null,arguments)},wn=function(t){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return ln(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,fn([void 0],t[0].concat(this)))):new(e.bind.apply(e,fn([void 0],t.concat(this))))},e}(Array);function gn(t){return Gt(t)?ze(t,(function(){})):t}function On(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,n=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new wn;return n&&(function(t){return"boolean"==typeof t}(n)?r.push(an):r.push(an.withExtraArgument(n.extraArgument))),r}(t)}}function xn(t){var e,n=On(),r=t||{},i=r.reducer,o=void 0===i?void 0:i,s=r.middleware,u=void 0===s?n():s,c=r.devTools,a=void 0===c||c,l=r.preloadedState,f=void 0===l?void 0:l,h=r.enhancers,d=void 0===h?void 0:h;if("function"==typeof o)e=o;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return e===n}(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=nn(o)}var v=u;"function"==typeof v&&(v=v(n));var p=on.apply(void 0,v),b=rn;a&&(b=mn(yn({trace:!1},"object"==typeof a&&a)));var y=[p];return Array.isArray(d)?y=fn([p],d):"function"==typeof d&&(y=d(y)),en(e,f,b.apply(void 0,y))}function Sn(t,e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return yn(yn({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return n.toString=function(){return""+t},n.type=t,n.match=function(e){return e.type===t},n}function En(t){var e,n={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[n,r,e]}function jn(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof t.initialState?t.initialState:gn(t.initialState),i=t.reducers||{},o=Object.keys(i),s={},u={},c={};function a(){var e="function"==typeof t.extraReducers?En(t.extraReducers):[t.extraReducers],n=e[0],i=void 0===n?{}:n,o=e[1],s=void 0===o?[]:o,c=e[2],a=void 0===c?void 0:c,l=yn(yn({},i),u);return function(t,e,n,r){void 0===n&&(n=[]);var i,o="function"==typeof e?En(e):[e,n,r],s=o[0],u=o[1],c=o[2];if(function(t){return"function"==typeof t}(t))i=function(){return gn(t())};else{var a=gn(t);i=function(){return a}}function l(t,e){void 0===t&&(t=i());var n=fn([s[e.type]],u.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===n.filter((function(t){return!!t})).length&&(n=[c]),n.reduce((function(t,n){if(n){var r;if(Xt(t))return void 0===(r=n(t,e))?t:r;if(Gt(t))return ze(t,(function(t){return n(t,e)}));if(void 0===(r=n(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return l.getInitialState=i,l}(r,l,s,a)}return o.forEach((function(t){var n,r,o=i[t],a=e+"/"+t;"reducer"in o?(n=o.reducer,r=o.prepare):n=o,s[t]=n,u[a]=n,c[t]=r?Sn(a,r):Sn(a)})),{name:e,reducer:function(t,e){return n||(n=a()),n(t,e)},actions:c,caseReducers:s,getInitialState:function(){return n||(n=a()),n.getInitialState()}}}var Rn="listenerMiddleware";Sn(Rn+"/add"),Sn(Rn+"/removeAll"),Sn(Rn+"/remove"),function(){function t(t,e){var n=i[t];return n?n.enumerable=e:i[t]=n={configurable:!0,enumerable:e,get:function(){var e=this[Fe];return We.get(e,t)},set:function(e){var n=this[Fe];We.set(n,t,e)}},n}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Fe];if(!i.P)switch(i.i){case 5:r(i)&&Se(i);break;case 4:n(i)&&Se(i)}}}function n(t){for(var e=t.t,n=t.k,r=Te(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==Fe){var s=e[o];if(void 0===s&&!te(e,o))return!0;var u=n[o],c=u&&u[Fe];if(c?c.t!==s:!ne(u,s))return!0}}var a=!!e[Fe];return r.length!==Te(e).length+(a?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);if(n&&!n.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){Be[t]||(Be[t]=e)}("ES5",{J:function(e,n){var r=Array.isArray(e),i=function(e,n){if(e){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var o=De(n);delete o[Fe];for(var s=Te(o),u=0;u<s.length;u++){var c=s[u];o[c]=t(c,e||!!o[c].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(r,e),o={i:r?5:4,A:n?n.A:fe(),P:!1,I:!1,D:{},l:n,t:e,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,Fe,{value:o,writable:!0}),i},S:function(t,n,i){i?Xt(n)&&n[Fe].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var n=e[Fe];if(n){var i=n.t,o=n.k,s=n.D,u=n.i;if(4===u)Qt(o,(function(e){e!==Fe&&(void 0!==i[e]||te(i,e)?s[e]||t(o[e]):(s[e]=!0,Se(n)))})),Qt(i,(function(t){void 0!==o[t]||te(o,t)||(s[t]=!1,Se(n))}));else if(5===u){if(r(n)&&(Se(n),s.length=!0),o.length<i.length)for(var c=o.length;c<i.length;c++)s[c]=!1;else for(var a=i.length;a<o.length;a++)s[a]=!0;for(var l=Math.min(o.length,i.length),f=0;f<l;f++)o.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(o[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?n(t):r(t)}})}();const Cn=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged);function Nn(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}class Mn{constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,n)=>{const r=t[e];if(r)return(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}}})}static get(t){window.ftReduxStores||(window.ftReduxStores={});const e=window.ftReduxStores[t.name];if(Nn(e))return e;const n=jn(t);if(e)return new Mn(n,e);const r=xn({reducer:n.reducer});return window.ftReduxStores[t.name]=new Mn(n,r)}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var An,$n,_n;const Pn=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(_n=null===($n=null===(An=window.safari)||void 0===An?void 0:An.pushNotification)||void 0===$n?void 0:$n.toString())&&void 0!==_n?_n:"");var kn=Object.freeze({__proto__:null,isSafari:Pn,CacheRegistry:class{constructor(){this.loaders={},this.content={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||(this.content[t]instanceof Tt&&this.content[t].cancel(),delete this.content[t])}async get(t,e){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=Dt(e());return this.content[t]=n,n.then((e=>(this.content[t]=e,e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}getNow(t){if(!(this.content[t]instanceof Promise||this.content[t]instanceof Error))return this.content[t]}},CancelablePromise:Tt,cancelable:Dt,Debouncer:Bt,customElement:t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},jsonProperty:Wt,deepEqual:It,delay:t=>new Promise((e=>setTimeout(e,t))),designSystemVariables:Kt,FtCssVariableFactory:Ht,setVariable:function(t,e){return s(`${t.name}: ${e}`)},FtLitElement:zt,noTextSelect:Vt,wordWrap:Jt,ParametrizedLabelResolver:class{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var n,r;let i=null!==(r=null!==(n=this.labels[t])&&void 0!==n?n:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}\\}`,"g"),t))),i}},redux:(t,e)=>{var n;const r=Cn(t)?t:{};return e=null!==(n=null!=e?e:r.hasChanged)&&void 0!==n?n:(t,e)=>!It(t,e),(n,i)=>{var o;n.constructor.createProperty(i,{attribute:!1,hasChanged:e});const s=n;s.reduxProperties=s.reduxProperties||new Map;const u=null!==(o=Cn(t)?r.selector:t)&&void 0!==o?o:t=>t[i];s.reduxProperties.set(i,{selector:u,store:r.store})}},FtLitElementRedux:class extends zt{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:Nn(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:Nn(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const n=this.getStore(t.store);n&&(this[e]=t.selector(n.getState(),this))}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}},FtReduxStore:Mn,getStore:function(t,e){window.ftReduxStores||(window.ftReduxStores={});const n=e||t.name;return window.ftReduxStores[n]||(window.ftReduxStores[n]=xn({reducer:t.reducer})),window.ftReduxStores[n]},clearAllStores:function(){window.ftReduxStores={}}});t.lit=lt,t.litClassMap=_t,t.litDecorators=yt,t.litRepeat=At,t.litStyleMap=kt,t.litUnsafeHTML=Lt,t.wcUtils=kn,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
|
+
`,Xt=u`
|
|
152
|
+
.ft-safari-ellipsis-fix {
|
|
153
|
+
margin-right: 0;
|
|
154
|
+
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.ft-safari-ellipsis-fix:after {
|
|
158
|
+
content: "\\0000a0";
|
|
159
|
+
display: inline-block;
|
|
160
|
+
width: 0;
|
|
161
|
+
}
|
|
162
|
+
`;function Gt(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[Te]}function Yt(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)===De}(t)||Array.isArray(t)||!!t[Le]||!!t.constructor[Le]||oe(t)||se(t))}function te(t,e,n){void 0===n&&(n=!1),0===ee(t)?(n?Object.keys:Be)(t).forEach((function(r){n&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(n,r){return e(r,n,t)}))}function ee(t){var e=t[Te];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:oe(t)?2:se(t)?3:0}function ne(t,e){return 2===ee(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function re(t,e,n){var r=ee(t);2===r?t.set(e,n):3===r?(t.delete(e),t.add(n)):t[e]=n}function ie(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function oe(t){return Pe&&t instanceof Map}function se(t){return ke&&t instanceof Set}function ue(t){return t.o||t.t}function ce(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=We(t);delete e[Te];for(var n=Be(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 ae(t,e){return void 0===e&&(e=!1),fe(t)||Qt(t)||!Yt(t)||(ee(t)>1&&(t.set=t.add=t.clear=t.delete=le),Object.freeze(t),e&&te(t,(function(t,e){return ae(e,!0)}),!0)),t}function le(){Gt(2)}function fe(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function he(t){var e=Ie[t];return e||Gt(18,t),e}function de(){return Ae}function ve(t,e){e&&(he("Patches"),t.u=[],t.s=[],t.v=e)}function pe(t){be(t),t.p.forEach(me),t.p=null}function be(t){t===Ae&&(Ae=t.l)}function ye(t){return Ae={p:[],l:Ae,h:t,m:!0,_:0}}function me(t){var e=t[Te];0===e.i||1===e.i?e.j():e.O=!0}function we(t,e){e._=e.p.length;var n=e.p[0],r=void 0!==t&&t!==n;return e.h.g||he("ES5").S(e,t,r),r?(n[Te].P&&(pe(e),Gt(4)),Yt(t)&&(t=ge(e,t),e.l||xe(e,t)),e.u&&he("Patches").M(n[Te].t,t,e.u,e.s)):t=ge(e,n,[]),pe(e),e.u&&e.v(e.u,e.s),t!==Fe?t:void 0}function ge(t,e,n){if(fe(e))return e;var r=e[Te];if(!r)return te(e,(function(i,o){return Oe(t,r,e,i,o,n)}),!0),e;if(r.A!==t)return e;if(!r.P)return xe(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=ce(r.k):r.o;te(3===r.i?new Set(i):i,(function(e,o){return Oe(t,r,i,e,o,n)})),xe(t,i,!1),n&&t.u&&he("Patches").R(r,n,t.u,t.s)}return r.o}function Oe(t,e,n,r,i,o){if(Qt(i)){var s=ge(t,i,o&&e&&3!==e.i&&!ne(e.D,r)?o.concat(r):void 0);if(re(n,r,s),!Qt(s))return;t.m=!1}if(Yt(i)&&!fe(i)){if(!t.h.F&&t._<1)return;ge(t,i),e&&e.A.l||xe(t,i)}}function xe(t,e,n){void 0===n&&(n=!1),t.h.F&&t.m&&ae(e,n)}function Se(t,e){var n=t[Te];return(n?ue(n):t)[e]}function Ee(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 je(t){t.P||(t.P=!0,t.l&&je(t.l))}function Re(t){t.o||(t.o=ce(t.t))}function Ce(t,e,n){var r=oe(e)?he("MapSet").N(e,n):se(e)?he("MapSet").T(e,n):t.g?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:de(),P:!1,I:!1,D:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,o=He;n&&(i=[r],o=Ke);var s=Proxy.revocable(i,o),u=s.revoke,c=s.proxy;return r.k=c,r.j=u,c}(e,n):he("ES5").J(e,n);return(n?n.A:de()).p.push(r),r}function Ne(t){return Qt(t)||Gt(22,t),function t(e){if(!Yt(e))return e;var n,r=e[Te],i=ee(e);if(r){if(!r.P&&(r.i<4||!he("ES5").K(r)))return r.t;r.I=!0,n=Me(e,i),r.I=!1}else n=Me(e,i);return te(n,(function(e,i){r&&function(t,e){return 2===ee(t)?t.get(e):t[e]}(r.t,e)===i||re(n,e,t(i))})),3===i?new Set(n):n}(t)}function Me(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ce(t)}var $e,Ae,_e="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Pe="undefined"!=typeof Map,ke="undefined"!=typeof Set,Ue="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Fe=_e?Symbol.for("immer-nothing"):(($e={})["immer-nothing"]=!0,$e),Le=_e?Symbol.for("immer-draftable"):"__$immer_draftable",Te=_e?Symbol.for("immer-state"):"__$immer_state",De=""+Object.prototype.constructor,Be="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,We=Object.getOwnPropertyDescriptors||function(t){var e={};return Be(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},Ie={},He={get:function(t,e){if(e===Te)return t;var n=ue(t);if(!ne(n,e))return function(t,e,n){var r,i=Ee(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||!Yt(r)?r:r===Se(t.t,e)?(Re(t),t.o[e]=Ce(t.A.h,r,t)):r},has:function(t,e){return e in ue(t)},ownKeys:function(t){return Reflect.ownKeys(ue(t))},set:function(t,e,n){var r=Ee(ue(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var i=Se(ue(t),e),o=null==i?void 0:i[Te];if(o&&o.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(ie(n,i)&&(void 0!==n||ne(t.t,e)))return!0;Re(t),je(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!==Se(t.t,e)||e in t.t?(t.D[e]=!1,Re(t),je(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=ue(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(){Gt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Gt(12)}},Ke={};te(He,(function(t,e){Ke[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ke.deleteProperty=function(t,e){return Ke.set.call(this,t,e,void 0)},Ke.set=function(t,e,n){return He.set.call(this,t[0],e,n,t[0])};var Ve=function(){function t(t){var e=this;this.g=Ue,this.F=!0,this.produce=function(t,n,r){if("function"==typeof t&&"function"!=typeof n){var i=n;n=t;var o=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,s=Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return o.produce(t,(function(t){var r;return(r=n).call.apply(r,[e,t].concat(s))}))}}var s;if("function"!=typeof n&&Gt(6),void 0!==r&&"function"!=typeof r&&Gt(7),Yt(t)){var u=ye(e),c=Ce(e,t,void 0),a=!0;try{s=n(c),a=!1}finally{a?pe(u):be(u)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ve(u,r),we(t,u)}),(function(t){throw pe(u),t})):(ve(u,r),we(s,u))}if(!t||"object"!=typeof t){if(void 0===(s=n(t))&&(s=t),s===Fe&&(s=void 0),e.F&&ae(s,!0),r){var l=[],f=[];he("Patches").M(t,s,l,f),r(l,f)}return s}Gt(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){Yt(t)||Gt(8),Qt(t)&&(t=Ne(t));var e=ye(this),n=Ce(this,t,void 0);return n[Te].C=!0,be(e),n},e.finishDraft=function(t,e){var n=(t&&t[Te]).A;return ve(n,e),we(void 0,n)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!Ue&&Gt(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=he("Patches").$;return Qt(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),qe=new Ve,ze=qe.produce;qe.produceWithPatches.bind(qe),qe.setAutoFreeze.bind(qe),qe.setUseProxies.bind(qe),qe.applyPatches.bind(qe),qe.createDraft.bind(qe),qe.finishDraft.bind(qe);var Je=ze;function Ze(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xe(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 Ge(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xe(Object(n),!0).forEach((function(e){Ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Qe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Ye="function"==typeof Symbol&&Symbol.observable||"@@observable",tn=function(){return Math.random().toString(36).substring(7).split("").join(".")},en={INIT:"@@redux/INIT"+tn(),REPLACE:"@@redux/REPLACE"+tn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+tn()}};function nn(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 rn(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Qe(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Qe(1));return n(rn)(t,e)}if("function"!=typeof t)throw new Error(Qe(2));var i=t,o=e,s=[],u=s,c=!1;function a(){u===s&&(u=s.slice())}function l(){if(c)throw new Error(Qe(3));return o}function f(t){if("function"!=typeof t)throw new Error(Qe(4));if(c)throw new Error(Qe(5));var e=!0;return a(),u.push(t),function(){if(e){if(c)throw new Error(Qe(6));e=!1,a();var n=u.indexOf(t);u.splice(n,1),s=null}}}function h(t){if(!nn(t))throw new Error(Qe(7));if(void 0===t.type)throw new Error(Qe(8));if(c)throw new Error(Qe(9));try{c=!0,o=i(o,t)}finally{c=!1}for(var e=s=u,n=0;n<e.length;n++)(0,e[n])();return t}function d(t){if("function"!=typeof t)throw new Error(Qe(10));i=t,h({type:en.REPLACE})}function v(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Qe(11));function n(){t.next&&t.next(l())}return n(),{unsubscribe:e(n)}}})[Ye]=function(){return this},t}return h({type:en.INIT}),(r={dispatch:h,subscribe:f,getState:l,replaceReducer:d})[Ye]=v,r}function on(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:en.INIT}))throw new Error(Qe(12));if(void 0===n(void 0,{type:en.PROBE_UNKNOWN_ACTION()}))throw new Error(Qe(13))}))}(n)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var r=!1,i={},u=0;u<s.length;u++){var c=s[u],a=n[c],l=t[c],f=a(l,e);if(void 0===f)throw e&&e.type,new Error(Qe(14));i[c]=f,r=r||f!==l}return(r=r||s.length!==Object.keys(t).length)?i:t}}function sn(){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 un(){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(Qe(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=e.map((function(t){return t(i)}));return r=sn.apply(void 0,o)(n.dispatch),Ge(Ge({},n),{},{dispatch:r})}}}function cn(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 an=cn();an.withExtraArgument=cn;var ln,fn=an,hn=(ln=function(t,e){return ln=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])},ln(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}ln(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),dn=function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},vn=Object.defineProperty,pn=Object.getOwnPropertySymbols,bn=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,mn=function(t,e,n){return e in t?vn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},wn=function(t,e){for(var n in e||(e={}))bn.call(e,n)&&mn(t,n,e[n]);if(pn)for(var r=0,i=pn(e);r<i.length;r++)n=i[r],yn.call(e,n)&&mn(t,n,e[n]);return t},gn="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?sn:sn.apply(null,arguments)},On=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 hn(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,dn([void 0],t[0].concat(this)))):new(e.bind.apply(e,dn([void 0],t.concat(this))))},e}(Array);function xn(t){return Yt(t)?Je(t,(function(){})):t}function Sn(){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 On;return n&&(function(t){return"boolean"==typeof t}(n)?r.push(fn):r.push(fn.withExtraArgument(n.extraArgument))),r}(t)}}function En(t){var e,n=Sn(),r=t||{},i=r.reducer,o=void 0===i?void 0:i,s=r.middleware,u=void 0===s?n():s,c=r.devTools,a=void 0===c||c,l=r.preloadedState,f=void 0===l?void 0:l,h=r.enhancers,d=void 0===h?void 0:h;if("function"==typeof o)e=o;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return e===n}(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=on(o)}var v=u;"function"==typeof v&&(v=v(n));var p=un.apply(void 0,v),b=sn;a&&(b=gn(wn({trace:!1},"object"==typeof a&&a)));var y=[p];return Array.isArray(d)?y=dn([p],d):"function"==typeof d&&(y=d(y)),rn(e,f,b.apply(void 0,y))}function jn(t,e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return wn(wn({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return n.toString=function(){return""+t},n.type=t,n.match=function(e){return e.type===t},n}function Rn(t){var e,n={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[n,r,e]}function Cn(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof t.initialState?t.initialState:xn(t.initialState),i=t.reducers||{},o=Object.keys(i),s={},u={},c={};function a(){var e="function"==typeof t.extraReducers?Rn(t.extraReducers):[t.extraReducers],n=e[0],i=void 0===n?{}:n,o=e[1],s=void 0===o?[]:o,c=e[2],a=void 0===c?void 0:c,l=wn(wn({},i),u);return function(t,e,n,r){void 0===n&&(n=[]);var i,o="function"==typeof e?Rn(e):[e,n,r],s=o[0],u=o[1],c=o[2];if(function(t){return"function"==typeof t}(t))i=function(){return xn(t())};else{var a=xn(t);i=function(){return a}}function l(t,e){void 0===t&&(t=i());var n=dn([s[e.type]],u.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===n.filter((function(t){return!!t})).length&&(n=[c]),n.reduce((function(t,n){if(n){var r;if(Qt(t))return void 0===(r=n(t,e))?t:r;if(Yt(t))return Je(t,(function(t){return n(t,e)}));if(void 0===(r=n(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return l.getInitialState=i,l}(r,l,s,a)}return o.forEach((function(t){var n,r,o=i[t],a=e+"/"+t;"reducer"in o?(n=o.reducer,r=o.prepare):n=o,s[t]=n,u[a]=n,c[t]=r?jn(a,r):jn(a)})),{name:e,reducer:function(t,e){return n||(n=a()),n(t,e)},actions:c,caseReducers:s,getInitialState:function(){return n||(n=a()),n.getInitialState()}}}var Nn="listenerMiddleware";jn(Nn+"/add"),jn(Nn+"/removeAll"),jn(Nn+"/remove"),function(){function t(t,e){var n=i[t];return n?n.enumerable=e:i[t]=n={configurable:!0,enumerable:e,get:function(){var e=this[Te];return He.get(e,t)},set:function(e){var n=this[Te];He.set(n,t,e)}},n}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Te];if(!i.P)switch(i.i){case 5:r(i)&&je(i);break;case 4:n(i)&&je(i)}}}function n(t){for(var e=t.t,n=t.k,r=Be(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==Te){var s=e[o];if(void 0===s&&!ne(e,o))return!0;var u=n[o],c=u&&u[Te];if(c?c.t!==s:!ie(u,s))return!0}}var a=!!e[Te];return r.length!==Be(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){Ie[t]||(Ie[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=We(n);delete o[Te];for(var s=Be(o),u=0;u<s.length;u++){var c=s[u];o[c]=t(c,e||!!o[c].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(r,e),o={i:r?5:4,A:n?n.A:de(),P:!1,I:!1,D:{},l:n,t:e,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,Te,{value:o,writable:!0}),i},S:function(t,n,i){i?Qt(n)&&n[Te].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var n=e[Te];if(n){var i=n.t,o=n.k,s=n.D,u=n.i;if(4===u)te(o,(function(e){e!==Te&&(void 0!==i[e]||ne(i,e)?s[e]||t(o[e]):(s[e]=!0,je(n)))})),te(i,(function(t){void 0!==o[t]||ne(o,t)||(s[t]=!1,je(n))}));else if(5===u){if(r(n)&&(je(n),s.length=!0),o.length<i.length)for(var c=o.length;c<i.length;c++)s[c]=!1;else for(var a=i.length;a<o.length;a++)s[a]=!0;for(var l=Math.min(o.length,i.length),f=0;f<l;f++)o.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(o[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?n(t):r(t)}})}();const Mn=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged);function $n(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}class An{constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,n)=>{const r=t[e];if(r)return(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}}})}static get(t){window.ftReduxStores||(window.ftReduxStores={});const e=window.ftReduxStores[t.name];if($n(e))return e;const n=Cn(t);if(e)return new An(n,e);const r=En({reducer:n.reducer});return window.ftReduxStores[t.name]=new An(n,r)}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}function _n(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,n,r)=>e+n+":"+r)),new Date(t)}var Pn,kn,Un;const Fn=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Un=null===(kn=null===(Pn=window.safari)||void 0===Pn?void 0:Pn.pushNotification)||void 0===kn?void 0:kn.toString())&&void 0!==Un?Un:"");var Ln=Object.freeze({__proto__:null,isSafari:Fn,CacheRegistry:class{constructor(){this.loaders={},this.content={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||(this.content[t]instanceof Tt&&this.content[t].cancel(),delete this.content[t])}async get(t,e){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=Dt(e());return this.content[t]=n,n.then((e=>(this.content[t]=e,e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}getNow(t){if(!(this.content[t]instanceof Promise||this.content[t]instanceof Error))return this.content[t]}},CancelablePromise:Tt,cancelable:Dt,Debouncer:Bt,customElement:t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},jsonProperty:Wt,deepEqual:It,delay:t=>new Promise((e=>setTimeout(e,t))),designSystemVariables:Kt,FtNotificationEvent:Vt,FtCssVariableFactory:Ht,setVariable:function(t,e){return s(`${t.name}: ${e}`)},FtLitElement:zt,noTextSelect:Jt,wordWrap:Zt,safariEllipsisFix:Xt,ParametrizedLabelResolver:class{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var n,r;t=this.resolvePluralKey(t,e);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"),((e,n)=>this.formatValue(t,n))))),i}resolvePluralKey(t,e){for(let n of e)if("number"==typeof n){const e=`${t}[\\=${n}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):t}formatDate(t,e){const n=n=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(n):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(n):t.toLocaleString(n);try{return n(document.documentElement.lang)}catch(t){return n()}}},redux:(t,e)=>{var n;const r=Mn(t)?t:{};return e=null!==(n=null!=e?e:r.hasChanged)&&void 0!==n?n:(t,e)=>!It(t,e),(n,i)=>{var o;n.constructor.createProperty(i,{attribute:!1,hasChanged:e});const s=n;s.reduxProperties=s.reduxProperties||new Map;const u=null!==(o=Mn(t)?r.selector:t)&&void 0!==o?o:t=>t[i];s.reduxProperties.set(i,{selector:u,store:r.store})}},FtLitElementRedux:class extends zt{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:$n(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:$n(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const n=this.getStore(t.store);n&&(this[e]=t.selector(n.getState(),this))}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}},FtReduxStore:An,getStore:function(t,e){window.ftReduxStores||(window.ftReduxStores={});const n=e||t.name;return window.ftReduxStores[n]||(window.ftReduxStores[n]=En({reducer:t.reducer})),window.ftReduxStores[n]},clearAllStores:function(){window.ftReduxStores={}},dateReviver:function(...t){return function(e,n){return t.includes(e)?_n(n):n}},parseDate:_n});t.lit=lt,t.litClassMap=_t,t.litDecorators=yt,t.litRepeat=$t,t.litStyleMap=kt,t.litUnsafeHTML=Lt,t.wcUtils=Ln,Object.defineProperty(t,"W",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).ftGlobals={});
|
package/build/index.d.ts
CHANGED
|
@@ -7,11 +7,13 @@ export * from "./decorators";
|
|
|
7
7
|
export * from "./deep-equal";
|
|
8
8
|
export * from "./delay";
|
|
9
9
|
export * from "./designSystemVariables";
|
|
10
|
+
export * from "./events";
|
|
10
11
|
export * from "./FtCssVariables";
|
|
11
12
|
export * from "./FtLitElement";
|
|
12
13
|
export * from "./generic-types";
|
|
13
14
|
export * from "./mixins";
|
|
14
15
|
export * from "./ParametrizedLabelResolver";
|
|
15
16
|
export * from "./redux";
|
|
17
|
+
export * from "./revivers";
|
|
16
18
|
export { ElementDefinitionsMap } from "@lit-labs/scoped-registry-mixin";
|
|
17
19
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.js
CHANGED
|
@@ -9,10 +9,12 @@ export * from "./decorators";
|
|
|
9
9
|
export * from "./deep-equal";
|
|
10
10
|
export * from "./delay";
|
|
11
11
|
export * from "./designSystemVariables";
|
|
12
|
+
export * from "./events";
|
|
12
13
|
export * from "./FtCssVariables";
|
|
13
14
|
export * from "./FtLitElement";
|
|
14
15
|
export * from "./generic-types";
|
|
15
16
|
export * from "./mixins";
|
|
16
17
|
export * from "./ParametrizedLabelResolver";
|
|
17
18
|
export * from "./redux";
|
|
19
|
+
export * from "./revivers";
|
|
18
20
|
//# sourceMappingURL=index.js.map
|
package/build/mixins.d.ts
CHANGED
package/build/mixins.js
CHANGED
|
@@ -22,4 +22,16 @@ export const wordWrap = css `
|
|
|
22
22
|
hyphens: auto
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
|
+
export const safariEllipsisFix = css `
|
|
26
|
+
.ft-safari-ellipsis-fix {
|
|
27
|
+
margin-right: 0;
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ft-safari-ellipsis-fix:after {
|
|
32
|
+
content: "\\0000a0";
|
|
33
|
+
display: inline-block;
|
|
34
|
+
width: 0;
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
25
37
|
//# sourceMappingURL=mixins.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function dateReviver(...dateKeys) {
|
|
2
|
+
return function (key, value) {
|
|
3
|
+
if (!dateKeys.includes(key)) {
|
|
4
|
+
return value;
|
|
5
|
+
}
|
|
6
|
+
return parseDate(value);
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export function parseDate(value) {
|
|
10
|
+
// That's for safari :-(
|
|
11
|
+
if (value.match(/^\d{4}-\d{2}-\d{2}$/)) {
|
|
12
|
+
value = value.replace(/-/g, "/");
|
|
13
|
+
}
|
|
14
|
+
value = value.replace(" ", "T")
|
|
15
|
+
.replace(/^(.+)(\+\d{2})(\d{2})$/, (s, date, h, m) => date + h + ":" + m);
|
|
16
|
+
return new Date(value);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=revivers.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-wc-utils",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.55",
|
|
4
4
|
"description": "Internal web components tools",
|
|
5
5
|
"author": "Fluid Topics <devtopics@antidot.net>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"@reduxjs/toolkit": "^1.6.2",
|
|
18
18
|
"lit": "2.2.8"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "4106f01e238edeb1c85fba22d6d50a18757e0b3e"
|
|
21
21
|
}
|