@fluid-topics/ft-search-result-context 1.1.11 → 1.1.13

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.
@@ -0,0 +1,16 @@
1
+ import { FtSearchResultCluster, FtSearchResultClusterEntry } from "@fluid-topics/public-api";
2
+ import { FlatMetadata } from "./utils";
3
+ export interface ClusterItem {
4
+ metadata: FlatMetadata;
5
+ result: FtSearchResultClusterEntry;
6
+ }
7
+ export declare class ClusteringHelper {
8
+ private cluster;
9
+ private selectedResult;
10
+ private clusteringMetadata;
11
+ constructor(cluster: FtSearchResultCluster, selectedResult: FtSearchResultClusterEntry, clusteringMetadata: Set<string>);
12
+ computeClustersItemsForMetadata(key: string): ClusterItem[];
13
+ private findMatchingResult;
14
+ private findResultMatchingMetadata;
15
+ private resultMatchesMetadata;
16
+ }
@@ -0,0 +1,30 @@
1
+ import { extractResultMetadata } from "./utils";
2
+ export class ClusteringHelper {
3
+ constructor(cluster, selectedResult, clusteringMetadata) {
4
+ this.cluster = cluster;
5
+ this.selectedResult = selectedResult;
6
+ this.clusteringMetadata = clusteringMetadata;
7
+ }
8
+ computeClustersItemsForMetadata(key) {
9
+ var _a;
10
+ const metadataValues = (_a = this.cluster) === null || _a === void 0 ? void 0 : _a.entries.flatMap(result => extractResultMetadata(result).filter(m => m.key === key)).filter((flatMeta, index, array) => array.findIndex(i => i.value === flatMeta.value) === index); // for unicity
11
+ return metadataValues.map(flatMeta => ({
12
+ result: this.findMatchingResult(key, flatMeta.value),
13
+ metadata: flatMeta
14
+ }));
15
+ }
16
+ findMatchingResult(key, value) {
17
+ var _a, _b;
18
+ let currentResultMetadata = extractResultMetadata(this.selectedResult)
19
+ .filter(m => this.clusteringMetadata.has(m.key));
20
+ let newExpectedMetadata = [...currentResultMetadata.filter(m => m.key !== key), { key, value, displayValue: value }];
21
+ return (_b = (_a = this.findResultMatchingMetadata(newExpectedMetadata)) !== null && _a !== void 0 ? _a : this.findResultMatchingMetadata([{ key, value, displayValue: value }])) !== null && _b !== void 0 ? _b : this.cluster.entries[0];
22
+ }
23
+ findResultMatchingMetadata(metadata) {
24
+ return this.cluster.entries.find(entry => this.resultMatchesMetadata(entry, metadata));
25
+ }
26
+ resultMatchesMetadata(result, expectedMetadata) {
27
+ let resultMetadata = extractResultMetadata(result);
28
+ return expectedMetadata.every(em => resultMetadata.some(rm => rm.key == em.key && rm.value == em.value));
29
+ }
30
+ }
@@ -0,0 +1,19 @@
1
+ import { FtSearchResultComponentInterface } from "./registration";
2
+ import { FtSearchResultCluster, FtSearchResultClusterEntry } from "@fluid-topics/public-api";
3
+ export declare class FtSearchResultStateManager {
4
+ private registeredComponents;
5
+ registeredMetadata: Set<string>;
6
+ private cluster?;
7
+ private result?;
8
+ private rank?;
9
+ private onResultSelected;
10
+ constructor(onResultSelected: (result: FtSearchResultClusterEntry) => void);
11
+ registerComponent(component: FtSearchResultComponentInterface): void;
12
+ unregisterComponent(component: FtSearchResultComponentInterface): void;
13
+ registerMetadata(id: string): void;
14
+ unregisterMetadata(id: string): void;
15
+ updateCluster(cluster: FtSearchResultCluster, rank: number): void;
16
+ selectResult(result: FtSearchResultClusterEntry): void;
17
+ clear(): void;
18
+ private bindComponent;
19
+ }
@@ -0,0 +1,42 @@
1
+ export class FtSearchResultStateManager {
2
+ constructor(onResultSelected) {
3
+ this.registeredComponents = [];
4
+ this.registeredMetadata = new Set();
5
+ this.onResultSelected = onResultSelected;
6
+ }
7
+ registerComponent(component) {
8
+ component.setResultStateManager(this);
9
+ this.registeredComponents.push(component);
10
+ this.bindComponent(component);
11
+ }
12
+ unregisterComponent(component) {
13
+ this.registeredComponents.splice(this.registeredComponents.indexOf(component), 1);
14
+ component.cluster = undefined;
15
+ component.result = undefined;
16
+ component.rank = undefined;
17
+ }
18
+ registerMetadata(id) {
19
+ this.registeredMetadata.add(id);
20
+ }
21
+ unregisterMetadata(id) {
22
+ this.registeredMetadata.delete(id);
23
+ }
24
+ updateCluster(cluster, rank) {
25
+ this.cluster = cluster;
26
+ this.rank = rank;
27
+ this.selectResult(this.cluster.entries[0]);
28
+ }
29
+ selectResult(result) {
30
+ this.result = result;
31
+ this.onResultSelected(result);
32
+ this.registeredComponents.forEach(c => this.bindComponent(c));
33
+ }
34
+ clear() {
35
+ this.registeredComponents = [];
36
+ }
37
+ bindComponent(component) {
38
+ component.cluster = this.cluster;
39
+ component.result = this.result;
40
+ component.rank = this.rank;
41
+ }
42
+ }
@@ -1,25 +1,20 @@
1
1
  import { PropertyValues } from "lit";
2
2
  import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
3
3
  import { FtSearchResultContextProperties } from "./ft-search-result-context.properties";
4
- import { FtSearchResultClusterEntry } from "@fluid-topics/public-api";
5
- import { FtSearchResultComponentInterface } from "./registration";
6
- export declare class SearchResultClickEvent extends CustomEvent<{
7
- result: FtSearchResultClusterEntry;
8
- rank: number;
9
- }> {
10
- constructor(result: FtSearchResultClusterEntry, rank: number);
4
+ import { FtSearchResultCluster, FtSearchResultClusterEntry } from "@fluid-topics/public-api";
5
+ export declare class SearchResultClusterChangeEvent extends CustomEvent<FtSearchResultClusterEntry> {
6
+ constructor(result: FtSearchResultClusterEntry);
11
7
  }
12
8
  export declare class FtSearchResultContext extends FtLitElement implements FtSearchResultContextProperties {
13
9
  static elementDefinitions: ElementDefinitionsMap;
14
10
  static styles: import("lit").CSSResult;
11
+ cluster?: FtSearchResultCluster;
15
12
  result?: FtSearchResultClusterEntry;
16
13
  index: number;
17
- private registeredComponents;
14
+ private stateManager;
18
15
  protected render(): import("lit").TemplateResult<1>;
19
- get url(): string;
20
- private onResultClick;
16
+ private onResultSelected;
21
17
  private registerComponent;
22
- register(component: FtSearchResultComponentInterface): void;
23
18
  protected update(changedProperties: PropertyValues): void;
24
19
  disconnectedCallback(): void;
25
20
  }
@@ -5,67 +5,53 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import { html } from "lit";
8
- import { property } from "lit/decorators.js";
8
+ import { property, state } from "lit/decorators.js";
9
9
  import { FtLitElement } from "@fluid-topics/ft-wc-utils";
10
10
  import { styles } from "./ft-search-result-context.css";
11
- import { FtSearchResultType } from "@fluid-topics/public-api";
12
- export class SearchResultClickEvent extends CustomEvent {
13
- constructor(result, rank) {
14
- super("ft-search-result-click", { detail: { result, rank }, bubbles: true, composed: true });
11
+ import { FtSearchResultStateManager } from "./FtSearchResultStateManager";
12
+ export class SearchResultClusterChangeEvent extends CustomEvent {
13
+ constructor(result) {
14
+ super("ft-search-result-cluster-change", { detail: result, bubbles: true, composed: true });
15
15
  }
16
16
  }
17
17
  class FtSearchResultContext extends FtLitElement {
18
18
  constructor() {
19
19
  super(...arguments);
20
20
  this.index = 0;
21
- this.registeredComponents = [];
21
+ this.stateManager = new FtSearchResultStateManager((result) => this.onResultSelected(result));
22
22
  }
23
23
  render() {
24
24
  return html `
25
- <a href="${this.url}" @click=${this.onResultClick}>
26
- <slot @register-ft-search-result-component=${this.registerComponent}></slot>
27
- </a>
25
+ <slot @register-ft-search-result-component=${this.registerComponent}></slot>
28
26
  `;
29
27
  }
30
- get url() {
31
- var _a;
32
- switch ((_a = this.result) === null || _a === void 0 ? void 0 : _a.type) {
33
- case FtSearchResultType.MAP:
34
- return this.result.map.readerUrl;
35
- case FtSearchResultType.DOCUMENT:
36
- return this.result.document.viewerUrl;
37
- case FtSearchResultType.TOPIC:
38
- return this.result.topic.readerUrl;
39
- }
40
- return "";
41
- }
42
- onResultClick() {
43
- this.dispatchEvent(new SearchResultClickEvent(this.result, this.index + 1));
28
+ onResultSelected(result) {
29
+ this.result = result;
30
+ this.dispatchEvent(new SearchResultClusterChangeEvent(this.result));
44
31
  }
45
32
  registerComponent(e) {
46
33
  e.stopPropagation();
47
34
  const component = e.composedPath()[0];
48
- this.register(component);
49
- }
50
- register(component) {
51
- this.registeredComponents.push(component);
52
- component.result = this.result;
35
+ this.stateManager.registerComponent(component);
53
36
  }
54
37
  update(changedProperties) {
55
38
  super.update(changedProperties);
56
- if (changedProperties.has("result")) {
57
- this.registeredComponents.forEach(c => c.result = this.result);
39
+ if (changedProperties.has("cluster") && this.cluster) {
40
+ this.stateManager.updateCluster(this.cluster, this.index + 1);
58
41
  }
59
42
  }
60
43
  disconnectedCallback() {
61
44
  super.disconnectedCallback();
62
- this.registeredComponents = [];
45
+ this.stateManager.clear();
63
46
  }
64
47
  }
65
48
  FtSearchResultContext.elementDefinitions = {};
66
49
  FtSearchResultContext.styles = styles;
67
50
  __decorate([
68
51
  property({ attribute: false })
52
+ ], FtSearchResultContext.prototype, "cluster", void 0);
53
+ __decorate([
54
+ state()
69
55
  ], FtSearchResultContext.prototype, "result", void 0);
70
56
  __decorate([
71
57
  property()
@@ -1,10 +1,8 @@
1
- !function(t,n,r,i){const e=r.css`
1
+ !function(t,s,e,i){const r=e.css`
2
2
  a {
3
3
  color: inherit;
4
4
  text-decoration: inherit;
5
5
  }
6
- `;var s,o,u,a,h,c,f,l,E,A,d,R,T,S;!function(t){!function(n){var r={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(r.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],e=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function s(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function o(t){return"string"!=typeof t&&(t=String(t)),t}function u(t){var n={next:function(){var n=t.shift();return{done:void 0===n,value:n}}};return r.iterable&&(n[Symbol.iterator]=function(){return n}),n}function a(t){this.map={},t instanceof a?t.forEach((function(t,n){this.append(n,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(n){this.append(n,t[n])}),this)}function h(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function c(t){return new Promise((function(n,r){t.onload=function(){n(t.result)},t.onerror=function(){r(t.error)}}))}function f(t){var n=new FileReader,r=c(n);return n.readAsArrayBuffer(t),r}function l(t){if(t.slice)return t.slice(0);var n=new Uint8Array(t.byteLength);return n.set(new Uint8Array(t)),n.buffer}function E(){return this.bodyUsed=!1,this._initBody=function(t){var n;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:r.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:r.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():r.arrayBuffer&&r.blob&&((n=t)&&DataView.prototype.isPrototypeOf(n))?(this._bodyArrayBuffer=l(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||e(t))?this._bodyArrayBuffer=l(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t,n,r,i=h(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,n=new FileReader,r=c(n),n.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var n=new Uint8Array(t),r=new Array(n.length),i=0;i<n.length;i++)r[i]=String.fromCharCode(n[i]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(R)}),this.json=function(){return this.text().then(JSON.parse)},this}a.prototype.append=function(t,n){t=s(t),n=o(n);var r=this.map[t];this.map[t]=r?r+", "+n:n},a.prototype.delete=function(t){delete this.map[s(t)]},a.prototype.get=function(t){return t=s(t),this.has(t)?this.map[t]:null},a.prototype.has=function(t){return this.map.hasOwnProperty(s(t))},a.prototype.set=function(t,n){this.map[s(t)]=o(n)},a.prototype.forEach=function(t,n){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(n,this.map[r],r,this)},a.prototype.keys=function(){var t=[];return this.forEach((function(n,r){t.push(r)})),u(t)},a.prototype.values=function(){var t=[];return this.forEach((function(n){t.push(n)})),u(t)},a.prototype.entries=function(){var t=[];return this.forEach((function(n,r){t.push([r,n])})),u(t)},r.iterable&&(a.prototype[Symbol.iterator]=a.prototype.entries);var A=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function d(t,n){var r,i,e=(n=n||{}).body;if(t instanceof d){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,n.headers||(this.headers=new a(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,e||null==t._bodyInit||(e=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new a(n.headers)),this.method=(r=n.method||this.method||"GET",i=r.toUpperCase(),A.indexOf(i)>-1?i:r),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&e)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(e)}function R(t){var n=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),i=r.shift().replace(/\+/g," "),e=r.join("=").replace(/\+/g," ");n.append(decodeURIComponent(i),decodeURIComponent(e))}})),n}function T(t,n){n||(n={}),this.type="default",this.status=void 0===n.status?200:n.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in n?n.statusText:"OK",this.headers=new a(n.headers),this.url=n.url||"",this._initBody(t)}d.prototype.clone=function(){return new d(this,{body:this._bodyInit})},E.call(d.prototype),E.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new a(this.headers),url:this.url})},T.error=function(){var t=new T(null,{status:0,statusText:""});return t.type="error",t};var S=[301,302,303,307,308];T.redirect=function(t,n){if(-1===S.indexOf(n))throw new RangeError("Invalid status code");return new T(null,{status:n,headers:{location:t}})},n.DOMException=t.DOMException;try{new n.DOMException}catch(t){n.DOMException=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},n.DOMException.prototype=Object.create(Error.prototype),n.DOMException.prototype.constructor=n.DOMException}function O(t,i){return new Promise((function(e,s){var o=new d(t,i);if(o.signal&&o.signal.aborted)return s(new n.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function h(){u.abort()}u.onload=function(){var t,n,r={status:u.status,statusText:u.statusText,headers:(t=u.getAllResponseHeaders()||"",n=new a,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),i=r.shift().trim();if(i){var e=r.join(":").trim();n.append(i,e)}})),n)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var i="response"in u?u.response:u.responseText;e(new T(i,r))},u.onerror=function(){s(new TypeError("Network request failed"))},u.ontimeout=function(){s(new TypeError("Network request failed"))},u.onabort=function(){s(new n.DOMException("Aborted","AbortError"))},u.open(o.method,o.url,!0),"include"===o.credentials?u.withCredentials=!0:"omit"===o.credentials&&(u.withCredentials=!1),"responseType"in u&&r.blob&&(u.responseType="blob"),o.headers.forEach((function(t,n){u.setRequestHeader(n,t)})),o.signal&&(o.signal.addEventListener("abort",h),u.onreadystatechange=function(){4===u.readyState&&o.signal.removeEventListener("abort",h)}),u.send(void 0===o._bodyInit?null:o._bodyInit)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=a,t.Request=d,t.Response=T),n.Headers=a,n.Request=d,n.Response=T,n.fetch=O,Object.defineProperty(n,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(s||(s={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(o||(o={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(u||(u={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(a||(a={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(h||(h={})),function(t){t.ASC="ASC",t.DESC="DESC"}(c||(c={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(f||(f={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(l||(l={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(E||(E={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(A||(A={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(d||(d={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(R||(R={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(T||(T={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(S||(S={})),S.PERSONAL_BOOK_SHARE_USER,S.PERSONAL_BOOK_USER,S.HTML_EXPORT_USER,S.PERSONAL_BOOK_USER,S.PDF_EXPORT_USER,S.PERSONAL_BOOK_USER,S.KHUB_ADMIN,S.CONTENT_PUBLISHER,S.ADMIN,S.KHUB_ADMIN,S.USERS_ADMIN,S.PORTAL_ADMIN,S.DEVELOPER,S.BETA_USER,S.DEBUG_USER;var O=function(t,n,r,i){for(var e,s=arguments.length,o=s<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i,u=t.length-1;u>=0;u--)(e=t[u])&&(o=(s<3?e(o):s>3?e(n,r,o):e(n,r))||o);return s>3&&o&&Object.defineProperty(n,r,o),o};class w extends CustomEvent{constructor(t,n){super("ft-search-result-click",{detail:{result:t,rank:n},bubbles:!0,composed:!0})}}class b extends n.FtLitElement{constructor(){super(...arguments),this.index=0,this.registeredComponents=[]}render(){return r.html`
7
- <a href="${this.url}" @click=${this.onResultClick}>
8
- <slot @register-ft-search-result-component=${this.registerComponent}></slot>
9
- </a>
10
- `}get url(){var t;switch(null===(t=this.result)||void 0===t?void 0:t.type){case R.MAP:return this.result.map.readerUrl;case R.DOCUMENT:return this.result.document.viewerUrl;case R.TOPIC:return this.result.topic.readerUrl}return""}onResultClick(){this.dispatchEvent(new w(this.result,this.index+1))}registerComponent(t){t.stopPropagation();const n=t.composedPath()[0];this.register(n)}register(t){this.registeredComponents.push(t),t.result=this.result}update(t){super.update(t),t.has("result")&&this.registeredComponents.forEach((t=>t.result=this.result))}disconnectedCallback(){super.disconnectedCallback(),this.registeredComponents=[]}}b.elementDefinitions={},b.styles=e,O([i.property({attribute:!1})],b.prototype,"result",void 0),O([i.property()],b.prototype,"index",void 0),n.customElement("ft-search-result-context")(b),t.FtSearchResultContext=b,t.FtSearchResultContextCssVariables={},t.SearchResultClickEvent=w,t.styles=e}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators);
6
+ `;class o{constructor(t){this.registeredComponents=[],this.registeredMetadata=new Set,this.onResultSelected=t}registerComponent(t){t.setResultStateManager(this),this.registeredComponents.push(t),this.bindComponent(t)}unregisterComponent(t){this.registeredComponents.splice(this.registeredComponents.indexOf(t),1),t.cluster=void 0,t.result=void 0,t.rank=void 0}registerMetadata(t){this.registeredMetadata.add(t)}unregisterMetadata(t){this.registeredMetadata.delete(t)}updateCluster(t,s){this.cluster=t,this.rank=s,this.selectResult(this.cluster.entries[0])}selectResult(t){this.result=t,this.onResultSelected(t),this.registeredComponents.forEach((t=>this.bindComponent(t)))}clear(){this.registeredComponents=[]}bindComponent(t){t.cluster=this.cluster,t.result=this.result,t.rank=this.rank}}var h=function(t,s,e,i){for(var r,o=arguments.length,h=o<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i,n=t.length-1;n>=0;n--)(r=t[n])&&(h=(o<3?r(h):o>3?r(s,e,h):r(s,e))||h);return o>3&&h&&Object.defineProperty(s,e,h),h};class n extends CustomEvent{constructor(t){super("ft-search-result-cluster-change",{detail:t,bubbles:!0,composed:!0})}}class c extends s.FtLitElement{constructor(){super(...arguments),this.index=0,this.stateManager=new o((t=>this.onResultSelected(t)))}render(){return e.html`
7
+ <slot @register-ft-search-result-component=${this.registerComponent}></slot>
8
+ `}onResultSelected(t){this.result=t,this.dispatchEvent(new n(this.result))}registerComponent(t){t.stopPropagation();const s=t.composedPath()[0];this.stateManager.registerComponent(s)}update(t){super.update(t),t.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}}c.elementDefinitions={},c.styles=r,h([i.property({attribute:!1})],c.prototype,"cluster",void 0),h([i.state()],c.prototype,"result",void 0),h([i.property()],c.prototype,"index",void 0),s.customElement("ft-search-result-context")(c),t.FtSearchResultContext=c,t.FtSearchResultContextCssVariables={},t.SearchResultClusterChangeEvent=n,t.styles=r}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators);
@@ -12,58 +12,63 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=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 s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);p(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,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,l),this._definitionsByClass.set(i,l);let h=e.call(r,t);h||(h=f(t),o.call(r,t,h)),this===window.customElements&&(a.set(i,l),l.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,h=t=>{let o=t.getRootNode();if(!l(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=h(e)||window.customElements,i=r._getDefinition(o);return i?u(e,i):n.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.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)}},p=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);r.call(this,n,i),e.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else n.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.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,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(mo){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=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 s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);p(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,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,l),this._definitionsByClass.set(i,l);let h=e.call(r,t);h||(h=f(t),o.call(r,t,h)),this===window.customElements&&(n.set(i,l),l.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,l,!0)}const u=this._whenDefinedPromises.get(t);return void 0!==u&&(u.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,h=t=>{let o=t.getRootNode();if(!l(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=h(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):a.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.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)}},p=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);r.call(this,a,i),e.call(this,a,t,i)}else r.call(this,a,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);a.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else a.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},u=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=u.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.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,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class a{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(mo){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)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}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
19
19
  * SPDX-License-Identifier: BSD-3-Clause
20
- */const o=globalThis,e=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),i=new WeakMap;const n=t=>new class{constructor(t,o,e){if(this._$cssResult$=!0,e!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(e&&void 0===t){const e=void 0!==o&&1===o.length;e&&(t=i.get(o)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&i.set(o,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,r),a=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const e of t.cssRules)o+=e.cssText;return n(o)})(t):t
20
+ */const e=globalThis,r=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),a=new WeakMap;const n=t=>new class{constructor(t,o,e){if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(r&&void 0===t){const e=void 0!==o&&1===o.length;e&&(t=a.get(o)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&a.set(o,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,i),s=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const e of t.cssRules)o+=e.cssText;return n(o)})(t):t
21
21
  /**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */,{is:s,defineProperty:c,getOwnPropertyDescriptor:l,getOwnPropertyNames:h,getOwnPropertySymbols:f,getPrototypeOf:p}=Object,d=globalThis,u=d.trustedTypes,y=u?u.emptyScript:"",g=d.reactiveElementPolyfillSupport,b=(t,o)=>t,m={toAttribute(t,o){switch(o){case Boolean:t=t?y:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},O=(t,o)=>!s(t,o),N={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:O};Symbol.metadata??=Symbol("metadata"),d.litPropertyMetadata??=new WeakMap;let S=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=N){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),r=this.getPropertyDescriptor(t,e,o);void 0!==r&&c(this.prototype,t,r)}}static getPropertyDescriptor(t,o,e){const{get:r,set:i}=l(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return r?.call(this)},set(o){const n=r?.call(this);i.call(this,o),this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??N}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=p(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,o=[...h(t),...f(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(a(t))}else void 0!==t&&o.push(a(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,r)=>{if(e)t.adoptedStyleSheets=r.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of r){const r=document.createElement("style"),i=o.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=e.cssText,t.appendChild(r)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,e);if(void 0!==r&&!0===e.reflect){const i=(void 0!==e.converter?.toAttribute?e.converter:m).toAttribute(o,e.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,o){const e=this.constructor,r=e._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=e.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=r,this[r]=i.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,r=!1,i){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??O)(r?i:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[b("elementProperties")]=new Map,S[b("finalized")]=new Map,g?.({ReactiveElement:S}),(d.reactiveElementVersions??=[]).push("2.0.2");
25
+ */,{is:c,defineProperty:l,getOwnPropertyDescriptor:h,getOwnPropertyNames:f,getOwnPropertySymbols:p,getPrototypeOf:d}=Object,y=globalThis,u=y.trustedTypes,g=u?u.emptyScript:"",b=y.reactiveElementPolyfillSupport,m=(t,o)=>t,O={toAttribute(t,o){switch(o){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},N=(t,o)=>!c(t,o),S={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:N};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;let C=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=S){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),r=this.getPropertyDescriptor(t,e,o);void 0!==r&&l(this.prototype,t,r)}}static getPropertyDescriptor(t,o,e){const{get:r,set:i}=h(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return r?.call(this)},set(o){const a=r?.call(this);i.call(this,o),this.requestUpdate(t,a,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??S}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;const t=d(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(m("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m("properties"))){const t=this.properties,o=[...f(t),...p(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(s(t))}else void 0!==t&&o.push(s(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(r)t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const r of o){const o=document.createElement("style"),i=e.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=r.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,e);if(void 0!==r&&!0===e.reflect){const i=(void 0!==e.converter?.toAttribute?e.converter:O).toAttribute(o,e.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,o){const e=this.constructor,r=e._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=e.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:O;this._$Em=r,this[r]=i.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,r=!1,i){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??N)(r?i:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};C.elementStyles=[],C.shadowRootOptions={mode:"open"},C[m("elementProperties")]=new Map,C[m("finalized")]=new Map,b?.({ReactiveElement:C}),(y.reactiveElementVersions??=[]).push("2.0.2");
26
26
  /**
27
27
  * @license
28
28
  * Copyright 2017 Google LLC
29
29
  * SPDX-License-Identifier: BSD-3-Clause
30
30
  */
31
- const w={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:O},v=(t=w,o,e)=>{const{kind:r,metadata:i}=e;let n=globalThis.litPropertyMetadata.get(i);if(void 0===n&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(e.name,t),"accessor"===r){const{name:r}=e;return{set(e){const i=o.get.call(this);o.set.call(this,e),this.requestUpdate(r,i,t)},init(o){return void 0!==o&&this.C(r,void 0,t),o}}}if("setter"===r){const{name:r}=e;return function(e){const i=this[r];o.call(this,e),this.requestUpdate(r,i,t)}}throw Error("Unsupported decorator location: "+r)};function C(t){return(o,e)=>"object"==typeof e?v(t,o,e):((t,o,e)=>{const r=o.hasOwnProperty(e);return o.constructor.createProperty(e,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(o,e):void 0})(t,o,e)}class E{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)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 R(t,o){try{return function(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var e,r,i;if(Array.isArray(t)){if((e=t.length)!=o.length)return!1;for(r=e;0!=r--;)if(!R(t[r],o[r]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;for(r of t.entries())if(!R(r[1],o.get(r[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if((e=(i=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(r=e;0!=r--;)if(!Object.prototype.hasOwnProperty.call(o,i[r]))return!1;for(r=e;0!=r--;){var n=i[r];if(!R(t[n],o[n]))return!1}return!0}return t!=t&&o!=o}(t,o)}catch(t){return!1}}
31
+ const w={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:N},v=(t=w,o,e)=>{const{kind:r,metadata:i}=e;let a=globalThis.litPropertyMetadata.get(i);if(void 0===a&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(e.name,t),"accessor"===r){const{name:r}=e;return{set(e){const i=o.get.call(this);o.set.call(this,e),this.requestUpdate(r,i,t)},init(o){return void 0!==o&&this.C(r,void 0,t),o}}}if("setter"===r){const{name:r}=e;return function(e){const i=this[r];o.call(this,e),this.requestUpdate(r,i,t)}}throw Error("Unsupported decorator location: "+r)};function x(t){return(o,e)=>"object"==typeof e?v(t,o,e):((t,o,e)=>{const r=o.hasOwnProperty(e);return o.constructor.createProperty(e,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(o,e):void 0})(t,o,e)
32
+ /**
33
+ * @license
34
+ * Copyright 2017 Google LLC
35
+ * SPDX-License-Identifier: BSD-3-Clause
36
+ */}function R(t,o){try{return function(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var e,r,i;if(Array.isArray(t)){if((e=t.length)!=o.length)return!1;for(r=e;0!=r--;)if(!R(t[r],o[r]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;for(r of t.entries())if(!R(r[1],o.get(r[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if((e=(i=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(r=e;0!=r--;)if(!Object.prototype.hasOwnProperty.call(o,i[r]))return!1;for(r=e;0!=r--;){var a=i[r];if(!R(t[a],o[a]))return!1}return!0}return t!=t&&o!=o}(t,o)}catch(t){return!1}}
32
37
  /**
33
38
  * @license
34
39
  * Copyright 2017 Google LLC
35
40
  * SPDX-License-Identifier: BSD-3-Clause
36
41
  */
37
- const U=globalThis,x=U.trustedTypes,L=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,I="$lit$",W=`lit$${(Math.random()+"").slice(9)}$`,k="?"+W,A=`<${k}>`,K=document,Z=()=>K.createComment(""),F=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,B="[ \t\n\f\r]",$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,D=/>/g,P=RegExp(`>|${B}(?:([^\\s"'>=/]+)(${B}*=${B}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,z=/"/g,G=/^(?:script|style|textarea|title)$/i,H=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),Y=new WeakMap,J=K.createTreeWalker(K,129);function V(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==L?L.createHTML(o):o}let q=class t{constructor({strings:o,_$litType$:e},r){let i;this.parts=[];let n=0,a=0;const s=o.length-1,c=this.parts,[l,h]=((t,o)=>{const e=t.length-1,r=[];let i,n=2===o?"<svg>":"",a=$;for(let o=0;o<e;o++){const e=t[o];let s,c,l=-1,h=0;for(;h<e.length&&(a.lastIndex=h,c=a.exec(e),null!==c);)h=a.lastIndex,a===$?"!--"===c[1]?a=T:void 0!==c[1]?a=D:void 0!==c[2]?(G.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=P):void 0!==c[3]&&(a=P):a===P?">"===c[0]?(a=i??$,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?P:'"'===c[3]?z:_):a===z||a===_?a=P:a===T||a===D?a=$:(a=P,i=void 0);const f=a===P&&t[o+1].startsWith("/>")?" ":"";n+=a===$?e+A:l>=0?(r.push(s),e.slice(0,l)+I+e.slice(l)+W+f):e+W+(-2===l?o:f)}return[V(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),r]})(o,e);if(this.el=t.createElement(l,r),J.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=J.nextNode())&&c.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(I)){const o=h[a++],e=i.getAttribute(t).split(W),r=/([.?@])?(.*)/.exec(o);c.push({type:1,index:n,name:r[2],strings:e,ctor:"."===r[1]?ot:"?"===r[1]?et:"@"===r[1]?rt:tt}),i.removeAttribute(t)}else t.startsWith(W)&&(c.push({type:6,index:n}),i.removeAttribute(t));if(G.test(i.tagName)){const t=i.textContent.split(W),o=t.length-1;if(o>0){i.textContent=x?x.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],Z()),J.nextNode(),c.push({type:2,index:++n});i.append(t[o],Z())}}}else if(8===i.nodeType)if(i.data===k)c.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(W,t+1));)c.push({type:7,index:n}),t+=W.length-1}n++}}static createElement(t,o){const e=K.createElement("template");return e.innerHTML=t,e}};function X(t,o,e=t,r){if(o===H)return o;let i=void 0!==r?e._$Co?.[r]:e._$Cl;const n=F(o)?void 0:o._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=i:e._$Cl=i),void 0!==i&&(o=X(t,i._$AS(t,o.values),i,r)),o}let Q=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=X(this,t,o),F(t)?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==H&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>M(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==j&&F(this._$AH)?this._$AA.nextSibling.data=t:this.$(K.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=q.createElement(V(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,r=(t?.creationScope??K).importNode(o,!0);J.currentNode=r;let i=J.nextNode(),n=0,a=0,s=e[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new Q(i,i.nextSibling,this,t):1===s.type?o=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(o=new it(i,this,t)),this._$AV.push(o),s=e[++a]}n!==s?.index&&(i=J.nextNode(),n++)}return J.currentNode=K,r}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=Y.get(t.strings);return void 0===o&&Y.set(t.strings,o=new q(t)),o}T(o){M(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const n of o)i===e.length?e.push(r=new t(this.k(Z()),this.k(Z()),this,this.options)):r=e[i],r._$AI(n),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},tt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,i){this.type=1,this._$AH=j,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=j}_$AI(t,o=this,e,r){const i=this.strings;let n=!1;if(void 0===i)t=X(this,t,o,0),n=!F(t)||t!==this._$AH&&t!==H,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=X(this,r[e+a],o,a),s===H&&(s=this._$AH[a]),n||=!F(s)||s!==this._$AH[a],s===j?t=j:t!==j&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends tt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===j?void 0:t}},et=class extends tt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==j)}},rt=class extends tt{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){if((t=X(this,t,o,0)??j)===H)return;const e=this._$AH,r=t===j&&e!==j||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==j&&(e===j||r);r&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},it=class{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}};const nt=U.litHtmlPolyfillSupport;nt?.(q,Q),(U.litHtmlVersions??=[]).push("3.1.0");
42
+ const U=globalThis,E=U.trustedTypes,L=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,I="$lit$",W=`lit$${(Math.random()+"").slice(9)}$`,k="?"+W,K=`<${k}>`,Z=document,A=()=>Z.createComment(""),$=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,M="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,z=/-->/g,D=/>/g,P=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,G=/"/g,T=/^(?:script|style|textarea|title)$/i,j=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),Y=new WeakMap,J=Z.createTreeWalker(Z,129);function V(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==L?L.createHTML(o):o}let q=class t{constructor({strings:o,_$litType$:e},r){let i;this.parts=[];let a=0,n=0;const s=o.length-1,c=this.parts,[l,h]=((t,o)=>{const e=t.length-1,r=[];let i,a=2===o?"<svg>":"",n=B;for(let o=0;o<e;o++){const e=t[o];let s,c,l=-1,h=0;for(;h<e.length&&(n.lastIndex=h,c=n.exec(e),null!==c);)h=n.lastIndex,n===B?"!--"===c[1]?n=z:void 0!==c[1]?n=D:void 0!==c[2]?(T.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=P):void 0!==c[3]&&(n=P):n===P?">"===c[0]?(n=i??B,l=-1):void 0===c[1]?l=-2:(l=n.lastIndex-c[2].length,s=c[1],n=void 0===c[3]?P:'"'===c[3]?G:_):n===G||n===_?n=P:n===z||n===D?n=B:(n=P,i=void 0);const f=n===P&&t[o+1].startsWith("/>")?" ":"";a+=n===B?e+K:l>=0?(r.push(s),e.slice(0,l)+I+e.slice(l)+W+f):e+W+(-2===l?o:f)}return[V(t,a+(t[e]||"<?>")+(2===o?"</svg>":"")),r]})(o,e);if(this.el=t.createElement(l,r),J.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=J.nextNode())&&c.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(I)){const o=h[n++],e=i.getAttribute(t).split(W),r=/([.?@])?(.*)/.exec(o);c.push({type:1,index:a,name:r[2],strings:e,ctor:"."===r[1]?ot:"?"===r[1]?et:"@"===r[1]?rt:tt}),i.removeAttribute(t)}else t.startsWith(W)&&(c.push({type:6,index:a}),i.removeAttribute(t));if(T.test(i.tagName)){const t=i.textContent.split(W),o=t.length-1;if(o>0){i.textContent=E?E.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],A()),J.nextNode(),c.push({type:2,index:++a});i.append(t[o],A())}}}else if(8===i.nodeType)if(i.data===k)c.push({type:2,index:a});else{let t=-1;for(;-1!==(t=i.data.indexOf(W,t+1));)c.push({type:7,index:a}),t+=W.length-1}a++}}static createElement(t,o){const e=Z.createElement("template");return e.innerHTML=t,e}};function X(t,o,e=t,r){if(o===j)return o;let i=void 0!==r?e._$Co?.[r]:e._$Cl;const a=$(o)?void 0:o._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(t),i._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=i:e._$Cl=i),void 0!==i&&(o=X(t,i._$AS(t,o.values),i,r)),o}let Q=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=X(this,t,o),$(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==j&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>F(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==H&&$(this._$AH)?this._$AA.nextSibling.data=t:this.$(Z.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=q.createElement(V(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,r=(t?.creationScope??Z).importNode(o,!0);J.currentNode=r;let i=J.nextNode(),a=0,n=0,s=e[0];for(;void 0!==s;){if(a===s.index){let o;2===s.type?o=new Q(i,i.nextSibling,this,t):1===s.type?o=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(o=new it(i,this,t)),this._$AV.push(o),s=e[++n]}a!==s?.index&&(i=J.nextNode(),a++)}return J.currentNode=Z,r}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=Y.get(t.strings);return void 0===o&&Y.set(t.strings,o=new q(t)),o}T(o){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const a of o)i===e.length?e.push(r=new t(this.k(A()),this.k(A()),this,this.options)):r=e[i],r._$AI(a),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},tt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,i){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=H}_$AI(t,o=this,e,r){const i=this.strings;let a=!1;if(void 0===i)t=X(this,t,o,0),a=!$(t)||t!==this._$AH&&t!==j,a&&(this._$AH=t);else{const r=t;let n,s;for(t=i[0],n=0;n<i.length-1;n++)s=X(this,r[e+n],o,n),s===j&&(s=this._$AH[n]),a||=!$(s)||s!==this._$AH[n],s===H?t=H:t!==H&&(t+=(s??"")+i[n+1]),this._$AH[n]=s}a&&!r&&this.O(t)}O(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends tt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===H?void 0:t}},et=class extends tt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}},rt=class extends tt{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){if((t=X(this,t,o,0)??H)===j)return;const e=this._$AH,r=t===H&&e!==H||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==H&&(e===H||r);r&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},it=class{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}};const at=U.litHtmlPolyfillSupport;at?.(q,Q),(U.litHtmlVersions??=[]).push("3.1.0");
38
43
  /**
39
44
  * @license
40
45
  * Copyright 2019 Google LLC
41
46
  * SPDX-License-Identifier: BSD-3-Clause
42
47
  */
43
- const at=globalThis,st=at.ShadowRoot&&(void 0===at.ShadyCSS||at.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ct=Symbol(),lt=new WeakMap;let ht=class{constructor(t,o,e){if(this._$cssResult$=!0,e!==ct)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(st&&void 0===t){const e=void 0!==o&&1===o.length;e&&(t=lt.get(o)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&lt.set(o,t))}return t}toString(){return this.cssText}};const ft=t=>new ht("string"==typeof t?t:t+"",void 0,ct),pt=(t,...o)=>{const e=1===t.length?t[0]:o.reduce(((o,e,r)=>o+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[r+1]),t[0]);return new ht(e,t,ct)},dt=st?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const e of t.cssRules)o+=e.cssText;return ft(o)})(t):t
48
+ const nt=globalThis,st=nt.ShadowRoot&&(void 0===nt.ShadyCSS||nt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ct=Symbol(),lt=new WeakMap;let ht=class{constructor(t,o,e){if(this._$cssResult$=!0,e!==ct)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(st&&void 0===t){const e=void 0!==o&&1===o.length;e&&(t=lt.get(o)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&lt.set(o,t))}return t}toString(){return this.cssText}};const ft=t=>new ht("string"==typeof t?t:t+"",void 0,ct),pt=(t,...o)=>{const e=1===t.length?t[0]:o.reduce(((o,e,r)=>o+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[r+1]),t[0]);return new ht(e,t,ct)},dt=st?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const e of t.cssRules)o+=e.cssText;return ft(o)})(t):t
44
49
  /**
45
50
  * @license
46
51
  * Copyright 2017 Google LLC
47
52
  * SPDX-License-Identifier: BSD-3-Clause
48
- */,{is:ut,defineProperty:yt,getOwnPropertyDescriptor:gt,getOwnPropertyNames:bt,getOwnPropertySymbols:mt,getPrototypeOf:Ot}=Object,Nt=globalThis,St=Nt.trustedTypes,wt=St?St.emptyScript:"",vt=Nt.reactiveElementPolyfillSupport,Ct=(t,o)=>t,Et={toAttribute(t,o){switch(o){case Boolean:t=t?wt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},Rt=(t,o)=>!ut(t,o),Ut={attribute:!0,type:String,converter:Et,reflect:!1,hasChanged:Rt};Symbol.metadata??=Symbol("metadata"),Nt.litPropertyMetadata??=new WeakMap;class xt extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=Ut){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),r=this.getPropertyDescriptor(t,e,o);void 0!==r&&yt(this.prototype,t,r)}}static getPropertyDescriptor(t,o,e){const{get:r,set:i}=gt(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return r?.call(this)},set(o){const n=r?.call(this);i.call(this,o),this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ut}static _$Ei(){if(this.hasOwnProperty(Ct("elementProperties")))return;const t=Ot(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ct("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ct("properties"))){const t=this.properties,o=[...bt(t),...mt(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(dt(t))}else void 0!==t&&o.push(dt(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(st)t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),r=at.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,e);if(void 0!==r&&!0===e.reflect){const i=(void 0!==e.converter?.toAttribute?e.converter:Et).toAttribute(o,e.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,o){const e=this.constructor,r=e._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=e.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Et;this._$Em=r,this[r]=i.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,r=!1,i){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??Rt)(r?i:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}}xt.elementStyles=[],xt.shadowRootOptions={mode:"open"},xt[Ct("elementProperties")]=new Map,xt[Ct("finalized")]=new Map,vt?.({ReactiveElement:xt}),(Nt.reactiveElementVersions??=[]).push("2.0.2");
53
+ */,{is:yt,defineProperty:ut,getOwnPropertyDescriptor:gt,getOwnPropertyNames:bt,getOwnPropertySymbols:mt,getPrototypeOf:Ot}=Object,Nt=globalThis,St=Nt.trustedTypes,Ct=St?St.emptyScript:"",wt=Nt.reactiveElementPolyfillSupport,vt=(t,o)=>t,xt={toAttribute(t,o){switch(o){case Boolean:t=t?Ct:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},Rt=(t,o)=>!yt(t,o),Ut={attribute:!0,type:String,converter:xt,reflect:!1,hasChanged:Rt};Symbol.metadata??=Symbol("metadata"),Nt.litPropertyMetadata??=new WeakMap;class Et extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=Ut){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),r=this.getPropertyDescriptor(t,e,o);void 0!==r&&ut(this.prototype,t,r)}}static getPropertyDescriptor(t,o,e){const{get:r,set:i}=gt(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return r?.call(this)},set(o){const a=r?.call(this);i.call(this,o),this.requestUpdate(t,a,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ut}static _$Ei(){if(this.hasOwnProperty(vt("elementProperties")))return;const t=Ot(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(vt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(vt("properties"))){const t=this.properties,o=[...bt(t),...mt(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(dt(t))}else void 0!==t&&o.push(dt(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(st)t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),r=nt.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,e);if(void 0!==r&&!0===e.reflect){const i=(void 0!==e.converter?.toAttribute?e.converter:xt).toAttribute(o,e.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,o){const e=this.constructor,r=e._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=e.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:xt;this._$Em=r,this[r]=i.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,r=!1,i){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??Rt)(r?i:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}}Et.elementStyles=[],Et.shadowRootOptions={mode:"open"},Et[vt("elementProperties")]=new Map,Et[vt("finalized")]=new Map,wt?.({ReactiveElement:Et}),(Nt.reactiveElementVersions??=[]).push("2.0.2");
49
54
  /**
50
55
  * @license
51
56
  * Copyright 2017 Google LLC
52
57
  * SPDX-License-Identifier: BSD-3-Clause
53
58
  */
54
- const Lt=globalThis,It=Lt.trustedTypes,Wt=It?It.createPolicy("lit-html",{createHTML:t=>t}):void 0,kt="$lit$",At=`lit$${(Math.random()+"").slice(9)}$`,Kt="?"+At,Zt=`<${Kt}>`,Ft=document,Mt=()=>Ft.createComment(""),Bt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$t=Array.isArray,Tt="[ \t\n\f\r]",Dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Pt=/-->/g,_t=/>/g,zt=RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Ht=/"/g,jt=/^(?:script|style|textarea|title)$/i,Yt=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),Jt=Symbol.for("lit-noChange"),Vt=Symbol.for("lit-nothing"),qt=new WeakMap,Xt=Ft.createTreeWalker(Ft,129);function Qt(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Wt?Wt.createHTML(o):o}const to=(t,o)=>{const e=t.length-1,r=[];let i,n=2===o?"<svg>":"",a=Dt;for(let o=0;o<e;o++){const e=t[o];let s,c,l=-1,h=0;for(;h<e.length&&(a.lastIndex=h,c=a.exec(e),null!==c);)h=a.lastIndex,a===Dt?"!--"===c[1]?a=Pt:void 0!==c[1]?a=_t:void 0!==c[2]?(jt.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=zt):void 0!==c[3]&&(a=zt):a===zt?">"===c[0]?(a=i??Dt,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?zt:'"'===c[3]?Ht:Gt):a===Ht||a===Gt?a=zt:a===Pt||a===_t?a=Dt:(a=zt,i=void 0);const f=a===zt&&t[o+1].startsWith("/>")?" ":"";n+=a===Dt?e+Zt:l>=0?(r.push(s),e.slice(0,l)+kt+e.slice(l)+At+f):e+At+(-2===l?o:f)}return[Qt(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),r]};class oo{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let i=0,n=0;const a=t.length-1,s=this.parts,[c,l]=to(t,o);if(this.el=oo.createElement(c,e),Xt.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=Xt.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(kt)){const o=l[n++],e=r.getAttribute(t).split(At),a=/([.?@])?(.*)/.exec(o);s.push({type:1,index:i,name:a[2],strings:e,ctor:"."===a[1]?no:"?"===a[1]?ao:"@"===a[1]?so:io}),r.removeAttribute(t)}else t.startsWith(At)&&(s.push({type:6,index:i}),r.removeAttribute(t));if(jt.test(r.tagName)){const t=r.textContent.split(At),o=t.length-1;if(o>0){r.textContent=It?It.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],Mt()),Xt.nextNode(),s.push({type:2,index:++i});r.append(t[o],Mt())}}}else if(8===r.nodeType)if(r.data===Kt)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(At,t+1));)s.push({type:7,index:i}),t+=At.length-1}i++}}static createElement(t,o){const e=Ft.createElement("template");return e.innerHTML=t,e}}function eo(t,o,e=t,r){if(o===Jt)return o;let i=void 0!==r?e._$Co?.[r]:e._$Cl;const n=Bt(o)?void 0:o._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=i:e._$Cl=i),void 0!==i&&(o=eo(t,i._$AS(t,o.values),i,r)),o}class ro{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=Vt,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=eo(this,t,o),Bt(t)?t===Vt||null==t||""===t?(this._$AH!==Vt&&this._$AR(),this._$AH=Vt):t!==this._$AH&&t!==Jt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>$t(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Vt&&Bt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ft.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=oo.createElement(Qt(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,r=(t?.creationScope??Ft).importNode(o,!0);Xt.currentNode=r;let i=Xt.nextNode(),n=0,a=0,s=e[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new ro(i,i.nextSibling,this,t):1===s.type?o=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(o=new co(i,this,t)),this._$AV.push(o),s=e[++a]}n!==s?.index&&(i=Xt.nextNode(),n++)}return Xt.currentNode=Ft,r}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=qt.get(t.strings);return void 0===o&&qt.set(t.strings,o=new oo(t)),o}T(t){$t(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,r=0;for(const i of t)r===o.length?o.push(e=new ro(this.k(Mt()),this.k(Mt()),this,this.options)):e=o[r],e._$AI(i),r++;r<o.length&&(this._$AR(e&&e._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class io{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,i){this.type=1,this._$AH=Vt,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Vt}_$AI(t,o=this,e,r){const i=this.strings;let n=!1;if(void 0===i)t=eo(this,t,o,0),n=!Bt(t)||t!==this._$AH&&t!==Jt,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=eo(this,r[e+a],o,a),s===Jt&&(s=this._$AH[a]),n||=!Bt(s)||s!==this._$AH[a],s===Vt?t=Vt:t!==Vt&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===Vt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class no extends io{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===Vt?void 0:t}}class ao extends io{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==Vt)}}class so extends io{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){if((t=eo(this,t,o,0)??Vt)===Jt)return;const e=this._$AH,r=t===Vt&&e!==Vt||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==Vt&&(e===Vt||r);r&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class co{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){eo(this,t)}}const lo=Lt.litHtmlPolyfillSupport;lo?.(oo,ro),(Lt.litHtmlVersions??=[]).push("3.1.0");
59
+ const Lt=globalThis,It=Lt.trustedTypes,Wt=It?It.createPolicy("lit-html",{createHTML:t=>t}):void 0,kt="$lit$",Kt=`lit$${(Math.random()+"").slice(9)}$`,Zt="?"+Kt,At=`<${Zt}>`,$t=document,Ft=()=>$t.createComment(""),Mt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Bt=Array.isArray,zt="[ \t\n\f\r]",Dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Pt=/-->/g,_t=/>/g,Gt=RegExp(`>|${zt}(?:([^\\s"'>=/]+)(${zt}*=${zt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Tt=/'/g,jt=/"/g,Ht=/^(?:script|style|textarea|title)$/i,Yt=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),Jt=Symbol.for("lit-noChange"),Vt=Symbol.for("lit-nothing"),qt=new WeakMap,Xt=$t.createTreeWalker($t,129);function Qt(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Wt?Wt.createHTML(o):o}const to=(t,o)=>{const e=t.length-1,r=[];let i,a=2===o?"<svg>":"",n=Dt;for(let o=0;o<e;o++){const e=t[o];let s,c,l=-1,h=0;for(;h<e.length&&(n.lastIndex=h,c=n.exec(e),null!==c);)h=n.lastIndex,n===Dt?"!--"===c[1]?n=Pt:void 0!==c[1]?n=_t:void 0!==c[2]?(Ht.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=Gt):void 0!==c[3]&&(n=Gt):n===Gt?">"===c[0]?(n=i??Dt,l=-1):void 0===c[1]?l=-2:(l=n.lastIndex-c[2].length,s=c[1],n=void 0===c[3]?Gt:'"'===c[3]?jt:Tt):n===jt||n===Tt?n=Gt:n===Pt||n===_t?n=Dt:(n=Gt,i=void 0);const f=n===Gt&&t[o+1].startsWith("/>")?" ":"";a+=n===Dt?e+At:l>=0?(r.push(s),e.slice(0,l)+kt+e.slice(l)+Kt+f):e+Kt+(-2===l?o:f)}return[Qt(t,a+(t[e]||"<?>")+(2===o?"</svg>":"")),r]};class oo{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let i=0,a=0;const n=t.length-1,s=this.parts,[c,l]=to(t,o);if(this.el=oo.createElement(c,e),Xt.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=Xt.nextNode())&&s.length<n;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(kt)){const o=l[a++],e=r.getAttribute(t).split(Kt),n=/([.?@])?(.*)/.exec(o);s.push({type:1,index:i,name:n[2],strings:e,ctor:"."===n[1]?ao:"?"===n[1]?no:"@"===n[1]?so:io}),r.removeAttribute(t)}else t.startsWith(Kt)&&(s.push({type:6,index:i}),r.removeAttribute(t));if(Ht.test(r.tagName)){const t=r.textContent.split(Kt),o=t.length-1;if(o>0){r.textContent=It?It.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],Ft()),Xt.nextNode(),s.push({type:2,index:++i});r.append(t[o],Ft())}}}else if(8===r.nodeType)if(r.data===Zt)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(Kt,t+1));)s.push({type:7,index:i}),t+=Kt.length-1}i++}}static createElement(t,o){const e=$t.createElement("template");return e.innerHTML=t,e}}function eo(t,o,e=t,r){if(o===Jt)return o;let i=void 0!==r?e._$Co?.[r]:e._$Cl;const a=Mt(o)?void 0:o._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(t),i._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=i:e._$Cl=i),void 0!==i&&(o=eo(t,i._$AS(t,o.values),i,r)),o}class ro{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=Vt,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=eo(this,t,o),Mt(t)?t===Vt||null==t||""===t?(this._$AH!==Vt&&this._$AR(),this._$AH=Vt):t!==this._$AH&&t!==Jt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Bt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Vt&&Mt(this._$AH)?this._$AA.nextSibling.data=t:this.$($t.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=oo.createElement(Qt(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,r=(t?.creationScope??$t).importNode(o,!0);Xt.currentNode=r;let i=Xt.nextNode(),a=0,n=0,s=e[0];for(;void 0!==s;){if(a===s.index){let o;2===s.type?o=new ro(i,i.nextSibling,this,t):1===s.type?o=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(o=new co(i,this,t)),this._$AV.push(o),s=e[++n]}a!==s?.index&&(i=Xt.nextNode(),a++)}return Xt.currentNode=$t,r}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=qt.get(t.strings);return void 0===o&&qt.set(t.strings,o=new oo(t)),o}T(t){Bt(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,r=0;for(const i of t)r===o.length?o.push(e=new ro(this.k(Ft()),this.k(Ft()),this,this.options)):e=o[r],e._$AI(i),r++;r<o.length&&(this._$AR(e&&e._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class io{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,i){this.type=1,this._$AH=Vt,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Vt}_$AI(t,o=this,e,r){const i=this.strings;let a=!1;if(void 0===i)t=eo(this,t,o,0),a=!Mt(t)||t!==this._$AH&&t!==Jt,a&&(this._$AH=t);else{const r=t;let n,s;for(t=i[0],n=0;n<i.length-1;n++)s=eo(this,r[e+n],o,n),s===Jt&&(s=this._$AH[n]),a||=!Mt(s)||s!==this._$AH[n],s===Vt?t=Vt:t!==Vt&&(t+=(s??"")+i[n+1]),this._$AH[n]=s}a&&!r&&this.O(t)}O(t){t===Vt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ao extends io{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===Vt?void 0:t}}class no extends io{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==Vt)}}class so extends io{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){if((t=eo(this,t,o,0)??Vt)===Jt)return;const e=this._$AH,r=t===Vt&&e!==Vt||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==Vt&&(e===Vt||r);r&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class co{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){eo(this,t)}}const lo=Lt.litHtmlPolyfillSupport;lo?.(oo,ro),(Lt.litHtmlVersions??=[]).push("3.1.0");
55
60
  /**
56
61
  * @license
57
62
  * Copyright 2017 Google LLC
58
63
  * SPDX-License-Identifier: BSD-3-Clause
59
64
  */
60
- class ho extends xt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,o,e)=>{const r=e?.renderBefore??o;let i=r._$litPart$;if(void 0===i){const t=e?.renderBefore??null;r._$litPart$=i=new ro(o.insertBefore(Mt(),t),t,void 0,e??{})}return i._$AI(t),i})(o,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Jt}}ho._$litElement$=!0,ho.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ho});const fo=globalThis.litElementPolyfillSupport;fo?.({LitElement:ho}),(globalThis.litElementVersions??=[]).push("4.0.2");const po=t=>"string"==typeof t?ft(t):t;class uo{static create(t,o,e,r){const i=t=>po(null!=t?t:r),n=pt`var(${po(t)}, ${i(r)})`;return n.name=t,n.description=o,n.category=e,n.defaultValue=r,n.defaultCssValue=i,n.get=o=>pt`var(${po(t)}, ${i(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,o,e,r){const i=t=>e.get(null!=t?t:r),n=pt`var(${po(t)}, ${i(r)})`;return n.name=t,n.description=o,n.category=e.category,n.fallbackVariable=e,n.defaultValue=r,n.defaultCssValue=i,n.get=o=>pt`var(${po(t)}, ${i(o)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:e.lastResortDefaultValue(),n}static external(t,o){const e=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):po(null!=o?o:t.lastResortDefaultValue()),r=pt`var(${po(t.name)}, ${e(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=e,r.get=o=>pt`var(${po(t.name)}, ${e(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const yo={colorWhite:uo.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:uo.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:uo.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:uo.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:uo.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:uo.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:uo.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:uo.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:uo.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:uo.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:uo.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:uo.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:uo.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:uo.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:uo.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:uo.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:uo.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:uo.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:uo.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:uo.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:uo.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:uo.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:uo.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:uo.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:uo.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:uo.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:uo.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:uo.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:uo.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:uo.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:uo.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:uo.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:uo.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:uo.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:uo.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:uo.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:uo.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:uo.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:uo.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:uo.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:uo.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:uo.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:uo.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:uo.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:uo.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:uo.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:uo.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:uo.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:uo.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:uo.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:uo.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:uo.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:uo.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:uo.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:uo.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:uo.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:uo.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:uo.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:uo.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:uo.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:uo.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:uo.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:uo.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:uo.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:uo.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:uo.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:uo.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:uo.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:uo.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:uo.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:uo.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:uo.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:uo.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:uo.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:uo.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:uo.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:uo.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:uo.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:uo.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:uo.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:uo.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:uo.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:uo.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:uo.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:uo.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:uo.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:uo.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:uo.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:uo.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:uo.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:uo.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:uo.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:uo.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:uo.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:uo.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:uo.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:uo.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:uo.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:uo.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:uo.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:uo.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:uo.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:uo.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:uo.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:uo.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:uo.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:uo.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:uo.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:uo.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:uo.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:uo.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:uo.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:uo.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:uo.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:uo.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:uo.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:uo.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:uo.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:uo.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:uo.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:uo.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:uo.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:uo.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:uo.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:uo.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:uo.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:uo.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:uo.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:uo.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:uo.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:uo.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:uo.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:uo.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:uo.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:uo.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:uo.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:uo.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:uo.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:uo.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:uo.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:uo.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:uo.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:uo.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:uo.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:uo.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:uo.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:uo.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:uo.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:uo.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:uo.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:uo.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:uo.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:uo.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:uo.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:uo.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:uo.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:uo.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:uo.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:uo.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:uo.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:uo.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:uo.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:uo.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:uo.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:uo.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:uo.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:uo.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:uo.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:uo.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:uo.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:uo.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:uo.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:uo.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:uo.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:uo.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:uo.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:uo.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:uo.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:uo.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:uo.create("--ft-icon-size-6","","SIZE","48px"),opacity0:uo.create("--ft-opacity-0","","NUMBER","0"),opacity8:uo.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:uo.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:uo.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:uo.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:uo.create("--ft-opacity-80","","NUMBER","0.8")};uo.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),uo.create("--ft-typography-display-lineHeight","","SIZE","120%"),uo.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),uo.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),uo.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-display-textCase","","UNKNOWN","none"),uo.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),uo.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),uo.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),uo.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),uo.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-title-1-textCase","","UNKNOWN","none"),uo.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),uo.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),uo.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),uo.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),uo.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-title-2-textCase","","UNKNOWN","none"),uo.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),uo.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),uo.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),uo.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),uo.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-title-3-textCase","","UNKNOWN","none"),uo.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),uo.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),uo.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),uo.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),uo.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none"),uo.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),uo.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),uo.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),uo.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),uo.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none"),uo.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),uo.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),uo.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),uo.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),uo.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none"),uo.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),uo.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),uo.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),uo.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),uo.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none"),uo.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),uo.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),uo.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),uo.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),uo.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none"),uo.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),uo.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),uo.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),uo.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),uo.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none"),uo.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),uo.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),uo.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),uo.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),uo.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),uo.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),uo.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),uo.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),uo.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),uo.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),uo.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),uo.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),uo.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),uo.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),uo.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),uo.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),uo.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),uo.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),uo.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),uo.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),uo.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),uo.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),uo.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),uo.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),uo.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),uo.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),uo.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),uo.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),uo.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),uo.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),uo.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),uo.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),uo.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),uo.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),uo.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),uo.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),uo.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),uo.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),uo.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),uo.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),uo.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),uo.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),uo.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),uo.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),uo.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),uo.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),uo.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),uo.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),uo.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),uo.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),uo.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),uo.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),uo.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),uo.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),uo.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),uo.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none"),uo.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),uo.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),uo.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),uo.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),uo.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),uo.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),uo.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),uo.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),uo.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none");const go={backgroundActionPrimary:uo.extend("--ft-background-action-primary","Used as backgorund of primary action components.",yo.colorBrand0),backgroundErrorPrimary:uo.extend("--ft-background-error-primary","Used as background of error components.",yo.colorRed0),backgroundErrorSubtle:uo.extend("--ft-background-error-subtle","Used as background of subtle error components.",yo.colorRed10),backgroundInfoPrimary:uo.extend("--ft-background-info-primary","Used as background of information components.",yo.colorCyan200),backgroundInfoSubtle:uo.extend("--ft-background-info-subtle","Used as background of subtle information components.",yo.colorCyan10),backgroundWarningPrimary:uo.extend("--ft-background-warning-primary","Used as background of warning components.",yo.colorOrange300),backgroundWarningSubtle:uo.extend("--ft-background-warning-subtle","Used as background of subtle information components.",yo.colorOrange10),backgroundSuccessPrimary:uo.extend("--ft-background-success-primary","Used as background of success components.",yo.colorGreen200),backgroundSuccessSubtle:uo.extend("--ft-background-success-subtle","Used as background of subtle success components.",yo.colorGreen10),backgroundGlobalSurface:uo.extend("--ft-background-global-surface","Used as app background.",yo.colorWhite),backgroundGlobalOnSurface:uo.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",yo.colorGray10),backgroundGlobalOnSurfaceDark:uo.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",yo.colorGray30),contentActionPrimary:uo.extend("--ft-content-action-primary","Used on label of primary action on light surface.",yo.colorBrand0),contentWarningPrimary:uo.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",yo.colorOrange300),contentWarningIconOnly:uo.extend("--ft-content-warning-icon-only","Used on warning status icons alone",yo.colorOrange0),contentErrorPrimary:uo.extend("--ft-content-error-primary","Used on label of error messages on light surface.",yo.colorRed0),contentErrorIconOnly:uo.extend("--ft-content-error-icon-only","Used on error status icons alone",yo.colorRed0),contentInfoPrimary:uo.extend("--ft-content-info-primary","Used on label of information messages on light surface.",yo.colorCyan200),contentInfoIconOnly:uo.extend("--ft-content-info-icon-only","Used on info status icons alone",yo.colorCyan0),contentSuccessIconOnly:uo.extend("--ft-content-success-icon-only","Used on success status icons alone",yo.colorGreen0),contentSuccessPrimary:uo.extend("--ft-content-success-primary","Used on label of success messages on light surface.",yo.colorGreen200),contentGlobalPrimary:uo.extend("--ft-content-global-primary","Used for main content on the page.",yo.colorGray500),contentGlobalSecondary:uo.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",yo.colorGray200),contentGlobalSubtle:uo.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",yo.colorGray0),contentGlobalOnColor:uo.extend("--ft-content-global-on-color","Used for content on a dominant color.",yo.colorWhite),borderActionPrimary:uo.extend("--ft-border-action-primary","Used as border for primary action components.",yo.colorBrand0),borderActionFocusRing:uo.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",yo.colorCyan0),borderWarningPrimary:uo.extend("--ft-border-warning-primary","Used as border for warning components.",yo.colorOrange30),borderSuccessPrimary:uo.extend("--ft-border-success-primary","Used as border for success components.",yo.colorGreen30),borderErrorPrimary:uo.extend("--ft-border-error-primary","Used as border for error components.",yo.colorRed30),borderInfoPrimary:uo.extend("--ft-border-info-primary","Used as border for information components.",yo.colorCyan30),borderGlobalSubtle:uo.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",yo.colorGray30),borderGlobalPrimary:uo.extend("--ft-border-global-primary","Used as border for element like input.",yo.colorGray50),borderInputPrimary:uo.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",yo.colorGray80)};uo.create("--ft-button-large-height","","SIZE","40px"),uo.extend("--ft-button-large-horizontal-padding","",yo.spacing4),uo.extend("--ft-button-large-gap","",yo.spacing2),uo.extend("--ft-button-large-border-radius","",yo.borderRadiusS),uo.extend("--ft-button-large-icon-size","",yo.iconSize3),uo.create("--ft-button-large-border-width","","SIZE","1px"),uo.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),uo.create("--ft-button-large-focus-outline-width","","SIZE","2px"),uo.create("--ft-button-large-icon-only-width","","SIZE","40px"),uo.create("--ft-button-small-height","","SIZE","30px"),uo.extend("--ft-button-small-horizontal-padding","",yo.spacing3),uo.extend("--ft-button-small-gap","",yo.spacing2),uo.extend("--ft-button-small-border-radius","",yo.borderRadiusS),uo.extend("--ft-button-small-icon-size","",yo.iconSize2),uo.create("--ft-button-small-border-width","","SIZE","1px"),uo.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),uo.create("--ft-button-small-focus-outline-width","","SIZE","2px"),uo.create("--ft-button-small-icon-only-width","","SIZE","30px"),uo.extend("--ft-button-primary-background-color","",go.backgroundActionPrimary),uo.extend("--ft-button-primary-color","",go.contentGlobalOnColor),uo.extend("--ft-button-primary-icon-color","",go.contentGlobalOnColor),uo.extend("--ft-button-primary-state-layer-color","",go.contentGlobalOnColor),uo.extend("--ft-button-primary-state-layer-opacity-hover","",yo.opacity16),uo.extend("--ft-button-primary-state-layer-opacity-focus","",yo.opacity16),uo.extend("--ft-button-primary-state-layer-opacity-active","",yo.opacity24),uo.extend("--ft-button-primary-component-opacity-disabled","",yo.opacity40),uo.extend("--ft-button-focus-focus-ring-color","",go.borderActionFocusRing),uo.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),uo.extend("--ft-button-tertiary-color","",go.contentActionPrimary),uo.extend("--ft-button-tertiary-icon-color","",go.contentActionPrimary),uo.extend("--ft-button-tertiary-state-layer-color","",go.contentActionPrimary),uo.extend("--ft-button-tertiary-state-layer-opacity-hover","",yo.opacity8),uo.extend("--ft-button-tertiary-state-layer-opacity-focus","",yo.opacity8),uo.extend("--ft-button-tertiary-state-layer-opacity-active","",yo.opacity16),uo.extend("--ft-button-tertiary-component-opacity-disabled","",yo.opacity40),uo.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),uo.extend("--ft-button-secondary-color","",go.contentActionPrimary),uo.extend("--ft-button-secondary-icon-color","",go.contentActionPrimary),uo.extend("--ft-button-secondary-state-layer-color","",go.contentActionPrimary),uo.extend("--ft-button-secondary-state-layer-opacity-hover","",yo.opacity8),uo.extend("--ft-button-secondary-state-layer-opacity-focus","",yo.opacity8),uo.extend("--ft-button-secondary-state-layer-opacity-active","",yo.opacity16),uo.extend("--ft-button-secondary-component-opacity-disabled","",yo.opacity40),uo.extend("--ft-button-secondary-border-color","",go.borderActionPrimary),uo.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),uo.extend("--ft-button-neutral-icon-color","",go.contentGlobalSecondary),uo.extend("--ft-button-neutral-color","",go.contentGlobalSecondary),uo.extend("--ft-button-neutral-state-layer-color","",go.contentGlobalSecondary),uo.extend("--ft-button-neutral-state-layer-opacity-hover","",yo.opacity8),uo.extend("--ft-button-neutral-state-layer-opacity-focus","",yo.opacity8),uo.extend("--ft-button-neutral-state-layer-opacity-active","",yo.opacity16),uo.extend("--ft-button-neutral-component-opacity-disabled","",yo.opacity40),uo.extend("--ft-tabs-top-left-border-radius","",yo.borderRadiusS),uo.extend("--ft-tabs-top-right-border-radius","",yo.borderRadiusS),uo.extend("--ft-tabs-label-horizontal-padding","",yo.spacing4),uo.extend("--ft-tabs-label-vertical-padding","",yo.spacing3),uo.extend("--ft-tabs-label-gap","",yo.spacing1),uo.extend("--ft-switch-group-horizontal-padding","",yo.spacing1),uo.extend("--ft-switch-group-vertical-padding","",yo.spacing1),uo.extend("--ft-switch-group-gap","",yo.spacing1),uo.extend("--ft-switch-group-background-color","",go.backgroundGlobalSurface),uo.extend("--ft-switch-group-border-color","",go.borderGlobalSubtle),uo.create("--ft-switch-group-border-radius","","SIZE","6px"),uo.extend("--ft-switch-label-horizontal-padding","",yo.spacing2),uo.extend("--ft-switch-label-vertical-padding","",yo.spacing1),uo.extend("--ft-switch-icon-horizontal-padding","",yo.spacing1),uo.extend("--ft-switch-icon-vertical-padding","",yo.spacing1),uo.create("--ft-switch-focus-outline-width","","SIZE","2px"),uo.extend("--ft-switch-focus-focus-ring-color","",go.borderActionFocusRing),uo.extend("--ft-switch-option-border-radius","",yo.borderRadiusS),uo.extend("--ft-switch-off-state-layer-opacity-hover","",yo.opacity8),uo.extend("--ft-switch-off-state-layer-opacity-focus","",yo.opacity8),uo.extend("--ft-switch-off-state-layer-opacity-active","",yo.opacity16),uo.extend("--ft-switch-off-component-opacity-disabled","",yo.opacity40),uo.extend("--ft-switch-off-color","",go.contentGlobalSubtle),uo.extend("--ft-switch-off-state-layer-color","",go.contentGlobalSubtle),uo.extend("--ft-chart-1-light","for area color charts",yo.colorBrand40),uo.extend("--ft-chart-1-base","for line charts",yo.colorBrand0),uo.extend("--ft-chart-2-light","for area color charts",yo.colorYellow60),uo.extend("--ft-chart-2-base","for line charts",yo.colorYellow100),uo.extend("--ft-chart-3-light","",yo.colorUltramarine40),uo.extend("--ft-chart-3-base","",yo.colorUltramarine70),uo.extend("--ft-chart-4-light","",yo.colorCyan50),uo.extend("--ft-chart-4-base","",yo.colorCyan100),uo.extend("--ft-chart-5-light","",yo.colorRed40),uo.extend("--ft-chart-5-base","",yo.colorRed60),uo.extend("--ft-chart-6-light","",yo.colorGreen40),uo.extend("--ft-chart-6-base","",yo.colorGreen70),uo.extend("--ft-chart-7-light","",yo.colorOrange70),uo.extend("--ft-chart-7-base","",yo.colorOrange100),uo.extend("--ft-chart-8-light","",yo.colorAvocado70),uo.extend("--ft-chart-8-base","",yo.colorAvocado200),uo.extend("--ft-chart-9-light","",yo.colorBrown50),uo.extend("--ft-chart-9-base","",yo.colorBrown200),uo.extend("--ft-chart-10-light","",yo.colorGray50),uo.extend("--ft-chart-10-base","",yo.colorGray80),uo.extend("--ft-chart-monochrome-10","",yo.colorBrand10),uo.extend("--ft-chart-monochrome-20","",yo.colorBrand20),uo.extend("--ft-chart-monochrome-30","",yo.colorBrand40),uo.extend("--ft-chart-monochrome-40","",yo.colorBrand60),uo.extend("--ft-chart-monochrome-50","",yo.colorBrand0),uo.extend("--ft-chart-monochrome-60","",yo.colorBrand200),uo.extend("--ft-chip-large-horizontal-padding","",yo.spacing4),uo.extend("--ft-chip-large-vertical-padding","",yo.spacing2),uo.extend("--ft-chip-large-gap","",yo.spacing1),uo.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),uo.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),uo.extend("--ft-chip-large-border-radius","",yo.borderRadiusPill),uo.create("--ft-chip-large-border-width","","SIZE","1px"),uo.extend("--ft-chip-large-icon-size","",yo.iconSize3),uo.extend("--ft-chip-medium-horizontal-padding","",yo.spacing3),uo.extend("--ft-chip-medium-vertical-padding","",yo.spacing1),uo.extend("--ft-chip-medium-gap","",yo.spacing1),uo.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),uo.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),uo.extend("--ft-chip-medium-border-radius","",yo.borderRadiusPill),uo.create("--ft-chip-medium-border-width","","SIZE","1px"),uo.extend("--ft-chip-medium-icon-size","",yo.iconSize2),uo.extend("--ft-chip-small-horizontal-padding","",yo.spacing2),uo.extend("--ft-chip-small-vertical-padding","",yo.spacing05),uo.extend("--ft-chip-small-gap","",yo.spacing1),uo.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),uo.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),uo.extend("--ft-chip-small-border-radius","",yo.borderRadiusPill),uo.create("--ft-chip-small-border-width","","SIZE","1px"),uo.extend("--ft-chip-small-icon-size","",yo.iconSize1),uo.extend("--ft-chip-neutral-background-color","",go.backgroundGlobalOnSurface),uo.extend("--ft-chip-neutral-color","",go.contentGlobalPrimary),uo.extend("--ft-chip-neutral-border-color","",go.borderGlobalSubtle),uo.extend("--ft-chip-info-background-color","",go.backgroundInfoSubtle),uo.extend("--ft-chip-info-color","",go.contentInfoPrimary),uo.extend("--ft-chip-info-border-color","",go.borderInfoPrimary),uo.extend("--ft-chip-success-background-color","",go.backgroundSuccessSubtle),uo.extend("--ft-chip-success-color","",go.contentSuccessPrimary),uo.extend("--ft-chip-success-border-color","",go.borderSuccessPrimary),uo.extend("--ft-chip-warning-background-color","",go.backgroundWarningSubtle),uo.extend("--ft-chip-warning-color","",go.contentWarningPrimary),uo.extend("--ft-chip-warning-border-color","",go.borderWarningPrimary),uo.extend("--ft-chip-error-background-color","",go.backgroundErrorSubtle),uo.extend("--ft-chip-error-color","",go.contentErrorPrimary),uo.extend("--ft-chip-error-border-color","",go.borderErrorPrimary),uo.create("--ft-notice-border-width","","SIZE","1px"),uo.extend("--ft-notice-horizontal-padding","",yo.spacing2),uo.extend("--ft-notice-vertical-padding","",yo.spacing1),uo.extend("--ft-notice-border-radius","",yo.borderRadiusS),uo.extend("--ft-notice-gap","",yo.spacing2),uo.extend("--ft-notice-icon-size","",yo.iconSize3),uo.extend("--ft-notice-info-background-color","",go.backgroundInfoSubtle),uo.extend("--ft-notice-info-border-color","",go.borderInfoPrimary),uo.extend("--ft-notice-info-color","",go.contentInfoPrimary),uo.extend("--ft-notice-warning-background-color","",go.backgroundWarningSubtle),uo.extend("--ft-notice-warning-border-color","",go.borderWarningPrimary),uo.extend("--ft-notice-warning-color","",go.contentWarningPrimary),uo.extend("--ft-checkbox-label-color","",go.contentGlobalPrimary),uo.extend("--ft-checkbox-checked-background-color","",go.contentActionPrimary),uo.extend("--ft-checkbox-checked-state-layer-color","",go.contentActionPrimary),uo.extend("--ft-checkbox-checked-color","",go.contentGlobalOnColor),uo.extend("--ft-checkbox-checked-state-layer-opacity-hover","",yo.opacity16),uo.extend("--ft-checkbox-checked-state-layer-opacity-focus","",yo.opacity16),uo.extend("--ft-checkbox-checked-state-layer-opacity-active","",yo.opacity24),uo.extend("--ft-checkbox-checked-component-opacity-disabled","",yo.opacity40),uo.extend("--ft-checkbox-unchecked-border-color","",yo.colorGray80),uo.extend("--ft-checkbox-unchecked-state-layer-color","",yo.colorGray80),uo.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",yo.opacity16),uo.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",yo.opacity16),uo.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",yo.opacity24),uo.extend("--ft-checkbox-unchecked-component-opacity-disabled","",yo.opacity40),uo.extend("--ft-checkbox-focus-focus-ring-color","",go.borderActionFocusRing),uo.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),uo.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),uo.extend("--ft-checkbox-gap","",yo.spacing3),uo.extend("--ft-toggle-off-state-layer-opacity-hover","",yo.opacity16),uo.extend("--ft-toggle-off-state-layer-opacity-focus","",yo.opacity16),uo.extend("--ft-toggle-off-state-layer-opacity-active","",yo.opacity24),uo.extend("--ft-toggle-off-component-opacity-disabled","",yo.opacity40),uo.extend("--ft-toggle-off-background-color","",go.contentGlobalSubtle),uo.extend("--ft-toggle-off-icon-color","",go.contentGlobalSubtle),uo.extend("--ft-toggle-off-state-layer-color","",go.contentGlobalSubtle),uo.extend("--ft-toggle-on-state-layer-opacity-hover","",yo.opacity16),uo.extend("--ft-toggle-on-state-layer-opacity-focus","",yo.opacity16),uo.extend("--ft-toggle-on-state-layer-opacity-active","",yo.opacity24),uo.extend("--ft-toggle-on-component-opacity-disabled","",yo.opacity40),uo.extend("--ft-toggle-on-background-color","",go.contentActionPrimary),uo.extend("--ft-toggle-on-icon-color","",go.contentActionPrimary),uo.extend("--ft-toggle-on-state-layer-color","",go.contentActionPrimary),uo.extend("--ft-toggle-label-color","",go.contentGlobalPrimary),uo.extend("--ft-toggle-focus-focus-ring-color","",go.borderActionFocusRing),uo.extend("--ft-toggle-gap","",yo.spacing3),uo.extend("--ft-radio-label-color","",go.contentGlobalPrimary),uo.extend("--ft-radio-selected-color","",go.contentActionPrimary),uo.extend("--ft-radio-selected-state-layer-color","",go.contentActionPrimary),uo.extend("--ft-radio-selected-state-layer-opacity-hover","",yo.opacity16),uo.extend("--ft-radio-selected-state-layer-opacity-focus","",yo.opacity16),uo.extend("--ft-radio-selected-state-layer-opacity-active","",yo.opacity24),uo.extend("--ft-radio-selected-component-opacity-disabled","",yo.opacity40),uo.extend("--ft-radio-unselected-state-layer-color","",yo.colorGray80),uo.extend("--ft-radio-unselected-state-layer-opacity-hover","",yo.opacity16),uo.extend("--ft-radio-unselected-state-layer-opacity-focus","",yo.opacity16),uo.extend("--ft-radio-unselected-state-layer-opacity-active","",yo.opacity24),uo.extend("--ft-radio-unselected-component-opacity-disabled","",yo.opacity40),uo.extend("--ft-radio-focus-focus-ring-color","",go.borderActionFocusRing),uo.create("--ft-radio-focus-outline-offset","","SIZE","3px"),uo.create("--ft-radio-focus-outline-width","","SIZE","2px"),uo.extend("--ft-radio-gap","",yo.spacing3),uo.extend("--ft-notification-icon-size","",yo.iconSize4),uo.extend("--ft-notification-horizontal-padding","",yo.spacing4),uo.extend("--ft-notification-vertical-padding","",yo.spacing4),uo.extend("--ft-notification-info-background-color","",go.backgroundInfoSubtle),uo.extend("--ft-notification-info-color","",go.contentInfoPrimary),uo.extend("--ft-notification-info-border-color","",go.borderInfoPrimary),uo.extend("--ft-notification-success-background-color","",go.backgroundSuccessSubtle),uo.extend("--ft-notification-success-color","",go.contentSuccessPrimary),uo.extend("--ft-notification-success-border-color","",go.borderSuccessPrimary),uo.extend("--ft-notification-warning-background-color","",go.backgroundWarningSubtle),uo.extend("--ft-notification-warning-color","",go.contentWarningPrimary),uo.extend("--ft-notification-warning-border-color","",go.borderWarningPrimary),uo.extend("--ft-notification-error-background-color","",go.backgroundErrorSubtle),uo.extend("--ft-notification-error-color","",go.contentErrorPrimary),uo.extend("--ft-notification-error-border-color","",go.borderErrorPrimary),uo.extend("--ft-notification-border-radius","",yo.borderRadiusPill),uo.create("--ft-notification-border-width","","SIZE","1px"),uo.extend("--ft-notification-gap-leading","",yo.spacing2),uo.extend("--ft-notification-gap-trailing","",yo.spacing8),uo.create("--ft-color-primary","","COLOR","#2196F3"),uo.create("--ft-color-primary-variant","","COLOR","#1976D2"),uo.create("--ft-color-secondary","","COLOR","#FFCC80"),uo.create("--ft-color-secondary-variant","","COLOR","#F57C00"),uo.create("--ft-color-surface","","COLOR","#FFFFFF"),uo.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),uo.create("--ft-color-error","","COLOR","#B00020"),uo.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),uo.create("--ft-color-opacity-high","","NUMBER","1"),uo.create("--ft-color-opacity-medium","","NUMBER","0.74"),uo.create("--ft-color-opacity-disabled","","NUMBER","0.38"),uo.create("--ft-color-on-primary","","COLOR","#FFFFFF"),uo.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),uo.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),uo.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),uo.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),uo.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),uo.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),uo.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),uo.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),uo.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),uo.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),uo.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),uo.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),uo.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),uo.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),uo.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),uo.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),uo.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),uo.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),uo.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),uo.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),uo.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),uo.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),uo.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),uo.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),uo.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),uo.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),uo.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),uo.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),uo.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),uo.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),uo.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),uo.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),uo.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)"),uo.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)"),uo.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)"),uo.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)"),uo.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)"),uo.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)"),uo.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)"),uo.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)"),uo.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)"),uo.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)"),uo.create("--ft-border-radius-S","","SIZE","4px"),uo.create("--ft-border-radius-M","","SIZE","8px"),uo.create("--ft-border-radius-L","","SIZE","12px"),uo.create("--ft-border-radius-XL","","SIZE","16px"),uo.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),uo.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),uo.create("--ft-transition-duration","","UNKNOWN","250ms"),uo.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out");
65
+ class ho extends Et{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,o,e)=>{const r=e?.renderBefore??o;let i=r._$litPart$;if(void 0===i){const t=e?.renderBefore??null;r._$litPart$=i=new ro(o.insertBefore(Ft(),t),t,void 0,e??{})}return i._$AI(t),i})(o,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Jt}}ho._$litElement$=!0,ho.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ho});const fo=globalThis.litElementPolyfillSupport;fo?.({LitElement:ho}),(globalThis.litElementVersions??=[]).push("4.0.2");const po=t=>"string"==typeof t?ft(t):t;class yo{static create(t,o,e,r){const i=t=>po(null!=t?t:r),a=pt`var(${po(t)}, ${i(r)})`;return a.name=t,a.description=o,a.category=e,a.defaultValue=r,a.defaultCssValue=i,a.get=o=>pt`var(${po(t)}, ${i(o)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>r,a}static extend(t,o,e,r){const i=t=>e.get(null!=t?t:r),a=pt`var(${po(t)}, ${i(r)})`;return a.name=t,a.description=o,a.category=e.category,a.fallbackVariable=e,a.defaultValue=r,a.defaultCssValue=i,a.get=o=>pt`var(${po(t)}, ${i(o)})`,a.breadcrumb=()=>[e.name,...e.breadcrumb()],a.lastResortDefaultValue=()=>null!=r?r:e.lastResortDefaultValue(),a}static external(t,o){const e=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):po(null!=o?o:t.lastResortDefaultValue()),r=pt`var(${po(t.name)}, ${e(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=e,r.get=o=>pt`var(${po(t.name)}, ${e(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const uo={colorWhite:yo.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:yo.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:yo.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:yo.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:yo.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:yo.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:yo.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:yo.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:yo.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:yo.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:yo.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:yo.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:yo.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:yo.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:yo.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:yo.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:yo.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:yo.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:yo.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:yo.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:yo.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:yo.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:yo.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:yo.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:yo.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:yo.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:yo.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:yo.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:yo.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:yo.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:yo.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:yo.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:yo.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:yo.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:yo.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:yo.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:yo.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:yo.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:yo.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:yo.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:yo.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:yo.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:yo.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:yo.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:yo.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:yo.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:yo.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:yo.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:yo.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:yo.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:yo.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:yo.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:yo.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:yo.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:yo.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:yo.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:yo.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:yo.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:yo.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:yo.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:yo.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:yo.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:yo.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:yo.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:yo.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:yo.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:yo.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:yo.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:yo.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:yo.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:yo.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:yo.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:yo.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:yo.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:yo.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:yo.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:yo.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:yo.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:yo.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:yo.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:yo.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:yo.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:yo.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:yo.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:yo.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:yo.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:yo.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:yo.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:yo.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:yo.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:yo.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:yo.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:yo.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:yo.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:yo.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:yo.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:yo.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:yo.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:yo.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:yo.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:yo.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:yo.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:yo.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:yo.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:yo.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:yo.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:yo.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:yo.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:yo.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:yo.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:yo.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:yo.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:yo.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:yo.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:yo.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:yo.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:yo.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:yo.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:yo.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:yo.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:yo.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:yo.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:yo.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:yo.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:yo.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:yo.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:yo.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:yo.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:yo.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:yo.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:yo.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:yo.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:yo.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:yo.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:yo.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:yo.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:yo.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:yo.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:yo.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:yo.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:yo.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:yo.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:yo.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:yo.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:yo.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:yo.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:yo.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:yo.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:yo.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:yo.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:yo.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:yo.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:yo.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:yo.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:yo.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:yo.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:yo.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:yo.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:yo.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:yo.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:yo.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:yo.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:yo.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:yo.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:yo.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:yo.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:yo.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:yo.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:yo.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:yo.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:yo.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:yo.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:yo.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:yo.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:yo.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:yo.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:yo.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:yo.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:yo.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:yo.create("--ft-icon-size-6","","SIZE","48px"),opacity0:yo.create("--ft-opacity-0","","NUMBER","0"),opacity8:yo.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:yo.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:yo.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:yo.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:yo.create("--ft-opacity-80","","NUMBER","0.8")};yo.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),yo.create("--ft-typography-display-lineHeight","","SIZE","120%"),yo.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),yo.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),yo.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-display-textCase","","UNKNOWN","none"),yo.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),yo.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),yo.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),yo.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),yo.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-title-1-textCase","","UNKNOWN","none"),yo.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),yo.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),yo.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),yo.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),yo.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-title-2-textCase","","UNKNOWN","none"),yo.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),yo.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),yo.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),yo.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),yo.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-title-3-textCase","","UNKNOWN","none"),yo.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),yo.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),yo.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),yo.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),yo.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none"),yo.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),yo.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),yo.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),yo.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),yo.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none"),yo.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),yo.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),yo.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),yo.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),yo.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none"),yo.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),yo.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),yo.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),yo.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),yo.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none"),yo.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),yo.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),yo.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),yo.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),yo.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none"),yo.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),yo.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),yo.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),yo.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),yo.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none"),yo.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),yo.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),yo.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),yo.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),yo.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),yo.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),yo.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),yo.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),yo.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),yo.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),yo.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),yo.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),yo.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),yo.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),yo.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),yo.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),yo.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),yo.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),yo.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),yo.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),yo.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),yo.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),yo.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),yo.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),yo.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),yo.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),yo.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),yo.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),yo.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),yo.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),yo.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),yo.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),yo.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),yo.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),yo.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),yo.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),yo.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),yo.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),yo.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),yo.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),yo.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),yo.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),yo.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),yo.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),yo.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),yo.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),yo.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),yo.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),yo.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),yo.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),yo.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),yo.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),yo.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),yo.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),yo.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),yo.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none"),yo.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),yo.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),yo.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),yo.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),yo.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),yo.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),yo.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),yo.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),yo.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none");const go={backgroundActionPrimary:yo.extend("--ft-background-action-primary","Used as backgorund of primary action components.",uo.colorBrand0),backgroundErrorPrimary:yo.extend("--ft-background-error-primary","Used as background of error components.",uo.colorRed0),backgroundErrorSubtle:yo.extend("--ft-background-error-subtle","Used as background of subtle error components.",uo.colorRed10),backgroundInfoPrimary:yo.extend("--ft-background-info-primary","Used as background of information components.",uo.colorCyan200),backgroundInfoSubtle:yo.extend("--ft-background-info-subtle","Used as background of subtle information components.",uo.colorCyan10),backgroundWarningPrimary:yo.extend("--ft-background-warning-primary","Used as background of warning components.",uo.colorOrange300),backgroundWarningSubtle:yo.extend("--ft-background-warning-subtle","Used as background of subtle information components.",uo.colorOrange10),backgroundSuccessPrimary:yo.extend("--ft-background-success-primary","Used as background of success components.",uo.colorGreen200),backgroundSuccessSubtle:yo.extend("--ft-background-success-subtle","Used as background of subtle success components.",uo.colorGreen10),backgroundGlobalSurface:yo.extend("--ft-background-global-surface","Used as app background.",uo.colorWhite),backgroundGlobalOnSurface:yo.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",uo.colorGray10),backgroundGlobalOnSurfaceDark:yo.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",uo.colorGray30),contentActionPrimary:yo.extend("--ft-content-action-primary","Used on label of primary action on light surface.",uo.colorBrand0),contentWarningPrimary:yo.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",uo.colorOrange300),contentWarningIconOnly:yo.extend("--ft-content-warning-icon-only","Used on warning status icons alone",uo.colorOrange0),contentErrorPrimary:yo.extend("--ft-content-error-primary","Used on label of error messages on light surface.",uo.colorRed0),contentErrorIconOnly:yo.extend("--ft-content-error-icon-only","Used on error status icons alone",uo.colorRed0),contentInfoPrimary:yo.extend("--ft-content-info-primary","Used on label of information messages on light surface.",uo.colorCyan200),contentInfoIconOnly:yo.extend("--ft-content-info-icon-only","Used on info status icons alone",uo.colorCyan0),contentSuccessIconOnly:yo.extend("--ft-content-success-icon-only","Used on success status icons alone",uo.colorGreen0),contentSuccessPrimary:yo.extend("--ft-content-success-primary","Used on label of success messages on light surface.",uo.colorGreen200),contentGlobalPrimary:yo.extend("--ft-content-global-primary","Used for main content on the page.",uo.colorGray500),contentGlobalSecondary:yo.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",uo.colorGray200),contentGlobalSubtle:yo.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",uo.colorGray0),contentGlobalOnColor:yo.extend("--ft-content-global-on-color","Used for content on a dominant color.",uo.colorWhite),borderActionPrimary:yo.extend("--ft-border-action-primary","Used as border for primary action components.",uo.colorBrand0),borderActionFocusRing:yo.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",uo.colorCyan0),borderWarningPrimary:yo.extend("--ft-border-warning-primary","Used as border for warning components.",uo.colorOrange30),borderSuccessPrimary:yo.extend("--ft-border-success-primary","Used as border for success components.",uo.colorGreen30),borderErrorPrimary:yo.extend("--ft-border-error-primary","Used as border for error components.",uo.colorRed30),borderInfoPrimary:yo.extend("--ft-border-info-primary","Used as border for information components.",uo.colorCyan30),borderGlobalSubtle:yo.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",uo.colorGray30),borderGlobalPrimary:yo.extend("--ft-border-global-primary","Used as border for element like input.",uo.colorGray50),borderInputPrimary:yo.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",uo.colorGray80)};yo.create("--ft-button-large-height","","SIZE","40px"),yo.extend("--ft-button-large-horizontal-padding","",uo.spacing4),yo.extend("--ft-button-large-gap","",uo.spacing2),yo.extend("--ft-button-large-border-radius","",uo.borderRadiusS),yo.extend("--ft-button-large-icon-size","",uo.iconSize3),yo.create("--ft-button-large-border-width","","SIZE","1px"),yo.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),yo.create("--ft-button-large-focus-outline-width","","SIZE","2px"),yo.create("--ft-button-large-icon-only-width","","SIZE","40px"),yo.create("--ft-button-small-height","","SIZE","30px"),yo.extend("--ft-button-small-horizontal-padding","",uo.spacing3),yo.extend("--ft-button-small-gap","",uo.spacing2),yo.extend("--ft-button-small-border-radius","",uo.borderRadiusS),yo.extend("--ft-button-small-icon-size","",uo.iconSize2),yo.create("--ft-button-small-border-width","","SIZE","1px"),yo.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),yo.create("--ft-button-small-focus-outline-width","","SIZE","2px"),yo.create("--ft-button-small-icon-only-width","","SIZE","30px"),yo.extend("--ft-button-primary-background-color","",go.backgroundActionPrimary),yo.extend("--ft-button-primary-color","",go.contentGlobalOnColor),yo.extend("--ft-button-primary-icon-color","",go.contentGlobalOnColor),yo.extend("--ft-button-primary-state-layer-color","",go.contentGlobalOnColor),yo.extend("--ft-button-primary-state-layer-opacity-hover","",uo.opacity16),yo.extend("--ft-button-primary-state-layer-opacity-focus","",uo.opacity16),yo.extend("--ft-button-primary-state-layer-opacity-active","",uo.opacity24),yo.extend("--ft-button-primary-component-opacity-disabled","",uo.opacity40),yo.extend("--ft-button-focus-focus-ring-color","",go.borderActionFocusRing),yo.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),yo.extend("--ft-button-tertiary-color","",go.contentActionPrimary),yo.extend("--ft-button-tertiary-icon-color","",go.contentActionPrimary),yo.extend("--ft-button-tertiary-state-layer-color","",go.contentActionPrimary),yo.extend("--ft-button-tertiary-state-layer-opacity-hover","",uo.opacity8),yo.extend("--ft-button-tertiary-state-layer-opacity-focus","",uo.opacity8),yo.extend("--ft-button-tertiary-state-layer-opacity-active","",uo.opacity16),yo.extend("--ft-button-tertiary-component-opacity-disabled","",uo.opacity40),yo.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),yo.extend("--ft-button-secondary-color","",go.contentActionPrimary),yo.extend("--ft-button-secondary-icon-color","",go.contentActionPrimary),yo.extend("--ft-button-secondary-state-layer-color","",go.contentActionPrimary),yo.extend("--ft-button-secondary-state-layer-opacity-hover","",uo.opacity8),yo.extend("--ft-button-secondary-state-layer-opacity-focus","",uo.opacity8),yo.extend("--ft-button-secondary-state-layer-opacity-active","",uo.opacity16),yo.extend("--ft-button-secondary-component-opacity-disabled","",uo.opacity40),yo.extend("--ft-button-secondary-border-color","",go.borderActionPrimary),yo.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),yo.extend("--ft-button-neutral-icon-color","",go.contentGlobalSecondary),yo.extend("--ft-button-neutral-color","",go.contentGlobalSecondary),yo.extend("--ft-button-neutral-state-layer-color","",go.contentGlobalSecondary),yo.extend("--ft-button-neutral-state-layer-opacity-hover","",uo.opacity8),yo.extend("--ft-button-neutral-state-layer-opacity-focus","",uo.opacity8),yo.extend("--ft-button-neutral-state-layer-opacity-active","",uo.opacity16),yo.extend("--ft-button-neutral-component-opacity-disabled","",uo.opacity40),yo.extend("--ft-tabs-top-left-border-radius","",uo.borderRadiusS),yo.extend("--ft-tabs-top-right-border-radius","",uo.borderRadiusS),yo.extend("--ft-tabs-label-horizontal-padding","",uo.spacing4),yo.extend("--ft-tabs-label-vertical-padding","",uo.spacing3),yo.extend("--ft-tabs-label-gap","",uo.spacing1),yo.extend("--ft-switch-group-horizontal-padding","",uo.spacing1),yo.extend("--ft-switch-group-vertical-padding","",uo.spacing1),yo.extend("--ft-switch-group-gap","",uo.spacing1),yo.extend("--ft-switch-group-background-color","",go.backgroundGlobalSurface),yo.extend("--ft-switch-group-border-color","",go.borderGlobalSubtle),yo.create("--ft-switch-group-border-radius","","SIZE","6px"),yo.extend("--ft-switch-label-horizontal-padding","",uo.spacing2),yo.extend("--ft-switch-label-vertical-padding","",uo.spacing1),yo.extend("--ft-switch-icon-horizontal-padding","",uo.spacing1),yo.extend("--ft-switch-icon-vertical-padding","",uo.spacing1),yo.create("--ft-switch-focus-outline-width","","SIZE","2px"),yo.extend("--ft-switch-focus-focus-ring-color","",go.borderActionFocusRing),yo.extend("--ft-switch-option-border-radius","",uo.borderRadiusS),yo.extend("--ft-switch-off-state-layer-opacity-hover","",uo.opacity8),yo.extend("--ft-switch-off-state-layer-opacity-focus","",uo.opacity8),yo.extend("--ft-switch-off-state-layer-opacity-active","",uo.opacity16),yo.extend("--ft-switch-off-component-opacity-disabled","",uo.opacity40),yo.extend("--ft-switch-off-color","",go.contentGlobalSubtle),yo.extend("--ft-switch-off-state-layer-color","",go.contentGlobalSubtle),yo.extend("--ft-chart-1-light","for area color charts",uo.colorBrand40),yo.extend("--ft-chart-1-base","for line charts",uo.colorBrand0),yo.extend("--ft-chart-2-light","for area color charts",uo.colorYellow60),yo.extend("--ft-chart-2-base","for line charts",uo.colorYellow100),yo.extend("--ft-chart-3-light","",uo.colorUltramarine40),yo.extend("--ft-chart-3-base","",uo.colorUltramarine70),yo.extend("--ft-chart-4-light","",uo.colorCyan50),yo.extend("--ft-chart-4-base","",uo.colorCyan100),yo.extend("--ft-chart-5-light","",uo.colorRed40),yo.extend("--ft-chart-5-base","",uo.colorRed60),yo.extend("--ft-chart-6-light","",uo.colorGreen40),yo.extend("--ft-chart-6-base","",uo.colorGreen70),yo.extend("--ft-chart-7-light","",uo.colorOrange70),yo.extend("--ft-chart-7-base","",uo.colorOrange100),yo.extend("--ft-chart-8-light","",uo.colorAvocado70),yo.extend("--ft-chart-8-base","",uo.colorAvocado200),yo.extend("--ft-chart-9-light","",uo.colorBrown50),yo.extend("--ft-chart-9-base","",uo.colorBrown200),yo.extend("--ft-chart-10-light","",uo.colorGray50),yo.extend("--ft-chart-10-base","",uo.colorGray80),yo.extend("--ft-chart-monochrome-10","",uo.colorBrand10),yo.extend("--ft-chart-monochrome-20","",uo.colorBrand20),yo.extend("--ft-chart-monochrome-30","",uo.colorBrand40),yo.extend("--ft-chart-monochrome-40","",uo.colorBrand60),yo.extend("--ft-chart-monochrome-50","",uo.colorBrand0),yo.extend("--ft-chart-monochrome-60","",uo.colorBrand200),yo.extend("--ft-chip-large-horizontal-padding","",uo.spacing4),yo.extend("--ft-chip-large-vertical-padding","",uo.spacing2),yo.extend("--ft-chip-large-gap","",uo.spacing1),yo.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),yo.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),yo.extend("--ft-chip-large-border-radius","",uo.borderRadiusPill),yo.create("--ft-chip-large-border-width","","SIZE","1px"),yo.extend("--ft-chip-large-icon-size","",uo.iconSize3),yo.extend("--ft-chip-medium-horizontal-padding","",uo.spacing3),yo.extend("--ft-chip-medium-vertical-padding","",uo.spacing1),yo.extend("--ft-chip-medium-gap","",uo.spacing1),yo.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),yo.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),yo.extend("--ft-chip-medium-border-radius","",uo.borderRadiusPill),yo.create("--ft-chip-medium-border-width","","SIZE","1px"),yo.extend("--ft-chip-medium-icon-size","",uo.iconSize2),yo.extend("--ft-chip-small-horizontal-padding","",uo.spacing2),yo.extend("--ft-chip-small-vertical-padding","",uo.spacing05),yo.extend("--ft-chip-small-gap","",uo.spacing1),yo.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),yo.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),yo.extend("--ft-chip-small-border-radius","",uo.borderRadiusPill),yo.create("--ft-chip-small-border-width","","SIZE","1px"),yo.extend("--ft-chip-small-icon-size","",uo.iconSize1),yo.extend("--ft-chip-neutral-background-color","",go.backgroundGlobalOnSurface),yo.extend("--ft-chip-neutral-color","",go.contentGlobalPrimary),yo.extend("--ft-chip-neutral-border-color","",go.borderGlobalSubtle),yo.extend("--ft-chip-info-background-color","",go.backgroundInfoSubtle),yo.extend("--ft-chip-info-color","",go.contentInfoPrimary),yo.extend("--ft-chip-info-border-color","",go.borderInfoPrimary),yo.extend("--ft-chip-success-background-color","",go.backgroundSuccessSubtle),yo.extend("--ft-chip-success-color","",go.contentSuccessPrimary),yo.extend("--ft-chip-success-border-color","",go.borderSuccessPrimary),yo.extend("--ft-chip-warning-background-color","",go.backgroundWarningSubtle),yo.extend("--ft-chip-warning-color","",go.contentWarningPrimary),yo.extend("--ft-chip-warning-border-color","",go.borderWarningPrimary),yo.extend("--ft-chip-error-background-color","",go.backgroundErrorSubtle),yo.extend("--ft-chip-error-color","",go.contentErrorPrimary),yo.extend("--ft-chip-error-border-color","",go.borderErrorPrimary),yo.create("--ft-notice-border-width","","SIZE","1px"),yo.extend("--ft-notice-horizontal-padding","",uo.spacing2),yo.extend("--ft-notice-vertical-padding","",uo.spacing1),yo.extend("--ft-notice-border-radius","",uo.borderRadiusS),yo.extend("--ft-notice-gap","",uo.spacing2),yo.extend("--ft-notice-icon-size","",uo.iconSize3),yo.extend("--ft-notice-info-background-color","",go.backgroundInfoSubtle),yo.extend("--ft-notice-info-border-color","",go.borderInfoPrimary),yo.extend("--ft-notice-info-color","",go.contentInfoPrimary),yo.extend("--ft-notice-warning-background-color","",go.backgroundWarningSubtle),yo.extend("--ft-notice-warning-border-color","",go.borderWarningPrimary),yo.extend("--ft-notice-warning-color","",go.contentWarningPrimary),yo.extend("--ft-checkbox-label-color","",go.contentGlobalPrimary),yo.extend("--ft-checkbox-checked-background-color","",go.contentActionPrimary),yo.extend("--ft-checkbox-checked-state-layer-color","",go.contentActionPrimary),yo.extend("--ft-checkbox-checked-color","",go.contentGlobalOnColor),yo.extend("--ft-checkbox-checked-state-layer-opacity-hover","",uo.opacity16),yo.extend("--ft-checkbox-checked-state-layer-opacity-focus","",uo.opacity16),yo.extend("--ft-checkbox-checked-state-layer-opacity-active","",uo.opacity24),yo.extend("--ft-checkbox-checked-component-opacity-disabled","",uo.opacity40),yo.extend("--ft-checkbox-unchecked-border-color","",uo.colorGray80),yo.extend("--ft-checkbox-unchecked-state-layer-color","",uo.colorGray80),yo.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",uo.opacity16),yo.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",uo.opacity16),yo.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",uo.opacity24),yo.extend("--ft-checkbox-unchecked-component-opacity-disabled","",uo.opacity40),yo.extend("--ft-checkbox-focus-focus-ring-color","",go.borderActionFocusRing),yo.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),yo.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),yo.extend("--ft-checkbox-gap","",uo.spacing3),yo.extend("--ft-toggle-off-state-layer-opacity-hover","",uo.opacity16),yo.extend("--ft-toggle-off-state-layer-opacity-focus","",uo.opacity16),yo.extend("--ft-toggle-off-state-layer-opacity-active","",uo.opacity24),yo.extend("--ft-toggle-off-component-opacity-disabled","",uo.opacity40),yo.extend("--ft-toggle-off-background-color","",go.contentGlobalSubtle),yo.extend("--ft-toggle-off-icon-color","",go.contentGlobalSubtle),yo.extend("--ft-toggle-off-state-layer-color","",go.contentGlobalSubtle),yo.extend("--ft-toggle-on-state-layer-opacity-hover","",uo.opacity16),yo.extend("--ft-toggle-on-state-layer-opacity-focus","",uo.opacity16),yo.extend("--ft-toggle-on-state-layer-opacity-active","",uo.opacity24),yo.extend("--ft-toggle-on-component-opacity-disabled","",uo.opacity40),yo.extend("--ft-toggle-on-background-color","",go.contentActionPrimary),yo.extend("--ft-toggle-on-icon-color","",go.contentActionPrimary),yo.extend("--ft-toggle-on-state-layer-color","",go.contentActionPrimary),yo.extend("--ft-toggle-label-color","",go.contentGlobalPrimary),yo.extend("--ft-toggle-focus-focus-ring-color","",go.borderActionFocusRing),yo.extend("--ft-toggle-gap","",uo.spacing3),yo.extend("--ft-radio-label-color","",go.contentGlobalPrimary),yo.extend("--ft-radio-selected-color","",go.contentActionPrimary),yo.extend("--ft-radio-selected-state-layer-color","",go.contentActionPrimary),yo.extend("--ft-radio-selected-state-layer-opacity-hover","",uo.opacity16),yo.extend("--ft-radio-selected-state-layer-opacity-focus","",uo.opacity16),yo.extend("--ft-radio-selected-state-layer-opacity-active","",uo.opacity24),yo.extend("--ft-radio-selected-component-opacity-disabled","",uo.opacity40),yo.extend("--ft-radio-unselected-state-layer-color","",uo.colorGray80),yo.extend("--ft-radio-unselected-state-layer-opacity-hover","",uo.opacity16),yo.extend("--ft-radio-unselected-state-layer-opacity-focus","",uo.opacity16),yo.extend("--ft-radio-unselected-state-layer-opacity-active","",uo.opacity24),yo.extend("--ft-radio-unselected-component-opacity-disabled","",uo.opacity40),yo.extend("--ft-radio-focus-focus-ring-color","",go.borderActionFocusRing),yo.create("--ft-radio-focus-outline-offset","","SIZE","3px"),yo.create("--ft-radio-focus-outline-width","","SIZE","2px"),yo.extend("--ft-radio-gap","",uo.spacing3),yo.extend("--ft-notification-icon-size","",uo.iconSize4),yo.extend("--ft-notification-horizontal-padding","",uo.spacing4),yo.extend("--ft-notification-vertical-padding","",uo.spacing4),yo.extend("--ft-notification-info-background-color","",go.backgroundInfoSubtle),yo.extend("--ft-notification-info-color","",go.contentInfoPrimary),yo.extend("--ft-notification-info-border-color","",go.borderInfoPrimary),yo.extend("--ft-notification-success-background-color","",go.backgroundSuccessSubtle),yo.extend("--ft-notification-success-color","",go.contentSuccessPrimary),yo.extend("--ft-notification-success-border-color","",go.borderSuccessPrimary),yo.extend("--ft-notification-warning-background-color","",go.backgroundWarningSubtle),yo.extend("--ft-notification-warning-color","",go.contentWarningPrimary),yo.extend("--ft-notification-warning-border-color","",go.borderWarningPrimary),yo.extend("--ft-notification-error-background-color","",go.backgroundErrorSubtle),yo.extend("--ft-notification-error-color","",go.contentErrorPrimary),yo.extend("--ft-notification-error-border-color","",go.borderErrorPrimary),yo.extend("--ft-notification-border-radius","",uo.borderRadiusPill),yo.create("--ft-notification-border-width","","SIZE","1px"),yo.extend("--ft-notification-gap-leading","",uo.spacing2),yo.extend("--ft-notification-gap-trailing","",uo.spacing8),yo.create("--ft-color-primary","","COLOR","#2196F3"),yo.create("--ft-color-primary-variant","","COLOR","#1976D2"),yo.create("--ft-color-secondary","","COLOR","#FFCC80"),yo.create("--ft-color-secondary-variant","","COLOR","#F57C00"),yo.create("--ft-color-surface","","COLOR","#FFFFFF"),yo.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),yo.create("--ft-color-error","","COLOR","#B00020"),yo.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),yo.create("--ft-color-opacity-high","","NUMBER","1"),yo.create("--ft-color-opacity-medium","","NUMBER","0.74"),yo.create("--ft-color-opacity-disabled","","NUMBER","0.38"),yo.create("--ft-color-on-primary","","COLOR","#FFFFFF"),yo.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),yo.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),yo.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),yo.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),yo.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),yo.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),yo.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),yo.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),yo.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),yo.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),yo.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),yo.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),yo.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),yo.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),yo.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),yo.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),yo.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),yo.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),yo.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),yo.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),yo.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),yo.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),yo.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),yo.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),yo.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),yo.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),yo.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),yo.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),yo.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),yo.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),yo.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),yo.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),yo.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)"),yo.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)"),yo.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)"),yo.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)"),yo.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)"),yo.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)"),yo.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)"),yo.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)"),yo.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)"),yo.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)"),yo.create("--ft-border-radius-S","","SIZE","4px"),yo.create("--ft-border-radius-M","","SIZE","8px"),yo.create("--ft-border-radius-L","","SIZE","12px"),yo.create("--ft-border-radius-XL","","SIZE","16px"),yo.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),yo.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),yo.create("--ft-transition-duration","","UNKNOWN","250ms"),yo.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out");
61
66
  /**
62
67
  * @license
63
68
  * Copyright 2019 Google LLC
64
69
  * SPDX-License-Identifier: BSD-3-Clause
65
70
  */
66
- const bo=window,mo=bo.ShadowRoot&&(void 0===bo.ShadyCSS||bo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Oo extends ho{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{mo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=bo.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var No,So=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const wo=Symbol("constructorPrototype"),vo=Symbol("constructorName"),Co=Symbol("exportpartsDebouncer");class Eo extends Oo{constructor(){super(),this[No]=new E(5),this[vo]=this.constructor.name,this[wo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[vo]&&Object.setPrototypeOf(this,this[wo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).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[Co].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 o,e,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const h=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}No=Co,So([C()],Eo.prototype,"exportpartsPrefix",void 0),So([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!R(t,o),...null!=o?o:{}})}([])],Eo.prototype,"exportpartsPrefixes",void 0),So([C()],Eo.prototype,"customStylesheet",void 0);const Ro=uo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");function Uo(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var xo,Lo,Io;pt`
71
+ const bo=window,mo=bo.ShadowRoot&&(void 0===bo.ShadyCSS||bo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Oo extends ho{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{mo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=bo.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var No,So=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Co=Symbol("constructorPrototype"),wo=Symbol("constructorName"),vo=Symbol("exportpartsDebouncer");class xo extends Oo{constructor(){super(),this[No]=new o(5),this[wo]=this.constructor.name,this[Co]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[wo]&&Object.setPrototypeOf(this,this[Co])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).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[vo].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 o,e,r,i,a,n;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const h=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}No=vo,So([x()],xo.prototype,"exportpartsPrefix",void 0),So([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return x({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!R(t,o),...null!=o?o:{}})}([])],xo.prototype,"exportpartsPrefixes",void 0),So([x()],xo.prototype,"customStylesheet",void 0);const Ro=yo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");function Uo(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var Eo,Lo,Io;pt`
67
72
  .highlight-html-match {
68
73
  background: ${Ro};
69
74
  }
@@ -99,13 +104,11 @@ const bo=window,mo=bo.ShadowRoot&&(void 0===bo.ShadyCSS||bo.ShadyCSS.nativeShado
99
104
  display: inline-block;
100
105
  width: 0;
101
106
  }
102
- `;const Wo=Symbol("internalReduxEventsUnsubscribers"),ko=Symbol("internalStoresUnsubscribers"),Ao=Symbol("internalStores");class Ko extends Eo{constructor(){super(...arguments),this[xo]=new Map,this[Lo]=new Map,this[Io]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((o=>t.has(o)))&&this.updateFromStores()}getUnnamedStore(){if(this[Ao].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ao].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ao].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:Uo(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[Ao].delete(o)}setupStore(t,o){this[Ao].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ao].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[ko].has(t.store):this[ko].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[ko].set(t,o.subscribe((()=>this.updateFromStores()))),Uo(o)&&o.eventBus&&(null===(e=this.reduxConstructor.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const r=t=>this[e](t);o.eventBus.addEventListener(t.eventName,r),this[Wo].push((()=>o.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ko].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[Wo].forEach((t=>t())),this[Wo]=[]}unsubscribeFromStore(t){this[ko].has(t)&&this[ko].get(t)(),this[ko].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}var Zo,Fo;xo=ko,Lo=Ao,Io=Wo,Ko.reduxProperties=new Map,Ko.reduxReactiveProperties=new Set,Ko.reduxEventListeners=new Map,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Fo=null===(Zo=window.safari)||void 0===Zo?void 0:Zo.pushNotification)||void 0===Fo||Fo.toString());const Mo=pt`
107
+ `;const Wo=Symbol("internalReduxEventsUnsubscribers"),ko=Symbol("internalStoresUnsubscribers"),Ko=Symbol("internalStores");class Zo extends xo{constructor(){super(...arguments),this[Eo]=new Map,this[Lo]=new Map,this[Io]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((o=>t.has(o)))&&this.updateFromStores()}getUnnamedStore(){if(this[Ko].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ko].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ko].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:Uo(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[Ko].delete(o)}setupStore(t,o){this[Ko].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ko].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[ko].has(t.store):this[ko].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[ko].set(t,o.subscribe((()=>this.updateFromStores()))),Uo(o)&&o.eventBus&&(null===(e=this.reduxConstructor.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const r=t=>this[e](t);o.eventBus.addEventListener(t.eventName,r),this[Wo].push((()=>o.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ko].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[Wo].forEach((t=>t())),this[Wo]=[]}unsubscribeFromStore(t){this[ko].has(t)&&this[ko].get(t)(),this[ko].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}var Ao,$o;Eo=ko,Lo=Ko,Io=Wo,Zo.reduxProperties=new Map,Zo.reduxReactiveProperties=new Set,Zo.reduxEventListeners=new Map,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===($o=null===(Ao=window.safari)||void 0===Ao?void 0:Ao.pushNotification)||void 0===$o||$o.toString());const Fo=pt`
103
108
  a {
104
109
  color: inherit;
105
110
  text-decoration: inherit;
106
111
  }
107
- `;var Bo,$o,To,Do,Po,_o,zo,Go,Ho,jo,Yo,Jo,Vo,qo;!function(t){!function(o){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var o={next:function(){var o=t.shift();return{done:void 0===o,value:o}}};return e.iterable&&(o[Symbol.iterator]=function(){return o}),o}function c(t){this.map={},t instanceof c?t.forEach((function(t,o){this.append(o,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(o){this.append(o,t[o])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(o,e){t.onload=function(){o(t.result)},t.onerror=function(){e(t.error)}}))}function f(t){var o=new FileReader,e=h(o);return o.readAsArrayBuffer(t),e}function p(t){if(t.slice)return t.slice(0);var o=new Uint8Array(t.byteLength);return o.set(new Uint8Array(t)),o.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var o;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((o=t)&&DataView.prototype.isPrototypeOf(o))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t,o,e,r=l(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,o=new FileReader,e=h(o),o.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var o=new Uint8Array(t),e=new Array(o.length),r=0;r<o.length;r++)e[r]=String.fromCharCode(o[r]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,o){t=n(t),o=a(o);var e=this.map[t];this.map[t]=e?e+", "+o:o},c.prototype.delete=function(t){delete this.map[n(t)]},c.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},c.prototype.set=function(t,o){this.map[n(t)]=a(o)},c.prototype.forEach=function(t,o){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(o,this.map[e],e,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(o,e){t.push(e)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(o){t.push(o)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(o,e){t.push([e,o])})),s(t)},e.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,o){var e,r,i=(o=o||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,o.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=o.credentials||this.credentials||"same-origin",!o.headers&&this.headers||(this.headers=new c(o.headers)),this.method=(e=o.method||this.method||"GET",r=e.toUpperCase(),u.indexOf(r)>-1?r:e),this.mode=o.mode||this.mode||null,this.signal=o.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(t){var o=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),i=e.join("=").replace(/\+/g," ");o.append(decodeURIComponent(r),decodeURIComponent(i))}})),o}function b(t,o){o||(o={}),this.type="default",this.status=void 0===o.status?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in o?o.statusText:"OK",this.headers=new c(o.headers),this.url=o.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,o){if(-1===m.indexOf(o))throw new RangeError("Invalid status code");return new b(null,{status:o,headers:{location:t}})},o.DOMException=t.DOMException;try{new o.DOMException}catch(t){o.DOMException=function(t,o){this.message=t,this.name=o;var e=Error(t);this.stack=e.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function O(t,r){return new Promise((function(i,n){var a=new y(t,r);if(a.signal&&a.signal.aborted)return n(new o.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,o,e={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",o=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),r=e.shift().trim();if(r){var i=e.join(":").trim();o.append(r,i)}})),o)};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new b(r,e))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new o.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&e.blob&&(s.responseType="blob"),a.headers.forEach((function(t,o){s.setRequestHeader(o,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=c,t.Request=y,t.Response=b),o.Headers=c,o.Request=y,o.Response=b,o.fetch=O,Object.defineProperty(o,"i",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Bo||(Bo={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}($o||($o={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(To||(To={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Do||(Do={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Po||(Po={})),function(t){t.ASC="ASC",t.DESC="DESC"}(_o||(_o={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(zo||(zo={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Go||(Go={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ho||(Ho={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(jo||(jo={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Yo||(Yo={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Jo||(Jo={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Vo||(Vo={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(qo||(qo={})),qo.PERSONAL_BOOK_SHARE_USER,qo.PERSONAL_BOOK_USER,qo.HTML_EXPORT_USER,qo.PERSONAL_BOOK_USER,qo.PDF_EXPORT_USER,qo.PERSONAL_BOOK_USER,qo.KHUB_ADMIN,qo.CONTENT_PUBLISHER,qo.ADMIN,qo.KHUB_ADMIN,qo.USERS_ADMIN,qo.PORTAL_ADMIN,qo.DEVELOPER,qo.BETA_USER,qo.DEBUG_USER;var Xo,Qo=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class te extends CustomEvent{constructor(t,o){super("ft-search-result-click",{detail:{result:t,rank:o},bubbles:!0,composed:!0})}}class oe extends Eo{constructor(){super(...arguments),this.index=0,this.registeredComponents=[]}render(){return Yt`
108
- <a href="${this.url}" @click=${this.onResultClick}>
109
- <slot @register-ft-search-result-component=${this.registerComponent}></slot>
110
- </a>
111
- `}get url(){var t;switch(null===(t=this.result)||void 0===t?void 0:t.type){case Jo.MAP:return this.result.map.readerUrl;case Jo.DOCUMENT:return this.result.document.viewerUrl;case Jo.TOPIC:return this.result.topic.readerUrl}return""}onResultClick(){this.dispatchEvent(new te(this.result,this.index+1))}registerComponent(t){t.stopPropagation();const o=t.composedPath()[0];this.register(o)}register(t){this.registeredComponents.push(t),t.result=this.result}update(t){super.update(t),t.has("result")&&this.registeredComponents.forEach((t=>t.result=this.result))}disconnectedCallback(){super.disconnectedCallback(),this.registeredComponents=[]}}oe.elementDefinitions={},oe.styles=Mo,Qo([C({attribute:!1})],oe.prototype,"result",void 0),Qo([C()],oe.prototype,"index",void 0),(Xo="ft-search-result-context",t=>{window.customElements.get(Xo)||window.customElements.define(Xo,t)})(oe),t.FtSearchResultContext=oe,t.FtSearchResultContextCssVariables={},t.SearchResultClickEvent=te,t.styles=Mo}({});
112
+ `;class Mo{constructor(t){this.registeredComponents=[],this.registeredMetadata=new Set,this.onResultSelected=t}registerComponent(t){t.setResultStateManager(this),this.registeredComponents.push(t),this.bindComponent(t)}unregisterComponent(t){this.registeredComponents.splice(this.registeredComponents.indexOf(t),1),t.cluster=void 0,t.result=void 0,t.rank=void 0}registerMetadata(t){this.registeredMetadata.add(t)}unregisterMetadata(t){this.registeredMetadata.delete(t)}updateCluster(t,o){this.cluster=t,this.rank=o,this.selectResult(this.cluster.entries[0])}selectResult(t){this.result=t,this.onResultSelected(t),this.registeredComponents.forEach((t=>this.bindComponent(t)))}clear(){this.registeredComponents=[]}bindComponent(t){t.cluster=this.cluster,t.result=this.result,t.rank=this.rank}}var Bo,zo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Do extends CustomEvent{constructor(t){super("ft-search-result-cluster-change",{detail:t,bubbles:!0,composed:!0})}}class Po extends xo{constructor(){super(...arguments),this.index=0,this.stateManager=new Mo((t=>this.onResultSelected(t)))}render(){return Yt`
113
+ <slot @register-ft-search-result-component=${this.registerComponent}></slot>
114
+ `}onResultSelected(t){this.result=t,this.dispatchEvent(new Do(this.result))}registerComponent(t){t.stopPropagation();const o=t.composedPath()[0];this.stateManager.registerComponent(o)}update(t){super.update(t),t.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}}Po.elementDefinitions={},Po.styles=Fo,zo([x({attribute:!1})],Po.prototype,"cluster",void 0),zo([function(t){return x({...t,state:!0,attribute:!1})}()],Po.prototype,"result",void 0),zo([x()],Po.prototype,"index",void 0),(Bo="ft-search-result-context",t=>{window.customElements.get(Bo)||window.customElements.define(Bo,t)})(Po),t.FtSearchResultContext=Po,t.FtSearchResultContextCssVariables={},t.SearchResultClusterChangeEvent=Do,t.styles=Fo}({});
@@ -1,15 +1,20 @@
1
1
  import { FtLitElement } from "@fluid-topics/ft-wc-utils";
2
- import { FtSearchResultClusterEntry } from "@fluid-topics/public-api";
2
+ import { FtSearchResultCluster, FtSearchResultClusterEntry } from "@fluid-topics/public-api";
3
3
  import { FtSearchComponent } from "@fluid-topics/ft-search-context/build/registration";
4
+ import { FtSearchResultStateManager } from "./FtSearchResultStateManager";
5
+ export type { FtSearchResultStateManager } from "./FtSearchResultStateManager";
4
6
  export declare class RegisterSearchResultComponentEvent extends Event {
5
7
  constructor();
6
8
  }
7
9
  export type FtSearchResultComponentInterface = {
10
+ cluster?: FtSearchResultCluster;
8
11
  result?: FtSearchResultClusterEntry;
12
+ rank?: number;
13
+ resultStateManager?: FtSearchResultStateManager;
14
+ setResultStateManager(resultStateManager: FtSearchResultStateManager): void;
9
15
  };
10
16
  type Constructor<T> = new (...args: any[]) => T;
11
17
  export declare function toFtSearchResultComponent<T extends Constructor<FtLitElement>>(ReduxClass: T): T & Constructor<FtSearchResultComponentInterface>;
12
18
  declare const FtSearchResultComponent_base: typeof FtSearchComponent & Constructor<FtSearchResultComponentInterface>;
13
19
  export declare class FtSearchResultComponent extends FtSearchResultComponent_base {
14
20
  }
15
- export {};
@@ -19,6 +19,15 @@ export function toFtSearchResultComponent(ReduxClass) {
19
19
  super(...arguments);
20
20
  this[_a] = 0;
21
21
  }
22
+ setResultStateManager(resultStateManager) {
23
+ this.resultStateManager = resultStateManager;
24
+ }
25
+ unregisterResultStateManager() {
26
+ if (this.resultStateManager) {
27
+ this.resultStateManager.unregisterComponent(this);
28
+ this.resultStateManager = undefined;
29
+ }
30
+ }
22
31
  connectedCallback() {
23
32
  super.connectedCallback();
24
33
  this[registerInterval] = window.setInterval(() => this.tryToRegisterToResultContext(), 50);
@@ -33,13 +42,19 @@ export function toFtSearchResultComponent(ReduxClass) {
33
42
  }
34
43
  disconnectedCallback() {
35
44
  super.disconnectedCallback();
36
- this.result = undefined;
45
+ this.unregisterResultStateManager();
37
46
  }
38
47
  }
39
48
  _a = registerInterval;
49
+ __decorate([
50
+ property({ attribute: false })
51
+ ], FtSearchResultComponentClass.prototype, "cluster", void 0);
40
52
  __decorate([
41
53
  property({ attribute: false })
42
54
  ], FtSearchResultComponentClass.prototype, "result", void 0);
55
+ __decorate([
56
+ property({ attribute: false, type: Number })
57
+ ], FtSearchResultComponentClass.prototype, "rank", void 0);
43
58
  return FtSearchResultComponentClass;
44
59
  }
45
60
  export class FtSearchResultComponent extends toFtSearchResultComponent(FtSearchComponent) {
@@ -0,0 +1,15 @@
1
+ import { FtMetadata, FtSearchResultClusterEntry } from "@fluid-topics/public-api";
2
+ export interface FlatMetadata {
3
+ key: string;
4
+ value: string;
5
+ displayValue: string;
6
+ }
7
+ export declare function flattenMetadata(metadata: FtMetadata): FlatMetadata;
8
+ export declare function extractResultMetadata(result: FtSearchResultClusterEntry): FlatMetadata[];
9
+ export declare function getResultUrl(result: FtSearchResultClusterEntry): string;
10
+ export declare class SearchResultClickEvent extends CustomEvent<{
11
+ result: FtSearchResultClusterEntry;
12
+ rank: number;
13
+ }> {
14
+ constructor(result: FtSearchResultClusterEntry, rank: number);
15
+ }
package/build/utils.js ADDED
@@ -0,0 +1,41 @@
1
+ import { FtSearchResultType } from "@fluid-topics/public-api";
2
+ export function flattenMetadata(metadata) {
3
+ if (metadata.hierarchicalValues) {
4
+ const values = [];
5
+ const displayValues = [];
6
+ metadata.hierarchicalValues.forEach(tree => {
7
+ values.push(tree.join(" / "));
8
+ if (tree.length > 2) {
9
+ displayValues.push(`... / ${tree[tree.length - 1]}`);
10
+ }
11
+ else {
12
+ displayValues.push(tree.join(" / "));
13
+ }
14
+ });
15
+ return { key: metadata.key, value: values.join(", "), displayValue: displayValues.join(", ") };
16
+ }
17
+ else {
18
+ const value = metadata.values.join(", ");
19
+ return { key: metadata.key, value: value, displayValue: value };
20
+ }
21
+ }
22
+ export function extractResultMetadata(result) {
23
+ var _a, _b;
24
+ return ((_b = (_a = result === null || result === void 0 ? void 0 : result.map) !== null && _a !== void 0 ? _a : result === null || result === void 0 ? void 0 : result.document) !== null && _b !== void 0 ? _b : result === null || result === void 0 ? void 0 : result.topic).metadata.map(m => flattenMetadata(m));
25
+ }
26
+ export function getResultUrl(result) {
27
+ switch (result.type) {
28
+ case FtSearchResultType.MAP:
29
+ return result.map.readerUrl;
30
+ case FtSearchResultType.DOCUMENT:
31
+ return result.document.viewerUrl;
32
+ case FtSearchResultType.TOPIC:
33
+ return result.topic.readerUrl;
34
+ }
35
+ return "";
36
+ }
37
+ export class SearchResultClickEvent extends CustomEvent {
38
+ constructor(result, rank) {
39
+ super("ft-search-result-click", { detail: { result, rank }, bubbles: true, composed: true });
40
+ }
41
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-result-context",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "description": "Search result context for integrated search component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "1.1.11",
22
+ "@fluid-topics/ft-wc-utils": "1.1.13",
23
23
  "lit": "3.1.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@fluid-topics/public-api": "1.0.52"
27
27
  },
28
- "gitHead": "077ec0dd3948ed41aa130d5a4cdc3d77f0dd2e6c"
28
+ "gitHead": "6678af642af51eb1590bccbeeb0de8cbc5938ab1"
29
29
  }