@fluid-topics/ft-search-result-title 2.2.52 → 2.2.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,6 @@ import { FtSearchResultComponent } from "@fluid-topics/ft-search-result-context/
11
11
  import { styles } from "./ft-search-result-title.styles";
12
12
  import { FtTypography, FtTypographyVariants, } from "@fluid-topics/ft-typography";
13
13
  import { unsafeHTML } from "lit/directives/unsafe-html.js";
14
- import { getResultTarget, getResultUrl, } from "@fluid-topics/ft-search-result-context/build/utils";
15
14
  import { SearchResultClickEvent, SearchResultOpenContextMenuEvent, } from "@fluid-topics/ft-search-context/build/utils";
16
15
  export class FtSearchResultTitle extends FtSearchResultComponent {
17
16
  constructor() {
@@ -19,18 +18,18 @@ export class FtSearchResultTitle extends FtSearchResultComponent {
19
18
  this.withoutLink = false;
20
19
  }
21
20
  render() {
22
- var _a;
21
+ var _a, _b, _c;
23
22
  if (!this.result) {
24
23
  return nothing;
25
24
  }
26
25
  return this.withoutLink
27
26
  ? this.renderTitle()
28
27
  : html `
29
- <a href="${getResultUrl(this.result)}"
28
+ <a href="${(_a = this.stateManager) === null || _a === void 0 ? void 0 : _a.getResultUrl(this.result)}"
30
29
  @click=${this.onResultClick}
31
30
  @auxclick=${(e) => this.onAuxClick(e)}
32
31
  @contextmenu=${this.onContextMenu}
33
- target="${getResultTarget(this.result, (_a = this.stateManager) === null || _a === void 0 ? void 0 : _a.openExternalDocumentInNewTab)}"
32
+ target="${(_b = this.stateManager) === null || _b === void 0 ? void 0 : _b.getResultTarget(this.result, (_c = this.stateManager) === null || _c === void 0 ? void 0 : _c.openExternalDocumentInNewTab)}"
34
33
  part="link">
35
34
  ${this.renderTitle()}
36
35
  </a>
@@ -1,7 +1,9 @@
1
- "use strict";(()=>{var Qi=Object.create;var nn=Object.defineProperty;var Yi=Object.getOwnPropertyDescriptor;var Xi=Object.getOwnPropertyNames;var Ji=Object.getPrototypeOf,Zi=Object.prototype.hasOwnProperty;var ot=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var eo=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Xi(t))!Zi.call(e,s)&&s!==r&&nn(e,s,{get:()=>t[s],enumerable:!(n=Yi(t,s))||n.enumerable});return e};var y=(e,t,r)=>(r=e!=null?Qi(Ji(e)):{},eo(t||!e||!e.__esModule?nn(r,"default",{value:e,enumerable:!0}):r,e));var v=ot((pa,sn)=>{sn.exports=ftGlobals.wcUtils});var ie=ot((ha,on)=>{on.exports=ftGlobals.lit});var q=ot((fa,an)=>{an.exports=ftGlobals.litDecorators});var Pi=ot((Kd,Fi)=>{Fi.exports=ftGlobals.litUnsafeHTML});var Ki=y(v());var it=y(ie()),ji=y(q()),Vi=y(v());var Le=y(v());var ne=y(v()),Ze=y(q());var nr;(function(e){e.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(nr||(nr={}));var re=y(v());var to=y(v());var cn;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(cn||(cn={}));var ln;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(ln||(ln={}));var un;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(un||(un={}));var dn;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(dn||(dn={}));var pn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(pn||(pn={}));var hn;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(hn||(hn={}));var fn;(function(e){e.PUBLISHED="PUBLISHED",e.AI="AI"})(fn||(fn={}));var yn;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(yn||(yn={}));var mn;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(mn||(mn={}));var gn;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(gn||(gn={}));var Sn;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER",e.DOC_DIFF="DOC_DIFF"})(Sn||(Sn={}));var En;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(En||(En={}));var An;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(An||(An={}));var vn;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(vn||(vn={}));var bn;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(bn||(bn={}));var xn;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(xn||(xn={}));var _n;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(_n||(_n={}));var sr;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(sr||(sr={}));var Cn;(function(e){e.ASC="ASC",e.DESC="DESC"})(Cn||(Cn={}));var Tn;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Tn||(Tn={}));var ir;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(ir||(ir={}));var wn;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(wn||(wn={}));var at;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(at||(at={}));var Rn;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Rn||(Rn={}));var On;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(On||(On={}));var In;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(In||(In={}));var or;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(or||(or={}));var kn;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(kn||(kn={}));var x;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(x||(x={}));var U;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(U||(U={}));var Dn;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(Dn||(Dn={}));var Nn;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(Nn||(Nn={}));var Mn;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Mn||(Mn={}));var Ln;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ln||(Ln={}));var Fn;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Fn||(Fn={}));var Pn;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(Pn||(Pn={}));var Un;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Un||(Un={}));var $n;(function(e){e.CHAT="CHAT",e.COMPLETION="COMPLETION",e.RAG="RAG",e.AGENT="AGENT"})($n||($n={}));var Hn;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Hn||(Hn={}));var Bn;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Bn||(Bn={}));var jn;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(jn||(jn={}));var Vn;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Vn||(Vn={}));var qn;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(qn||(qn={}));var ro={[x.PERSONAL_BOOK_SHARE_USER]:[x.PERSONAL_BOOK_USER],[x.HTML_EXPORT_USER]:[x.PERSONAL_BOOK_USER],[x.PDF_EXPORT_USER]:[x.PERSONAL_BOOK_USER],[x.KHUB_ADMIN]:[x.CONTENT_PUBLISHER],[x.ADMIN]:[x.KHUB_ADMIN,x.USERS_ADMIN,x.PORTAL_ADMIN,x.BEHAVIOR_DATA_USER],[x.GENERATIVE_AI_EXPORT_USER]:[x.GENERATIVE_AI_USER]};function zn(e,t){return e===t||(ro[e]??[]).some(r=>zn(r,t))}function ct(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>zn(n,t))}function Kn(e,...t){return e==null?!1:t.some(r=>ct(e,r))}var wr=y(q());var Wn=y(q(),1);var ar=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},no=e=>({fromAttribute:t=>{if(t==null)return $e(e);try{return JSON.parse(t)}catch{return $e(e)}},toAttribute:t=>JSON.stringify(t)});function Gn(e,t){return(0,Wn.property)({type:Object,converter:no(e),hasChanged:He,...t??{}})}function so(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Re(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Re(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let s=o=>Object.keys(o).filter(a=>o[a]!=null),i=s(e);if(r=i.length,r!==s(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let o=i[n];if(!Re(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Re(e,t){try{return so(e,t)}catch{return!1}}function He(e,t){return!Re(e,t)}function $e(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function lt(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let s=t(n);return s[e]=!0,s}}var Qn=y(q(),1);var cr=e=>{let t=e??{};return(r,n)=>{var s;let i={hasChanged:He,attribute:!1,...t};(0,Qn.property)(i)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(s=t.selector)!==null&&s!==void 0?s:(a=>a[n]),store:t.store})}};var ut=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var oe=y(q(),1);var dt=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let s=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),i=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){s(a);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ht=y(ie(),1);var pt=class extends ht.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return(0,ht.adoptStyles)(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){ar(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Yn(e,t,...r){var n;let s=e.querySelector(t);for(let i of r)s=(n=s?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return s}var Ie=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},es,Xn=Symbol("constructorPrototype"),Jn=Symbol("constructorName"),ts=Symbol("exportpartsDebouncer"),Zn=Symbol("dynamicDependenciesLoaded"),Oe=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Oe.eventName="exportparts-updated";var z=class extends pt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[es]=new dt(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[ts].run(()=>{var s,i;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Jn]=this.constructor.name,this[Xn]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Jn]&&Object.setPrototypeOf(this,this[Xn])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Zn]||(r[Zn]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Oe.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Oe.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Oe)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:s}=this.elementToFocus;if(n!=null){let i=[...s??[],n];r=Yn(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,s;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var r,n,s,i,o,a;let c=f=>f!=null&&f.trim().length>0,l=t.filter(c).map(f=>f.trim());if(l.length===0){this.exportparts=void 0;return}let p=new Set;for(let f of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let g=(o=(n=f.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],_=(a=(s=f.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&a!==void 0?a:[],F=[...g,..._].filter(c).map(S=>S.trim());for(let S of F)p.add(S)}if(p.size===0){this.exportparts=void 0;return}let d=[...p.values()].flatMap(f=>l.map(g=>`${f}:${g}--${f}`));this.exportparts=[...this.part,...d].join(", ")}};es=ts;Ie([(0,oe.property)()],z.prototype,"exportpartsPrefix",void 0);Ie([Gn([])],z.prototype,"exportpartsPrefixes",void 0);Ie([(0,oe.property)({reflect:!0})],z.prototype,"exportparts",void 0);Ie([(0,oe.property)()],z.prototype,"customStylesheet",void 0);Ie([(0,oe.property)()],z.prototype,"elementToFocus",void 0);Ie([(0,oe.state)()],z.prototype,"useAdoptedStyleSheets",void 0);function ft(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Be=Symbol("internalReduxEventsUnsubscribers"),ee=Symbol("internalStoresUnsubscribers"),ae=Symbol("internalStores"),io=lt(Symbol("withRedux"),function(e){var t,r,n;class s extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[ae].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ae].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[ae].get(o)}addStore(o,a){var c;a=(c=a??o.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(a),this[ae].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[ae].delete(a)}setupStores(){this.unsubscribeFromStores(),this[ae].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let c=this.constructor.getPropertyOptions(a);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:a)){let l=this.getStore(o.store);l&&(o.store?this[ee].has(o.store):this[ee].size>0)&&(this[a]=o.selector(l.getState(),this))}})}subscribeToStore(o,a){var c,l;this[ee].set(o,a.subscribe(()=>this.updateFromStores())),this[Be].set(o,[]),ft(a)&&(!((c=a.deprecatedKeys)===null||c===void 0)&&c.length&&this.reduxConstructor.reduxProperties.forEach((p,d)=>{this.getStore(p.store)===a&&a.deprecatedKeys.includes(d)&&console.warn("Element",this,"is subscribed to deprecated key",d,"in store",a.name)}),a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((p,d)=>{if(typeof this[d]=="function"&&(!p.store||a.name===p.store)){let f=g=>this[d](g);a.addEventListener(p.eventName,f),this[Be].get(o).push(()=>a.removeEventListener(p.eventName,f))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[ee].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[ee].has(o)&&this[ee].get(o)(),this[ee].delete(o),(a=this[Be].get(o))===null||a===void 0||a.forEach(c=>c()),this[Be].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ee,r=ae,n=Be,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),rs=class extends io(z){};function w(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var oo=typeof Symbol=="function"&&Symbol.observable||"@@observable",ns=oo,lr=()=>Math.random().toString(36).substring(7).split("").join("."),ao={INIT:`@@redux/INIT${lr()}`,REPLACE:`@@redux/REPLACE${lr()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${lr()}`},yt=ao;function mt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function ur(e,t,r){if(typeof e!="function")throw new Error(w(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(w(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(w(1));return r(ur)(e,t)}let n=e,s=t,i=new Map,o=i,a=0,c=!1;function l(){o===i&&(o=new Map,i.forEach((S,P)=>{o.set(P,S)}))}function p(){if(c)throw new Error(w(3));return s}function d(S){if(typeof S!="function")throw new Error(w(4));if(c)throw new Error(w(5));let P=!0;l();let j=a++;return o.set(j,S),function(){if(P){if(c)throw new Error(w(6));P=!1,l(),o.delete(j),i=null}}}function f(S){if(!mt(S))throw new Error(w(7));if(typeof S.type>"u")throw new Error(w(8));if(typeof S.type!="string")throw new Error(w(17));if(c)throw new Error(w(9));try{c=!0,s=n(s,S)}finally{c=!1}return(i=o).forEach(j=>{j()}),S}function g(S){if(typeof S!="function")throw new Error(w(10));n=S,f({type:yt.REPLACE})}function _(){let S=d;return{subscribe(P){if(typeof P!="object"||P===null)throw new Error(w(11));function j(){let A=P;A.next&&A.next(p())}return j(),{unsubscribe:S(j)}},[ns](){return this}}}return f({type:yt.INIT}),{dispatch:f,subscribe:d,getState:p,replaceReducer:g,[ns]:_}}function co(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:yt.INIT})>"u")throw new Error(w(12));if(typeof r(void 0,{type:yt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(w(13))})}function dr(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let n=Object.keys(r),s,i;try{co(r)}catch(o){i=o}return function(a={},c){if(i)throw i;let l=!1,p={};for(let d=0;d<n.length;d++){let f=n[d],g=r[f],_=a[f],F=g(_,c);if(typeof F>"u"){let S=c&&c.type;throw new Error(w(14))}p[f]=F,l=l||F!==_}return l=l||n.length!==Object.keys(a).length,l?p:a}}function je(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function ss(...e){return t=>(r,n)=>{let s=t(r,n),i=()=>{throw new Error(w(15))},o={getState:s.getState,dispatch:(c,...l)=>i(c,...l)},a=e.map(c=>c(o));return i=je(...a)(s.dispatch),{...s,dispatch:i}}}function is(e){return mt(e)&&"type"in e&&typeof e.type=="string"}var fs=Symbol.for("immer-nothing"),os=Symbol.for("immer-draftable"),R=Symbol.for("immer-state");function B(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var M=Object,De=M.getPrototypeOf,At="constructor",Tt="prototype",yr="configurable",vt="enumerable",St="writable",Ve="value",K=e=>!!e&&!!e[R];function L(e){return e?ys(e)||Rt(e)||!!e[os]||!!e[At]?.[os]||Ot(e)||We(e):!1}var lo=M[Tt][At].toString(),as=new WeakMap;function ys(e){if(!e||!xr(e))return!1;let t=De(e);if(t===null||t===M[Tt])return!0;let r=M.hasOwnProperty.call(t,At)&&t[At];if(r===Object)return!0;if(!ke(r))return!1;let n=as.get(r);return n===void 0&&(n=Function.toString.call(r),as.set(r,n)),n===lo}function wt(e,t,r=!0){Ke(e)===0?(r?Reflect.ownKeys(e):M.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((n,s)=>t(s,n,e))}function Ke(e){let t=e[R];return t?t.type_:Rt(e)?1:Ot(e)?2:We(e)?3:0}var pr=(e,t,r=Ke(e))=>r===2?e.has(t):M[Tt].hasOwnProperty.call(e,t),mr=(e,t,r=Ke(e))=>r===2?e.get(t):e[t],bt=(e,t,r,n=Ke(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function uo(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Rt=Array.isArray,Ot=e=>e instanceof Map,We=e=>e instanceof Set,xr=e=>typeof e=="object",ke=e=>typeof e=="function",hr=e=>typeof e=="boolean";function po(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Q=e=>e.copy_||e.base_;var _r=e=>e.modified_?e.copy_:e.base_;function gr(e,t){if(Ot(e))return new Map(e);if(We(e))return new Set(e);if(Rt(e))return Array[Tt].slice.call(e);let r=ys(e);if(t===!0||t==="class_only"&&!r){let n=M.getOwnPropertyDescriptors(e);delete n[R];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){let o=s[i],a=n[o];a[St]===!1&&(a[St]=!0,a[yr]=!0),(a.get||a.set)&&(n[o]={[yr]:!0,[St]:!0,[vt]:a[vt],[Ve]:e[o]})}return M.create(De(e),n)}else{let n=De(e);if(n!==null&&r)return{...e};let s=M.create(n);return M.assign(s,e)}}function It(e,t=!1){return kt(e)||K(e)||!L(e)||(Ke(e)>1&&M.defineProperties(e,{set:gt,add:gt,clear:gt,delete:gt}),M.freeze(e),t&&wt(e,(r,n)=>{It(n,!0)},!1)),e}function ho(){B(2)}var gt={[Ve]:ho};function kt(e){return e===null||!xr(e)?!0:M.isFrozen(e)}var xt="MapSet",Sr="Patches",cs="ArrayMethods",ms={};function ce(e){let t=ms[e];return t||B(0,e),t}var ls=e=>!!ms[e];var qe,gs=()=>qe,fo=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ls(xt)?ce(xt):void 0,arrayMethodsPlugin_:ls(cs)?ce(cs):void 0});function us(e,t){t&&(e.patchPlugin_=ce(Sr),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Er(e){Ar(e),e.drafts_.forEach(yo),e.drafts_=null}function Ar(e){e===qe&&(qe=e.parent_)}var ds=e=>qe=fo(qe,e);function yo(e){let t=e[R];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ps(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[R].modified_&&(Er(t),B(4)),L(e)&&(e=hs(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[R].base_,e,t)}else e=hs(t,r);return mo(t,e,!0),Er(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==fs?e:void 0}function hs(e,t){if(kt(t))return t;let r=t[R];if(!r)return _t(t,e.handledSet_,e);if(!Dt(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);As(r,e)}return r.copy_}function mo(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&It(t,r)}function Ss(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Dt=(e,t)=>e.scope_===t,go=[];function Es(e,t,r,n){let s=Q(e),i=e.type_;if(n!==void 0&&mr(s,n,i)===t){bt(s,n,r,i);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;wt(s,(c,l)=>{if(K(l)){let p=a.get(l)||[];p.push(c),a.set(l,p)}})}let o=e.draftLocations_.get(t)??go;for(let a of o)bt(s,a,r,i)}function So(e,t,r){e.callbacks_.push(function(s){let i=t;if(!i||!Dt(i,s))return;s.mapSetPlugin_?.fixSetContents(i);let o=_r(i);Es(e,i.draft_??i,o,r),As(i,s)})}function As(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let s=n.getPath(e);s&&n.generatePatches_(e,s,t)}Ss(e)}}function Eo(e,t,r){let{scope_:n}=e;if(K(r)){let s=r[R];Dt(s,n)&&s.callbacks_.push(function(){Et(e);let o=_r(s);Es(e,r,o,t)})}else L(r)&&e.callbacks_.push(function(){let i=Q(e);e.type_===3?i.has(r)&&_t(r,n.handledSet_,n):mr(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&_t(mr(e.copy_,t,e.type_),n.handledSet_,n)})}function _t(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||K(e)||t.has(e)||!L(e)||kt(e)||(t.add(e),wt(e,(n,s)=>{if(K(s)){let i=s[R];if(Dt(i,r)){let o=_r(i);bt(e,n,o,e.type_),Ss(i)}}else L(s)&&_t(s,t,r)})),e}function Ao(e,t){let r=Rt(e),n={type_:r?1:0,scope_:t?t.scope_:gs(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=n,i=Ct;r&&(s=[n],i=ze);let{revoke:o,proxy:a}=Proxy.revocable(s,i);return n.draft_=a,n.revoke_=o,[a,n]}var Ct={get(e,t){if(t===R)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let s=Q(e);if(!pr(s,t,e.type_))return bo(e,s,t);let i=s[t];if(e.finalized_||!L(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&po(t))return i;if(i===fr(e.base_,t)||vo(e,t,i)){Et(e);let o=e.type_===1?+t:t,a=br(e.scope_,i,e,o);return e.copy_[o]=a}return i},has(e,t){return t in Q(e)},ownKeys(e){return Reflect.ownKeys(Q(e))},set(e,t,r){let n=vs(Q(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let s=fr(Q(e),t),i=s?.[R];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.delete(t),!0;if(uo(r,s)&&(r!==void 0||pr(e.base_,t,e.type_)))return!0;Et(e),vr(e)}return e.copy_[t]===r&&(r!==void 0||pr(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Eo(e,t,r)),!0},deleteProperty(e,t){return Et(e),fr(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),vr(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Q(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[St]:!0,[yr]:e.type_!==1||t!=="length",[vt]:n[vt],[Ve]:r[t]}},defineProperty(){B(11)},getPrototypeOf(e){return De(e.base_)},setPrototypeOf(){B(12)}},ze={};for(let e in Ct){let t=Ct[e];ze[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}ze.deleteProperty=function(e,t){return ze.set.call(this,e,t,void 0)};ze.set=function(e,t,r){return Ct.set.call(this,e[0],t,r,e[0])};function fr(e,t){let r=e[R];return(r?Q(r):e)[t]}function vo(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||!L(r)||r[R]?!1:e.baseRefs_.has(r)}function bo(e,t,r){let n=vs(t,r);return n?Ve in n?n[Ve]:n.get?.call(e.draft_):void 0}function vs(e,t){if(!(t in e))return;let r=De(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=De(r)}}function vr(e){e.modified_||(e.modified_=!0,e.parent_&&vr(e.parent_))}function Et(e){e.copy_||(e.assigned_=new Map,e.copy_=gr(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var xo=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(ke(t)&&!ke(r)){let i=r;r=t;let o=this;return function(c=i,...l){return o.produce(c,p=>r.call(this,p,...l))}}ke(r)||B(6),n!==void 0&&!ke(n)&&B(7);let s;if(L(t)){let i=ds(this),o=br(i,t,void 0),a=!0;try{s=r(o),a=!1}finally{a?Er(i):Ar(i)}return us(i,n),ps(s,i)}else if(!t||!xr(t)){if(s=r(t),s===void 0&&(s=t),s===fs&&(s=void 0),this.autoFreeze_&&It(s,!0),n){let i=[],o=[];ce(Sr).generateReplacementPatches_(t,s,{patches_:i,inversePatches_:o}),n(i,o)}return s}else B(1,t)},this.produceWithPatches=(t,r)=>{if(ke(t))return(o,...a)=>this.produceWithPatches(o,c=>t(c,...a));let n,s;return[this.produce(t,r,(o,a)=>{n=o,s=a}),n,s]},hr(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),hr(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),hr(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){L(e)||B(8),K(e)&&(e=bs(e));let t=ds(this),r=br(t,e,void 0);return r[R].isManual_=!0,Ar(t),r}finishDraft(e,t){let r=e&&e[R];(!r||!r.isManual_)&&B(9);let{scope_:n}=r;return us(n,t),ps(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));let n=ce(Sr).applyPatches_;return K(e)?n(e,t):this.produce(e,s=>n(s,t))}};function br(e,t,r,n){let[s,i]=Ot(t)?ce(xt).proxyMap_(t,r):We(t)?ce(xt).proxySet_(t,r):Ao(t,r);return(r?.scope_??gs()).drafts_.push(s),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?So(r,i,n):i.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:l}=c;i.modified_&&l&&l.generatePatches_(i,[],c)}),s}function bs(e){return K(e)||B(10,e),xs(e)}function xs(e){if(!L(e)||kt(e))return e;let t=e[R],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=gr(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=gr(e,!0);let s=r;return We(r)&&(r=new Set),wt(s,(i,o)=>{bt(r,i,xs(o))},n),t&&(t.finalized_=!1),r}var _o=globalThis.Iterator,rc=typeof _o?.from=="function";var Co=new xo,Cr=Co.produce;function _s(e){return({dispatch:r,getState:n})=>s=>i=>typeof i=="function"?i(r,n,e):s(i)}var Cs=_s(),Ts=_s;var To=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?je:je.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Qe(e,t){function r(...n){if(t){let s=t(...n);if(!s)throw new Error(W(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>n!=null&&n.type===e&&is(n),r}var Os=class Ge extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ge.prototype)}static get[Symbol.species](){return Ge}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ge(...t[0].concat(this)):new Ge(...t.concat(this))}};function ws(e){return L(e)?Cr(e,()=>{}):e}function Nt(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function wo(e){return typeof e=="boolean"}var Ro=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{},o=new Os;return r&&(wo(r)?o.push(Cs):o.push(Ts(r.extraArgument))),o},Oo="RTK_autoBatch";var Rs=e=>t=>{setTimeout(t,e)},Io=(e,t,r)=>n=>{let s=!1,i,o,a=()=>{s||(s=!0,t?.(i),clearTimeout(o),n())};i=e(a),o=setTimeout(a,r)},ko=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),s=!0,i=!1,o=!1,a=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Io(window.requestAnimationFrame,window.cancelAnimationFrame,100):Rs(10):e.type==="callback"?e.queueNotification:Rs(e.timeout),l=()=>{o=!1,i&&(i=!1,a.forEach(p=>p()))};return Object.assign({},n,{subscribe(p){let d=()=>s&&p(),f=n.subscribe(d);return a.add(p),()=>{f(),a.delete(p)}},dispatch(p){try{return s=!p?.meta?.[Oo],i=!s,i&&(o||(o=!0,c(l))),n.dispatch(p)}finally{s=!0}}})},Do=e=>function(r){let{autoBatch:n=!0}=r??{},s=new Os(e);return n&&s.push(ko(typeof n=="object"?n:void 0)),s};function Is(e){let t=Ro(),{reducer:r=void 0,middleware:n,devTools:s=!0,duplicateMiddlewareCheck:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},c;if(typeof r=="function")c=r;else if(mt(r))c=dr(r);else throw new Error(W(1));let l;typeof n=="function"?l=n(t):l=t();let p=je;s&&(p=To({trace:!1,...typeof s=="object"&&s}));let d=ss(...l),f=Do(d),g=typeof a=="function"?a(f):f(),_=p(...g);return ur(c,o,_)}function ks(e){let t={},r=[],n,s={addCase(i,o){let a=typeof i=="string"?i:i.type;if(!a)throw new Error(W(28));if(a in t)throw new Error(W(29));return t[a]=o,s},addAsyncThunk(i,o){return o.pending&&(t[i.pending.type]=o.pending),o.rejected&&(t[i.rejected.type]=o.rejected),o.fulfilled&&(t[i.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:i.settled,reducer:o.settled}),s},addMatcher(i,o){return r.push({matcher:i,reducer:o}),s},addDefaultCase(i){return n=i,s}};return e(s),[t,r,n]}function No(e){return typeof e=="function"}function Mo(e,t){let[r,n,s]=ks(t),i;if(No(e))i=()=>ws(e());else{let c=ws(e);i=()=>c}function o(c,l,p){if(K(c)){let d=l(c,p);return d===void 0?c:d}else{if(L(c))return Cr(c,d=>l(d,p));{let d=l(c,p);if(d===void 0){if(c===null)return c;throw new Error(W(9))}return d}}}function a(c=i(),l){let p=r[l.type],d;for(let{matcher:f,reducer:g}of n)f(l)&&g&&(d??=[]).push(g);if(!p&&!d)return s?o(c,s,l):c;if(p&&(c=o(c,p,l)),d)for(let f of d)c=o(c,f,l);return c}return a.getInitialState=i,a}var Lo=Symbol.for("rtk-slice-createasyncthunk");function Fo(e,t){return`${e}/${t}`}function Po({creators:e}={}){let t=e?.asyncThunk?.[Lo];return function(n){let{name:s,reducerPath:i=s}=n;if(!s)throw new Error(W(11));typeof process<"u";let o=(typeof n.reducers=="function"?n.reducers($o()):n.reducers)||{},a=Object.keys(o),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(E,A){let O=typeof E=="string"?E:E.type;if(!O)throw new Error(W(12));if(O in c.sliceCaseReducersByType)throw new Error(W(13));return c.sliceCaseReducersByType[O]=A,l},addMatcher(E,A){return c.sliceMatchers.push({matcher:E,reducer:A}),l},exposeAction(E,A){return c.actionCreators[E]=A,l},exposeCaseReducer(E,A){return c.sliceCaseReducersByName[E]=A,l}};a.forEach(E=>{let A=o[E],O={reducerName:E,type:Fo(s,E),createNotation:typeof n.reducers=="function"};Bo(A)?Vo(O,A,l,t):Ho(O,A,l)});function p(){let[E={},A=[],O=void 0]=typeof n.extraReducers=="function"?ks(n.extraReducers):[n.extraReducers],Z={...E,...c.sliceCaseReducersByType};return Mo(n.initialState,V=>{for(let I in Z)V.addCase(I,Z[I]);for(let I of c.sliceMatchers)V.addMatcher(I.matcher,I.reducer);for(let I of A)V.addMatcher(I.matcher,I.reducer);O&&V.addDefaultCase(O)})}let d=E=>E,f=new Map,g=new WeakMap,_;function F(E,A){return _||(_=p()),_(E,A)}function S(){return _||(_=p()),_.getInitialState()}function P(E,A=!1){function O(V){let I=V[E];return typeof I>"u"&&A&&(I=Nt(g,O,S)),I}function Z(V=d){return Nt(Nt(f,A,()=>new WeakMap),V,()=>{let I={};for(let[Wi,Gi]of Object.entries(n.selectors??{}))I[Wi]=Uo(Gi,V,()=>Nt(g,V,S),A);return I})}return{reducerPath:E,getSelectors:Z,get selectors(){return Z(O)},selectSlice:O}}let j={name:s,reducer:F,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:S,...P(i),injectInto(E,{reducerPath:A,...O}={}){let Z=A??i;return E.inject({reducerPath:Z,reducer:F},O),{...j,...P(Z,!0)}}};return j}}function Uo(e,t,r,n){function s(i,...o){let a=t(i);return typeof a>"u"&&n&&(a=r()),e(a,...o)}return s.unwrapped=e,s}var Ds=Po();function $o(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Ho({type:e,reducerName:t,createNotation:r},n,s){let i,o;if("reducer"in n){if(r&&!jo(n))throw new Error(W(17));i=n.reducer,o=n.prepare}else i=n;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?Qe(e,o):Qe(e))}function Bo(e){return e._reducerDefinitionType==="asyncThunk"}function jo(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Vo({type:e,reducerName:t},r,n,s){if(!s)throw new Error(W(18));let{payloadCreator:i,fulfilled:o,pending:a,rejected:c,settled:l,options:p}=r,d=s(e,i,p);n.exposeAction(t,d),o&&n.addCase(d.fulfilled,o),a&&n.addCase(d.pending,a),c&&n.addCase(d.rejected,c),l&&n.addMatcher(d.settled,l),n.exposeCaseReducer(t,{fulfilled:o||Mt,pending:a||Mt,rejected:c||Mt,settled:l||Mt})}function Mt(){}var Ns="listener",Ms="completed",Ls="cancelled",uc=`task-${Ls}`,dc=`task-${Ms}`,pc=`${Ns}-${Ls}`,hc=`${Ns}-${Ms}`;var{assign:Fs}=Object;var Tr="listenerMiddleware";var qo=Fs(Qe(`${Tr}/add`),{withTypes:()=>qo}),fc=Qe(`${Tr}/removeAll`),zo=Fs(Qe(`${Tr}/remove`),{withTypes:()=>zo});function W(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ko=lt(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,s){this.eventBus.addEventListener(r,n,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,s){this.eventBus.removeEventListener(r,n,s)}}}),Lt=class extends Ko(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ps=class e extends Lt{static get(t){var r;let n=typeof t=="string"?t:t.name,s=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(ft(i))return i;if(s==null)return;let o=Ds({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=Is({reducer:(c,l)=>{if(l.type==="CLEAR_FT_REDUX_STORE"){let p=$e(o.getInitialState());for(let d of l.keeping)p[d]=(c??p)[d];return p}else if(typeof l.type=="string"&&l.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...l.overwrites};return o.reducer(c,l)}});return window.ftReduxStores[s.name]=new e(o,a,s.eventBus,s.deprecatedKeys)}constructor(t,r,n,s){super(),this.reduxSlice=t,this.reduxStore=r,this.deprecatedKeys=s,this.isFtReduxStore=!0,this.commands=new ut,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let i=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,c)=>{let l=a,p=o[l];return p?(...d)=>{let f=p(...d.map(i));return this.reduxStore.dispatch(f),f}:d=>{let f=l,g=this.getState()[f];Re(g,d)||this.setState({[f]:i(d)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Ft=class{static format(t,r,n,s,i){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,s,!!i)):this.getIntlDateTime(t,r,n,s,!!i)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,s,i){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return i?c:s?`${a} ${c}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Pt=y(v()),Wo="ft-app-info",te=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};te.eventName="authentication-change";var Ye=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Ye.eventName="ui-locale-changed";var Go={session:(e,t)=>{(0,Pt.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>m.dispatchEvent(new te(t.payload)),0))}},m=Pt.FtReduxStore.get({name:Wo,reducers:Go,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Us=y(v()),Ut=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},jc=(0,Us.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(m)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var s,i;return((i=(s=this.metadataDescriptors.find(a=>a.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?a=>Ft.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ut([(0,wr.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Ut([(0,wr.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Ut([cr({store:m.name,selector:r=>{var n,s;return(s=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&s!==void 0?s:[]}})],t.prototype,"metadataDescriptors",void 0),Ut([cr({store:m.name})],t.prototype,"uiLocale",void 0),t});var Vt=y(v());var Rr=y(v());var le=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=m.getState(),s=t??n;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let s=m.subscribe(()=>{n=e.get(t),n&&(s(),r(n))})}})}};var Ne=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:le.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):le.await()}};var N=class extends Ne{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[c])=>a.localeCompare(c)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new Rr.CacheRegistry,this.cache=t?s.commonCache:new Rr.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var $t=class extends N{async listMySearches(){let{session:t}=m.getState();return ct(t,x.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Ht=class extends N{async listMyBookmarks(){let t=m.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Bt=class extends N{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/api/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/api/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=m.getState().session;return!!t?.sessionAuthenticated}};var jt=class extends N{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await(await this.awaitApi).get("/api/user/assets/labels")).labels,this.CACHE_DURATION):[]}isAuthenticated(){let t=m.getState().session;return!!t?.sessionAuthenticated}};var Qo="ft-user-assets",Yo={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(U).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:s}=t.payload;Ir(e,r,[...Or(e,r),s]),$s(e,r,1,n),Hs(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Ir(e,r,Or(e,r).map(s=>s.id===n.id?n:s)),Hs(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:s}=t.payload;Ir(e,r,Or(e,r).filter(i=>i.id!==s)),$s(e,r,-1,n)}},Bs={[U.SEARCHES]:"savedSearches",[U.BOOKMARKS]:"bookmarks",[U.BOOKS]:void 0,[U.COLLECTIONS]:void 0},Or=(e,t)=>{var r;let n=Bs[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Ir=(e,t,r)=>{let n=Bs[t];n&&(e[n]=r)},$s=(e,t,r,n)=>{let s=e.assetCounts.allAsset[t];if(s!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,s+r),t===U.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},Hs=(e,t)=>{let r=e.assetLabels.map(s=>s.title),n=t.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));e.assetLabels.push(...n)},k=Vt.FtReduxStore.get({name:Qo,reducers:Yo,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(U).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),kr=class{constructor(t=new Bt,r=new jt){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=m.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ht,this.savedSearchesService=new $t,m.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=m.getState();(0,Vt.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),k.actions.clearAssetCount(),k.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),k.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),k.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();k.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();k.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&k.getState().assetCounts.allAsset[t]!==r.count&&k.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&k.getState().assetCounts.bookmarkByMap[t]!==r.count&&k.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(k.getState().assetCounts.bookmarkByMap).length!==0;t===U.BOOKMARKS&&r&&k.actions.clearBookmarkCountByMap(),k.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;k.actions.bookmarks(r)}}},Xo=new kr;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Xo);var Dr=class{addCommand(t,r=!1){m.commands.add(t,r)}consumeCommand(t){return m.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Dr;var $=y(v());var js,Me=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Jo=Symbol("clearAfterUnitTest"),qt=class extends(0,$.withEventBus)(N){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[js]=()=>{this.defaultMessages={},this.cache=new $.CacheRegistry,this.listeners={}},this.currentUiLocale=m.getState().uiLocale,m.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=m.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let s={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,$.deepEqual)(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var s;let i=t.toLowerCase(),o=this.resolveContext(i);return new $.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},o).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(s){!(s instanceof $.CanceledPromiseError)&&r&&console.error(s)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var s;return(s=this.listeners[t])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Me({loadedContexts:t})),this.dispatchEvent(new Me({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Me({loadedContexts:[t]})),this.dispatchEvent(new Me({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,$.delay)(0).then(()=>n()).catch(()=>null)))}};js=Jo;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends qt{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends qt{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Vs=window.FluidTopicsI18nService,xl=window.FluidTopicsCustomI18nService;var qs=y(v()),Nr=class{highlightHtml(t,r,n){(0,qs.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Nr;var zs=y(v());var Mr=class{isDate(t){var r,n,s,i;return(i=(n=((s=(r=m.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&s!==void 0?s:[]).find(a=>a.key===t))===null||n===void 0?void 0:n.date)!==null&&i!==void 0?i:!1}format(t,r){var n,s,i,o;if(t==null)return"";try{return zs.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:m.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new Mr;var Ks=y(v());var Xe=class{static get(t,r,{baseUrl:n,localesConfiguration:s,availableContentLocales:i}=m.getState()){var o;if(r==="all"&&s?.allLanguagesAllowed)r=void 0;else if(!r||i.length>0&&!i.some(a=>a.lang===r)){let a=s?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=i[0])===null||o===void 0?void 0:o.lang}return new Ks.SearchPlaceConverter(n,t??20,s?.allLanguagesAllowed,r,i)}};var Lr=class{urlToSearchRequest(t){return Xe.get().parse(t)}searchRequestToUrl(t){return Xe.get().serialize(t)}};window.FluidTopicsUrlService=new Lr;var Y=y(v());var ue=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};ue.eventName="before-location-change";var de=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};de.eventName="change";var Fr=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Ws=new Fr;var zt=class e extends Y.WithEventBus{static build(){return new e(window.history,Ws,()=>window.location,!1)}constructor(t,r,n,s){var i,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Y.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new de(this.currentItem())),0)}installProxies(){let t=r=>(n,s,[i,o,a])=>{let c=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),l=new ue(c);this.dispatchEvent(l);let p=r(),d={...p===this.currentIndex?this.currentState:void 0,...i,index:p,href:l.detail.nextLocation.href};n.apply(s,[d,o,d.href]),this.setCurrentState(d,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(t){this.addEventListener(ue.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(ue.eventName,t)}addHistoryChangeListener(t){this.addEventListener(de.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(de.eventName,t)}currentItem(){return(0,Y.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Y.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Y.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Y.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let s=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(s=i),i++;return s}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let s=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=zt.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var Gs=y(ie());var Qs=Gs.css`
2
- `;var Xs=y(ie()),D=y(q()),he=y(v());var G=y(v());function Ys(e,t){let{authenticationRequired:r,session:n}=m.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var Kt=class extends Ne{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Pr=class e extends G.FtStateManager{static build(t){return new e(m,t)}constructor(t,r){super(),this.store=t,this.cache=new G.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Kt,this.knownContexts=new G.AbstractRegistry,this.knownCustomComponents=new G.AbstractRegistry,this.cleanSessionDebouncer=new G.Debouncer,this.reloadConfiguration=()=>{var n;(n=this.cache)===null||n===void 0||n.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new G.Debouncer(500),this.apiProvider=r??(()=>le.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(te.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(te.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>Ys(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}setStickyFilters(t){this.store.actions.stickyFilters(t)}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Ye(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setNoCustomCode(t){this.store.actions.noCustomCode(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}userHasAnyRole(...t){return Kn(m.getState().session,...t)}},Ur=Pr.build();var pe=class extends Event{constructor(t,r,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=s??!1}};var Je=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:s,callbackRef:i}of n){let o=s.deref(),a=i.deref();o===void 0||a===void 0||o.dispatchEvent(new pe(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,s=this.pendingContextRequests.get(t.context);s===void 0&&this.pendingContextRequests.set(t.context,s={callbacks:new WeakMap,requests:[]});let i=s.callbacks.get(r);i===void 0&&s.callbacks.set(r,i=new WeakSet),i.has(n)||(i.add(n),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var T=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},b=class extends he.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Ur,this.contextRoot=new Je}render(){return Xs.html`
1
+ "use strict";(()=>{var zi=Object.create;var rn=Object.defineProperty;var Ki=Object.getOwnPropertyDescriptor;var Wi=Object.getOwnPropertyNames;var Gi=Object.getPrototypeOf,Qi=Object.prototype.hasOwnProperty;var it=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Yi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Wi(t))!Qi.call(e,s)&&s!==r&&rn(e,s,{get:()=>t[s],enumerable:!(n=Ki(t,s))||n.enumerable});return e};var y=(e,t,r)=>(r=e!=null?zi(Gi(e)):{},Yi(t||!e||!e.__esModule?rn(r,"default",{value:e,enumerable:!0}):r,e));var v=it((ca,nn)=>{nn.exports=ftGlobals.wcUtils});var ie=it((la,sn)=>{sn.exports=ftGlobals.lit});var q=it((ua,on)=>{on.exports=ftGlobals.litDecorators});var Pi=it((Xd,Fi)=>{Fi.exports=ftGlobals.litUnsafeHTML});var ji=y(v());var st=y(ie()),Ui=y(q()),$i=y(v());var Pe=y(v());var se=y(v()),nt=y(q());var tr;(function(e){e.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(tr||(tr={}));var ne=y(v());var Xi=y(v());var an;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(an||(an={}));var cn;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(cn||(cn={}));var ln;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(ln||(ln={}));var un;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(un||(un={}));var dn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(dn||(dn={}));var pn;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(pn||(pn={}));var hn;(function(e){e.PUBLISHED="PUBLISHED",e.AI="AI"})(hn||(hn={}));var fn;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(fn||(fn={}));var yn;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(yn||(yn={}));var mn;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(mn||(mn={}));var gn;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER",e.DOC_DIFF="DOC_DIFF"})(gn||(gn={}));var Sn;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(Sn||(Sn={}));var En;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(En||(En={}));var An;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(An||(An={}));var vn;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(vn||(vn={}));var bn;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(bn||(bn={}));var xn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(xn||(xn={}));var rr;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(rr||(rr={}));var _n;(function(e){e.ASC="ASC",e.DESC="DESC"})(_n||(_n={}));var Cn;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Cn||(Cn={}));var nr;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(nr||(nr={}));var Tn;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Tn||(Tn={}));var sr;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(sr||(sr={}));var wn;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(wn||(wn={}));var Rn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Rn||(Rn={}));var On;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(On||(On={}));var ir;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ir||(ir={}));var In;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(In||(In={}));var x;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(x||(x={}));var U;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(U||(U={}));var kn;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(kn||(kn={}));var Dn;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(Dn||(Dn={}));var Nn;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Nn||(Nn={}));var Mn;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Mn||(Mn={}));var Ln;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ln||(Ln={}));var Fn;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(Fn||(Fn={}));var Pn;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Pn||(Pn={}));var Un;(function(e){e.CHAT="CHAT",e.COMPLETION="COMPLETION",e.RAG="RAG",e.AGENT="AGENT"})(Un||(Un={}));var $n;(function(e){e.TEXT="TEXT",e.HTML="HTML"})($n||($n={}));var Hn;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Hn||(Hn={}));var Bn;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Bn||(Bn={}));var jn;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(jn||(jn={}));var Vn;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Vn||(Vn={}));var Ji={[x.PERSONAL_BOOK_SHARE_USER]:[x.PERSONAL_BOOK_USER],[x.HTML_EXPORT_USER]:[x.PERSONAL_BOOK_USER],[x.PDF_EXPORT_USER]:[x.PERSONAL_BOOK_USER],[x.KHUB_ADMIN]:[x.CONTENT_PUBLISHER],[x.ADMIN]:[x.KHUB_ADMIN,x.USERS_ADMIN,x.PORTAL_ADMIN,x.BEHAVIOR_DATA_USER],[x.GENERATIVE_AI_EXPORT_USER]:[x.GENERATIVE_AI_USER]};function qn(e,t){return e===t||(Ji[e]??[]).some(r=>qn(r,t))}function ot(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>qn(n,t))}function zn(e,...t){return e==null?!1:t.some(r=>ot(e,r))}var Tr=y(q());var Kn=y(q(),1);var or=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},Zi=e=>({fromAttribute:t=>{if(t==null)return $e(e);try{return JSON.parse(t)}catch{return $e(e)}},toAttribute:t=>JSON.stringify(t)});function Wn(e,t){return(0,Kn.property)({type:Object,converter:Zi(e),hasChanged:He,...t??{}})}function eo(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Re(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Re(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let s=o=>Object.keys(o).filter(a=>o[a]!=null),i=s(e);if(r=i.length,r!==s(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let o=i[n];if(!Re(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Re(e,t){try{return eo(e,t)}catch{return!1}}function He(e,t){return!Re(e,t)}function $e(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function at(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let s=t(n);return s[e]=!0,s}}var Gn=y(q(),1);var ar=e=>{let t=e??{};return(r,n)=>{var s;let i={hasChanged:He,attribute:!1,...t};(0,Gn.property)(i)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(s=t.selector)!==null&&s!==void 0?s:(a=>a[n]),store:t.store})}};var ct=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var oe=y(q(),1);var lt=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let s=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),i=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){s(a);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var dt=y(ie(),1);var ut=class extends dt.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return(0,dt.adoptStyles)(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){or(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Qn(e,t,...r){var n;let s=e.querySelector(t);for(let i of r)s=(n=s?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return s}var Ie=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Zn,Yn=Symbol("constructorPrototype"),Xn=Symbol("constructorName"),es=Symbol("exportpartsDebouncer"),Jn=Symbol("dynamicDependenciesLoaded"),Oe=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Oe.eventName="exportparts-updated";var z=class extends ut{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Zn]=new lt(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[es].run(()=>{var s,i;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Xn]=this.constructor.name,this[Yn]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Xn]&&Object.setPrototypeOf(this,this[Yn])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Jn]||(r[Jn]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Oe.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Oe.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Oe)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:s}=this.elementToFocus;if(n!=null){let i=[...s??[],n];r=Qn(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,s;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var r,n,s,i,o,a;let c=f=>f!=null&&f.trim().length>0,l=t.filter(c).map(f=>f.trim());if(l.length===0){this.exportparts=void 0;return}let p=new Set;for(let f of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let g=(o=(n=f.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],_=(a=(s=f.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&a!==void 0?a:[],F=[...g,..._].filter(c).map(S=>S.trim());for(let S of F)p.add(S)}if(p.size===0){this.exportparts=void 0;return}let d=[...p.values()].flatMap(f=>l.map(g=>`${f}:${g}--${f}`));this.exportparts=[...this.part,...d].join(", ")}};Zn=es;Ie([(0,oe.property)()],z.prototype,"exportpartsPrefix",void 0);Ie([Wn([])],z.prototype,"exportpartsPrefixes",void 0);Ie([(0,oe.property)({reflect:!0})],z.prototype,"exportparts",void 0);Ie([(0,oe.property)()],z.prototype,"customStylesheet",void 0);Ie([(0,oe.property)()],z.prototype,"elementToFocus",void 0);Ie([(0,oe.state)()],z.prototype,"useAdoptedStyleSheets",void 0);function pt(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Be=Symbol("internalReduxEventsUnsubscribers"),ee=Symbol("internalStoresUnsubscribers"),ae=Symbol("internalStores"),to=at(Symbol("withRedux"),function(e){var t,r,n;class s extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[ae].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ae].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[ae].get(o)}addStore(o,a){var c;a=(c=a??o.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(a),this[ae].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[ae].delete(a)}setupStores(){this.unsubscribeFromStores(),this[ae].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let c=this.constructor.getPropertyOptions(a);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:a)){let l=this.getStore(o.store);l&&(o.store?this[ee].has(o.store):this[ee].size>0)&&(this[a]=o.selector(l.getState(),this))}})}subscribeToStore(o,a){var c,l;this[ee].set(o,a.subscribe(()=>this.updateFromStores())),this[Be].set(o,[]),pt(a)&&(!((c=a.deprecatedKeys)===null||c===void 0)&&c.length&&this.reduxConstructor.reduxProperties.forEach((p,d)=>{this.getStore(p.store)===a&&a.deprecatedKeys.includes(d)&&console.warn("Element",this,"is subscribed to deprecated key",d,"in store",a.name)}),a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((p,d)=>{if(typeof this[d]=="function"&&(!p.store||a.name===p.store)){let f=g=>this[d](g);a.addEventListener(p.eventName,f),this[Be].get(o).push(()=>a.removeEventListener(p.eventName,f))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[ee].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[ee].has(o)&&this[ee].get(o)(),this[ee].delete(o),(a=this[Be].get(o))===null||a===void 0||a.forEach(c=>c()),this[Be].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ee,r=ae,n=Be,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),ts=class extends to(z){};function w(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ro=typeof Symbol=="function"&&Symbol.observable||"@@observable",rs=ro,cr=()=>Math.random().toString(36).substring(7).split("").join("."),no={INIT:`@@redux/INIT${cr()}`,REPLACE:`@@redux/REPLACE${cr()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${cr()}`},ht=no;function ft(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function lr(e,t,r){if(typeof e!="function")throw new Error(w(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(w(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(w(1));return r(lr)(e,t)}let n=e,s=t,i=new Map,o=i,a=0,c=!1;function l(){o===i&&(o=new Map,i.forEach((S,P)=>{o.set(P,S)}))}function p(){if(c)throw new Error(w(3));return s}function d(S){if(typeof S!="function")throw new Error(w(4));if(c)throw new Error(w(5));let P=!0;l();let j=a++;return o.set(j,S),function(){if(P){if(c)throw new Error(w(6));P=!1,l(),o.delete(j),i=null}}}function f(S){if(!ft(S))throw new Error(w(7));if(typeof S.type>"u")throw new Error(w(8));if(typeof S.type!="string")throw new Error(w(17));if(c)throw new Error(w(9));try{c=!0,s=n(s,S)}finally{c=!1}return(i=o).forEach(j=>{j()}),S}function g(S){if(typeof S!="function")throw new Error(w(10));n=S,f({type:ht.REPLACE})}function _(){let S=d;return{subscribe(P){if(typeof P!="object"||P===null)throw new Error(w(11));function j(){let A=P;A.next&&A.next(p())}return j(),{unsubscribe:S(j)}},[rs](){return this}}}return f({type:ht.INIT}),{dispatch:f,subscribe:d,getState:p,replaceReducer:g,[rs]:_}}function so(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:ht.INIT})>"u")throw new Error(w(12));if(typeof r(void 0,{type:ht.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(w(13))})}function ur(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let n=Object.keys(r),s,i;try{so(r)}catch(o){i=o}return function(a={},c){if(i)throw i;let l=!1,p={};for(let d=0;d<n.length;d++){let f=n[d],g=r[f],_=a[f],F=g(_,c);if(typeof F>"u"){let S=c&&c.type;throw new Error(w(14))}p[f]=F,l=l||F!==_}return l=l||n.length!==Object.keys(a).length,l?p:a}}function je(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function ns(...e){return t=>(r,n)=>{let s=t(r,n),i=()=>{throw new Error(w(15))},o={getState:s.getState,dispatch:(c,...l)=>i(c,...l)},a=e.map(c=>c(o));return i=je(...a)(s.dispatch),{...s,dispatch:i}}}function ss(e){return ft(e)&&"type"in e&&typeof e.type=="string"}var hs=Symbol.for("immer-nothing"),is=Symbol.for("immer-draftable"),R=Symbol.for("immer-state");function B(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var M=Object,De=M.getPrototypeOf,St="constructor",_t="prototype",fr="configurable",Et="enumerable",mt="writable",Ve="value",K=e=>!!e&&!!e[R];function L(e){return e?fs(e)||Tt(e)||!!e[is]||!!e[St]?.[is]||wt(e)||We(e):!1}var io=M[_t][St].toString(),os=new WeakMap;function fs(e){if(!e||!br(e))return!1;let t=De(e);if(t===null||t===M[_t])return!0;let r=M.hasOwnProperty.call(t,St)&&t[St];if(r===Object)return!0;if(!ke(r))return!1;let n=os.get(r);return n===void 0&&(n=Function.toString.call(r),os.set(r,n)),n===io}function Ct(e,t,r=!0){Ke(e)===0?(r?Reflect.ownKeys(e):M.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((n,s)=>t(s,n,e))}function Ke(e){let t=e[R];return t?t.type_:Tt(e)?1:wt(e)?2:We(e)?3:0}var dr=(e,t,r=Ke(e))=>r===2?e.has(t):M[_t].hasOwnProperty.call(e,t),yr=(e,t,r=Ke(e))=>r===2?e.get(t):e[t],At=(e,t,r,n=Ke(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function oo(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Tt=Array.isArray,wt=e=>e instanceof Map,We=e=>e instanceof Set,br=e=>typeof e=="object",ke=e=>typeof e=="function",pr=e=>typeof e=="boolean";function ao(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Q=e=>e.copy_||e.base_;var xr=e=>e.modified_?e.copy_:e.base_;function mr(e,t){if(wt(e))return new Map(e);if(We(e))return new Set(e);if(Tt(e))return Array[_t].slice.call(e);let r=fs(e);if(t===!0||t==="class_only"&&!r){let n=M.getOwnPropertyDescriptors(e);delete n[R];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){let o=s[i],a=n[o];a[mt]===!1&&(a[mt]=!0,a[fr]=!0),(a.get||a.set)&&(n[o]={[fr]:!0,[mt]:!0,[Et]:a[Et],[Ve]:e[o]})}return M.create(De(e),n)}else{let n=De(e);if(n!==null&&r)return{...e};let s=M.create(n);return M.assign(s,e)}}function Rt(e,t=!1){return Ot(e)||K(e)||!L(e)||(Ke(e)>1&&M.defineProperties(e,{set:yt,add:yt,clear:yt,delete:yt}),M.freeze(e),t&&Ct(e,(r,n)=>{Rt(n,!0)},!1)),e}function co(){B(2)}var yt={[Ve]:co};function Ot(e){return e===null||!br(e)?!0:M.isFrozen(e)}var vt="MapSet",gr="Patches",as="ArrayMethods",ys={};function ce(e){let t=ys[e];return t||B(0,e),t}var cs=e=>!!ys[e];var qe,ms=()=>qe,lo=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:cs(vt)?ce(vt):void 0,arrayMethodsPlugin_:cs(as)?ce(as):void 0});function ls(e,t){t&&(e.patchPlugin_=ce(gr),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Sr(e){Er(e),e.drafts_.forEach(uo),e.drafts_=null}function Er(e){e===qe&&(qe=e.parent_)}var us=e=>qe=lo(qe,e);function uo(e){let t=e[R];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ds(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[R].modified_&&(Sr(t),B(4)),L(e)&&(e=ps(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[R].base_,e,t)}else e=ps(t,r);return po(t,e,!0),Sr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==hs?e:void 0}function ps(e,t){if(Ot(t))return t;let r=t[R];if(!r)return bt(t,e.handledSet_,e);if(!It(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Es(r,e)}return r.copy_}function po(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Rt(t,r)}function gs(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var It=(e,t)=>e.scope_===t,ho=[];function Ss(e,t,r,n){let s=Q(e),i=e.type_;if(n!==void 0&&yr(s,n,i)===t){At(s,n,r,i);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;Ct(s,(c,l)=>{if(K(l)){let p=a.get(l)||[];p.push(c),a.set(l,p)}})}let o=e.draftLocations_.get(t)??ho;for(let a of o)At(s,a,r,i)}function fo(e,t,r){e.callbacks_.push(function(s){let i=t;if(!i||!It(i,s))return;s.mapSetPlugin_?.fixSetContents(i);let o=xr(i);Ss(e,i.draft_??i,o,r),Es(i,s)})}function Es(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let s=n.getPath(e);s&&n.generatePatches_(e,s,t)}gs(e)}}function yo(e,t,r){let{scope_:n}=e;if(K(r)){let s=r[R];It(s,n)&&s.callbacks_.push(function(){gt(e);let o=xr(s);Ss(e,r,o,t)})}else L(r)&&e.callbacks_.push(function(){let i=Q(e);e.type_===3?i.has(r)&&bt(r,n.handledSet_,n):yr(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&bt(yr(e.copy_,t,e.type_),n.handledSet_,n)})}function bt(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||K(e)||t.has(e)||!L(e)||Ot(e)||(t.add(e),Ct(e,(n,s)=>{if(K(s)){let i=s[R];if(It(i,r)){let o=xr(i);At(e,n,o,e.type_),gs(i)}}else L(s)&&bt(s,t,r)})),e}function mo(e,t){let r=Tt(e),n={type_:r?1:0,scope_:t?t.scope_:ms(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=n,i=xt;r&&(s=[n],i=ze);let{revoke:o,proxy:a}=Proxy.revocable(s,i);return n.draft_=a,n.revoke_=o,[a,n]}var xt={get(e,t){if(t===R)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let s=Q(e);if(!dr(s,t,e.type_))return So(e,s,t);let i=s[t];if(e.finalized_||!L(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&ao(t))return i;if(i===hr(e.base_,t)||go(e,t,i)){gt(e);let o=e.type_===1?+t:t,a=vr(e.scope_,i,e,o);return e.copy_[o]=a}return i},has(e,t){return t in Q(e)},ownKeys(e){return Reflect.ownKeys(Q(e))},set(e,t,r){let n=As(Q(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let s=hr(Q(e),t),i=s?.[R];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.delete(t),!0;if(oo(r,s)&&(r!==void 0||dr(e.base_,t,e.type_)))return!0;gt(e),Ar(e)}return e.copy_[t]===r&&(r!==void 0||dr(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),yo(e,t,r)),!0},deleteProperty(e,t){return gt(e),hr(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ar(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Q(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[mt]:!0,[fr]:e.type_!==1||t!=="length",[Et]:n[Et],[Ve]:r[t]}},defineProperty(){B(11)},getPrototypeOf(e){return De(e.base_)},setPrototypeOf(){B(12)}},ze={};for(let e in xt){let t=xt[e];ze[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}ze.deleteProperty=function(e,t){return ze.set.call(this,e,t,void 0)};ze.set=function(e,t,r){return xt.set.call(this,e[0],t,r,e[0])};function hr(e,t){let r=e[R];return(r?Q(r):e)[t]}function go(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||!L(r)||r[R]?!1:e.baseRefs_.has(r)}function So(e,t,r){let n=As(t,r);return n?Ve in n?n[Ve]:n.get?.call(e.draft_):void 0}function As(e,t){if(!(t in e))return;let r=De(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=De(r)}}function Ar(e){e.modified_||(e.modified_=!0,e.parent_&&Ar(e.parent_))}function gt(e){e.copy_||(e.assigned_=new Map,e.copy_=mr(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Eo=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(ke(t)&&!ke(r)){let i=r;r=t;let o=this;return function(c=i,...l){return o.produce(c,p=>r.call(this,p,...l))}}ke(r)||B(6),n!==void 0&&!ke(n)&&B(7);let s;if(L(t)){let i=us(this),o=vr(i,t,void 0),a=!0;try{s=r(o),a=!1}finally{a?Sr(i):Er(i)}return ls(i,n),ds(s,i)}else if(!t||!br(t)){if(s=r(t),s===void 0&&(s=t),s===hs&&(s=void 0),this.autoFreeze_&&Rt(s,!0),n){let i=[],o=[];ce(gr).generateReplacementPatches_(t,s,{patches_:i,inversePatches_:o}),n(i,o)}return s}else B(1,t)},this.produceWithPatches=(t,r)=>{if(ke(t))return(o,...a)=>this.produceWithPatches(o,c=>t(c,...a));let n,s;return[this.produce(t,r,(o,a)=>{n=o,s=a}),n,s]},pr(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),pr(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),pr(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){L(e)||B(8),K(e)&&(e=vs(e));let t=us(this),r=vr(t,e,void 0);return r[R].isManual_=!0,Er(t),r}finishDraft(e,t){let r=e&&e[R];(!r||!r.isManual_)&&B(9);let{scope_:n}=r;return ls(n,t),ds(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));let n=ce(gr).applyPatches_;return K(e)?n(e,t):this.produce(e,s=>n(s,t))}};function vr(e,t,r,n){let[s,i]=wt(t)?ce(vt).proxyMap_(t,r):We(t)?ce(vt).proxySet_(t,r):mo(t,r);return(r?.scope_??ms()).drafts_.push(s),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?fo(r,i,n):i.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:l}=c;i.modified_&&l&&l.generatePatches_(i,[],c)}),s}function vs(e){return K(e)||B(10,e),bs(e)}function bs(e){if(!L(e)||Ot(e))return e;let t=e[R],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=mr(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=mr(e,!0);let s=r;return We(r)&&(r=new Set),Ct(s,(i,o)=>{At(r,i,bs(o))},n),t&&(t.finalized_=!1),r}var Ao=globalThis.Iterator,Ja=typeof Ao?.from=="function";var vo=new Eo,_r=vo.produce;function xs(e){return({dispatch:r,getState:n})=>s=>i=>typeof i=="function"?i(r,n,e):s(i)}var _s=xs(),Cs=xs;var bo=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?je:je.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Qe(e,t){function r(...n){if(t){let s=t(...n);if(!s)throw new Error(W(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>n!=null&&n.type===e&&ss(n),r}var Rs=class Ge extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ge.prototype)}static get[Symbol.species](){return Ge}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ge(...t[0].concat(this)):new Ge(...t.concat(this))}};function Ts(e){return L(e)?_r(e,()=>{}):e}function kt(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function xo(e){return typeof e=="boolean"}var _o=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{},o=new Rs;return r&&(xo(r)?o.push(_s):o.push(Cs(r.extraArgument))),o},Co="RTK_autoBatch";var ws=e=>t=>{setTimeout(t,e)},To=(e,t,r)=>n=>{let s=!1,i,o,a=()=>{s||(s=!0,t?.(i),clearTimeout(o),n())};i=e(a),o=setTimeout(a,r)},wo=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),s=!0,i=!1,o=!1,a=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?To(window.requestAnimationFrame,window.cancelAnimationFrame,100):ws(10):e.type==="callback"?e.queueNotification:ws(e.timeout),l=()=>{o=!1,i&&(i=!1,a.forEach(p=>p()))};return Object.assign({},n,{subscribe(p){let d=()=>s&&p(),f=n.subscribe(d);return a.add(p),()=>{f(),a.delete(p)}},dispatch(p){try{return s=!p?.meta?.[Co],i=!s,i&&(o||(o=!0,c(l))),n.dispatch(p)}finally{s=!0}}})},Ro=e=>function(r){let{autoBatch:n=!0}=r??{},s=new Rs(e);return n&&s.push(wo(typeof n=="object"?n:void 0)),s};function Os(e){let t=_o(),{reducer:r=void 0,middleware:n,devTools:s=!0,duplicateMiddlewareCheck:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},c;if(typeof r=="function")c=r;else if(ft(r))c=ur(r);else throw new Error(W(1));let l;typeof n=="function"?l=n(t):l=t();let p=je;s&&(p=bo({trace:!1,...typeof s=="object"&&s}));let d=ns(...l),f=Ro(d),g=typeof a=="function"?a(f):f(),_=p(...g);return lr(c,o,_)}function Is(e){let t={},r=[],n,s={addCase(i,o){let a=typeof i=="string"?i:i.type;if(!a)throw new Error(W(28));if(a in t)throw new Error(W(29));return t[a]=o,s},addAsyncThunk(i,o){return o.pending&&(t[i.pending.type]=o.pending),o.rejected&&(t[i.rejected.type]=o.rejected),o.fulfilled&&(t[i.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:i.settled,reducer:o.settled}),s},addMatcher(i,o){return r.push({matcher:i,reducer:o}),s},addDefaultCase(i){return n=i,s}};return e(s),[t,r,n]}function Oo(e){return typeof e=="function"}function Io(e,t){let[r,n,s]=Is(t),i;if(Oo(e))i=()=>Ts(e());else{let c=Ts(e);i=()=>c}function o(c,l,p){if(K(c)){let d=l(c,p);return d===void 0?c:d}else{if(L(c))return _r(c,d=>l(d,p));{let d=l(c,p);if(d===void 0){if(c===null)return c;throw new Error(W(9))}return d}}}function a(c=i(),l){let p=r[l.type],d;for(let{matcher:f,reducer:g}of n)f(l)&&g&&(d??=[]).push(g);if(!p&&!d)return s?o(c,s,l):c;if(p&&(c=o(c,p,l)),d)for(let f of d)c=o(c,f,l);return c}return a.getInitialState=i,a}var ko=Symbol.for("rtk-slice-createasyncthunk");function Do(e,t){return`${e}/${t}`}function No({creators:e}={}){let t=e?.asyncThunk?.[ko];return function(n){let{name:s,reducerPath:i=s}=n;if(!s)throw new Error(W(11));typeof process<"u";let o=(typeof n.reducers=="function"?n.reducers(Lo()):n.reducers)||{},a=Object.keys(o),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(E,A){let O=typeof E=="string"?E:E.type;if(!O)throw new Error(W(12));if(O in c.sliceCaseReducersByType)throw new Error(W(13));return c.sliceCaseReducersByType[O]=A,l},addMatcher(E,A){return c.sliceMatchers.push({matcher:E,reducer:A}),l},exposeAction(E,A){return c.actionCreators[E]=A,l},exposeCaseReducer(E,A){return c.sliceCaseReducersByName[E]=A,l}};a.forEach(E=>{let A=o[E],O={reducerName:E,type:Do(s,E),createNotation:typeof n.reducers=="function"};Po(A)?$o(O,A,l,t):Fo(O,A,l)});function p(){let[E={},A=[],O=void 0]=typeof n.extraReducers=="function"?Is(n.extraReducers):[n.extraReducers],Z={...E,...c.sliceCaseReducersByType};return Io(n.initialState,V=>{for(let I in Z)V.addCase(I,Z[I]);for(let I of c.sliceMatchers)V.addMatcher(I.matcher,I.reducer);for(let I of A)V.addMatcher(I.matcher,I.reducer);O&&V.addDefaultCase(O)})}let d=E=>E,f=new Map,g=new WeakMap,_;function F(E,A){return _||(_=p()),_(E,A)}function S(){return _||(_=p()),_.getInitialState()}function P(E,A=!1){function O(V){let I=V[E];return typeof I>"u"&&A&&(I=kt(g,O,S)),I}function Z(V=d){return kt(kt(f,A,()=>new WeakMap),V,()=>{let I={};for(let[Vi,qi]of Object.entries(n.selectors??{}))I[Vi]=Mo(qi,V,()=>kt(g,V,S),A);return I})}return{reducerPath:E,getSelectors:Z,get selectors(){return Z(O)},selectSlice:O}}let j={name:s,reducer:F,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:S,...P(i),injectInto(E,{reducerPath:A,...O}={}){let Z=A??i;return E.inject({reducerPath:Z,reducer:F},O),{...j,...P(Z,!0)}}};return j}}function Mo(e,t,r,n){function s(i,...o){let a=t(i);return typeof a>"u"&&n&&(a=r()),e(a,...o)}return s.unwrapped=e,s}var ks=No();function Lo(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Fo({type:e,reducerName:t,createNotation:r},n,s){let i,o;if("reducer"in n){if(r&&!Uo(n))throw new Error(W(17));i=n.reducer,o=n.prepare}else i=n;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?Qe(e,o):Qe(e))}function Po(e){return e._reducerDefinitionType==="asyncThunk"}function Uo(e){return e._reducerDefinitionType==="reducerWithPrepare"}function $o({type:e,reducerName:t},r,n,s){if(!s)throw new Error(W(18));let{payloadCreator:i,fulfilled:o,pending:a,rejected:c,settled:l,options:p}=r,d=s(e,i,p);n.exposeAction(t,d),o&&n.addCase(d.fulfilled,o),a&&n.addCase(d.pending,a),c&&n.addCase(d.rejected,c),l&&n.addMatcher(d.settled,l),n.exposeCaseReducer(t,{fulfilled:o||Dt,pending:a||Dt,rejected:c||Dt,settled:l||Dt})}function Dt(){}var Ds="listener",Ns="completed",Ms="cancelled",oc=`task-${Ms}`,ac=`task-${Ns}`,cc=`${Ds}-${Ms}`,lc=`${Ds}-${Ns}`;var{assign:Ls}=Object;var Cr="listenerMiddleware";var Ho=Ls(Qe(`${Cr}/add`),{withTypes:()=>Ho}),uc=Qe(`${Cr}/removeAll`),Bo=Ls(Qe(`${Cr}/remove`),{withTypes:()=>Bo});function W(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var jo=at(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,s){this.eventBus.addEventListener(r,n,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,s){this.eventBus.removeEventListener(r,n,s)}}}),Nt=class extends jo(Object){};window.ftReduxStores||(window.ftReduxStores={});var Fs=class e extends Nt{static get(t){var r;let n=typeof t=="string"?t:t.name,s=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(pt(i))return i;if(s==null)return;let o=ks({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=Os({reducer:(c,l)=>{if(l.type==="CLEAR_FT_REDUX_STORE"){let p=$e(o.getInitialState());for(let d of l.keeping)p[d]=(c??p)[d];return p}else if(typeof l.type=="string"&&l.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...l.overwrites};return o.reducer(c,l)}});return window.ftReduxStores[s.name]=new e(o,a,s.eventBus,s.deprecatedKeys)}constructor(t,r,n,s){super(),this.reduxSlice=t,this.reduxStore=r,this.deprecatedKeys=s,this.isFtReduxStore=!0,this.commands=new ct,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let i=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,c)=>{let l=a,p=o[l];return p?(...d)=>{let f=p(...d.map(i));return this.reduxStore.dispatch(f),f}:d=>{let f=l,g=this.getState()[f];Re(g,d)||this.setState({[f]:i(d)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Mt=class{static format(t,r,n,s,i){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,s,!!i)):this.getIntlDateTime(t,r,n,s,!!i)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,s,i){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return i?c:s?`${a} ${c}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Lt=y(v()),Vo="ft-app-info",te=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};te.eventName="authentication-change";var Ye=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Ye.eventName="ui-locale-changed";var qo={session:(e,t)=>{(0,Lt.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>m.dispatchEvent(new te(t.payload)),0))}},m=Lt.FtReduxStore.get({name:Vo,reducers:qo,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Ps=y(v()),Ft=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Uc=(0,Ps.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(m)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var s,i;return((i=(s=this.metadataDescriptors.find(a=>a.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?a=>Mt.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ft([(0,Tr.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Ft([(0,Tr.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Ft([ar({store:m.name,selector:r=>{var n,s;return(s=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&s!==void 0?s:[]}})],t.prototype,"metadataDescriptors",void 0),Ft([ar({store:m.name})],t.prototype,"uiLocale",void 0),t});var Bt=y(v());var wr=y(v());var le=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=m.getState(),s=t??n;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let s=m.subscribe(()=>{n=e.get(t),n&&(s(),r(n))})}})}};var Ne=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:le.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):le.await()}};var N=class extends Ne{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[c])=>a.localeCompare(c)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new wr.CacheRegistry,this.cache=t?s.commonCache:new wr.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Pt=class extends N{async listMySearches(){let{session:t}=m.getState();return ot(t,x.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Ut=class extends N{async listMyBookmarks(){let t=m.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var $t=class extends N{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/api/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/api/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=m.getState().session;return!!t?.sessionAuthenticated}};var Ht=class extends N{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await(await this.awaitApi).get("/api/user/assets/labels")).labels,this.CACHE_DURATION):[]}isAuthenticated(){let t=m.getState().session;return!!t?.sessionAuthenticated}};var zo="ft-user-assets",Ko={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(U).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:s}=t.payload;Or(e,r,[...Rr(e,r),s]),Us(e,r,1,n),$s(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Or(e,r,Rr(e,r).map(s=>s.id===n.id?n:s)),$s(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:s}=t.payload;Or(e,r,Rr(e,r).filter(i=>i.id!==s)),Us(e,r,-1,n)}},Hs={[U.SEARCHES]:"savedSearches",[U.BOOKMARKS]:"bookmarks",[U.BOOKS]:void 0,[U.COLLECTIONS]:void 0},Rr=(e,t)=>{var r;let n=Hs[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Or=(e,t,r)=>{let n=Hs[t];n&&(e[n]=r)},Us=(e,t,r,n)=>{let s=e.assetCounts.allAsset[t];if(s!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,s+r),t===U.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},$s=(e,t)=>{let r=e.assetLabels.map(s=>s.title),n=t.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));e.assetLabels.push(...n)},k=Bt.FtReduxStore.get({name:zo,reducers:Ko,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(U).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ir=class{constructor(t=new $t,r=new Ht){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=m.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ut,this.savedSearchesService=new Pt,m.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=m.getState();(0,Bt.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),k.actions.clearAssetCount(),k.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),k.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),k.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();k.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();k.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&k.getState().assetCounts.allAsset[t]!==r.count&&k.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&k.getState().assetCounts.bookmarkByMap[t]!==r.count&&k.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(k.getState().assetCounts.bookmarkByMap).length!==0;t===U.BOOKMARKS&&r&&k.actions.clearBookmarkCountByMap(),k.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;k.actions.bookmarks(r)}}},Wo=new Ir;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Wo);var kr=class{addCommand(t,r=!1){m.commands.add(t,r)}consumeCommand(t){return m.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new kr;var $=y(v());var Bs,Me=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Go=Symbol("clearAfterUnitTest"),jt=class extends(0,$.withEventBus)(N){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Bs]=()=>{this.defaultMessages={},this.cache=new $.CacheRegistry,this.listeners={}},this.currentUiLocale=m.getState().uiLocale,m.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=m.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let s={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,$.deepEqual)(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var s;let i=t.toLowerCase(),o=this.resolveContext(i);return new $.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},o).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(s){!(s instanceof $.CanceledPromiseError)&&r&&console.error(s)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var s;return(s=this.listeners[t])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Me({loadedContexts:t})),this.dispatchEvent(new Me({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Me({loadedContexts:[t]})),this.dispatchEvent(new Me({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,$.delay)(0).then(()=>n()).catch(()=>null)))}};Bs=Go;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends jt{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends jt{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var js=window.FluidTopicsI18nService,El=window.FluidTopicsCustomI18nService;var Vs=y(v()),Dr=class{highlightHtml(t,r,n){(0,Vs.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Dr;var qs=y(v());var Nr=class{isDate(t){var r,n,s,i;return(i=(n=((s=(r=m.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&s!==void 0?s:[]).find(a=>a.key===t))===null||n===void 0?void 0:n.date)!==null&&i!==void 0?i:!1}format(t,r){var n,s,i,o;if(t==null)return"";try{return qs.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:m.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new Nr;var zs=y(v());var Xe=class{static get(t,r,{baseUrl:n,localesConfiguration:s,availableContentLocales:i}=m.getState()){var o;if(r==="all"&&s?.allLanguagesAllowed)r=void 0;else if(!r||i.length>0&&!i.some(a=>a.lang===r)){let a=s?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=i[0])===null||o===void 0?void 0:o.lang}return new zs.SearchPlaceConverter(n,t??20,s?.allLanguagesAllowed,r,i)}};var Mr=class{urlToSearchRequest(t){return Xe.get().parse(t)}searchRequestToUrl(t){return Xe.get().serialize(t)}};window.FluidTopicsUrlService=new Mr;var Y=y(v());var ue=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};ue.eventName="before-location-change";var de=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};de.eventName="change";var Lr=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Ks=new Lr;var Vt=class e extends Y.WithEventBus{static build(){return new e(window.history,Ks,()=>window.location,!1)}constructor(t,r,n,s){var i,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Y.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new de(this.currentItem())),0)}installProxies(){let t=r=>(n,s,[i,o,a])=>{let c=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),l=new ue(c);this.dispatchEvent(l);let p=r(),d={...p===this.currentIndex?this.currentState:void 0,...i,index:p,href:l.detail.nextLocation.href};n.apply(s,[d,o,d.href]),this.setCurrentState(d,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(t){this.addEventListener(ue.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(ue.eventName,t)}addHistoryChangeListener(t){this.addEventListener(de.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(de.eventName,t)}currentItem(){return(0,Y.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Y.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Y.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Y.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let s=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(s=i),i++;return s}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let s=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Vt.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var Ws=y(ie());var Gs=Ws.css`
2
+ `;var Ys=y(ie()),D=y(q()),he=y(v());var G=y(v());function Qs(e,t){let{authenticationRequired:r,session:n}=m.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var qt=class extends Ne{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Fr=class e extends G.FtStateManager{static build(t){return new e(m,t)}constructor(t,r){super(),this.store=t,this.cache=new G.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new qt,this.knownContexts=new G.AbstractRegistry,this.knownCustomComponents=new G.AbstractRegistry,this.cleanSessionDebouncer=new G.Debouncer,this.reloadConfiguration=()=>{var n;(n=this.cache)===null||n===void 0||n.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new G.Debouncer(500),this.apiProvider=r??(()=>le.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(te.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(te.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>Qs(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}setStickyFilters(t){this.store.actions.stickyFilters(t)}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Ye(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setNoCustomCode(t){this.store.actions.noCustomCode(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}userHasAnyRole(...t){return zn(m.getState().session,...t)}},Pr=Fr.build();var pe=class extends Event{constructor(t,r,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=s??!1}};var Je=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:s,callbackRef:i}of n){let o=s.deref(),a=i.deref();o===void 0||a===void 0||o.dispatchEvent(new pe(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,s=this.pendingContextRequests.get(t.context);s===void 0&&this.pendingContextRequests.set(t.context,s={callbacks:new WeakMap,requests:[]});let i=s.callbacks.get(r);i===void 0&&s.callbacks.set(r,i=new WeakSet),i.has(n)||(i.add(n),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var T=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},b=class extends he.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Pr,this.contextRoot=new Je}render(){return Ys.html`
3
3
  <slot></slot>
4
- `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Vs.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};b.elementDefinitions={};b.styles=Qs;T([(0,D.property)()],b.prototype,"baseUrl",void 0);T([(0,D.property)()],b.prototype,"tenantId",void 0);T([(0,D.property)()],b.prototype,"apiIntegrationIdentifier",void 0);T([(0,D.property)()],b.prototype,"apiIntegrationAppVersion",void 0);T([(0,D.property)()],b.prototype,"uiLocale",void 0);T([(0,he.jsonProperty)(null)],b.prototype,"availableUiLocales",void 0);T([(0,he.jsonProperty)(null)],b.prototype,"metadataConfiguration",void 0);T([(0,D.property)({type:Boolean})],b.prototype,"editorMode",void 0);T([(0,D.property)({type:Boolean})],b.prototype,"noCustom",void 0);T([(0,D.property)({type:Boolean})],b.prototype,"openExternalDocumentInNewTab",void 0);T([(0,D.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],b.prototype,"noCustomComponent",void 0);T([(0,D.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],b.prototype,"noCustomCode",void 0);T([(0,D.property)({type:Boolean})],b.prototype,"withManualResources",void 0);T([(0,D.property)({type:Boolean})],b.prototype,"navigatorOnline",void 0);T([(0,D.property)({type:Boolean})],b.prototype,"forcedOffline",void 0);T([(0,D.property)({type:Boolean})],b.prototype,"authenticationRequired",void 0);T([(0,he.jsonProperty)([])],b.prototype,"messageContexts",void 0);T([(0,he.jsonProperty)(void 0)],b.prototype,"session",void 0);var Zs=y(v());var Js={"ft-app-context":b};(0,Zs.customElements)(Js);var Wt=class extends CustomEvent{constructor(t,r){super("ft-search-result-click",{detail:{result:t,rank:r},bubbles:!0,composed:!0})}},Gt=class extends CustomEvent{constructor(t,r){super("ft-search-result-open-context-menu",{detail:{result:t,rank:r},bubbles:!0,composed:!0})}};var Qt=class e extends Event{constructor(){super(e.eventName)}};Qt.eventName="search-context-clear-all-filters";var $r=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Br=class extends ne.FtContextRegistrationEvent{constructor(t){super("register-ft-search-component",t)}},ei=Symbol("registerInterval"),Hr=Symbol("registerAttempts"),ta=40,ra=(0,ne.applyMixinOnce)(Symbol("toFtSearchComponent"),function(e){class t extends e{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(n){var s,i,o;super.willUpdate(n),n.has("neededSearchRequests")&&((s=this.stateManager)===null||s===void 0||s.unregisterComponent(this,(o=n.get("neededSearchRequests"))!==null&&o!==void 0?o:[]),(i=this.stateManager)===null||i===void 0||i.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Hr]=0,this.tryToRegisterToContext(),this[ei]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Hr]>ta?window.clearInterval(this[ei]):(this[Hr]++,this.dispatchEvent(new Br({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return $r([(0,Ze.state)()],t.prototype,"stateManager",void 0),$r([(0,Ze.state)({hasChanged:ne.hasChanged})],t.prototype,"neededSearchRequests",void 0),$r([(0,Ze.property)()],t.prototype,"searchRegistrationId",void 0),t}),Yt=class extends ra(ne.FtLitElementRedux){};var Jt=y(q()),Xt=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Vr=class extends Le.FtContextRegistrationEvent{constructor(t){super("register-ft-search-result-component",t)}},jr=Symbol("registerInterval"),na=(0,Le.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setResultStateManager(s){this.resultStateManager=s}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[jr]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[jr]):this.dispatchEvent(new Vr({target:this}))}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return t=jr,Xt([(0,Jt.property)({attribute:!1})],r.prototype,"cluster",void 0),Xt([(0,Jt.property)({attribute:!1})],r.prototype,"result",void 0),Xt([(0,Le.numberProperty)()],r.prototype,"rank",void 0),Xt([(0,Jt.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),Zt=class extends na(Yt){};var ti=y(ie()),ri=y(v()),sa={highlightBackgroundColor:ri.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},ni=ti.css`
4
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>js.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};b.elementDefinitions={};b.styles=Gs;T([(0,D.property)()],b.prototype,"baseUrl",void 0);T([(0,D.property)()],b.prototype,"tenantId",void 0);T([(0,D.property)()],b.prototype,"apiIntegrationIdentifier",void 0);T([(0,D.property)()],b.prototype,"apiIntegrationAppVersion",void 0);T([(0,D.property)()],b.prototype,"uiLocale",void 0);T([(0,he.jsonProperty)(null)],b.prototype,"availableUiLocales",void 0);T([(0,he.jsonProperty)(null)],b.prototype,"metadataConfiguration",void 0);T([(0,D.property)({type:Boolean})],b.prototype,"editorMode",void 0);T([(0,D.property)({type:Boolean})],b.prototype,"noCustom",void 0);T([(0,D.property)({type:Boolean})],b.prototype,"openExternalDocumentInNewTab",void 0);T([(0,D.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],b.prototype,"noCustomComponent",void 0);T([(0,D.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],b.prototype,"noCustomCode",void 0);T([(0,D.property)({type:Boolean})],b.prototype,"withManualResources",void 0);T([(0,D.property)({type:Boolean})],b.prototype,"navigatorOnline",void 0);T([(0,D.property)({type:Boolean})],b.prototype,"forcedOffline",void 0);T([(0,D.property)({type:Boolean})],b.prototype,"authenticationRequired",void 0);T([(0,he.jsonProperty)([])],b.prototype,"messageContexts",void 0);T([(0,he.jsonProperty)(void 0)],b.prototype,"session",void 0);var Js=y(v());var Xs={"ft-app-context":b};(0,Js.customElements)(Xs);var hi=y(v());var qr=globalThis,Zs=e=>e,zt=qr.trustedTypes,ei=zt?zt.createPolicy("lit-html",{createHTML:e=>e}):void 0,oi="$lit$",re=`lit$${Math.random().toFixed(9).slice(2)}$`,ai="?"+re,Xo=`<${ai}>`,me=document,Kt=()=>me.createComment(""),et=e=>e===null||typeof e!="object"&&typeof e!="function",zr=Array.isArray,Jo=e=>zr(e)||typeof e?.[Symbol.iterator]=="function",Ur=`[
5
+ \f\r]`,Ze=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ti=/-->/g,ri=/>/g,fe=RegExp(`>|${Ur}(?:([^\\s"'>=/]+)(${Ur}*=${Ur}*(?:[^
6
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ni=/'/g,si=/"/g,ci=/^(?:script|style|textarea|title)$/i,Kr=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),li=Kr(1),ui=Kr(2),di=Kr(3),tt=Symbol.for("lit-noChange"),C=Symbol.for("lit-nothing"),ii=new WeakMap,ye=me.createTreeWalker(me,129);function pi(e,t){if(!zr(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ei!==void 0?ei.createHTML(t):t}var Zo=(e,t)=>{let r=e.length-1,n=[],s,i=t===2?"<svg>":t===3?"<math>":"",o=Ze;for(let a=0;a<r;a++){let c=e[a],l,p,d=-1,f=0;for(;f<c.length&&(o.lastIndex=f,p=o.exec(c),p!==null);)f=o.lastIndex,o===Ze?p[1]==="!--"?o=ti:p[1]!==void 0?o=ri:p[2]!==void 0?(ci.test(p[2])&&(s=RegExp("</"+p[2],"g")),o=fe):p[3]!==void 0&&(o=fe):o===fe?p[0]===">"?(o=s??Ze,d=-1):p[1]===void 0?d=-2:(d=o.lastIndex-p[2].length,l=p[1],o=p[3]===void 0?fe:p[3]==='"'?si:ni):o===si||o===ni?o=fe:o===ti||o===ri?o=Ze:(o=fe,s=void 0);let g=o===fe&&e[a+1].startsWith("/>")?" ":"";i+=o===Ze?c+Xo:d>=0?(n.push(l),c.slice(0,d)+oi+c.slice(d)+re+g):c+re+(d===-2?a:g)}return[pi(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},rt=class e{constructor({strings:t,_$litType$:r},n){let s;this.parts=[];let i=0,o=0,a=t.length-1,c=this.parts,[l,p]=Zo(t,r);if(this.el=e.createElement(l,n),ye.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=ye.nextNode())!==null&&c.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith(oi)){let f=p[o++],g=s.getAttribute(d).split(re),_=/([.?@])?(.*)/.exec(f);c.push({type:1,index:i,name:_[2],strings:g,ctor:_[1]==="."?Hr:_[1]==="?"?Br:_[1]==="@"?jr:Fe}),s.removeAttribute(d)}else d.startsWith(re)&&(c.push({type:6,index:i}),s.removeAttribute(d));if(ci.test(s.tagName)){let d=s.textContent.split(re),f=d.length-1;if(f>0){s.textContent=zt?zt.emptyScript:"";for(let g=0;g<f;g++)s.append(d[g],Kt()),ye.nextNode(),c.push({type:2,index:++i});s.append(d[f],Kt())}}}else if(s.nodeType===8)if(s.data===ai)c.push({type:2,index:i});else{let d=-1;for(;(d=s.data.indexOf(re,d+1))!==-1;)c.push({type:7,index:i}),d+=re.length-1}i++}}static createElement(t,r){let n=me.createElement("template");return n.innerHTML=t,n}};function Le(e,t,r=e,n){if(t===tt)return t;let s=n!==void 0?r._$Co?.[n]:r._$Cl,i=et(t)?void 0:t._$litDirective$;return s?.constructor!==i&&(s?._$AO?.(!1),i===void 0?s=void 0:(s=new i(e),s._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=s:r._$Cl=s),s!==void 0&&(t=Le(e,s._$AS(e,t.values),s,n)),t}var $r=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,s=(t?.creationScope??me).importNode(r,!0);ye.currentNode=s;let i=ye.nextNode(),o=0,a=0,c=n[0];for(;c!==void 0;){if(o===c.index){let l;c.type===2?l=new Wt(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new Vr(i,this,t)),this._$AV.push(l),c=n[++a]}o!==c?.index&&(i=ye.nextNode(),o++)}return ye.currentNode=me,s}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},Wt=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,s){this.type=2,this._$AH=C,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Le(this,t,r),et(t)?t===C||t==null||t===""?(this._$AH!==C&&this._$AR(),this._$AH=C):t!==this._$AH&&t!==tt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Jo(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==C&&et(this._$AH)?this._$AA.nextSibling.data=t:this.T(me.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,s=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=rt.createElement(pi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===s)this._$AH.p(r);else{let i=new $r(s,this),o=i.u(this.options);i.p(r),this.T(o),this._$AH=i}}_$AC(t){let r=ii.get(t.strings);return r===void 0&&ii.set(t.strings,r=new rt(t)),r}k(t){zr(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,s=0;for(let i of t)s===r.length?r.push(n=new e(this.O(Kt()),this.O(Kt()),this,this.options)):n=r[s],n._$AI(i),s++;s<r.length&&(this._$AR(n&&n._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=Zs(t).nextSibling;Zs(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Fe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,s,i){this.type=1,this._$AH=C,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=C}_$AI(t,r=this,n,s){let i=this.strings,o=!1;if(i===void 0)t=Le(this,t,r,0),o=!et(t)||t!==this._$AH&&t!==tt,o&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=Le(this,a[n+c],r,c),l===tt&&(l=this._$AH[c]),o||=!et(l)||l!==this._$AH[c],l===C?t=C:t!==C&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}o&&!s&&this.j(t)}j(t){t===C?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Hr=class extends Fe{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===C?void 0:t}},Br=class extends Fe{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==C)}},jr=class extends Fe{constructor(t,r,n,s,i){super(t,r,n,s,i),this.type=5}_$AI(t,r=this){if((t=Le(this,t,r,0)??C)===tt)return;let n=this._$AH,s=t===C&&n!==C||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==C&&(n===C||s);s&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Vr=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Le(this,t)}};var ea=qr.litHtmlPolyfillSupport;ea?.(rt,Wt),(qr.litHtmlVersions??=[]).push("3.3.3");var Gt=class extends CustomEvent{constructor(t,r){super("ft-search-result-click",{detail:{result:t,rank:r},bubbles:!0,composed:!0})}},Qt=class extends CustomEvent{constructor(t,r){super("ft-search-result-open-context-menu",{detail:{result:t,rank:r},bubbles:!0,composed:!0})}};var Yt=class e extends Event{constructor(){super(e.eventName)}};Yt.eventName="search-context-clear-all-filters";var Wr=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Qr=class extends se.FtContextRegistrationEvent{constructor(t){super("register-ft-search-component",t)}},fi=Symbol("registerInterval"),Gr=Symbol("registerAttempts"),ta=40,ra=(0,se.applyMixinOnce)(Symbol("toFtSearchComponent"),function(e){class t extends e{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(n){var s,i,o;super.willUpdate(n),n.has("neededSearchRequests")&&((s=this.stateManager)===null||s===void 0||s.unregisterComponent(this,(o=n.get("neededSearchRequests"))!==null&&o!==void 0?o:[]),(i=this.stateManager)===null||i===void 0||i.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Gr]=0,this.tryToRegisterToContext(),this[fi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Gr]>ta?window.clearInterval(this[fi]):(this[Gr]++,this.dispatchEvent(new Qr({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Wr([(0,nt.state)()],t.prototype,"stateManager",void 0),Wr([(0,nt.state)({hasChanged:se.hasChanged})],t.prototype,"neededSearchRequests",void 0),Wr([(0,nt.property)()],t.prototype,"searchRegistrationId",void 0),t}),Xt=class extends ra(se.FtLitElementRedux){};var Zt=y(q()),Jt=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Xr=class extends Pe.FtContextRegistrationEvent{constructor(t){super("register-ft-search-result-component",t)}},Yr=Symbol("registerInterval"),na=(0,Pe.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setResultStateManager(s){this.resultStateManager=s}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Yr]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Yr]):this.dispatchEvent(new Xr({target:this}))}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return t=Yr,Jt([(0,Zt.property)({attribute:!1})],r.prototype,"cluster",void 0),Jt([(0,Zt.property)({attribute:!1})],r.prototype,"result",void 0),Jt([(0,Pe.numberProperty)()],r.prototype,"rank",void 0),Jt([(0,Zt.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),er=class extends na(Xt){};var yi=y(ie()),mi=y(v()),sa={highlightBackgroundColor:mi.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},gi=yi.css`
5
7
  .kwicmatch {
6
8
  font-weight: 700;
7
9
  background-color: ${sa.highlightBackgroundColor};
@@ -15,9 +17,7 @@
15
17
  a:focus {
16
18
  outline: revert;
17
19
  }
18
- `;var Yr=globalThis,si=e=>e,er=Yr.trustedTypes,ii=er?er.createPolicy("lit-html",{createHTML:e=>e}):void 0,di="$lit$",se=`lit$${Math.random().toFixed(9).slice(2)}$`,pi="?"+se,ia=`<${pi}>`,me=document,tr=()=>me.createComment(""),tt=e=>e===null||typeof e!="object"&&typeof e!="function",Xr=Array.isArray,oa=e=>Xr(e)||typeof e?.[Symbol.iterator]=="function",qr=`[
19
- \f\r]`,et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oi=/-->/g,ai=/>/g,fe=RegExp(`>|${qr}(?:([^\\s"'>=/]+)(${qr}*=${qr}*(?:[^
20
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ci=/'/g,li=/"/g,hi=/^(?:script|style|textarea|title)$/i,Jr=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),fi=Jr(1),yi=Jr(2),mi=Jr(3),rt=Symbol.for("lit-noChange"),C=Symbol.for("lit-nothing"),ui=new WeakMap,ye=me.createTreeWalker(me,129);function gi(e,t){if(!Xr(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ii!==void 0?ii.createHTML(t):t}var aa=(e,t)=>{let r=e.length-1,n=[],s,i=t===2?"<svg>":t===3?"<math>":"",o=et;for(let a=0;a<r;a++){let c=e[a],l,p,d=-1,f=0;for(;f<c.length&&(o.lastIndex=f,p=o.exec(c),p!==null);)f=o.lastIndex,o===et?p[1]==="!--"?o=oi:p[1]!==void 0?o=ai:p[2]!==void 0?(hi.test(p[2])&&(s=RegExp("</"+p[2],"g")),o=fe):p[3]!==void 0&&(o=fe):o===fe?p[0]===">"?(o=s??et,d=-1):p[1]===void 0?d=-2:(d=o.lastIndex-p[2].length,l=p[1],o=p[3]===void 0?fe:p[3]==='"'?li:ci):o===li||o===ci?o=fe:o===oi||o===ai?o=et:(o=fe,s=void 0);let g=o===fe&&e[a+1].startsWith("/>")?" ":"";i+=o===et?c+ia:d>=0?(n.push(l),c.slice(0,d)+di+c.slice(d)+se+g):c+se+(d===-2?a:g)}return[gi(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},nt=class e{constructor({strings:t,_$litType$:r},n){let s;this.parts=[];let i=0,o=0,a=t.length-1,c=this.parts,[l,p]=aa(t,r);if(this.el=e.createElement(l,n),ye.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=ye.nextNode())!==null&&c.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith(di)){let f=p[o++],g=s.getAttribute(d).split(se),_=/([.?@])?(.*)/.exec(f);c.push({type:1,index:i,name:_[2],strings:g,ctor:_[1]==="."?Kr:_[1]==="?"?Wr:_[1]==="@"?Gr:Pe}),s.removeAttribute(d)}else d.startsWith(se)&&(c.push({type:6,index:i}),s.removeAttribute(d));if(hi.test(s.tagName)){let d=s.textContent.split(se),f=d.length-1;if(f>0){s.textContent=er?er.emptyScript:"";for(let g=0;g<f;g++)s.append(d[g],tr()),ye.nextNode(),c.push({type:2,index:++i});s.append(d[f],tr())}}}else if(s.nodeType===8)if(s.data===pi)c.push({type:2,index:i});else{let d=-1;for(;(d=s.data.indexOf(se,d+1))!==-1;)c.push({type:7,index:i}),d+=se.length-1}i++}}static createElement(t,r){let n=me.createElement("template");return n.innerHTML=t,n}};function Fe(e,t,r=e,n){if(t===rt)return t;let s=n!==void 0?r._$Co?.[n]:r._$Cl,i=tt(t)?void 0:t._$litDirective$;return s?.constructor!==i&&(s?._$AO?.(!1),i===void 0?s=void 0:(s=new i(e),s._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=s:r._$Cl=s),s!==void 0&&(t=Fe(e,s._$AS(e,t.values),s,n)),t}var zr=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,s=(t?.creationScope??me).importNode(r,!0);ye.currentNode=s;let i=ye.nextNode(),o=0,a=0,c=n[0];for(;c!==void 0;){if(o===c.index){let l;c.type===2?l=new rr(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new Qr(i,this,t)),this._$AV.push(l),c=n[++a]}o!==c?.index&&(i=ye.nextNode(),o++)}return ye.currentNode=me,s}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},rr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,s){this.type=2,this._$AH=C,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Fe(this,t,r),tt(t)?t===C||t==null||t===""?(this._$AH!==C&&this._$AR(),this._$AH=C):t!==this._$AH&&t!==rt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):oa(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==C&&tt(this._$AH)?this._$AA.nextSibling.data=t:this.T(me.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,s=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=nt.createElement(gi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===s)this._$AH.p(r);else{let i=new zr(s,this),o=i.u(this.options);i.p(r),this.T(o),this._$AH=i}}_$AC(t){let r=ui.get(t.strings);return r===void 0&&ui.set(t.strings,r=new nt(t)),r}k(t){Xr(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,s=0;for(let i of t)s===r.length?r.push(n=new e(this.O(tr()),this.O(tr()),this,this.options)):n=r[s],n._$AI(i),s++;s<r.length&&(this._$AR(n&&n._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=si(t).nextSibling;si(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Pe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,s,i){this.type=1,this._$AH=C,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=C}_$AI(t,r=this,n,s){let i=this.strings,o=!1;if(i===void 0)t=Fe(this,t,r,0),o=!tt(t)||t!==this._$AH&&t!==rt,o&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=Fe(this,a[n+c],r,c),l===rt&&(l=this._$AH[c]),o||=!tt(l)||l!==this._$AH[c],l===C?t=C:t!==C&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}o&&!s&&this.j(t)}j(t){t===C?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Kr=class extends Pe{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===C?void 0:t}},Wr=class extends Pe{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==C)}},Gr=class extends Pe{constructor(t,r,n,s,i){super(t,r,n,s,i),this.type=5}_$AI(t,r=this){if((t=Fe(this,t,r,0)??C)===rt)return;let n=this._$AH,s=t===C&&n!==C||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==C&&(n===C||s);s&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Qr=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Fe(this,t)}};var ca=Yr.litHtmlPolyfillSupport;ca?.(nt,rr),(Yr.litHtmlVersions??=[]).push("3.3.3");var Ei=Symbol.for(""),la=e=>{if(e?.r===Ei)return e?._$litStatic$},Zr=e=>({_$litStatic$:e,r:Ei});var Si=new Map,en=e=>(t,...r)=>{let n=r.length,s,i,o=[],a=[],c,l=0,p=!1;for(;l<n;){for(c=t[l];l<n&&(i=r[l],(s=la(i))!==void 0);)c+=s+t[++l],p=!0;l!==n&&a.push(i),o.push(c),l++}if(l===n&&o.push(t[n]),p){let d=o.join("$$lit$$");(t=Si.get(d))===void 0&&(o.raw=o,Si.set(d,t=o)),r=a}return e(t,...r)},tn=en(fi),wd=en(yi),Rd=en(mi);var rn=y(q()),Ni=y(v());var Ue;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(Ue||(Ue={}));var H=y(ie()),u=y(v()),Ai=u.FtCssVariableFactory.extend("--ft-typography-font-family","",u.designSystemVariables.titleFont),X=u.FtCssVariableFactory.extend("--ft-typography-font-family","",u.designSystemVariables.contentFont),h={fontFamily:X,fontSize:u.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:u.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:u.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:u.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:u.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:u.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ge={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ai),fontSize:u.FtCssVariableFactory.extend("--ft-typography-title-font-size","",h.fontSize,"20px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",h.fontWeight,"normal"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",h.letterSpacing,"0.15px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-title-line-height","",h.lineHeight,"1.2"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",h.textTransform,"inherit"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",h.textDecoration,"inherit")},Se={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ai),fontSize:u.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",h.fontSize,"14px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",h.fontWeight,"normal"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",h.letterSpacing,"0.105px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",h.lineHeight,"1.7"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",h.textTransform,"inherit"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",h.textDecoration,"inherit")},Ee={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",X),fontSize:u.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",h.fontSize,"16px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",h.fontWeight,"600"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",h.letterSpacing,"0.144px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",h.lineHeight,"1.5"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",h.textTransform,"inherit"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",h.textDecoration,"inherit")},Ae={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",X),fontSize:u.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",h.fontSize,"14px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",h.fontWeight,"normal"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",h.letterSpacing,"0.098px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",h.lineHeight,"1.7"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",h.textTransform,"inherit"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",h.textDecoration,"inherit")},ve={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",X),fontSize:u.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",h.fontSize,"16px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",h.fontWeight,"normal"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",h.letterSpacing,"0.496px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",h.lineHeight,"1.5"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",h.textTransform,"inherit"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",h.textDecoration,"inherit")},be={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",X),fontSize:u.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",h.fontSize,"14px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",h.fontWeight,"normal"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",h.letterSpacing,"0.252px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",h.lineHeight,"1.4"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",h.textTransform,"inherit"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",h.textDecoration,"inherit")},xe={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",X),fontSize:u.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",h.fontSize,"12px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",h.fontWeight,"normal"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",h.letterSpacing,"0.396px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",h.lineHeight,"1.33"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",h.textTransform,"inherit"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",h.textDecoration,"inherit")},_e={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",X),fontSize:u.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",h.fontSize,"10px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",h.fontWeight,"normal"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",h.letterSpacing,"0.33px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",h.lineHeight,"1.6"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",h.textTransform,"inherit"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",h.textDecoration,"inherit")},Ce={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",X),fontSize:u.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",h.fontSize,"10px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",h.fontWeight,"normal"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",h.letterSpacing,"1.5px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",h.lineHeight,"1.6"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",h.textTransform,"uppercase"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",h.textDecoration,"inherit")},Te={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-button-font-family","",X),fontSize:u.FtCssVariableFactory.extend("--ft-typography-button-font-size","",h.fontSize,"14px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",h.fontWeight,"600"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",h.letterSpacing,"1.246px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-button-line-height","",h.lineHeight,"1.15"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",h.textTransform,"uppercase"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",h.textDecoration,"inherit")},vi=H.css`
20
+ `;var Ei=Symbol.for(""),ia=e=>{if(e?.r===Ei)return e?._$litStatic$},Jr=e=>({_$litStatic$:e,r:Ei});var Si=new Map,Zr=e=>(t,...r)=>{let n=r.length,s,i,o=[],a=[],c,l=0,p=!1;for(;l<n;){for(c=t[l];l<n&&(i=r[l],(s=ia(i))!==void 0);)c+=s+t[++l],p=!0;l!==n&&a.push(i),o.push(c),l++}if(l===n&&o.push(t[n]),p){let d=o.join("$$lit$$");(t=Si.get(d))===void 0&&(o.raw=o,Si.set(d,t=o)),r=a}return e(t,...r)},en=Zr(li),Dd=Zr(ui),Nd=Zr(di);var tn=y(q()),Ni=y(v());var Ue;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(Ue||(Ue={}));var H=y(ie()),u=y(v()),Ai=u.FtCssVariableFactory.extend("--ft-typography-font-family","",u.designSystemVariables.titleFont),X=u.FtCssVariableFactory.extend("--ft-typography-font-family","",u.designSystemVariables.contentFont),h={fontFamily:X,fontSize:u.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:u.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:u.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:u.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:u.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:u.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ge={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ai),fontSize:u.FtCssVariableFactory.extend("--ft-typography-title-font-size","",h.fontSize,"20px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",h.fontWeight,"normal"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",h.letterSpacing,"0.15px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-title-line-height","",h.lineHeight,"1.2"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",h.textTransform,"inherit"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",h.textDecoration,"inherit")},Se={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ai),fontSize:u.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",h.fontSize,"14px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",h.fontWeight,"normal"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",h.letterSpacing,"0.105px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",h.lineHeight,"1.7"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",h.textTransform,"inherit"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",h.textDecoration,"inherit")},Ee={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",X),fontSize:u.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",h.fontSize,"16px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",h.fontWeight,"600"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",h.letterSpacing,"0.144px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",h.lineHeight,"1.5"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",h.textTransform,"inherit"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",h.textDecoration,"inherit")},Ae={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",X),fontSize:u.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",h.fontSize,"14px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",h.fontWeight,"normal"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",h.letterSpacing,"0.098px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",h.lineHeight,"1.7"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",h.textTransform,"inherit"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",h.textDecoration,"inherit")},ve={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",X),fontSize:u.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",h.fontSize,"16px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",h.fontWeight,"normal"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",h.letterSpacing,"0.496px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",h.lineHeight,"1.5"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",h.textTransform,"inherit"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",h.textDecoration,"inherit")},be={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",X),fontSize:u.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",h.fontSize,"14px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",h.fontWeight,"normal"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",h.letterSpacing,"0.252px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",h.lineHeight,"1.4"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",h.textTransform,"inherit"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",h.textDecoration,"inherit")},xe={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",X),fontSize:u.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",h.fontSize,"12px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",h.fontWeight,"normal"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",h.letterSpacing,"0.396px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",h.lineHeight,"1.33"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",h.textTransform,"inherit"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",h.textDecoration,"inherit")},_e={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",X),fontSize:u.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",h.fontSize,"10px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",h.fontWeight,"normal"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",h.letterSpacing,"0.33px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",h.lineHeight,"1.6"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",h.textTransform,"inherit"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",h.textDecoration,"inherit")},Ce={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",X),fontSize:u.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",h.fontSize,"10px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",h.fontWeight,"normal"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",h.letterSpacing,"1.5px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",h.lineHeight,"1.6"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",h.textTransform,"uppercase"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",h.textDecoration,"inherit")},Te={fontFamily:u.FtCssVariableFactory.extend("--ft-typography-button-font-family","",X),fontSize:u.FtCssVariableFactory.extend("--ft-typography-button-font-size","",h.fontSize,"14px"),fontWeight:u.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",h.fontWeight,"600"),letterSpacing:u.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",h.letterSpacing,"1.246px"),lineHeight:u.FtCssVariableFactory.extend("--ft-typography-button-line-height","",h.lineHeight,"1.15"),textTransform:u.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",h.textTransform,"uppercase"),textDecoration:u.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",h.textDecoration,"inherit")},vi=H.css`
21
21
  .ft-typography--title {
22
22
  font-family: ${ge.fontFamily};
23
23
  font-size: ${ge.fontSize};
@@ -122,26 +122,26 @@
122
122
  .ft-typography {
123
123
  vertical-align: inherit;
124
124
  }
125
- `;var Di=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},J=class extends Ni.FtLitElement{constructor(){super(...arguments),this.variant=Ue.body1}render(){return this.element?tn`
126
- <${Zr(this.element)}
125
+ `;var Di=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},J=class extends Ni.FtLitElement{constructor(){super(...arguments),this.variant=Ue.body1}render(){return this.element?en`
126
+ <${Jr(this.element)}
127
127
  part="text"
128
128
  class="ft-typography ft-typography--${this.variant}">
129
129
  <slot></slot>
130
- </${Zr(this.element)}>
131
- `:tn`
130
+ </${Jr(this.element)}>
131
+ `:en`
132
132
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
133
- `}};J.styles=[vi,bi,xi,_i,Ci,Ti,wi,Ri,Oi,Ii,ki];Di([(0,rn.property)()],J.prototype,"element",void 0);Di([(0,rn.property)()],J.prototype,"variant",void 0);var Li=y(v());var Mi={"ft-typography":J};(0,Li.customElements)(Mi);var qi=y(Pi());var Ui=e=>e??C;var st=y(v());function $i(e){var t;return((t=(0,st.accessResult)(e))===null||t===void 0?void 0:t.openMode)===at.EXTERNAL}function Hi(e,t){return $i(e)?(0,st.accessResult)(e).originUrl:(0,st.accessResultUrl)(e,t)}function Bi(e,t){return Ui(t&&$i(e)?"_blank":void 0)}var ua=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},we=class extends Zt{constructor(){super(...arguments),this.withoutLink=!1}render(){var t;return this.result?this.withoutLink?this.renderTitle():it.html`
134
- <a href="${Hi(this.result)}"
133
+ `}};J.styles=[vi,bi,xi,_i,Ci,Ti,wi,Ri,Oi,Ii,ki];Di([(0,tn.property)()],J.prototype,"element",void 0);Di([(0,tn.property)()],J.prototype,"variant",void 0);var Li=y(v());var Mi={"ft-typography":J};(0,Li.customElements)(Mi);var Hi=y(Pi());var oa=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},we=class extends er{constructor(){super(...arguments),this.withoutLink=!1}render(){var t,r,n;return this.result?this.withoutLink?this.renderTitle():st.html`
134
+ <a href="${(t=this.stateManager)===null||t===void 0?void 0:t.getResultUrl(this.result)}"
135
135
  @click=${this.onResultClick}
136
- @auxclick=${r=>this.onAuxClick(r)}
136
+ @auxclick=${s=>this.onAuxClick(s)}
137
137
  @contextmenu=${this.onContextMenu}
138
- target="${Bi(this.result,(t=this.stateManager)===null||t===void 0?void 0:t.openExternalDocumentInNewTab)}"
138
+ target="${(r=this.stateManager)===null||r===void 0?void 0:r.getResultTarget(this.result,(n=this.stateManager)===null||n===void 0?void 0:n.openExternalDocumentInNewTab)}"
139
139
  part="link">
140
140
  ${this.renderTitle()}
141
141
  </a>
142
- `:it.nothing}onAuxClick(t){t.button==1&&this.onResultClick()}renderTitle(){var t;return it.html`
143
- <ft-typography variant="${Ue.title}" part="text">${(0,qi.unsafeHTML)((t=(0,Vi.accessResult)(this.result))===null||t===void 0?void 0:t.htmlTitle)}</ft-typography>
144
- `}onResultClick(){this.dispatchEvent(new Wt(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new Gt(this.result,this.rank))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(n=>n.setAttribute("part","kwicmatch")),!this.withoutLink&&t.has("rank")&&this.rank!=null&&!((r=this.stateManager)===null||r===void 0)&&r.store.commands.consume(`focus-result-${this.rank}`)&&(this.elementToFocus={selector:"a"})}};we.elementDefinitions={"ft-typography":J};we.styles=ni;ua([(0,ji.property)({type:Boolean})],we.prototype,"withoutLink",void 0);var zi={"ft-search-result-title":we};(0,Ki.customElements)(zi);})();
142
+ `:st.nothing}onAuxClick(t){t.button==1&&this.onResultClick()}renderTitle(){var t;return st.html`
143
+ <ft-typography variant="${Ue.title}" part="text">${(0,Hi.unsafeHTML)((t=(0,$i.accessResult)(this.result))===null||t===void 0?void 0:t.htmlTitle)}</ft-typography>
144
+ `}onResultClick(){this.dispatchEvent(new Gt(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new Qt(this.result,this.rank))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(n=>n.setAttribute("part","kwicmatch")),!this.withoutLink&&t.has("rank")&&this.rank!=null&&!((r=this.stateManager)===null||r===void 0)&&r.store.commands.consume(`focus-result-${this.rank}`)&&(this.elementToFocus={selector:"a"})}};we.elementDefinitions={"ft-typography":J};we.styles=gi;oa([(0,Ui.property)({type:Boolean})],we.prototype,"withoutLink",void 0);var Bi={"ft-search-result-title":we};(0,ji.customElements)(Bi);})();
145
145
  /*! Bundled license information:
146
146
 
147
147
  .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/context-request-event.js:
@@ -171,17 +171,17 @@
171
171
  * SPDX-License-Identifier: BSD-3-Clause
172
172
  *)
173
173
 
174
- .store/lit-html-npm-3.3.3-0f054b825a/package/static.js:
174
+ .store/lit-html-npm-3.3.3-0f054b825a/package/directives/if-defined.js:
175
175
  (**
176
176
  * @license
177
- * Copyright 2020 Google LLC
177
+ * Copyright 2018 Google LLC
178
178
  * SPDX-License-Identifier: BSD-3-Clause
179
179
  *)
180
180
 
181
- .store/lit-html-npm-3.3.3-0f054b825a/package/directives/if-defined.js:
181
+ .store/lit-html-npm-3.3.3-0f054b825a/package/static.js:
182
182
  (**
183
183
  * @license
184
- * Copyright 2018 Google LLC
184
+ * Copyright 2020 Google LLC
185
185
  * SPDX-License-Identifier: BSD-3-Clause
186
186
  *)
187
187
  */