@fluid-topics/ft-search-results 2.1.0 → 2.1.2

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.
@@ -1,19 +1,19 @@
1
- "use strict";(()=>{var ja=Object.create;var wn=Object.defineProperty;var $a=Object.getOwnPropertyDescriptor;var Ha=Object.getOwnPropertyNames;var Ba=Object.getPrototypeOf,qa=Object.prototype.hasOwnProperty;var nt=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Va=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ha(e))!qa.call(t,s)&&s!==r&&wn(t,s,{get:()=>e[s],enumerable:!(n=$a(e,s))||n.enumerable});return t};var y=(t,e,r)=>(r=t!=null?ja(Ba(t)):{},Va(e||!t||!t.__esModule?wn(r,"default",{value:t,enumerable:!0}):r,t));var E=nt((nu,On)=>{On.exports=ftGlobals.wcUtils});var L=nt((su,Rn)=>{Rn.exports=ftGlobals.lit});var In=nt((iu,_n)=>{_n.exports=ftGlobals.litRepeat});var P=nt((au,kn)=>{kn.exports=ftGlobals.litDecorators});var Sn=nt((Ah,da)=>{da.exports=ftGlobals.litUnsafeHTML});var Ua=y(E());var pr=y(L()),Da=y(In()),hr=y(P()),W=y(E());var Ln=y(L());var Mn=Ln.css`
1
+ "use strict";(()=>{var ja=Object.create;var Tn=Object.defineProperty;var $a=Object.getOwnPropertyDescriptor;var Ha=Object.getOwnPropertyNames;var Ba=Object.getPrototypeOf,qa=Object.prototype.hasOwnProperty;var nt=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Va=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ha(e))!qa.call(t,s)&&s!==r&&Tn(t,s,{get:()=>e[s],enumerable:!(n=$a(e,s))||n.enumerable});return t};var y=(t,e,r)=>(r=t!=null?ja(Ba(t)):{},Va(e||!t||!t.__esModule?Tn(r,"default",{value:t,enumerable:!0}):r,t));var E=nt((nu,Rn)=>{Rn.exports=ftGlobals.wcUtils});var L=nt((su,On)=>{On.exports=ftGlobals.lit});var In=nt((iu,_n)=>{_n.exports=ftGlobals.litRepeat});var N=nt((au,kn)=>{kn.exports=ftGlobals.litDecorators});var Sn=nt((Ah,da)=>{da.exports=ftGlobals.litUnsafeHTML});var Ua=y(E());var pr=y(L()),Da=y(In()),hr=y(N()),W=y(E());var Ln=y(L());var Mn=Ln.css`
2
2
  [part="no-results-message"] {
3
3
  text-align: center;
4
4
  padding: 12px;
5
5
  }
6
- `;var Fe=y(E()),tn=y(P());var st;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(st||(st={}));var ve=y(E());var Ka=y(E());var Pn;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Pn||(Pn={}));var Nn;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Nn||(Nn={}));var Dn;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Dn||(Dn={}));var Fn;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Fn||(Fn={}));var Un;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Un||(Un={}));var jn;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(jn||(jn={}));var $n;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})($n||($n={}));var Hn;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Hn||(Hn={}));var Bn;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Bn||(Bn={}));var qn;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(qn||(qn={}));var Vn;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Vn||(Vn={}));var Kn;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Kn||(Kn={}));var zn;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(zn||(zn={}));var Wn;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Wn||(Wn={}));var Gn;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Gn||(Gn={}));var Yn;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Yn||(Yn={}));var fr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(fr||(fr={}));var Qn;(function(t){t.ASC="ASC",t.DESC="DESC"})(Qn||(Qn={}));var Xn;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Xn||(Xn={}));var mr;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(mr||(mr={}));var Jn;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Jn||(Jn={}));var xt;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(xt||(xt={}));var Zn;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Zn||(Zn={}));var es;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(es||(es={}));var ts;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ts||(ts={}));var yr;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(yr||(yr={}));var rs;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(rs||(rs={}));var R;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(R||(R={}));var U;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(U||(U={}));var ns;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(ns||(ns={}));var ss;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(ss||(ss={}));var is;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(is||(is={}));var as;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.OTHER="OTHER"})(as||(as={}));var os;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(os||(os={}));var us;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(us||(us={}));var cs;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(cs||(cs={}));var ls;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(ls||(ls={}));var ds;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(ds||(ds={}));var ps;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(ps||(ps={}));var hs;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(hs||(hs={}));var fs;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(fs||(fs={}));var za={[R.PERSONAL_BOOK_SHARE_USER]:[R.PERSONAL_BOOK_USER],[R.HTML_EXPORT_USER]:[R.PERSONAL_BOOK_USER],[R.PDF_EXPORT_USER]:[R.PERSONAL_BOOK_USER],[R.KHUB_ADMIN]:[R.CONTENT_PUBLISHER],[R.ADMIN]:[R.KHUB_ADMIN,R.USERS_ADMIN,R.PORTAL_ADMIN,R.BEHAVIOR_DATA_USER],[R.GENERATIVE_AI_EXPORT_USER]:[R.GENERATIVE_AI_USER]};function ms(t,e){return t===e||(za[t]??[]).some(r=>ms(r,e))}function ys(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>ms(n,e))}var Br=y(P());var gs=y(P(),1);var gr=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function vs(t,e){return(0,gs.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return it(t);try{return JSON.parse(r)}catch{return it(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:at,...e??{}})}function Wa(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Et(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Et(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let s=a=>Object.keys(a).filter(o=>a[o]!=null),i=s(t);if(r=i.length,r!==s(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){let a=i[n];if(!Et(t[a],e[a]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Et(t,e){try{return Wa(t,e)}catch{return!1}}function at(t,e){return!Et(t,e)}function it(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Ct(t,e){let r=n=>n[t]===!0;return n=>{if(r(n))return n;let s=e(n);return s[t]=!0,s}}var bs=y(P(),1);var vr=t=>{let e=t??{};return(r,n)=>{var s;let i={hasChanged:at,attribute:!1,...e};(0,bs.property)(i)(r,n);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(n,{selector:(s=e.selector)!==null&&s!==void 0?s:(o=>o[n]),store:e.store})}};var Tt=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var ce=y(P(),1);var wt=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let s=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),i=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let a of n)try{await a()}catch(o){s(o);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 As=y(L(),1);var Ot=globalThis,Ga=Ot.ShadowRoot&&(Ot.ShadyCSS===void 0||Ot.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Ss=(t,e)=>{if(Ga)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let n=document.createElement("style"),s=Ot.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=r.cssText,t.appendChild(n)}};var Rt=class extends As.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Ss(n,e.elementStyles),n}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(e,r){gr(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function xs(t,e,...r){var n;let s=t.querySelector(e);for(let i of r)s=(n=s?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return s}var we=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},ws,Es=Symbol("constructorPrototype"),Cs=Symbol("constructorName"),Os=Symbol("exportpartsDebouncer"),Ts=Symbol("dynamicDependenciesLoaded"),Te=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Te.eventName="exportparts-updated";var G=class extends Rt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ws]=new wt(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Os].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[Cs]=this.constructor.name,this[Es]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Cs]&&Object.setPrototypeOf(this,this[Es])}connectedCallback(){var e;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[Ts]||(r[Ts]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Te.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Te.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Te)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:s}=this.elementToFocus;if(n!=null){let i=[...s??[],n];r=xs(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){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(e.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(e){var r,n,s,i,a,o;let u=p=>p!=null&&p.trim().length>0,c=e.filter(u).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let l=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let m=(i=(s=p.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&i!==void 0?i:[],h=(o=(a=p.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(S=>S.split(":")[1]))!==null&&o!==void 0?o:[],g=[...m,...h].filter(u).map(S=>S.trim());for(let S of g)l.add(S)}if(l.size===0){this.exportparts=void 0;return}let d=[...l.values()].flatMap(p=>c.map(m=>`${p}:${m}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};ws=Os;we([(0,ce.property)()],G.prototype,"exportpartsPrefix",void 0);we([vs([])],G.prototype,"exportpartsPrefixes",void 0);we([(0,ce.property)({reflect:!0})],G.prototype,"exportparts",void 0);we([(0,ce.property)()],G.prototype,"customStylesheet",void 0);we([(0,ce.property)()],G.prototype,"elementToFocus",void 0);we([(0,ce.state)()],G.prototype,"useAdoptedStyleSheets",void 0);function _t(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ot=Symbol("internalReduxEventsUnsubscribers"),re=Symbol("internalStoresUnsubscribers"),le=Symbol("internalStores"),Ya=Ct(Symbol("withRedux"),function(t){var e,r,n;class s extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(a){super.willUpdate(a),[...this.reduxConstructor.reduxReactiveProperties].some(o=>a.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[le].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[le].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[le].get(a)}addStore(a,o){var u;o=(u=o??a.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(o),this[le].set(o,a),this.subscribeToStore(o,a),this.updateFromStores()}removeStore(a){let o=typeof a=="string"?a:a.name;this.unsubscribeFromStore(o),this[le].delete(o)}setupStores(){this.unsubscribeFromStores(),this[le].forEach((a,o)=>this.subscribeToStore(o,a)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((a,o)=>{let u=this.constructor.getPropertyOptions(o);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:o)){let c=this.getStore(a.store);c&&(a.store?this[re].has(a.store):this[re].size>0)&&(this[o]=a.selector(c.getState(),this))}})}subscribeToStore(a,o){var u;this[re].set(a,o.subscribe(()=>this.updateFromStores())),this[ot].set(a,[]),_t(o)&&o.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((c,l)=>{if(typeof this[l]=="function"&&(!c.store||o.name===c.store)){let d=p=>this[l](p);o.addEventListener(c.eventName,d),this[ot].get(a).push(()=>o.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(a)}unsubscribeFromStores(){this[re].forEach((a,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(a){var o;this[re].has(a)&&this[re].get(a)(),this[re].delete(a),(o=this[ot].get(a))===null||o===void 0||o.forEach(u=>u()),this[ot].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=re,r=le,n=ot,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Rs=class extends Ya(G){};function j(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var s,i;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(a){return"'"+a+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function J(t){return!!t&&!!t[T]}function V(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var s=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===no})(t)||Array.isArray(t)||!!t[Ns]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ns])||Or(t)||Rr(t))}function de(t,e,r){r===void 0&&(r=!1),_e(t)===0?(r?Object.keys:Re)(t).forEach((function(n){r&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,s){return e(s,n,t)}))}function _e(t){var e=t[T];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Or(t)?2:Rr(t)?3:0}function Oe(t,e){return _e(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Qa(t,e){return _e(t)===2?t.get(e):t[e]}function Ds(t,e,r){var n=_e(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Fs(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Or(t){return to&&t instanceof Map}function Rr(t){return ro&&t instanceof Set}function ne(t){return t.o||t.t}function _r(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=$s(t);delete e[T];for(var r=Re(e),n=0;n<r.length;n++){var s=r[n],i=e[s];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[s]})}return Object.create(Object.getPrototypeOf(t),e)}function Ir(t,e){return e===void 0&&(e=!1),kr(t)||J(t)||!V(t)||(_e(t)>1&&(t.set=t.add=t.clear=t.delete=Xa),Object.freeze(t),e&&de(t,(function(r,n){return Ir(n,!0)}),!0)),t}function Xa(){j(2)}function kr(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Y(t){var e=wr[t];return e||j(18,t),e}function Ja(t,e){wr[t]||(wr[t]=e)}function Er(){return ct}function br(t,e){e&&(Y("Patches"),t.u=[],t.s=[],t.v=e)}function It(t){Cr(t),t.p.forEach(Za),t.p=null}function Cr(t){t===ct&&(ct=t.l)}function _s(t){return ct={p:[],l:ct,h:t,m:!0,_:0}}function Za(t){var e=t[T];e.i===0||e.i===1?e.j():e.g=!0}function Sr(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Y("ES5").S(e,t,n),n?(r[T].P&&(It(e),j(4)),V(t)&&(t=kt(e,t),e.l||Lt(e,t)),e.u&&Y("Patches").M(r[T].t,t,e.u,e.s)):t=kt(e,r,[]),It(e),e.u&&e.v(e.u,e.s),t!==js?t:void 0}function kt(t,e,r){if(kr(e))return e;var n=e[T];if(!n)return de(e,(function(o,u){return Is(t,n,e,o,u,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return Lt(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var s=n.i===4||n.i===5?n.o=_r(n.k):n.o,i=s,a=!1;n.i===3&&(i=new Set(s),s.clear(),a=!0),de(i,(function(o,u){return Is(t,n,s,o,u,r,a)})),Lt(t,s,!1),r&&t.u&&Y("Patches").N(n,r,t.u,t.s)}return n.o}function Is(t,e,r,n,s,i,a){if(J(s)){var o=kt(t,s,i&&e&&e.i!==3&&!Oe(e.R,n)?i.concat(n):void 0);if(Ds(r,n,o),!J(o))return;t.m=!1}else a&&r.add(s);if(V(s)&&!kr(s)){if(!t.h.D&&t._<1)return;kt(t,s),e&&e.A.l||Lt(t,s)}}function Lt(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ir(e,r)}function Ar(t,e){var r=t[T];return(r?ne(r):t)[e]}function ks(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function se(t){t.P||(t.P=!0,t.l&&se(t.l))}function xr(t){t.o||(t.o=_r(t.t))}function Tr(t,e,r){var n=Or(e)?Y("MapSet").F(e,r):Rr(e)?Y("MapSet").T(e,r):t.O?(function(s,i){var a=Array.isArray(s),o={i:a?1:0,A:i?i.A:Er(),P:!1,I:!1,R:{},l:i,t:s,k:null,o:null,j:null,C:!1},u=o,c=lt;a&&(u=[o],c=ut);var l=Proxy.revocable(u,c),d=l.revoke,p=l.proxy;return o.k=p,o.j=d,p})(e,r):Y("ES5").J(e,r);return(r?r.A:Er()).p.push(n),n}function eo(t){return J(t)||j(22,t),(function e(r){if(!V(r))return r;var n,s=r[T],i=_e(r);if(s){if(!s.P&&(s.i<4||!Y("ES5").K(s)))return s.t;s.I=!0,n=Ls(r,i),s.I=!1}else n=Ls(r,i);return de(n,(function(a,o){s&&Qa(s.t,a)===o||Ds(n,a,e(o))})),i===3?new Set(n):n})(t)}function Ls(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return _r(t)}function Us(){function t(a,o){var u=i[a];return u?u.enumerable=o:i[a]=u={configurable:!0,enumerable:o,get:function(){var c=this[T];return lt.get(c,a)},set:function(c){var l=this[T];lt.set(l,a,c)}},u}function e(a){for(var o=a.length-1;o>=0;o--){var u=a[o][T];if(!u.P)switch(u.i){case 5:n(u)&&se(u);break;case 4:r(u)&&se(u)}}}function r(a){for(var o=a.t,u=a.k,c=Re(u),l=c.length-1;l>=0;l--){var d=c[l];if(d!==T){var p=o[d];if(p===void 0&&!Oe(o,d))return!0;var m=u[d],h=m&&m[T];if(h?h.t!==p:!Fs(m,p))return!0}}var g=!!o[T];return c.length!==Re(o).length+(g?0:1)}function n(a){var o=a.k;if(o.length!==a.t.length)return!0;var u=Object.getOwnPropertyDescriptor(o,o.length-1);if(u&&!u.get)return!0;for(var c=0;c<o.length;c++)if(!o.hasOwnProperty(c))return!0;return!1}function s(a){a.g&&j(3,JSON.stringify(ne(a)))}var i={};Ja("ES5",{J:function(a,o){var u=Array.isArray(a),c=(function(d,p){if(d){for(var m=Array(p.length),h=0;h<p.length;h++)Object.defineProperty(m,""+h,t(h,!0));return m}var g=$s(p);delete g[T];for(var S=Re(g),A=0;A<S.length;A++){var x=S[A];g[x]=t(x,d||!!g[x].enumerable)}return Object.create(Object.getPrototypeOf(p),g)})(u,a),l={i:u?5:4,A:o?o.A:Er(),P:!1,I:!1,R:{},l:o,t:a,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,T,{value:l,writable:!0}),c},S:function(a,o,u){u?J(o)&&o[T].A===a&&e(a.p):(a.u&&(function c(l){if(l&&typeof l=="object"){var d=l[T];if(d){var p=d.t,m=d.k,h=d.R,g=d.i;if(g===4)de(m,(function(C){C!==T&&(p[C]!==void 0||Oe(p,C)?h[C]||c(m[C]):(h[C]=!0,se(d)))})),de(p,(function(C){m[C]!==void 0||Oe(m,C)||(h[C]=!1,se(d))}));else if(g===5){if(n(d)&&(se(d),h.length=!0),m.length<p.length)for(var S=m.length;S<p.length;S++)h[S]=!1;else for(var A=p.length;A<m.length;A++)h[A]=!0;for(var x=Math.min(m.length,p.length),w=0;w<x;w++)m.hasOwnProperty(w)||(h[w]=!0),h[w]===void 0&&c(m[w])}}}})(a.p[0]),e(a.p))},K:function(a){return a.i===4?r(a):n(a)}})}var Ms,ct,Lr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",to=typeof Map<"u",ro=typeof Set<"u",Ps=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",js=Lr?Symbol.for("immer-nothing"):((Ms={})["immer-nothing"]=!0,Ms),Ns=Lr?Symbol.for("immer-draftable"):"__$immer_draftable",T=Lr?Symbol.for("immer-state"):"__$immer_state";var no=""+Object.prototype.constructor,Re=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,$s=Object.getOwnPropertyDescriptors||function(t){var e={};return Re(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},wr={},lt={get:function(t,e){if(e===T)return t;var r=ne(t);if(!Oe(r,e))return(function(s,i,a){var o,u=ks(i,a);return u?"value"in u?u.value:(o=u.get)===null||o===void 0?void 0:o.call(s.k):void 0})(t,r,e);var n=r[e];return t.I||!V(n)?n:n===Ar(t.t,e)?(xr(t),t.o[e]=Tr(t.A.h,n,t)):n},has:function(t,e){return e in ne(t)},ownKeys:function(t){return Reflect.ownKeys(ne(t))},set:function(t,e,r){var n=ks(ne(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var s=Ar(ne(t),e),i=s?.[T];if(i&&i.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Fs(r,s)&&(r!==void 0||Oe(t.t,e)))return!0;xr(t),se(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ar(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,xr(t),se(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ne(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){j(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){j(12)}},ut={};de(lt,(function(t,e){ut[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),ut.deleteProperty=function(t,e){return ut.set.call(this,t,e,void 0)},ut.set=function(t,e,r){return lt.set.call(this,t[0],e,r,t[0])};var so=(function(){function t(r){var n=this;this.O=Ps,this.D=!0,this.produce=function(s,i,a){if(typeof s=="function"&&typeof i!="function"){var o=i;i=s;var u=n;return function(g){var S=this;g===void 0&&(g=o);for(var A=arguments.length,x=Array(A>1?A-1:0),w=1;w<A;w++)x[w-1]=arguments[w];return u.produce(g,(function(C){var te;return(te=i).call.apply(te,[S,C].concat(x))}))}}var c;if(typeof i!="function"&&j(6),a!==void 0&&typeof a!="function"&&j(7),V(s)){var l=_s(n),d=Tr(n,s,void 0),p=!0;try{c=i(d),p=!1}finally{p?It(l):Cr(l)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(g){return br(l,a),Sr(g,l)}),(function(g){throw It(l),g})):(br(l,a),Sr(c,l))}if(!s||typeof s!="object"){if((c=i(s))===void 0&&(c=s),c===js&&(c=void 0),n.D&&Ir(c,!0),a){var m=[],h=[];Y("Patches").M(s,c,m,h),a(m,h)}return c}j(21,s)},this.produceWithPatches=function(s,i){if(typeof s=="function")return function(c){for(var l=arguments.length,d=Array(l>1?l-1:0),p=1;p<l;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,(function(m){return s.apply(void 0,[m].concat(d))}))};var a,o,u=n.produce(s,i,(function(c,l){a=c,o=l}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(c){return[c,a,o]})):[u,a,o]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){V(r)||j(8),J(r)&&(r=eo(r));var n=_s(this),s=Tr(this,r,void 0);return s[T].C=!0,Cr(n),s},e.finishDraft=function(r,n){var s=r&&r[T],i=s.A;return br(i,n),Sr(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Ps&&j(20),this.O=r},e.applyPatches=function(r,n){var s;for(s=n.length-1;s>=0;s--){var i=n[s];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}s>-1&&(n=n.slice(s+1));var a=Y("Patches").$;return J(r)?a(r,n):this.produce(r,(function(o){return a(o,n)}))},t})(),D=new so,io=D.produce,Qu=D.produceWithPatches.bind(D),Xu=D.setAutoFreeze.bind(D),Ju=D.setUseProxies.bind(D),Zu=D.applyPatches.bind(D),ec=D.createDraft.bind(D),tc=D.finishDraft.bind(D),Mt=io;function pe(t){"@babel/helpers - typeof";return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(t)}function Hs(t,e){if(pe(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(pe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Bs(t){var e=Hs(t,"string");return pe(e)=="symbol"?e:e+""}function qs(t,e,r){return(e=Bs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function Mr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Vs(Object(r),!0).forEach(function(n){qs(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vs(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function I(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Ks=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Pr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Pt={INIT:"@@redux/INIT"+Pr(),REPLACE:"@@redux/REPLACE"+Pr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Pr()}};function ao(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Nr(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(I(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(I(1));return r(Nr)(t,e)}if(typeof t!="function")throw new Error(I(2));var s=t,i=e,a=[],o=a,u=!1;function c(){o===a&&(o=a.slice())}function l(){if(u)throw new Error(I(3));return i}function d(g){if(typeof g!="function")throw new Error(I(4));if(u)throw new Error(I(5));var S=!0;return c(),o.push(g),function(){if(S){if(u)throw new Error(I(6));S=!1,c();var x=o.indexOf(g);o.splice(x,1),a=null}}}function p(g){if(!ao(g))throw new Error(I(7));if(typeof g.type>"u")throw new Error(I(8));if(u)throw new Error(I(9));try{u=!0,i=s(i,g)}finally{u=!1}for(var S=a=o,A=0;A<S.length;A++){var x=S[A];x()}return g}function m(g){if(typeof g!="function")throw new Error(I(10));s=g,p({type:Pt.REPLACE})}function h(){var g,S=d;return g={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(I(11));function w(){x.next&&x.next(l())}w();var C=S(w);return{unsubscribe:C}}},g[Ks]=function(){return this},g}return p({type:Pt.INIT}),n={dispatch:p,subscribe:d,getState:l,replaceReducer:m},n[Ks]=h,n}function oo(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Pt.INIT});if(typeof n>"u")throw new Error(I(12));if(typeof r(void 0,{type:Pt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(I(13))})}function zs(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var s=e[n];typeof t[s]=="function"&&(r[s]=t[s])}var i=Object.keys(r),a,o;try{oo(r)}catch(u){o=u}return function(c,l){if(c===void 0&&(c={}),o)throw o;if(0)var d;for(var p=!1,m={},h=0;h<i.length;h++){var g=i[h],S=r[g],A=c[g],x=S(A,l);if(typeof x>"u"){var w=l&&l.type;throw new Error(I(14))}m[g]=x,p=p||x!==A}return p=p||i.length!==Object.keys(c).length,p?m:c}}function Ie(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,s){return function(){return n(s.apply(void 0,arguments))}})}function Ws(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var s=n.apply(void 0,arguments),i=function(){throw new Error(I(15))},a={getState:s.getState,dispatch:function(){return i.apply(void 0,arguments)}},o=e.map(function(u){return u(a)});return i=Ie.apply(void 0,o)(s.dispatch),Mr(Mr({},s),{},{dispatch:i})}}}function Gs(t){var e=function(n){var s=n.dispatch,i=n.getState;return function(a){return function(o){return typeof o=="function"?o(s,i,t):a(o)}}};return e}var Ys=Gs();Ys.withExtraArgument=Gs;var Dr=Ys;var ei=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),uo=function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,s&&(i=c[0]&2?s.return:c[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,c[1])).done)return i;switch(s=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,s=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(l){c=[6,l],s=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ke=function(t,e){for(var r=0,n=e.length,s=t.length;r<n;r++,s++)t[s]=e[r];return t},co=Object.defineProperty,lo=Object.defineProperties,po=Object.getOwnPropertyDescriptors,Qs=Object.getOwnPropertySymbols,ho=Object.prototype.hasOwnProperty,fo=Object.prototype.propertyIsEnumerable,Xs=function(t,e,r){return e in t?co(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},ie=function(t,e){for(var r in e||(e={}))ho.call(e,r)&&Xs(t,r,e[r]);if(Qs)for(var n=0,s=Qs(e);n<s.length;n++){var r=s[n];fo.call(e,r)&&Xs(t,r,e[r])}return t},Fr=function(t,e){return lo(t,po(e))},mo=function(t,e,r){return new Promise(function(n,s){var i=function(u){try{o(r.next(u))}catch(c){s(c)}},a=function(u){try{o(r.throw(u))}catch(c){s(c)}},o=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,a)};o((r=r.apply(t,e)).next())})};var yo=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ie:Ie.apply(null,arguments)},bc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function go(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function ae(t,e){function r(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return ie(ie({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}var vo=(function(t){ei(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var s=t.apply(this,r)||this;return Object.setPrototypeOf(s,e.prototype),s}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ke([void 0],r[0].concat(this)))):new(e.bind.apply(e,ke([void 0],r.concat(this))))},e})(Array),bo=(function(t){ei(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var s=t.apply(this,r)||this;return Object.setPrototypeOf(s,e.prototype),s}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ke([void 0],r[0].concat(this)))):new(e.bind.apply(e,ke([void 0],r.concat(this))))},e})(Array);function $r(t){return V(t)?Mt(t,function(){}):t}function So(t){return typeof t=="boolean"}function Ao(){return function(e){return xo(e)}}function xo(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,s=n===void 0?!0:n,i=t.serializableCheck,a=i===void 0?!0:i,o=t.actionCreatorCheck,u=o===void 0?!0:o,c=new vo;if(r&&(So(r)?c.push(Dr):c.push(Dr.withExtraArgument(r.extraArgument))),0){if(s)var l;if(a)var d;if(u)var p}return c}var Ur=!0;function ti(t){var e=Ao(),r=t||{},n=r.reducer,s=n===void 0?void 0:n,i=r.middleware,a=i===void 0?e():i,o=r.devTools,u=o===void 0?!0:o,c=r.preloadedState,l=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,m;if(typeof s=="function")m=s;else if(go(s))m=zs(s);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var h=a;if(typeof h=="function"&&(h=h(e),!Ur&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ur&&h.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var g=Ws.apply(void 0,h),S=Ie;u&&(S=yo(ie({trace:!Ur},typeof u=="object"&&u)));var A=new bo(g),x=A;Array.isArray(p)?x=ke([g],p):typeof p=="function"&&(x=p(A));var w=S.apply(void 0,x);return Nr(m,l,w)}function ri(t){var e={},r=[],n,s={addCase:function(i,a){var o=typeof i=="string"?i:i.type;if(!o)throw new Error("`builder.addCase` cannot be called with an empty action type");if(o in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[o]=a,s},addMatcher:function(i,a){return r.push({matcher:i,reducer:a}),s},addDefaultCase:function(i){return n=i,s}};return t(s),[e,r,n]}function Eo(t){return typeof t=="function"}function Co(t,e,r,n){r===void 0&&(r=[]);var s=typeof e=="function"?ri(e):[e,r,n],i=s[0],a=s[1],o=s[2],u;if(Eo(t))u=function(){return $r(t())};else{var c=$r(t);u=function(){return c}}function l(d,p){d===void 0&&(d=u());var m=ke([i[p.type]],a.filter(function(h){var g=h.matcher;return g(p)}).map(function(h){var g=h.reducer;return g}));return m.filter(function(h){return!!h}).length===0&&(m=[o]),m.reduce(function(h,g){if(g)if(J(h)){var S=h,A=g(S,p);return A===void 0?h:A}else{if(V(h))return Mt(h,function(x){return g(x,p)});var A=g(h,p);if(A===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return h},d)}return l.getInitialState=u,l}function To(t,e){return t+"/"+e}function ni(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:$r(t.initialState),n=t.reducers||{},s=Object.keys(n),i={},a={},o={};s.forEach(function(l){var d=n[l],p=To(e,l),m,h;"reducer"in d?(m=d.reducer,h=d.prepare):m=d,i[l]=m,a[p]=m,o[l]=h?ae(p,h):ae(p)});function u(){var l=typeof t.extraReducers=="function"?ri(t.extraReducers):[t.extraReducers],d=l[0],p=d===void 0?{}:d,m=l[1],h=m===void 0?[]:m,g=l[2],S=g===void 0?void 0:g,A=ie(ie({},p),a);return Co(r,function(x){for(var w in A)x.addCase(w,A[w]);for(var C=0,te=h;C<te.length;C++){var X=te[C];x.addMatcher(X.matcher,X.reducer)}S&&x.addDefaultCase(S)})}var c;return{name:e,reducer:function(l,d){return c||(c=u()),c(l,d)},actions:o,caseReducers:i,getInitialState:function(){return c||(c=u()),c.getInitialState()}}}var wo="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Oo=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=wo[Math.random()*64|0];return e},Ro=["name","message","stack","code"],jr=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Js=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),_o=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Ro;r<n.length;r++){var s=n[r];typeof t[s]=="string"&&(e[s]=t[s])}return e}return{message:String(t)}},Ec=(function(){function t(e,r,n){var s=ae(e+"/fulfilled",function(l,d,p,m){return{payload:l,meta:Fr(ie({},m||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),i=ae(e+"/pending",function(l,d,p){return{payload:void 0,meta:Fr(ie({},p||{}),{arg:d,requestId:l,requestStatus:"pending"})}}),a=ae(e+"/rejected",function(l,d,p,m,h){return{payload:m,error:(n&&n.serializeError||_o)(l||"Rejected"),meta:Fr(ie({},h||{}),{arg:p,requestId:d,rejectedWithValue:!!m,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"})}}),o=!1,u=typeof AbortController<"u"?AbortController:(function(){function l(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return l.prototype.abort=function(){},l})();function c(l){return function(d,p,m){var h=n?.idGenerator?n.idGenerator(l):Oo(),g=new u,S,A=!1;function x(C){S=C,g.abort()}var w=(function(){return mo(this,null,function(){var C,te,X,et,Cn,tt,Tn;return uo(this,function(Ce){switch(Ce.label){case 0:return Ce.trys.push([0,4,,5]),et=(C=n?.condition)==null?void 0:C.call(n,l,{getState:p,extra:m}),ko(et)?[4,et]:[3,2];case 1:et=Ce.sent(),Ce.label=2;case 2:if(et===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,Cn=new Promise(function(q,rt){return g.signal.addEventListener("abort",function(){return rt({name:"AbortError",message:S||"Aborted"})})}),d(i(h,l,(te=n?.getPendingMeta)==null?void 0:te.call(n,{requestId:h,arg:l},{getState:p,extra:m}))),[4,Promise.race([Cn,Promise.resolve(r(l,{dispatch:d,getState:p,extra:m,requestId:h,signal:g.signal,abort:x,rejectWithValue:function(q,rt){return new jr(q,rt)},fulfillWithValue:function(q,rt){return new Js(q,rt)}})).then(function(q){if(q instanceof jr)throw q;return q instanceof Js?s(q.payload,h,l,q.meta):s(q,h,l)})])];case 3:return X=Ce.sent(),[3,5];case 4:return tt=Ce.sent(),X=tt instanceof jr?a(null,h,l,tt.payload,tt.meta):a(tt,h,l),[3,5];case 5:return Tn=n&&!n.dispatchConditionRejection&&a.match(X)&&X.meta.condition,Tn||d(X),[2,X]}})})})();return Object.assign(w,{abort:x,requestId:h,arg:l,unwrap:function(){return w.then(Io)}})}}return Object.assign(c,{pending:i,rejected:a,fulfilled:s,typePrefix:e})}return t.withTypes=function(){return t},t})();function Io(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ko(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var si="listener",ii="completed",ai="cancelled",Cc="task-"+ai,Tc="task-"+ii,wc=si+"-"+ai,Oc=si+"-"+ii;var Hr="listenerMiddleware";var Rc=ae(Hr+"/add"),_c=ae(Hr+"/removeAll"),Ic=ae(Hr+"/remove");var Zs,kc=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Zs||(Zs=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Lo=function(t){return function(e){setTimeout(e,t)}},Lc=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Lo(10);Us();var Mo=Ct(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??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 Mo(Object){};window.ftReduxStores||(window.ftReduxStores={});var oi=class t extends Nt{static get(e){var r;let n=typeof e=="string"?e:e.name,s=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(_t(i))return i;if(s==null)return;let a=ni({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),o=ti({reducer:(u,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let l=it(a.getInitialState());for(let d of c.keeping)l[d]=(u??l)[d];return l}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...c.overwrites};return a.reducer(u,c)}});return window.ftReduxStores[s.name]=new t(a,o,s.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Tt;let s=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,a,o)=>{let u=a,c=i[u];return c?(...l)=>{let d=c(...l.map(s));return this.reduxStore.dispatch(d),d}:l=>{this.setState({[u]:s(l)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}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(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Dt=class{static format(e,r,n,s,i){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,s,!!i)):this.getIntlDateTime(e,r,n,s,!!i)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,s,i){let a=typeof e=="string"?new Date(e):e,o=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(a),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return i?u:s?`${o} ${u}`:o}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Ft=y(E()),Po="ft-app-info",Le=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Le.eventName="authentication-change";var dt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};dt.eventName="ui-locale-changed";var No={session:(t,e)=>{(0,Ft.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>b.dispatchEvent(new Le(e.payload)),0))}},b=Ft.FtReduxStore.get({name:Po,reducers:No,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ui=y(E()),Ut=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},al=(0,ui.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(b)}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(o=>o.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?o=>Dt.format(o,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ut([(0,Br.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ut([(0,Br.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ut([vr({store:b.name,selector:r=>{var n,s;return(s=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&s!==void 0?s:[]}})],e.prototype,"metadataDescriptors",void 0),Ut([vr({store:b.name})],e.prototype,"uiLocale",void 0),e});var qt=y(E());var qr=y(E());var he=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=b.getState(),s=e??n;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let s=b.subscribe(()=>{n=t.get(e),n&&(s(),r(n))})}})}};var Me=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:he.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):he.await()}};var N=class extends Me{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(i,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([o],[u])=>o.localeCompare(u)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new qr.CacheRegistry,this.cache=e?s.commonCache:new qr.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var jt=class extends N{async listMySearches(){let{session:e}=b.getState();return ys(e,R.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var $t=class extends N{async listMyBookmarks(){let e=b.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Ht=class extends N{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=b.getState().session;return!!e?.sessionAuthenticated}};var Bt=class extends N{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=b.getState().session;return!!e?.sessionAuthenticated}};var Do="ft-user-assets",Fo={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(U).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:n,asset:s}=e.payload;Kr(t,r,[...Vr(t,r),s]),ci(t,r,1,n),li(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Kr(t,r,Vr(t,r).map(s=>s.id===n.id?n:s)),li(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:s}=e.payload;Kr(t,r,Vr(t,r).filter(i=>i.id!==s)),ci(t,r,-1,n)}},di={[U.SEARCHES]:"savedSearches",[U.BOOKMARKS]:"bookmarks",[U.BOOKS]:void 0,[U.COLLECTIONS]:void 0},Vr=(t,e)=>{var r;let n=di[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Kr=(t,e,r)=>{let n=di[e];n&&(t[n]=r)},ci=(t,e,r,n)=>{let s=t.assetCounts.allAsset[e];if(s!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,s+r),e===U.BOOKMARKS&&n)){let i=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},li=(t,e)=>{let r=t.assetLabels.map(s=>s.title),n=e.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));t.assetLabels.push(...n)},M=qt.FtReduxStore.get({name:Do,reducers:Fo,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(U).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),zr=class{constructor(e=new Ht,r=new Bt){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=b.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new $t,this.savedSearchesService=new jt,b.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=b.getState();(0,qt.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),M.actions.clearAssetCount(),M.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),M.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),M.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();M.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();M.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&M.getState().assetCounts.allAsset[e]!==r.count&&M.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&M.getState().assetCounts.bookmarkByMap[e]!==r.count&&M.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(M.getState().assetCounts.bookmarkByMap).length!==0;e===U.BOOKMARKS&&r&&M.actions.clearBookmarkCountByMap(),M.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;M.actions.bookmarks(r)}}},Uo=new zr;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Uo);var Wr=class{addCommand(e,r=!1){b.commands.add(e,r)}consumeCommand(e){return b.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Wr;var $=y(E());var pi,Pe=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},jo=Symbol("clearAfterUnitTest"),Vt=class extends(0,$.withEventBus)(N){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[pi]=()=>{this.defaultMessages={},this.cache=new $.CacheRegistry,this.listeners={}},this.currentUiLocale=b.getState().uiLocale,b.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=b.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let s={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,$.deepEqual)(this.defaultMessages[e],s)||(this.defaultMessages[e]=s,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var s;let i=e.toLowerCase(),a=this.resolveContext(i);return new $.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},a).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(s){!(s instanceof $.CanceledPromiseError)&&r&&console.error(s)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var s;return(s=this.listeners[e])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Pe({loadedContexts:e})),this.dispatchEvent(new Pe({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Pe({loadedContexts:[e]})),this.dispatchEvent(new Pe({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,$.delay)(0).then(()=>n()).catch(()=>null)))}};pi=jo;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Vt{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Vt{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Ne=window.FluidTopicsI18nService,Kt=window.FluidTopicsCustomI18nService;var hi=y(E()),Gr=class{highlightHtml(e,r,n){(0,hi.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Gr;var fi=y(E());var Yr=class{isDate(e){var r,n,s,i;return(i=(s=((n=(r=b.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===e))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1}format(e,r){var n,s,i,a;if(e==null)return"";try{return fi.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:b.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(a=r?.onlyTime)!==null&&a!==void 0?a:!1)}catch(o){throw console.error(`Date ${JSON.stringify(e)} is not valid`,o),o}}};window.FluidTopicsDateService=new Yr;var mi=y(E());var pt=class{static get(e,r){var n,s;let i=b.getState(),{lang:a,region:o}=(s=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new mi.SearchPlaceConverter(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,r??`${a}-${o}`)}};var Qr=class{urlToSearchRequest(e){return pt.get().parse(e)}searchRequestToUrl(e){return pt.get().serialize(e)}};window.FluidTopicsUrlService=new Qr;var Z=y(E());var fe=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};fe.eventName="change";var Xr=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},yi=new Xr;var zt=class t extends Z.WithEventBus{static build(){return new t(window.history,yi,()=>window.location,!1)}constructor(e,r,n,s){var i,a;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(a=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&a!==void 0?a:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},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,Z.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new fe(this.currentItem())),0)}installProxies(){let e=r=>(n,s,[i,a,o])=>{let u=r(),c={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof o=="string"?o:(o??this.windowLocation()).href};n.apply(s,[c,a,o]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.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(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(fe.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(fe.eventName,e)}currentItem(){return(0,Z.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Z.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Z.deepCopy)(r.find(n=>e(n)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Z.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let s=e,i=e+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(s=i),i++;return s}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let s=r??this.currentState.majorStateId,i=(n=this.states[e])===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:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var gi=y(L());var vi=gi.css`
7
- `;var Si=y(L()),F=y(P()),ge=y(E());var me=y(E());function bi(t,e){let{authenticationRequired:r,session:n}=b.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var Wt=class extends Me{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Jr=class t extends me.FtStateManager{static build(e){return new t(b,e)}constructor(e,r){super(),this.store=e,this.cache=new me.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new Wt,this.cleanSessionDebouncer=new me.Debouncer,this.reloadDebouncer=new me.Debouncer(500),this.apiProvider=r??(()=>he.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Le.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=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(e)}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 e;let r=await this.cache.get("availableContentLocales",()=>bi(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){var r,n,s,i,a;this.localesConfiguration=e,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((r=this.localesConfiguration.availableUiLocales)!==null&&r!==void 0?r:[]),this.store.actions.searchInAllLanguagesAllowed((n=this.localesConfiguration.allLanguagesAllowed)!==null&&n!==void 0?n:!1),this.store.actions.searchLanguageSetsUiLanguage((s=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&s!==void 0?s:!1),this.store.actions.uiLanguageSetsSearchLanguage((i=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&i!==void 0?i:!1),this.store.actions.uiLanguageSetsReaderLanguage((a=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&a!==void 0?a:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new dt(r)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Zr=Jr.build();var ye=class extends Event{constructor(e,r,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=n,this.subscribe=s??!1}};var ht=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:n}=r;for(let{elementRef:s,callbackRef:i}of n){let a=s.deref(),o=i.deref();a===void 0||o===void 0||a.dispatchEvent(new ye(e.context,a,o,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],n=e.callback,s=this.pendingContextRequests.get(e.context);s===void 0&&this.pendingContextRequests.set(e.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(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var k=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},O=class extends ge.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.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Zr,this.contextRoot=new ht}render(){return Si.html`
6
+ `;var Fe=y(E()),tn=y(N());var st;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(st||(st={}));var ve=y(E());var Ka=y(E());var Nn;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Nn||(Nn={}));var Pn;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Pn||(Pn={}));var Dn;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Dn||(Dn={}));var Fn;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Fn||(Fn={}));var Un;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Un||(Un={}));var jn;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(jn||(jn={}));var $n;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})($n||($n={}));var Hn;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Hn||(Hn={}));var Bn;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Bn||(Bn={}));var qn;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(qn||(qn={}));var Vn;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Vn||(Vn={}));var Kn;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Kn||(Kn={}));var zn;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(zn||(zn={}));var Wn;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Wn||(Wn={}));var Gn;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Gn||(Gn={}));var Qn;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Qn||(Qn={}));var fr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(fr||(fr={}));var Yn;(function(t){t.ASC="ASC",t.DESC="DESC"})(Yn||(Yn={}));var Jn;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Jn||(Jn={}));var mr;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(mr||(mr={}));var Xn;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Xn||(Xn={}));var xt;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(xt||(xt={}));var Zn;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Zn||(Zn={}));var es;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(es||(es={}));var ts;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ts||(ts={}));var yr;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(yr||(yr={}));var rs;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(rs||(rs={}));var O;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(O||(O={}));var U;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(U||(U={}));var ns;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(ns||(ns={}));var ss;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(ss||(ss={}));var is;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(is||(is={}));var as;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.OTHER="OTHER"})(as||(as={}));var os;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(os||(os={}));var us;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(us||(us={}));var cs;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(cs||(cs={}));var ls;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(ls||(ls={}));var ds;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(ds||(ds={}));var ps;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(ps||(ps={}));var hs;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(hs||(hs={}));var fs;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(fs||(fs={}));var za={[O.PERSONAL_BOOK_SHARE_USER]:[O.PERSONAL_BOOK_USER],[O.HTML_EXPORT_USER]:[O.PERSONAL_BOOK_USER],[O.PDF_EXPORT_USER]:[O.PERSONAL_BOOK_USER],[O.KHUB_ADMIN]:[O.CONTENT_PUBLISHER],[O.ADMIN]:[O.KHUB_ADMIN,O.USERS_ADMIN,O.PORTAL_ADMIN,O.BEHAVIOR_DATA_USER],[O.GENERATIVE_AI_EXPORT_USER]:[O.GENERATIVE_AI_USER]};function ms(t,e){return t===e||(za[t]??[]).some(r=>ms(r,e))}function ys(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>ms(n,e))}var Br=y(N());var gs=y(N(),1);var gr=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function vs(t,e){return(0,gs.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return it(t);try{return JSON.parse(r)}catch{return it(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:at,...e??{}})}function Wa(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Et(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Et(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let s=a=>Object.keys(a).filter(o=>a[o]!=null),i=s(t);if(r=i.length,r!==s(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){let a=i[n];if(!Et(t[a],e[a]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Et(t,e){try{return Wa(t,e)}catch{return!1}}function at(t,e){return!Et(t,e)}function it(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Ct(t,e){let r=n=>n[t]===!0;return n=>{if(r(n))return n;let s=e(n);return s[t]=!0,s}}var bs=y(N(),1);var vr=t=>{let e=t??{};return(r,n)=>{var s;let i={hasChanged:at,attribute:!1,...e};(0,bs.property)(i)(r,n);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(n,{selector:(s=e.selector)!==null&&s!==void 0?s:(o=>o[n]),store:e.store})}};var wt=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var ce=y(N(),1);var Tt=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let s=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),i=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let a of n)try{await a()}catch(o){s(o);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 As=y(L(),1);var Rt=globalThis,Ga=Rt.ShadowRoot&&(Rt.ShadyCSS===void 0||Rt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Ss=(t,e)=>{if(Ga)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let n=document.createElement("style"),s=Rt.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=r.cssText,t.appendChild(n)}};var Ot=class extends As.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Ss(n,e.elementStyles),n}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(e,r){gr(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function xs(t,e,...r){var n;let s=t.querySelector(e);for(let i of r)s=(n=s?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return s}var Te=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},Ts,Es=Symbol("constructorPrototype"),Cs=Symbol("constructorName"),Rs=Symbol("exportpartsDebouncer"),ws=Symbol("dynamicDependenciesLoaded"),we=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};we.eventName="exportparts-updated";var G=class extends Ot{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ts]=new Tt(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Rs].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[Cs]=this.constructor.name,this[Es]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Cs]&&Object.setPrototypeOf(this,this[Es])}connectedCallback(){var e;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[ws]||(r[ws]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(we.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(we.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new we)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:s}=this.elementToFocus;if(n!=null){let i=[...s??[],n];r=xs(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){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(e.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(e){var r,n,s,i,a,o;let u=p=>p!=null&&p.trim().length>0,c=e.filter(u).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let l=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let m=(i=(s=p.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&i!==void 0?i:[],h=(o=(a=p.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(S=>S.split(":")[1]))!==null&&o!==void 0?o:[],g=[...m,...h].filter(u).map(S=>S.trim());for(let S of g)l.add(S)}if(l.size===0){this.exportparts=void 0;return}let d=[...l.values()].flatMap(p=>c.map(m=>`${p}:${m}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Ts=Rs;Te([(0,ce.property)()],G.prototype,"exportpartsPrefix",void 0);Te([vs([])],G.prototype,"exportpartsPrefixes",void 0);Te([(0,ce.property)({reflect:!0})],G.prototype,"exportparts",void 0);Te([(0,ce.property)()],G.prototype,"customStylesheet",void 0);Te([(0,ce.property)()],G.prototype,"elementToFocus",void 0);Te([(0,ce.state)()],G.prototype,"useAdoptedStyleSheets",void 0);function _t(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ot=Symbol("internalReduxEventsUnsubscribers"),re=Symbol("internalStoresUnsubscribers"),le=Symbol("internalStores"),Qa=Ct(Symbol("withRedux"),function(t){var e,r,n;class s extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(a){super.willUpdate(a),[...this.reduxConstructor.reduxReactiveProperties].some(o=>a.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[le].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[le].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[le].get(a)}addStore(a,o){var u;o=(u=o??a.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(o),this[le].set(o,a),this.subscribeToStore(o,a),this.updateFromStores()}removeStore(a){let o=typeof a=="string"?a:a.name;this.unsubscribeFromStore(o),this[le].delete(o)}setupStores(){this.unsubscribeFromStores(),this[le].forEach((a,o)=>this.subscribeToStore(o,a)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((a,o)=>{let u=this.constructor.getPropertyOptions(o);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:o)){let c=this.getStore(a.store);c&&(a.store?this[re].has(a.store):this[re].size>0)&&(this[o]=a.selector(c.getState(),this))}})}subscribeToStore(a,o){var u;this[re].set(a,o.subscribe(()=>this.updateFromStores())),this[ot].set(a,[]),_t(o)&&o.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((c,l)=>{if(typeof this[l]=="function"&&(!c.store||o.name===c.store)){let d=p=>this[l](p);o.addEventListener(c.eventName,d),this[ot].get(a).push(()=>o.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(a)}unsubscribeFromStores(){this[re].forEach((a,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(a){var o;this[re].has(a)&&this[re].get(a)(),this[re].delete(a),(o=this[ot].get(a))===null||o===void 0||o.forEach(u=>u()),this[ot].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=re,r=le,n=ot,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Os=class extends Qa(G){};function j(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var s,i;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(a){return"'"+a+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function X(t){return!!t&&!!t[w]}function V(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var s=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===no})(t)||Array.isArray(t)||!!t[Ps]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ps])||Rr(t)||Or(t))}function de(t,e,r){r===void 0&&(r=!1),_e(t)===0?(r?Object.keys:Oe)(t).forEach((function(n){r&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,s){return e(s,n,t)}))}function _e(t){var e=t[w];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Rr(t)?2:Or(t)?3:0}function Re(t,e){return _e(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Ya(t,e){return _e(t)===2?t.get(e):t[e]}function Ds(t,e,r){var n=_e(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Fs(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Rr(t){return to&&t instanceof Map}function Or(t){return ro&&t instanceof Set}function ne(t){return t.o||t.t}function _r(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=$s(t);delete e[w];for(var r=Oe(e),n=0;n<r.length;n++){var s=r[n],i=e[s];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[s]})}return Object.create(Object.getPrototypeOf(t),e)}function Ir(t,e){return e===void 0&&(e=!1),kr(t)||X(t)||!V(t)||(_e(t)>1&&(t.set=t.add=t.clear=t.delete=Ja),Object.freeze(t),e&&de(t,(function(r,n){return Ir(n,!0)}),!0)),t}function Ja(){j(2)}function kr(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Q(t){var e=Tr[t];return e||j(18,t),e}function Xa(t,e){Tr[t]||(Tr[t]=e)}function Er(){return ct}function br(t,e){e&&(Q("Patches"),t.u=[],t.s=[],t.v=e)}function It(t){Cr(t),t.p.forEach(Za),t.p=null}function Cr(t){t===ct&&(ct=t.l)}function _s(t){return ct={p:[],l:ct,h:t,m:!0,_:0}}function Za(t){var e=t[w];e.i===0||e.i===1?e.j():e.g=!0}function Sr(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Q("ES5").S(e,t,n),n?(r[w].P&&(It(e),j(4)),V(t)&&(t=kt(e,t),e.l||Lt(e,t)),e.u&&Q("Patches").M(r[w].t,t,e.u,e.s)):t=kt(e,r,[]),It(e),e.u&&e.v(e.u,e.s),t!==js?t:void 0}function kt(t,e,r){if(kr(e))return e;var n=e[w];if(!n)return de(e,(function(o,u){return Is(t,n,e,o,u,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return Lt(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var s=n.i===4||n.i===5?n.o=_r(n.k):n.o,i=s,a=!1;n.i===3&&(i=new Set(s),s.clear(),a=!0),de(i,(function(o,u){return Is(t,n,s,o,u,r,a)})),Lt(t,s,!1),r&&t.u&&Q("Patches").N(n,r,t.u,t.s)}return n.o}function Is(t,e,r,n,s,i,a){if(X(s)){var o=kt(t,s,i&&e&&e.i!==3&&!Re(e.R,n)?i.concat(n):void 0);if(Ds(r,n,o),!X(o))return;t.m=!1}else a&&r.add(s);if(V(s)&&!kr(s)){if(!t.h.D&&t._<1)return;kt(t,s),e&&e.A.l||Lt(t,s)}}function Lt(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ir(e,r)}function Ar(t,e){var r=t[w];return(r?ne(r):t)[e]}function ks(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function se(t){t.P||(t.P=!0,t.l&&se(t.l))}function xr(t){t.o||(t.o=_r(t.t))}function wr(t,e,r){var n=Rr(e)?Q("MapSet").F(e,r):Or(e)?Q("MapSet").T(e,r):t.O?(function(s,i){var a=Array.isArray(s),o={i:a?1:0,A:i?i.A:Er(),P:!1,I:!1,R:{},l:i,t:s,k:null,o:null,j:null,C:!1},u=o,c=lt;a&&(u=[o],c=ut);var l=Proxy.revocable(u,c),d=l.revoke,p=l.proxy;return o.k=p,o.j=d,p})(e,r):Q("ES5").J(e,r);return(r?r.A:Er()).p.push(n),n}function eo(t){return X(t)||j(22,t),(function e(r){if(!V(r))return r;var n,s=r[w],i=_e(r);if(s){if(!s.P&&(s.i<4||!Q("ES5").K(s)))return s.t;s.I=!0,n=Ls(r,i),s.I=!1}else n=Ls(r,i);return de(n,(function(a,o){s&&Ya(s.t,a)===o||Ds(n,a,e(o))})),i===3?new Set(n):n})(t)}function Ls(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return _r(t)}function Us(){function t(a,o){var u=i[a];return u?u.enumerable=o:i[a]=u={configurable:!0,enumerable:o,get:function(){var c=this[w];return lt.get(c,a)},set:function(c){var l=this[w];lt.set(l,a,c)}},u}function e(a){for(var o=a.length-1;o>=0;o--){var u=a[o][w];if(!u.P)switch(u.i){case 5:n(u)&&se(u);break;case 4:r(u)&&se(u)}}}function r(a){for(var o=a.t,u=a.k,c=Oe(u),l=c.length-1;l>=0;l--){var d=c[l];if(d!==w){var p=o[d];if(p===void 0&&!Re(o,d))return!0;var m=u[d],h=m&&m[w];if(h?h.t!==p:!Fs(m,p))return!0}}var g=!!o[w];return c.length!==Oe(o).length+(g?0:1)}function n(a){var o=a.k;if(o.length!==a.t.length)return!0;var u=Object.getOwnPropertyDescriptor(o,o.length-1);if(u&&!u.get)return!0;for(var c=0;c<o.length;c++)if(!o.hasOwnProperty(c))return!0;return!1}function s(a){a.g&&j(3,JSON.stringify(ne(a)))}var i={};Xa("ES5",{J:function(a,o){var u=Array.isArray(a),c=(function(d,p){if(d){for(var m=Array(p.length),h=0;h<p.length;h++)Object.defineProperty(m,""+h,t(h,!0));return m}var g=$s(p);delete g[w];for(var S=Oe(g),A=0;A<S.length;A++){var x=S[A];g[x]=t(x,d||!!g[x].enumerable)}return Object.create(Object.getPrototypeOf(p),g)})(u,a),l={i:u?5:4,A:o?o.A:Er(),P:!1,I:!1,R:{},l:o,t:a,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,w,{value:l,writable:!0}),c},S:function(a,o,u){u?X(o)&&o[w].A===a&&e(a.p):(a.u&&(function c(l){if(l&&typeof l=="object"){var d=l[w];if(d){var p=d.t,m=d.k,h=d.R,g=d.i;if(g===4)de(m,(function(C){C!==w&&(p[C]!==void 0||Re(p,C)?h[C]||c(m[C]):(h[C]=!0,se(d)))})),de(p,(function(C){m[C]!==void 0||Re(m,C)||(h[C]=!1,se(d))}));else if(g===5){if(n(d)&&(se(d),h.length=!0),m.length<p.length)for(var S=m.length;S<p.length;S++)h[S]=!1;else for(var A=p.length;A<m.length;A++)h[A]=!0;for(var x=Math.min(m.length,p.length),T=0;T<x;T++)m.hasOwnProperty(T)||(h[T]=!0),h[T]===void 0&&c(m[T])}}}})(a.p[0]),e(a.p))},K:function(a){return a.i===4?r(a):n(a)}})}var Ms,ct,Lr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",to=typeof Map<"u",ro=typeof Set<"u",Ns=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",js=Lr?Symbol.for("immer-nothing"):((Ms={})["immer-nothing"]=!0,Ms),Ps=Lr?Symbol.for("immer-draftable"):"__$immer_draftable",w=Lr?Symbol.for("immer-state"):"__$immer_state";var no=""+Object.prototype.constructor,Oe=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,$s=Object.getOwnPropertyDescriptors||function(t){var e={};return Oe(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},Tr={},lt={get:function(t,e){if(e===w)return t;var r=ne(t);if(!Re(r,e))return(function(s,i,a){var o,u=ks(i,a);return u?"value"in u?u.value:(o=u.get)===null||o===void 0?void 0:o.call(s.k):void 0})(t,r,e);var n=r[e];return t.I||!V(n)?n:n===Ar(t.t,e)?(xr(t),t.o[e]=wr(t.A.h,n,t)):n},has:function(t,e){return e in ne(t)},ownKeys:function(t){return Reflect.ownKeys(ne(t))},set:function(t,e,r){var n=ks(ne(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var s=Ar(ne(t),e),i=s?.[w];if(i&&i.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Fs(r,s)&&(r!==void 0||Re(t.t,e)))return!0;xr(t),se(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ar(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,xr(t),se(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ne(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){j(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){j(12)}},ut={};de(lt,(function(t,e){ut[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),ut.deleteProperty=function(t,e){return ut.set.call(this,t,e,void 0)},ut.set=function(t,e,r){return lt.set.call(this,t[0],e,r,t[0])};var so=(function(){function t(r){var n=this;this.O=Ns,this.D=!0,this.produce=function(s,i,a){if(typeof s=="function"&&typeof i!="function"){var o=i;i=s;var u=n;return function(g){var S=this;g===void 0&&(g=o);for(var A=arguments.length,x=Array(A>1?A-1:0),T=1;T<A;T++)x[T-1]=arguments[T];return u.produce(g,(function(C){var te;return(te=i).call.apply(te,[S,C].concat(x))}))}}var c;if(typeof i!="function"&&j(6),a!==void 0&&typeof a!="function"&&j(7),V(s)){var l=_s(n),d=wr(n,s,void 0),p=!0;try{c=i(d),p=!1}finally{p?It(l):Cr(l)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(g){return br(l,a),Sr(g,l)}),(function(g){throw It(l),g})):(br(l,a),Sr(c,l))}if(!s||typeof s!="object"){if((c=i(s))===void 0&&(c=s),c===js&&(c=void 0),n.D&&Ir(c,!0),a){var m=[],h=[];Q("Patches").M(s,c,m,h),a(m,h)}return c}j(21,s)},this.produceWithPatches=function(s,i){if(typeof s=="function")return function(c){for(var l=arguments.length,d=Array(l>1?l-1:0),p=1;p<l;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,(function(m){return s.apply(void 0,[m].concat(d))}))};var a,o,u=n.produce(s,i,(function(c,l){a=c,o=l}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(c){return[c,a,o]})):[u,a,o]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){V(r)||j(8),X(r)&&(r=eo(r));var n=_s(this),s=wr(this,r,void 0);return s[w].C=!0,Cr(n),s},e.finishDraft=function(r,n){var s=r&&r[w],i=s.A;return br(i,n),Sr(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Ns&&j(20),this.O=r},e.applyPatches=function(r,n){var s;for(s=n.length-1;s>=0;s--){var i=n[s];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}s>-1&&(n=n.slice(s+1));var a=Q("Patches").$;return X(r)?a(r,n):this.produce(r,(function(o){return a(o,n)}))},t})(),D=new so,io=D.produce,Yu=D.produceWithPatches.bind(D),Ju=D.setAutoFreeze.bind(D),Xu=D.setUseProxies.bind(D),Zu=D.applyPatches.bind(D),ec=D.createDraft.bind(D),tc=D.finishDraft.bind(D),Mt=io;function pe(t){"@babel/helpers - typeof";return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(t)}function Hs(t,e){if(pe(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(pe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Bs(t){var e=Hs(t,"string");return pe(e)=="symbol"?e:e+""}function qs(t,e,r){return(e=Bs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function Mr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Vs(Object(r),!0).forEach(function(n){qs(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vs(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function I(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Ks=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Nr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Nt={INIT:"@@redux/INIT"+Nr(),REPLACE:"@@redux/REPLACE"+Nr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Nr()}};function ao(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Pr(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(I(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(I(1));return r(Pr)(t,e)}if(typeof t!="function")throw new Error(I(2));var s=t,i=e,a=[],o=a,u=!1;function c(){o===a&&(o=a.slice())}function l(){if(u)throw new Error(I(3));return i}function d(g){if(typeof g!="function")throw new Error(I(4));if(u)throw new Error(I(5));var S=!0;return c(),o.push(g),function(){if(S){if(u)throw new Error(I(6));S=!1,c();var x=o.indexOf(g);o.splice(x,1),a=null}}}function p(g){if(!ao(g))throw new Error(I(7));if(typeof g.type>"u")throw new Error(I(8));if(u)throw new Error(I(9));try{u=!0,i=s(i,g)}finally{u=!1}for(var S=a=o,A=0;A<S.length;A++){var x=S[A];x()}return g}function m(g){if(typeof g!="function")throw new Error(I(10));s=g,p({type:Nt.REPLACE})}function h(){var g,S=d;return g={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(I(11));function T(){x.next&&x.next(l())}T();var C=S(T);return{unsubscribe:C}}},g[Ks]=function(){return this},g}return p({type:Nt.INIT}),n={dispatch:p,subscribe:d,getState:l,replaceReducer:m},n[Ks]=h,n}function oo(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Nt.INIT});if(typeof n>"u")throw new Error(I(12));if(typeof r(void 0,{type:Nt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(I(13))})}function zs(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var s=e[n];typeof t[s]=="function"&&(r[s]=t[s])}var i=Object.keys(r),a,o;try{oo(r)}catch(u){o=u}return function(c,l){if(c===void 0&&(c={}),o)throw o;if(0)var d;for(var p=!1,m={},h=0;h<i.length;h++){var g=i[h],S=r[g],A=c[g],x=S(A,l);if(typeof x>"u"){var T=l&&l.type;throw new Error(I(14))}m[g]=x,p=p||x!==A}return p=p||i.length!==Object.keys(c).length,p?m:c}}function Ie(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,s){return function(){return n(s.apply(void 0,arguments))}})}function Ws(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var s=n.apply(void 0,arguments),i=function(){throw new Error(I(15))},a={getState:s.getState,dispatch:function(){return i.apply(void 0,arguments)}},o=e.map(function(u){return u(a)});return i=Ie.apply(void 0,o)(s.dispatch),Mr(Mr({},s),{},{dispatch:i})}}}function Gs(t){var e=function(n){var s=n.dispatch,i=n.getState;return function(a){return function(o){return typeof o=="function"?o(s,i,t):a(o)}}};return e}var Qs=Gs();Qs.withExtraArgument=Gs;var Dr=Qs;var ei=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),uo=function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,s&&(i=c[0]&2?s.return:c[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,c[1])).done)return i;switch(s=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,s=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(l){c=[6,l],s=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ke=function(t,e){for(var r=0,n=e.length,s=t.length;r<n;r++,s++)t[s]=e[r];return t},co=Object.defineProperty,lo=Object.defineProperties,po=Object.getOwnPropertyDescriptors,Ys=Object.getOwnPropertySymbols,ho=Object.prototype.hasOwnProperty,fo=Object.prototype.propertyIsEnumerable,Js=function(t,e,r){return e in t?co(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},ie=function(t,e){for(var r in e||(e={}))ho.call(e,r)&&Js(t,r,e[r]);if(Ys)for(var n=0,s=Ys(e);n<s.length;n++){var r=s[n];fo.call(e,r)&&Js(t,r,e[r])}return t},Fr=function(t,e){return lo(t,po(e))},mo=function(t,e,r){return new Promise(function(n,s){var i=function(u){try{o(r.next(u))}catch(c){s(c)}},a=function(u){try{o(r.throw(u))}catch(c){s(c)}},o=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,a)};o((r=r.apply(t,e)).next())})};var yo=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ie:Ie.apply(null,arguments)},bc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function go(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function ae(t,e){function r(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return ie(ie({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}var vo=(function(t){ei(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var s=t.apply(this,r)||this;return Object.setPrototypeOf(s,e.prototype),s}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ke([void 0],r[0].concat(this)))):new(e.bind.apply(e,ke([void 0],r.concat(this))))},e})(Array),bo=(function(t){ei(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var s=t.apply(this,r)||this;return Object.setPrototypeOf(s,e.prototype),s}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ke([void 0],r[0].concat(this)))):new(e.bind.apply(e,ke([void 0],r.concat(this))))},e})(Array);function $r(t){return V(t)?Mt(t,function(){}):t}function So(t){return typeof t=="boolean"}function Ao(){return function(e){return xo(e)}}function xo(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,s=n===void 0?!0:n,i=t.serializableCheck,a=i===void 0?!0:i,o=t.actionCreatorCheck,u=o===void 0?!0:o,c=new vo;if(r&&(So(r)?c.push(Dr):c.push(Dr.withExtraArgument(r.extraArgument))),0){if(s)var l;if(a)var d;if(u)var p}return c}var Ur=!0;function ti(t){var e=Ao(),r=t||{},n=r.reducer,s=n===void 0?void 0:n,i=r.middleware,a=i===void 0?e():i,o=r.devTools,u=o===void 0?!0:o,c=r.preloadedState,l=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,m;if(typeof s=="function")m=s;else if(go(s))m=zs(s);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var h=a;if(typeof h=="function"&&(h=h(e),!Ur&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ur&&h.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var g=Ws.apply(void 0,h),S=Ie;u&&(S=yo(ie({trace:!Ur},typeof u=="object"&&u)));var A=new bo(g),x=A;Array.isArray(p)?x=ke([g],p):typeof p=="function"&&(x=p(A));var T=S.apply(void 0,x);return Pr(m,l,T)}function ri(t){var e={},r=[],n,s={addCase:function(i,a){var o=typeof i=="string"?i:i.type;if(!o)throw new Error("`builder.addCase` cannot be called with an empty action type");if(o in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[o]=a,s},addMatcher:function(i,a){return r.push({matcher:i,reducer:a}),s},addDefaultCase:function(i){return n=i,s}};return t(s),[e,r,n]}function Eo(t){return typeof t=="function"}function Co(t,e,r,n){r===void 0&&(r=[]);var s=typeof e=="function"?ri(e):[e,r,n],i=s[0],a=s[1],o=s[2],u;if(Eo(t))u=function(){return $r(t())};else{var c=$r(t);u=function(){return c}}function l(d,p){d===void 0&&(d=u());var m=ke([i[p.type]],a.filter(function(h){var g=h.matcher;return g(p)}).map(function(h){var g=h.reducer;return g}));return m.filter(function(h){return!!h}).length===0&&(m=[o]),m.reduce(function(h,g){if(g)if(X(h)){var S=h,A=g(S,p);return A===void 0?h:A}else{if(V(h))return Mt(h,function(x){return g(x,p)});var A=g(h,p);if(A===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return h},d)}return l.getInitialState=u,l}function wo(t,e){return t+"/"+e}function ni(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:$r(t.initialState),n=t.reducers||{},s=Object.keys(n),i={},a={},o={};s.forEach(function(l){var d=n[l],p=wo(e,l),m,h;"reducer"in d?(m=d.reducer,h=d.prepare):m=d,i[l]=m,a[p]=m,o[l]=h?ae(p,h):ae(p)});function u(){var l=typeof t.extraReducers=="function"?ri(t.extraReducers):[t.extraReducers],d=l[0],p=d===void 0?{}:d,m=l[1],h=m===void 0?[]:m,g=l[2],S=g===void 0?void 0:g,A=ie(ie({},p),a);return Co(r,function(x){for(var T in A)x.addCase(T,A[T]);for(var C=0,te=h;C<te.length;C++){var J=te[C];x.addMatcher(J.matcher,J.reducer)}S&&x.addDefaultCase(S)})}var c;return{name:e,reducer:function(l,d){return c||(c=u()),c(l,d)},actions:o,caseReducers:i,getInitialState:function(){return c||(c=u()),c.getInitialState()}}}var To="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ro=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=To[Math.random()*64|0];return e},Oo=["name","message","stack","code"],jr=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Xs=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),_o=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Oo;r<n.length;r++){var s=n[r];typeof t[s]=="string"&&(e[s]=t[s])}return e}return{message:String(t)}},Ec=(function(){function t(e,r,n){var s=ae(e+"/fulfilled",function(l,d,p,m){return{payload:l,meta:Fr(ie({},m||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),i=ae(e+"/pending",function(l,d,p){return{payload:void 0,meta:Fr(ie({},p||{}),{arg:d,requestId:l,requestStatus:"pending"})}}),a=ae(e+"/rejected",function(l,d,p,m,h){return{payload:m,error:(n&&n.serializeError||_o)(l||"Rejected"),meta:Fr(ie({},h||{}),{arg:p,requestId:d,rejectedWithValue:!!m,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"})}}),o=!1,u=typeof AbortController<"u"?AbortController:(function(){function l(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return l.prototype.abort=function(){},l})();function c(l){return function(d,p,m){var h=n?.idGenerator?n.idGenerator(l):Ro(),g=new u,S,A=!1;function x(C){S=C,g.abort()}var T=(function(){return mo(this,null,function(){var C,te,J,et,Cn,tt,wn;return uo(this,function(Ce){switch(Ce.label){case 0:return Ce.trys.push([0,4,,5]),et=(C=n?.condition)==null?void 0:C.call(n,l,{getState:p,extra:m}),ko(et)?[4,et]:[3,2];case 1:et=Ce.sent(),Ce.label=2;case 2:if(et===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,Cn=new Promise(function(q,rt){return g.signal.addEventListener("abort",function(){return rt({name:"AbortError",message:S||"Aborted"})})}),d(i(h,l,(te=n?.getPendingMeta)==null?void 0:te.call(n,{requestId:h,arg:l},{getState:p,extra:m}))),[4,Promise.race([Cn,Promise.resolve(r(l,{dispatch:d,getState:p,extra:m,requestId:h,signal:g.signal,abort:x,rejectWithValue:function(q,rt){return new jr(q,rt)},fulfillWithValue:function(q,rt){return new Xs(q,rt)}})).then(function(q){if(q instanceof jr)throw q;return q instanceof Xs?s(q.payload,h,l,q.meta):s(q,h,l)})])];case 3:return J=Ce.sent(),[3,5];case 4:return tt=Ce.sent(),J=tt instanceof jr?a(null,h,l,tt.payload,tt.meta):a(tt,h,l),[3,5];case 5:return wn=n&&!n.dispatchConditionRejection&&a.match(J)&&J.meta.condition,wn||d(J),[2,J]}})})})();return Object.assign(T,{abort:x,requestId:h,arg:l,unwrap:function(){return T.then(Io)}})}}return Object.assign(c,{pending:i,rejected:a,fulfilled:s,typePrefix:e})}return t.withTypes=function(){return t},t})();function Io(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ko(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var si="listener",ii="completed",ai="cancelled",Cc="task-"+ai,wc="task-"+ii,Tc=si+"-"+ai,Rc=si+"-"+ii;var Hr="listenerMiddleware";var Oc=ae(Hr+"/add"),_c=ae(Hr+"/removeAll"),Ic=ae(Hr+"/remove");var Zs,kc=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Zs||(Zs=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Lo=function(t){return function(e){setTimeout(e,t)}},Lc=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Lo(10);Us();var Mo=Ct(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??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)}}}),Pt=class extends Mo(Object){};window.ftReduxStores||(window.ftReduxStores={});var oi=class t extends Pt{static get(e){var r;let n=typeof e=="string"?e:e.name,s=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(_t(i))return i;if(s==null)return;let a=ni({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),o=ti({reducer:(u,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let l=it(a.getInitialState());for(let d of c.keeping)l[d]=(u??l)[d];return l}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...c.overwrites};return a.reducer(u,c)}});return window.ftReduxStores[s.name]=new t(a,o,s.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new wt;let s=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,a,o)=>{let u=a,c=i[u];return c?(...l)=>{let d=c(...l.map(s));return this.reduxStore.dispatch(d),d}:l=>{this.setState({[u]:s(l)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}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(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Dt=class{static format(e,r,n,s,i){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,s,!!i)):this.getIntlDateTime(e,r,n,s,!!i)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,s,i){let a=typeof e=="string"?new Date(e):e,o=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(a),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return i?u:s?`${o} ${u}`:o}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Ft=y(E()),No="ft-app-info",Le=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Le.eventName="authentication-change";var dt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};dt.eventName="ui-locale-changed";var Po={session:(t,e)=>{(0,Ft.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>b.dispatchEvent(new Le(e.payload)),0))}},b=Ft.FtReduxStore.get({name:No,reducers:Po,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ui=y(E()),Ut=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},al=(0,ui.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(b)}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(o=>o.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?o=>Dt.format(o,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ut([(0,Br.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ut([(0,Br.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ut([vr({store:b.name,selector:r=>{var n,s;return(s=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&s!==void 0?s:[]}})],e.prototype,"metadataDescriptors",void 0),Ut([vr({store:b.name})],e.prototype,"uiLocale",void 0),e});var qt=y(E());var qr=y(E());var he=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=b.getState(),s=e??n;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let s=b.subscribe(()=>{n=t.get(e),n&&(s(),r(n))})}})}};var Me=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:he.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):he.await()}};var P=class extends Me{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(i,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([o],[u])=>o.localeCompare(u)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new qr.CacheRegistry,this.cache=e?s.commonCache:new qr.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var jt=class extends P{async listMySearches(){let{session:e}=b.getState();return ys(e,O.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var $t=class extends P{async listMyBookmarks(){let e=b.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Ht=class extends P{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=b.getState().session;return!!e?.sessionAuthenticated}};var Bt=class extends P{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=b.getState().session;return!!e?.sessionAuthenticated}};var Do="ft-user-assets",Fo={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(U).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:n,asset:s}=e.payload;Kr(t,r,[...Vr(t,r),s]),ci(t,r,1,n),li(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Kr(t,r,Vr(t,r).map(s=>s.id===n.id?n:s)),li(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:s}=e.payload;Kr(t,r,Vr(t,r).filter(i=>i.id!==s)),ci(t,r,-1,n)}},di={[U.SEARCHES]:"savedSearches",[U.BOOKMARKS]:"bookmarks",[U.BOOKS]:void 0,[U.COLLECTIONS]:void 0},Vr=(t,e)=>{var r;let n=di[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Kr=(t,e,r)=>{let n=di[e];n&&(t[n]=r)},ci=(t,e,r,n)=>{let s=t.assetCounts.allAsset[e];if(s!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,s+r),e===U.BOOKMARKS&&n)){let i=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},li=(t,e)=>{let r=t.assetLabels.map(s=>s.title),n=e.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));t.assetLabels.push(...n)},M=qt.FtReduxStore.get({name:Do,reducers:Fo,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(U).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),zr=class{constructor(e=new Ht,r=new Bt){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=b.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new $t,this.savedSearchesService=new jt,b.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=b.getState();(0,qt.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),M.actions.clearAssetCount(),M.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),M.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),M.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();M.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();M.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&M.getState().assetCounts.allAsset[e]!==r.count&&M.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&M.getState().assetCounts.bookmarkByMap[e]!==r.count&&M.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(M.getState().assetCounts.bookmarkByMap).length!==0;e===U.BOOKMARKS&&r&&M.actions.clearBookmarkCountByMap(),M.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;M.actions.bookmarks(r)}}},Uo=new zr;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Uo);var Wr=class{addCommand(e,r=!1){b.commands.add(e,r)}consumeCommand(e){return b.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Wr;var $=y(E());var pi,Ne=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},jo=Symbol("clearAfterUnitTest"),Vt=class extends(0,$.withEventBus)(P){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[pi]=()=>{this.defaultMessages={},this.cache=new $.CacheRegistry,this.listeners={}},this.currentUiLocale=b.getState().uiLocale,b.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=b.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let s={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,$.deepEqual)(this.defaultMessages[e],s)||(this.defaultMessages[e]=s,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var s;let i=e.toLowerCase(),a=this.resolveContext(i);return new $.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},a).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(s){!(s instanceof $.CanceledPromiseError)&&r&&console.error(s)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var s;return(s=this.listeners[e])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Ne({loadedContexts:e})),this.dispatchEvent(new Ne({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Ne({loadedContexts:[e]})),this.dispatchEvent(new Ne({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,$.delay)(0).then(()=>n()).catch(()=>null)))}};pi=jo;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Vt{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Vt{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Pe=window.FluidTopicsI18nService,Kt=window.FluidTopicsCustomI18nService;var hi=y(E()),Gr=class{highlightHtml(e,r,n){(0,hi.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Gr;var fi=y(E());var Qr=class{isDate(e){var r,n,s,i;return(i=(s=((n=(r=b.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===e))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1}format(e,r){var n,s,i,a;if(e==null)return"";try{return fi.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:b.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(a=r?.onlyTime)!==null&&a!==void 0?a:!1)}catch(o){throw console.error(`Date ${JSON.stringify(e)} is not valid`,o),o}}};window.FluidTopicsDateService=new Qr;var mi=y(E());var pt=class{static get(e,r){var n,s;let i=b.getState(),{lang:a,region:o}=(s=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new mi.SearchPlaceConverter(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,r??`${a}-${o}`)}};var Yr=class{urlToSearchRequest(e){return pt.get().parse(e)}searchRequestToUrl(e){return pt.get().serialize(e)}};window.FluidTopicsUrlService=new Yr;var Z=y(E());var fe=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};fe.eventName="change";var Jr=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},yi=new Jr;var zt=class t extends Z.WithEventBus{static build(){return new t(window.history,yi,()=>window.location,!1)}constructor(e,r,n,s){var i,a;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(a=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&a!==void 0?a:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},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,Z.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new fe(this.currentItem())),0)}installProxies(){let e=r=>(n,s,[i,a,o])=>{let u=r(),c={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof o=="string"?o:(o??this.windowLocation()).href};n.apply(s,[c,a,o]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.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(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(fe.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(fe.eventName,e)}currentItem(){return(0,Z.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Z.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Z.deepCopy)(r.find(n=>e(n)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Z.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let s=e,i=e+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(s=i),i++;return s}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let s=r??this.currentState.majorStateId,i=(n=this.states[e])===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:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var gi=y(L());var vi=gi.css`
7
+ `;var Si=y(L()),F=y(N()),ge=y(E());var me=y(E());function bi(t,e){let{authenticationRequired:r,session:n}=b.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var Wt=class extends Me{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Xr=class t extends me.FtStateManager{static build(e){return new t(b,e)}constructor(e,r){super(),this.store=e,this.cache=new me.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new Wt,this.cleanSessionDebouncer=new me.Debouncer,this.reloadDebouncer=new me.Debouncer(500),this.apiProvider=r??(()=>he.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Le.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=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(e)}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 e;let r=await this.cache.get("availableContentLocales",()=>bi(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){var r,n,s,i,a;this.localesConfiguration=e,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((r=this.localesConfiguration.availableUiLocales)!==null&&r!==void 0?r:[]),this.store.actions.searchInAllLanguagesAllowed((n=this.localesConfiguration.allLanguagesAllowed)!==null&&n!==void 0?n:!1),this.store.actions.searchLanguageSetsUiLanguage((s=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&s!==void 0?s:!1),this.store.actions.uiLanguageSetsSearchLanguage((i=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&i!==void 0?i:!1),this.store.actions.uiLanguageSetsReaderLanguage((a=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&a!==void 0?a:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new dt(r)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Zr=Xr.build();var ye=class extends Event{constructor(e,r,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=n,this.subscribe=s??!1}};var ht=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:n}=r;for(let{elementRef:s,callbackRef:i}of n){let a=s.deref(),o=i.deref();a===void 0||o===void 0||a.dispatchEvent(new ye(e.context,a,o,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],n=e.callback,s=this.pendingContextRequests.get(e.context);s===void 0&&this.pendingContextRequests.set(e.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(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var k=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},R=class extends ge.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.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Zr,this.contextRoot=new ht}render(){return Si.html`
8
8
  <slot></slot>
9
- `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Ne.addContext(n)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};O.elementDefinitions={};O.styles=vi;k([(0,F.property)()],O.prototype,"baseUrl",void 0);k([(0,F.property)()],O.prototype,"apiIntegrationIdentifier",void 0);k([(0,F.property)()],O.prototype,"apiIntegrationAppVersion",void 0);k([(0,F.property)()],O.prototype,"uiLocale",void 0);k([(0,ge.jsonProperty)(null)],O.prototype,"availableUiLocales",void 0);k([(0,ge.jsonProperty)(null)],O.prototype,"metadataConfiguration",void 0);k([(0,F.property)({type:Boolean})],O.prototype,"editorMode",void 0);k([(0,F.property)({type:Boolean})],O.prototype,"noCustom",void 0);k([(0,F.property)({type:Boolean})],O.prototype,"openExternalDocumentInNewTab",void 0);k([(0,F.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],O.prototype,"noCustomComponent",void 0);k([(0,F.property)({type:Boolean})],O.prototype,"withManualResources",void 0);k([(0,F.property)({type:Boolean})],O.prototype,"navigatorOnline",void 0);k([(0,F.property)({type:Boolean})],O.prototype,"forcedOffline",void 0);k([(0,F.property)({type:Boolean})],O.prototype,"authenticationRequired",void 0);k([(0,ge.jsonProperty)([])],O.prototype,"messageContexts",void 0);k([(0,ge.jsonProperty)(void 0)],O.prototype,"session",void 0);var xi=y(E());var Ai={"ft-app-context":O};(0,xi.customElements)(Ai);var Gt=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},Yt=class extends CustomEvent{constructor(e,r){super("ft-search-result-open-context-menu",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}};var Qt=class t extends Event{constructor(){super(t.eventName)}};Qt.eventName="search-context-clear-all-filters";var Ei=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},rn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Ci=Symbol("registerInterval"),en=Symbol("registerAttempts"),Bo=40,qo=(0,Fe.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(n){var s,i,a;super.willUpdate(n),n.has("neededSearchRequests")&&((s=this.stateManager)===null||s===void 0||s.unregisterComponent(this,(i=n.get("neededSearchRequests"))!==null&&i!==void 0?i:[]),(a=this.stateManager)===null||a===void 0||a.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[en]=0,this.tryToRegisterToContext(),this[Ci]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[en]>Bo?window.clearInterval(this[Ci]):(this[en]++,this.dispatchEvent(new rn))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Ei([(0,tn.state)()],e.prototype,"stateManager",void 0),Ei([(0,tn.state)({hasChanged:Fe.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),De=class extends qo(Fe.FtLitElementRedux){};var Ti=y(L());var wi=Ti.css`
9
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Pe.addContext(n)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};R.elementDefinitions={};R.styles=vi;k([(0,F.property)()],R.prototype,"baseUrl",void 0);k([(0,F.property)()],R.prototype,"apiIntegrationIdentifier",void 0);k([(0,F.property)()],R.prototype,"apiIntegrationAppVersion",void 0);k([(0,F.property)()],R.prototype,"uiLocale",void 0);k([(0,ge.jsonProperty)(null)],R.prototype,"availableUiLocales",void 0);k([(0,ge.jsonProperty)(null)],R.prototype,"metadataConfiguration",void 0);k([(0,F.property)({type:Boolean})],R.prototype,"editorMode",void 0);k([(0,F.property)({type:Boolean})],R.prototype,"noCustom",void 0);k([(0,F.property)({type:Boolean})],R.prototype,"openExternalDocumentInNewTab",void 0);k([(0,F.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],R.prototype,"noCustomComponent",void 0);k([(0,F.property)({type:Boolean})],R.prototype,"withManualResources",void 0);k([(0,F.property)({type:Boolean})],R.prototype,"navigatorOnline",void 0);k([(0,F.property)({type:Boolean})],R.prototype,"forcedOffline",void 0);k([(0,F.property)({type:Boolean})],R.prototype,"authenticationRequired",void 0);k([(0,ge.jsonProperty)([])],R.prototype,"messageContexts",void 0);k([(0,ge.jsonProperty)(void 0)],R.prototype,"session",void 0);var xi=y(E());var Ai={"ft-app-context":R};(0,xi.customElements)(Ai);var Gt=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},Qt=class extends CustomEvent{constructor(e,r){super("ft-search-result-open-context-menu",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}};var Yt=class t extends Event{constructor(){super(t.eventName)}};Yt.eventName="search-context-clear-all-filters";var Ei=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},rn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Ci=Symbol("registerInterval"),en=Symbol("registerAttempts"),Bo=40,qo=(0,Fe.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(n){var s,i,a;super.willUpdate(n),n.has("neededSearchRequests")&&((s=this.stateManager)===null||s===void 0||s.unregisterComponent(this,(i=n.get("neededSearchRequests"))!==null&&i!==void 0?i:[]),(a=this.stateManager)===null||a===void 0||a.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[en]=0,this.tryToRegisterToContext(),this[Ci]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[en]>Bo?window.clearInterval(this[Ci]):(this[en]++,this.dispatchEvent(new rn))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Ei([(0,tn.state)()],e.prototype,"stateManager",void 0),Ei([(0,tn.state)({hasChanged:Fe.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),De=class extends qo(Fe.FtLitElementRedux){};var wi=y(L());var Ti=wi.css`
10
10
  a {
11
11
  color: inherit;
12
12
  text-decoration: inherit;
13
13
  }
14
- `;var Oi=y(L()),Ue=y(P()),Ri=y(E());var Xt=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,r){this.cluster=e,this.rank=r,this.selectResult(this.cluster.entries[0])}updateOpenResultInNewTab(e){this.openResultInNewTab=e}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(r=>this.bindComponent(r))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank,e.openResultInNewTab=this.openResultInNewTab}};var Jt=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},nn=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},Q=class extends Ri.FtLitElement{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new Xt(e=>this.onResultSelected(e))}render(){return Oi.html`
14
+ `;var Ri=y(L()),Ue=y(N()),Oi=y(E());var Jt=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,r){this.cluster=e,this.rank=r,this.selectResult(this.cluster.entries[0])}updateOpenResultInNewTab(e){this.openResultInNewTab=e}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(r=>this.bindComponent(r))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank,e.openResultInNewTab=this.openResultInNewTab}};var Xt=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},nn=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},Y=class extends Oi.FtLitElement{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new Jt(e=>this.onResultSelected(e))}render(){return Ri.html`
15
15
  <slot @register-ft-search-result-component=${this.registerComponent}></slot>
16
- `}onResultSelected(e){this.result=e,this.dispatchEvent(new nn(this.result))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};Q.elementDefinitions={};Q.styles=wi;Jt([(0,Ue.property)({attribute:!1})],Q.prototype,"cluster",void 0);Jt([(0,Ue.property)({attribute:!1,type:Boolean})],Q.prototype,"openResultInNewTab",void 0);Jt([(0,Ue.state)()],Q.prototype,"result",void 0);Jt([(0,Ue.property)()],Q.prototype,"index",void 0);var Ii=y(E());var _i={"ft-search-result-context":Q};(0,Ii.customElements)(_i);var ki=y(L()),Li=y(E()),Vo={highlightBackgroundColor:Li.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},Mi=ki.css`
16
+ `}onResultSelected(e){this.result=e,this.dispatchEvent(new nn(this.result))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};Y.elementDefinitions={};Y.styles=Ti;Xt([(0,Ue.property)({attribute:!1})],Y.prototype,"cluster",void 0);Xt([(0,Ue.property)({attribute:!1,type:Boolean})],Y.prototype,"openResultInNewTab",void 0);Xt([(0,Ue.state)()],Y.prototype,"result",void 0);Xt([(0,Ue.property)()],Y.prototype,"index",void 0);var Ii=y(E());var _i={"ft-search-result-context":Y};(0,Ii.customElements)(_i);var ki=y(L()),Li=y(E()),Vo={highlightBackgroundColor:Li.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},Mi=ki.css`
17
17
  .kwicmatch {
18
18
  font-weight: 700;
19
19
  background-color: ${Vo.highlightBackgroundColor};
@@ -27,9 +27,9 @@
27
27
  a:focus {
28
28
  outline: revert;
29
29
  }
30
- `;var bt=y(L()),ya=y(P()),ga=y(E());var tr=y(E());var er=y(P()),Zt=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},an=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},sn=Symbol("registerInterval"),Ko=(0,tr.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(s){this.resultStateManager=s}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[sn]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[sn]):this.dispatchEvent(new an)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=sn,Zt([(0,er.property)({attribute:!1})],r.prototype,"cluster",void 0),Zt([(0,er.property)({attribute:!1})],r.prototype,"result",void 0),Zt([(0,tr.numberProperty)()],r.prototype,"rank",void 0),Zt([(0,er.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),je=class extends Ko(De){};var hn=globalThis,rr=hn.trustedTypes,Pi=rr?rr.createPolicy("lit-html",{createHTML:t=>t}):void 0,$i="$lit$",oe=`lit$${Math.random().toFixed(9).slice(2)}$`,Hi="?"+oe,zo=`<${Hi}>`,Ae=document,nr=()=>Ae.createComment(""),mt=t=>t===null||typeof t!="object"&&typeof t!="function",fn=Array.isArray,Wo=t=>fn(t)||typeof t?.[Symbol.iterator]=="function",on=`[
31
- \f\r]`,ft=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ni=/-->/g,Di=/>/g,be=RegExp(`>|${on}(?:([^\\s"'>=/]+)(${on}*=${on}*(?:[^
32
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Fi=/'/g,Ui=/"/g,Bi=/^(?:script|style|textarea|title)$/i,mn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),qi=mn(1),Vi=mn(2),Ki=mn(3),yt=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),ji=new WeakMap,Se=Ae.createTreeWalker(Ae,129);function zi(t,e){if(!fn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pi!==void 0?Pi.createHTML(e):e}var Go=(t,e)=>{let r=t.length-1,n=[],s,i=e===2?"<svg>":e===3?"<math>":"",a=ft;for(let o=0;o<r;o++){let u=t[o],c,l,d=-1,p=0;for(;p<u.length&&(a.lastIndex=p,l=a.exec(u),l!==null);)p=a.lastIndex,a===ft?l[1]==="!--"?a=Ni:l[1]!==void 0?a=Di:l[2]!==void 0?(Bi.test(l[2])&&(s=RegExp("</"+l[2],"g")),a=be):l[3]!==void 0&&(a=be):a===be?l[0]===">"?(a=s??ft,d=-1):l[1]===void 0?d=-2:(d=a.lastIndex-l[2].length,c=l[1],a=l[3]===void 0?be:l[3]==='"'?Ui:Fi):a===Ui||a===Fi?a=be:a===Ni||a===Di?a=ft:(a=be,s=void 0);let m=a===be&&t[o+1].startsWith("/>")?" ":"";i+=a===ft?u+zo:d>=0?(n.push(c),u.slice(0,d)+$i+u.slice(d)+oe+m):u+oe+(d===-2?o:m)}return[zi(t,i+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},gt=class t{constructor({strings:e,_$litType$:r},n){let s;this.parts=[];let i=0,a=0,o=e.length-1,u=this.parts,[c,l]=Go(e,r);if(this.el=t.createElement(c,n),Se.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=Se.nextNode())!==null&&u.length<o;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith($i)){let p=l[a++],m=s.getAttribute(d).split(oe),h=/([.?@])?(.*)/.exec(p);u.push({type:1,index:i,name:h[2],strings:m,ctor:h[1]==="."?cn:h[1]==="?"?ln:h[1]==="@"?dn:He}),s.removeAttribute(d)}else d.startsWith(oe)&&(u.push({type:6,index:i}),s.removeAttribute(d));if(Bi.test(s.tagName)){let d=s.textContent.split(oe),p=d.length-1;if(p>0){s.textContent=rr?rr.emptyScript:"";for(let m=0;m<p;m++)s.append(d[m],nr()),Se.nextNode(),u.push({type:2,index:++i});s.append(d[p],nr())}}}else if(s.nodeType===8)if(s.data===Hi)u.push({type:2,index:i});else{let d=-1;for(;(d=s.data.indexOf(oe,d+1))!==-1;)u.push({type:7,index:i}),d+=oe.length-1}i++}}static createElement(e,r){let n=Ae.createElement("template");return n.innerHTML=e,n}};function $e(t,e,r=t,n){if(e===yt)return e;let s=n!==void 0?r._$Co?.[n]:r._$Cl,i=mt(e)?void 0:e._$litDirective$;return s?.constructor!==i&&(s?._$AO?.(!1),i===void 0?s=void 0:(s=new i(t),s._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=s:r._$Cl=s),s!==void 0&&(e=$e(t,s._$AS(t,e.values),s,n)),e}var un=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,s=(e?.creationScope??Ae).importNode(r,!0);Se.currentNode=s;let i=Se.nextNode(),a=0,o=0,u=n[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new sr(i,i.nextSibling,this,e):u.type===1?c=new u.ctor(i,u.name,u.strings,this,e):u.type===6&&(c=new pn(i,this,e)),this._$AV.push(c),u=n[++o]}a!==u?.index&&(i=Se.nextNode(),a++)}return Se.currentNode=Ae,s}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},sr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,s){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=$e(this,e,r),mt(e)?e===_||e==null||e===""?(this._$AH!==_&&this._$AR(),this._$AH=_):e!==this._$AH&&e!==yt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Wo(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==_&&mt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ae.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,s=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=gt.createElement(zi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===s)this._$AH.p(r);else{let i=new un(s,this),a=i.u(this.options);i.p(r),this.T(a),this._$AH=i}}_$AC(e){let r=ji.get(e.strings);return r===void 0&&ji.set(e.strings,r=new gt(e)),r}k(e){fn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,s=0;for(let i of e)s===r.length?r.push(n=new t(this.O(nr()),this.O(nr()),this,this.options)):n=r[s],n._$AI(i),s++;s<r.length&&(this._$AR(n&&n._$AB.nextSibling,s),r.length=s)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},He=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,s,i){this.type=1,this._$AH=_,this._$AN=void 0,this.element=e,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=_}_$AI(e,r=this,n,s){let i=this.strings,a=!1;if(i===void 0)e=$e(this,e,r,0),a=!mt(e)||e!==this._$AH&&e!==yt,a&&(this._$AH=e);else{let o=e,u,c;for(e=i[0],u=0;u<i.length-1;u++)c=$e(this,o[n+u],r,u),c===yt&&(c=this._$AH[u]),a||=!mt(c)||c!==this._$AH[u],c===_?e=_:e!==_&&(e+=(c??"")+i[u+1]),this._$AH[u]=c}a&&!s&&this.j(e)}j(e){e===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},cn=class extends He{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_?void 0:e}},ln=class extends He{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==_)}},dn=class extends He{constructor(e,r,n,s,i){super(e,r,n,s,i),this.type=5}_$AI(e,r=this){if((e=$e(this,e,r,0)??_)===yt)return;let n=this._$AH,s=e===_&&n!==_||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==_&&(n===_||s);s&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},pn=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){$e(this,e)}};var Yo=hn.litHtmlPolyfillSupport;Yo?.(gt,sr),(hn.litHtmlVersions??=[]).push("3.3.0");var Gi=Symbol.for(""),Qo=t=>{if(t?.r===Gi)return t?._$litStatic$},yn=t=>({_$litStatic$:t,r:Gi});var Wi=new Map,gn=t=>(e,...r)=>{let n=r.length,s,i,a=[],o=[],u,c=0,l=!1;for(;c<n;){for(u=e[c];c<n&&(i=r[c],(s=Qo(i))!==void 0);)u+=s+e[++c],l=!0;c!==n&&o.push(i),a.push(u),c++}if(c===n&&a.push(e[n]),l){let d=a.join("$$lit$$");(e=Wi.get(d))===void 0&&(a.raw=a,Wi.set(d,e=a)),r=o}return t(e,...r)},vn=gn(qi),rh=gn(Vi),nh=gn(Ki);var bn=y(P()),ua=y(E());var ue;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(ue||(ue={}));var H=y(L()),f=y(E()),Yi=f.FtCssVariableFactory.extend("--ft-typography-font-family","",f.designSystemVariables.titleFont),ee=f.FtCssVariableFactory.extend("--ft-typography-font-family","",f.designSystemVariables.contentFont),v={fontFamily:ee,fontSize:f.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:f.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:f.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:f.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:f.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Be={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Yi),fontSize:f.FtCssVariableFactory.extend("--ft-typography-title-font-size","",v.fontSize,"20px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",v.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",v.letterSpacing,"0.15px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-title-line-height","",v.lineHeight,"1.2"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",v.textTransform,"inherit")},qe={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Yi),fontSize:f.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",v.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",v.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",v.letterSpacing,"0.105px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",v.lineHeight,"1.7"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",v.textTransform,"inherit")},Ve={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ee),fontSize:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",v.fontSize,"16px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",v.fontWeight,"600"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",v.letterSpacing,"0.144px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",v.lineHeight,"1.5"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",v.textTransform,"inherit")},Ke={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ee),fontSize:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",v.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",v.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",v.letterSpacing,"0.098px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",v.lineHeight,"1.7"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",v.textTransform,"inherit")},ze={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ee),fontSize:f.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",v.fontSize,"16px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",v.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",v.letterSpacing,"0.496px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",v.lineHeight,"1.5"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",v.textTransform,"inherit")},We={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ee),fontSize:f.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",v.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",v.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",v.letterSpacing,"0.252px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",v.lineHeight,"1.4"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",v.textTransform,"inherit")},Ge={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ee),fontSize:f.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",v.fontSize,"12px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",v.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",v.letterSpacing,"0.396px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",v.lineHeight,"1.33"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",v.textTransform,"inherit")},Ye={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ee),fontSize:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",v.fontSize,"10px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",v.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",v.letterSpacing,"0.33px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",v.lineHeight,"1.6"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",v.textTransform,"inherit")},Qe={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ee),fontSize:f.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",v.fontSize,"10px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",v.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",v.letterSpacing,"1.5px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",v.lineHeight,"1.6"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",v.textTransform,"uppercase")},Xe={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ee),fontSize:f.FtCssVariableFactory.extend("--ft-typography-button-font-size","",v.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",v.fontWeight,"600"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",v.letterSpacing,"1.246px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-button-line-height","",v.lineHeight,"1.15"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",v.textTransform,"uppercase")},Qi=H.css`
30
+ `;var bt=y(L()),ya=y(N()),ga=y(E());var tr=y(E());var er=y(N()),Zt=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},an=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},sn=Symbol("registerInterval"),Ko=(0,tr.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(s){this.resultStateManager=s}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[sn]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[sn]):this.dispatchEvent(new an)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=sn,Zt([(0,er.property)({attribute:!1})],r.prototype,"cluster",void 0),Zt([(0,er.property)({attribute:!1})],r.prototype,"result",void 0),Zt([(0,tr.numberProperty)()],r.prototype,"rank",void 0),Zt([(0,er.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),je=class extends Ko(De){};var hn=globalThis,rr=hn.trustedTypes,Ni=rr?rr.createPolicy("lit-html",{createHTML:t=>t}):void 0,$i="$lit$",oe=`lit$${Math.random().toFixed(9).slice(2)}$`,Hi="?"+oe,zo=`<${Hi}>`,Ae=document,nr=()=>Ae.createComment(""),mt=t=>t===null||typeof t!="object"&&typeof t!="function",fn=Array.isArray,Wo=t=>fn(t)||typeof t?.[Symbol.iterator]=="function",on=`[
31
+ \f\r]`,ft=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Pi=/-->/g,Di=/>/g,be=RegExp(`>|${on}(?:([^\\s"'>=/]+)(${on}*=${on}*(?:[^
32
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Fi=/'/g,Ui=/"/g,Bi=/^(?:script|style|textarea|title)$/i,mn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),qi=mn(1),Vi=mn(2),Ki=mn(3),yt=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),ji=new WeakMap,Se=Ae.createTreeWalker(Ae,129);function zi(t,e){if(!fn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ni!==void 0?Ni.createHTML(e):e}var Go=(t,e)=>{let r=t.length-1,n=[],s,i=e===2?"<svg>":e===3?"<math>":"",a=ft;for(let o=0;o<r;o++){let u=t[o],c,l,d=-1,p=0;for(;p<u.length&&(a.lastIndex=p,l=a.exec(u),l!==null);)p=a.lastIndex,a===ft?l[1]==="!--"?a=Pi:l[1]!==void 0?a=Di:l[2]!==void 0?(Bi.test(l[2])&&(s=RegExp("</"+l[2],"g")),a=be):l[3]!==void 0&&(a=be):a===be?l[0]===">"?(a=s??ft,d=-1):l[1]===void 0?d=-2:(d=a.lastIndex-l[2].length,c=l[1],a=l[3]===void 0?be:l[3]==='"'?Ui:Fi):a===Ui||a===Fi?a=be:a===Pi||a===Di?a=ft:(a=be,s=void 0);let m=a===be&&t[o+1].startsWith("/>")?" ":"";i+=a===ft?u+zo:d>=0?(n.push(c),u.slice(0,d)+$i+u.slice(d)+oe+m):u+oe+(d===-2?o:m)}return[zi(t,i+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},gt=class t{constructor({strings:e,_$litType$:r},n){let s;this.parts=[];let i=0,a=0,o=e.length-1,u=this.parts,[c,l]=Go(e,r);if(this.el=t.createElement(c,n),Se.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=Se.nextNode())!==null&&u.length<o;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith($i)){let p=l[a++],m=s.getAttribute(d).split(oe),h=/([.?@])?(.*)/.exec(p);u.push({type:1,index:i,name:h[2],strings:m,ctor:h[1]==="."?cn:h[1]==="?"?ln:h[1]==="@"?dn:He}),s.removeAttribute(d)}else d.startsWith(oe)&&(u.push({type:6,index:i}),s.removeAttribute(d));if(Bi.test(s.tagName)){let d=s.textContent.split(oe),p=d.length-1;if(p>0){s.textContent=rr?rr.emptyScript:"";for(let m=0;m<p;m++)s.append(d[m],nr()),Se.nextNode(),u.push({type:2,index:++i});s.append(d[p],nr())}}}else if(s.nodeType===8)if(s.data===Hi)u.push({type:2,index:i});else{let d=-1;for(;(d=s.data.indexOf(oe,d+1))!==-1;)u.push({type:7,index:i}),d+=oe.length-1}i++}}static createElement(e,r){let n=Ae.createElement("template");return n.innerHTML=e,n}};function $e(t,e,r=t,n){if(e===yt)return e;let s=n!==void 0?r._$Co?.[n]:r._$Cl,i=mt(e)?void 0:e._$litDirective$;return s?.constructor!==i&&(s?._$AO?.(!1),i===void 0?s=void 0:(s=new i(t),s._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=s:r._$Cl=s),s!==void 0&&(e=$e(t,s._$AS(t,e.values),s,n)),e}var un=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,s=(e?.creationScope??Ae).importNode(r,!0);Se.currentNode=s;let i=Se.nextNode(),a=0,o=0,u=n[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new sr(i,i.nextSibling,this,e):u.type===1?c=new u.ctor(i,u.name,u.strings,this,e):u.type===6&&(c=new pn(i,this,e)),this._$AV.push(c),u=n[++o]}a!==u?.index&&(i=Se.nextNode(),a++)}return Se.currentNode=Ae,s}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},sr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,s){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=$e(this,e,r),mt(e)?e===_||e==null||e===""?(this._$AH!==_&&this._$AR(),this._$AH=_):e!==this._$AH&&e!==yt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Wo(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==_&&mt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ae.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,s=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=gt.createElement(zi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===s)this._$AH.p(r);else{let i=new un(s,this),a=i.u(this.options);i.p(r),this.T(a),this._$AH=i}}_$AC(e){let r=ji.get(e.strings);return r===void 0&&ji.set(e.strings,r=new gt(e)),r}k(e){fn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,s=0;for(let i of e)s===r.length?r.push(n=new t(this.O(nr()),this.O(nr()),this,this.options)):n=r[s],n._$AI(i),s++;s<r.length&&(this._$AR(n&&n._$AB.nextSibling,s),r.length=s)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},He=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,s,i){this.type=1,this._$AH=_,this._$AN=void 0,this.element=e,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=_}_$AI(e,r=this,n,s){let i=this.strings,a=!1;if(i===void 0)e=$e(this,e,r,0),a=!mt(e)||e!==this._$AH&&e!==yt,a&&(this._$AH=e);else{let o=e,u,c;for(e=i[0],u=0;u<i.length-1;u++)c=$e(this,o[n+u],r,u),c===yt&&(c=this._$AH[u]),a||=!mt(c)||c!==this._$AH[u],c===_?e=_:e!==_&&(e+=(c??"")+i[u+1]),this._$AH[u]=c}a&&!s&&this.j(e)}j(e){e===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},cn=class extends He{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_?void 0:e}},ln=class extends He{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==_)}},dn=class extends He{constructor(e,r,n,s,i){super(e,r,n,s,i),this.type=5}_$AI(e,r=this){if((e=$e(this,e,r,0)??_)===yt)return;let n=this._$AH,s=e===_&&n!==_||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==_&&(n===_||s);s&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},pn=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){$e(this,e)}};var Qo=hn.litHtmlPolyfillSupport;Qo?.(gt,sr),(hn.litHtmlVersions??=[]).push("3.3.0");var Gi=Symbol.for(""),Yo=t=>{if(t?.r===Gi)return t?._$litStatic$},yn=t=>({_$litStatic$:t,r:Gi});var Wi=new Map,gn=t=>(e,...r)=>{let n=r.length,s,i,a=[],o=[],u,c=0,l=!1;for(;c<n;){for(u=e[c];c<n&&(i=r[c],(s=Yo(i))!==void 0);)u+=s+e[++c],l=!0;c!==n&&o.push(i),a.push(u),c++}if(c===n&&a.push(e[n]),l){let d=a.join("$$lit$$");(e=Wi.get(d))===void 0&&(a.raw=a,Wi.set(d,e=a)),r=o}return t(e,...r)},vn=gn(qi),rh=gn(Vi),nh=gn(Ki);var bn=y(N()),ua=y(E());var ue;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(ue||(ue={}));var H=y(L()),f=y(E()),Qi=f.FtCssVariableFactory.extend("--ft-typography-font-family","",f.designSystemVariables.titleFont),ee=f.FtCssVariableFactory.extend("--ft-typography-font-family","",f.designSystemVariables.contentFont),v={fontFamily:ee,fontSize:f.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:f.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:f.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:f.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:f.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Be={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Qi),fontSize:f.FtCssVariableFactory.extend("--ft-typography-title-font-size","",v.fontSize,"20px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",v.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",v.letterSpacing,"0.15px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-title-line-height","",v.lineHeight,"1.2"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",v.textTransform,"inherit")},qe={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Qi),fontSize:f.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",v.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",v.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",v.letterSpacing,"0.105px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",v.lineHeight,"1.7"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",v.textTransform,"inherit")},Ve={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ee),fontSize:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",v.fontSize,"16px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",v.fontWeight,"600"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",v.letterSpacing,"0.144px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",v.lineHeight,"1.5"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",v.textTransform,"inherit")},Ke={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ee),fontSize:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",v.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",v.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",v.letterSpacing,"0.098px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",v.lineHeight,"1.7"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",v.textTransform,"inherit")},ze={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ee),fontSize:f.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",v.fontSize,"16px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",v.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",v.letterSpacing,"0.496px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",v.lineHeight,"1.5"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",v.textTransform,"inherit")},We={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ee),fontSize:f.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",v.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",v.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",v.letterSpacing,"0.252px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",v.lineHeight,"1.4"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",v.textTransform,"inherit")},Ge={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ee),fontSize:f.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",v.fontSize,"12px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",v.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",v.letterSpacing,"0.396px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",v.lineHeight,"1.33"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",v.textTransform,"inherit")},Qe={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ee),fontSize:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",v.fontSize,"10px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",v.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",v.letterSpacing,"0.33px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",v.lineHeight,"1.6"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",v.textTransform,"inherit")},Ye={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ee),fontSize:f.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",v.fontSize,"10px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",v.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",v.letterSpacing,"1.5px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",v.lineHeight,"1.6"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",v.textTransform,"uppercase")},Je={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ee),fontSize:f.FtCssVariableFactory.extend("--ft-typography-button-font-size","",v.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",v.fontWeight,"600"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",v.letterSpacing,"1.246px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-button-line-height","",v.lineHeight,"1.15"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",v.textTransform,"uppercase")},Yi=H.css`
33
33
  .ft-typography--title {
34
34
  font-family: ${Be.fontFamily};
35
35
  font-size: ${Be.fontSize};
@@ -38,7 +38,7 @@
38
38
  line-height: ${Be.lineHeight};
39
39
  text-transform: ${Be.textTransform};
40
40
  }
41
- `,Xi=H.css`
41
+ `,Ji=H.css`
42
42
  .ft-typography--title-dense {
43
43
  font-family: ${qe.fontFamily};
44
44
  font-size: ${qe.fontSize};
@@ -47,7 +47,7 @@
47
47
  line-height: ${qe.lineHeight};
48
48
  text-transform: ${qe.textTransform};
49
49
  }
50
- `,Ji=H.css`
50
+ `,Xi=H.css`
51
51
  .ft-typography--subtitle1 {
52
52
  font-family: ${Ve.fontFamily};
53
53
  font-size: ${Ve.fontSize};
@@ -95,15 +95,6 @@
95
95
  }
96
96
  `,na=H.css`
97
97
  .ft-typography--breadcrumb {
98
- font-family: ${Ye.fontFamily};
99
- font-size: ${Ye.fontSize};
100
- font-weight: ${Ye.fontWeight};
101
- letter-spacing: ${Ye.letterSpacing};
102
- line-height: ${Ye.lineHeight};
103
- text-transform: ${Ye.textTransform};
104
- }
105
- `,sa=H.css`
106
- .ft-typography--overline {
107
98
  font-family: ${Qe.fontFamily};
108
99
  font-size: ${Qe.fontSize};
109
100
  font-weight: ${Qe.fontWeight};
@@ -111,14 +102,23 @@
111
102
  line-height: ${Qe.lineHeight};
112
103
  text-transform: ${Qe.textTransform};
113
104
  }
105
+ `,sa=H.css`
106
+ .ft-typography--overline {
107
+ font-family: ${Ye.fontFamily};
108
+ font-size: ${Ye.fontSize};
109
+ font-weight: ${Ye.fontWeight};
110
+ letter-spacing: ${Ye.letterSpacing};
111
+ line-height: ${Ye.lineHeight};
112
+ text-transform: ${Ye.textTransform};
113
+ }
114
114
  `,ia=H.css`
115
115
  .ft-typography--button {
116
- font-family: ${Xe.fontFamily};
117
- font-size: ${Xe.fontSize};
118
- font-weight: ${Xe.fontWeight};
119
- letter-spacing: ${Xe.letterSpacing};
120
- line-height: ${Xe.lineHeight};
121
- text-transform: ${Xe.textTransform};
116
+ font-family: ${Je.fontFamily};
117
+ font-size: ${Je.fontSize};
118
+ font-weight: ${Je.fontWeight};
119
+ letter-spacing: ${Je.letterSpacing};
120
+ line-height: ${Je.lineHeight};
121
+ text-transform: ${Je.textTransform};
122
122
  }
123
123
  `,aa=H.css`
124
124
  .ft-typography {
@@ -132,7 +132,7 @@
132
132
  </${yn(this.element)}>
133
133
  `:vn`
134
134
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
135
- `}};K.styles=[Qi,Xi,Ji,Zi,ea,ta,ra,na,sa,ia,aa];oa([(0,bn.property)()],K.prototype,"element",void 0);oa([(0,bn.property)()],K.prototype,"variant",void 0);var la=y(E());var ca={"ft-typography":K};(0,la.customElements)(ca);var va=y(Sn());var pa=t=>t??_;var vt=y(E());function ha(t){var e;return((e=(0,vt.accessResult)(t))===null||e===void 0?void 0:e.openMode)===xt.EXTERNAL}function fa(t){return ha(t)?(0,vt.accessResult)(t).originUrl:(0,vt.accessResultUrl)(t)}function ma(t,e){return pa(e&&ha(t)?"_blank":void 0)}var Xo=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},xe=class extends je{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():bt.html`
135
+ `}};K.styles=[Yi,Ji,Xi,Zi,ea,ta,ra,na,sa,ia,aa];oa([(0,bn.property)()],K.prototype,"element",void 0);oa([(0,bn.property)()],K.prototype,"variant",void 0);var la=y(E());var ca={"ft-typography":K};(0,la.customElements)(ca);var va=y(Sn());var pa=t=>t??_;var vt=y(E());function ha(t){var e;return((e=(0,vt.accessResult)(t))===null||e===void 0?void 0:e.openMode)===xt.EXTERNAL}function fa(t){return ha(t)?(0,vt.accessResult)(t).originUrl:(0,vt.accessResultUrl)(t)}function ma(t,e){return pa(e&&ha(t)?"_blank":void 0)}var Jo=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},xe=class extends je{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():bt.html`
136
136
  <a href="${fa(this.result)}"
137
137
  @click=${this.onResultClick}
138
138
  @auxclick=${r=>this.onAuxClick(r)}
@@ -143,25 +143,25 @@
143
143
  </a>
144
144
  `:bt.nothing}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){var e;return bt.html`
145
145
  <ft-typography variant="${ue.title}" part="text">${(0,va.unsafeHTML)((e=(0,ga.accessResult)(this.result))===null||e===void 0?void 0:e.htmlTitle)}</ft-typography>
146
- `}onResultClick(){this.dispatchEvent(new Gt(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new Yt(this.result,this.rank))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(n=>n.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&!((r=this.stateManager)===null||r===void 0)&&r.store.commands.consume(`focus-result-${this.rank}`)&&(this.elementToFocus={selector:"a"})}};xe.elementDefinitions={"ft-typography":K};xe.styles=Mi;Xo([(0,ya.property)({type:Boolean})],xe.prototype,"withoutLink",void 0);var Sa=y(E());var ba={"ft-search-result-title":xe};(0,Sa.customElements)(ba);var Aa=y(L()),xa=y(E()),Jo={highlightBackgroundColor:xa.FtCssVariableFactory.create("--ft-sra-highlight-background-color","","COLOR","transparent")},Ea=Aa.css`
146
+ `}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(e){var r;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(n=>n.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&!((r=this.stateManager)===null||r===void 0)&&r.store.commands.consume(`focus-result-${this.rank}`)&&(this.elementToFocus={selector:"a"})}};xe.elementDefinitions={"ft-typography":K};xe.styles=Mi;Jo([(0,ya.property)({type:Boolean})],xe.prototype,"withoutLink",void 0);var Sa=y(E());var ba={"ft-search-result-title":xe};(0,Sa.customElements)(ba);var Aa=y(L()),xa=y(E()),Xo={highlightBackgroundColor:xa.FtCssVariableFactory.create("--ft-sra-highlight-background-color","","COLOR","transparent")},Ea=Aa.css`
147
147
  .kwicmatch {
148
148
  font-weight: 700;
149
- background-color: ${Jo.highlightBackgroundColor};
149
+ background-color: ${Xo.highlightBackgroundColor};
150
150
  }
151
- `;var An=y(L()),Ca=y(E());var Ta=y(Sn());var Je=class extends je{render(){var e;let r=(e=(0,Ca.accessResult)(this.result))===null||e===void 0?void 0:e.htmlExcerpt;return r?An.html`
152
- <ft-typography variant="${ue.body1}" part="text">${(0,Ta.unsafeHTML)(r)}</ft-typography>
151
+ `;var An=y(L()),Ca=y(E());var wa=y(Sn());var Xe=class extends je{render(){var e;let r=(e=(0,Ca.accessResult)(this.result))===null||e===void 0?void 0:e.htmlExcerpt;return r?An.html`
152
+ <ft-typography variant="${ue.body1}" part="text">${(0,wa.unsafeHTML)(r)}</ft-typography>
153
153
  `:An.html`
154
154
  <style>
155
155
  :host {
156
156
  display: none !important;
157
157
  }
158
158
  </style>
159
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};Je.elementDefinitions={"ft-typography":K};Je.styles=Ea;var Oa=y(E());var wa={"ft-search-result-abstract":Je};(0,Oa.customElements)(wa);var ir=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Kt:Ne}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(n,s)=>{let i=s;return a=>({context:this.name,key:i,custom:this.custom,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(n,s)=>(...i)=>this.service.resolveMessage(this.name,s,...i)}),this.rawMessages=new Proxy({},{get:(n,s)=>this.service.resolveRawMessage(this.name,s)}),this.keys=new Proxy({},{get:(n,s)=>()=>s}),this.attributes=new Proxy({},{get:(n,s)=>()=>({context:this.name,key:s,message:this.service.resolveRawMessage(this.name,s)})})}};var Ze=y(E());var Ia=y(P());var xn=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,n]=e.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Ra=new xn;var Zo=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},eu=Symbol("i18nAttributes"),tu=Symbol("i18nListAttributes"),ka=Symbol("i18nProperties"),ar=Symbol("i18nContexts"),St=Symbol("i18nUnsubs"),ur=(0,Ze.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Kt:Ne}i18n(i){let{context:a,key:o,message:u}=i,{custom:c,args:l,argsProvider:d}=i;if(a&&o){this.hasI18nContext(a)||this.addI18nContext(a,void 0,c);let p=l??(d?d(this):[]);return this.getI18nService(c).resolveMessage(a,o,...p)}return u}async awaitI18n(i){let{context:a,custom:o}=i;return a&&await this.getI18nService(o).prepareContext(a),this.i18n(i)}customI18n(i,a){if(Ra.isI18nKey(i)){let[o,u]=i.split(".");return this.i18n({custom:!0,context:o,key:u,...a})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((a,o,u)=>i.has(o)||typeof a.argsProvider=="function"),this.updateI18nProperties(a=>typeof a.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((a,o,u)=>{var c;return((c=u?.context)===null||c===void 0?void 0:c.toLowerCase())===i}),this.updateI18nProperties(a=>a.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var a,o;let u=this,c=(l,d,p)=>p?.context&&p.key&&i(l,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...l})}:p;(a=this[eu])===null||a===void 0||a.forEach((l,d)=>u[d]=c(l,d,u[d])),(o=this[tu])===null||o===void 0||o.forEach((l,d)=>{var p;return u[d]=(p=u[d])===null||p===void 0?void 0:p.map(m=>c(l,d,m))})}updateI18nProperties(i){var a;(a=this[ka])===null||a===void 0||a.forEach((o,u)=>{i(o,u)&&(this[u]=this.i18n(o))})}addI18nMessages(i,a,o){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,a,o)}addI18nContext(i,a,o){let u=(typeof i=="string"?i:i.name).toLowerCase();o=typeof i=="string"?o:i.custom,this[ar].set(u,{isCustomContext:o}),this[St].has(u)||this[St].set(u,this.getI18nService(o).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(o).prepareContext(u,a)}hasI18nContext(i){return this[ar].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ar].forEach((i,a)=>this.addI18nContext(a,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[St].forEach(i=>i()),this[St].clear()}}return e=ar,r=St,Zo([(0,Ia.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),_a=class extends ur(Ze.FtLitElement){},or=class extends ur(Ze.FtLitElementRedux){};var La=y(L());var Ma=La.css`
160
- `;var cr=y(L()),lr=y(P()),dr=y(E());var At=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},z=class extends or{constructor(){super(),this.editorMode=!1,this.addStore(b)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":cr.nothing:cr.html`
159
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};Xe.elementDefinitions={"ft-typography":K};Xe.styles=Ea;var Ra=y(E());var Ta={"ft-search-result-abstract":Xe};(0,Ra.customElements)(Ta);var ir=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Kt:Pe}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(n,s)=>{let i=s;return a=>({context:this.name,key:i,custom:this.custom,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(n,s)=>(...i)=>this.service.resolveMessage(this.name,s,...i)}),this.rawMessages=new Proxy({},{get:(n,s)=>this.service.resolveRawMessage(this.name,s)}),this.keys=new Proxy({},{get:(n,s)=>()=>s}),this.attributes=new Proxy({},{get:(n,s)=>()=>({context:this.name,key:s,message:this.service.resolveRawMessage(this.name,s)})})}};var Ze=y(E());var Ia=y(N());var xn=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,n]=e.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Oa=new xn;var Zo=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},eu=Symbol("i18nAttributes"),tu=Symbol("i18nListAttributes"),ka=Symbol("i18nProperties"),ar=Symbol("i18nContexts"),St=Symbol("i18nUnsubs"),ur=(0,Ze.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Kt:Pe}i18n(i){let{context:a,key:o,message:u}=i,{custom:c,args:l,argsProvider:d}=i;if(a&&o){this.hasI18nContext(a)||this.addI18nContext(a,void 0,c);let p=l??(d?d(this):[]);return this.getI18nService(c).resolveMessage(a,o,...p)}return u}async awaitI18n(i){let{context:a,custom:o}=i;return a&&await this.getI18nService(o).prepareContext(a),this.i18n(i)}customI18n(i,a){if(Oa.isI18nKey(i)){let[o,u]=i.split(".");return this.i18n({custom:!0,context:o,key:u,...a})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((a,o,u)=>i.has(o)||typeof a.argsProvider=="function"),this.updateI18nProperties(a=>typeof a.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((a,o,u)=>{var c;return((c=u?.context)===null||c===void 0?void 0:c.toLowerCase())===i}),this.updateI18nProperties(a=>a.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var a,o;let u=this,c=(l,d,p)=>p?.context&&p.key&&i(l,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...l})}:p;(a=this[eu])===null||a===void 0||a.forEach((l,d)=>u[d]=c(l,d,u[d])),(o=this[tu])===null||o===void 0||o.forEach((l,d)=>{var p;return u[d]=(p=u[d])===null||p===void 0?void 0:p.map(m=>c(l,d,m))})}updateI18nProperties(i){var a;(a=this[ka])===null||a===void 0||a.forEach((o,u)=>{i(o,u)&&(this[u]=this.i18n(o))})}addI18nMessages(i,a,o){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,a,o)}addI18nContext(i,a,o){let u=(typeof i=="string"?i:i.name).toLowerCase();o=typeof i=="string"?o:i.custom,this[ar].set(u,{isCustomContext:o}),this[St].has(u)||this[St].set(u,this.getI18nService(o).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(o).prepareContext(u,a)}hasI18nContext(i){return this[ar].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ar].forEach((i,a)=>this.addI18nContext(a,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[St].forEach(i=>i()),this[St].clear()}}return e=ar,r=St,Zo([(0,Ia.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),_a=class extends ur(Ze.FtLitElement){},or=class extends ur(Ze.FtLitElementRedux){};var La=y(L());var Ma=La.css`
160
+ `;var cr=y(L()),lr=y(N()),dr=y(E());var At=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},z=class extends or{constructor(){super(),this.editorMode=!1,this.addStore(b)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":cr.nothing:cr.html`
161
161
  <span class="ft-i18n">
162
162
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
163
163
  </span>
164
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};z.elementDefinitions={};z.styles=Ma;At([(0,dr.redux)()],z.prototype,"editorMode",void 0);At([(0,lr.property)()],z.prototype,"context",void 0);At([(0,lr.property)()],z.prototype,"key",void 0);At([(0,dr.jsonProperty)([])],z.prototype,"args",void 0);At([(0,lr.property)()],z.prototype,"defaultMessage",void 0);var Na=y(E());var Pa={"ft-i18n":z};(0,Na.customElements)(Pa);var En=ir.build("searchResultsNumber");var Ee=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},B=class extends ur(De){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>pr.html`
164
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};z.elementDefinitions={};z.styles=Ma;At([(0,dr.redux)()],z.prototype,"editorMode",void 0);At([(0,lr.property)()],z.prototype,"context",void 0);At([(0,lr.property)()],z.prototype,"key",void 0);At([(0,dr.jsonProperty)([])],z.prototype,"args",void 0);At([(0,lr.property)()],z.prototype,"defaultMessage",void 0);var Pa=y(E());var Na={"ft-i18n":z};(0,Pa.customElements)(Na);var En=ir.build("searchResultsNumber");var Ee=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(i=(s<3?a(i):s>3?a(e,r,i):a(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},B=class extends ur(De){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>pr.html`
165
165
  <ft-search-result-title></ft-search-result-title>
166
166
  <ft-search-result-abstract></ft-search-result-abstract>
167
167
  `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[st.CLUSTERED_SEARCH],this.addI18nContext(En)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return pr.html`