@fluid-topics/ft-search-result-title 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,7 +1,7 @@
1
- "use strict";(()=>{var js=Object.create;var Xr=Object.defineProperty;var $s=Object.getOwnPropertyDescriptor;var Hs=Object.getOwnPropertyNames;var Bs=Object.getPrototypeOf,qs=Object.prototype.hasOwnProperty;var ot=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Vs=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Hs(e))!qs.call(t,i)&&i!==r&&Xr(t,i,{get:()=>e[i],enumerable:!(n=$s(e,i))||n.enumerable});return t};var v=(t,e,r)=>(r=t!=null?js(Bs(t)):{},Vs(e||!t||!t.__esModule?Xr(r,"default",{value:t,enumerable:!0}):r,t));var C=ot((Ja,Jr)=>{Jr.exports=ftGlobals.wcUtils});var ne=ot((Za,Zr)=>{Zr.exports=ftGlobals.lit});var B=ot((eo,en)=>{en.exports=ftGlobals.litDecorators});var Rs=ot((np,_s)=>{_s.exports=ftGlobals.litUnsafeHTML});var Us=v(C());var at=v(ne()),Ms=v(B()),Ns=v(C());var $t=v(C());var Re=v(C()),kr=v(B());var Vt;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Vt||(Vt={}));var fe=v(C());var Ks=v(C());var tn;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(tn||(tn={}));var rn;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(rn||(rn={}));var nn;(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"})(nn||(nn={}));var sn;(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"})(sn||(sn={}));var an;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(an||(an={}));var on;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(on||(on={}));var un;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(un||(un={}));var cn;(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"})(cn||(cn={}));var ln;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(ln||(ln={}));var dn;(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"})(dn||(dn={}));var pn;(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"})(pn||(pn={}));var fn;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(fn||(fn={}));var hn;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(hn||(hn={}));var mn;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(mn||(mn={}));var yn;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(yn||(yn={}));var gn;(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"})(gn||(gn={}));var Kt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Kt||(Kt={}));var vn;(function(t){t.ASC="ASC",t.DESC="DESC"})(vn||(vn={}));var bn;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(bn||(bn={}));var zt;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(zt||(zt={}));var Sn;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Sn||(Sn={}));var ut;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ut||(ut={}));var An;(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"})(An||(An={}));var En;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(En||(En={}));var xn;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(xn||(xn={}));var Wt;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Wt||(Wt={}));var Cn;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Cn||(Cn={}));var _;(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"})(_||(_={}));var P;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(P||(P={}));var Tn;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Tn||(Tn={}));var On;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(On||(On={}));var wn;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(wn||(wn={}));var _n;(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"})(_n||(_n={}));var Rn;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Rn||(Rn={}));var In;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(In||(In={}));var Ln;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ln||(Ln={}));var kn;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(kn||(kn={}));var Dn;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Dn||(Dn={}));var Mn;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Mn||(Mn={}));var Nn;(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"})(Nn||(Nn={}));var Pn;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Pn||(Pn={}));var zs={[_.PERSONAL_BOOK_SHARE_USER]:[_.PERSONAL_BOOK_USER],[_.HTML_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.PDF_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.KHUB_ADMIN]:[_.CONTENT_PUBLISHER],[_.ADMIN]:[_.KHUB_ADMIN,_.USERS_ADMIN,_.PORTAL_ADMIN,_.BEHAVIOR_DATA_USER],[_.GENERATIVE_AI_EXPORT_USER]:[_.GENERATIVE_AI_USER]};function Fn(t,e){return t===e||(zs[t]??[]).some(r=>Fn(r,e))}function Un(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=>Fn(n,e))}var br=v(B());var jn=v(B(),1);var Gt=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function $n(t,e){return(0,jn.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return ze(t);try{return JSON.parse(r)}catch{return ze(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:We,...e??{}})}function Ws(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(!ct(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(!ct(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 i=a=>Object.keys(a).filter(o=>a[o]!=null),s=i(t);if(r=s.length,r!==i(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){let a=s[n];if(!ct(t[a],e[a]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ct(t,e){try{return Ws(t,e)}catch{return!1}}function We(t,e){return!ct(t,e)}function ze(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function lt(t,e){let r=n=>n[t]===!0;return n=>{if(r(n))return n;let i=e(n);return i[t]=!0,i}}var Hn=v(B(),1);var Yt=t=>{let e=t??{};return(r,n)=>{var i;let s={hasChanged:We,attribute:!1,...e};(0,Hn.property)(s)(r,n);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(o=>o[n]),store:e.store})}};var dt=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 ie=v(B(),1);var pt=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 i=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let a of n)try{await a()}catch(o){i(o);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var qn=v(ne(),1);var ft=globalThis,Gs=ft.ShadowRoot&&(ft.ShadyCSS===void 0||ft.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Bn=(t,e)=>{if(Gs)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let n=document.createElement("style"),i=ft.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}};var ht=class extends qn.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 Bn(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){Gt(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 Vn(t,e,...r){var n;let i=t.querySelector(e);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var Se=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Gn,Kn=Symbol("constructorPrototype"),zn=Symbol("constructorName"),Yn=Symbol("exportpartsDebouncer"),Wn=Symbol("dynamicDependenciesLoaded"),be=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};be.eventName="exportparts-updated";var q=class extends ht{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Gn]=new pt(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[Yn].run(()=>{var i,s;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[zn]=this.constructor.name,this[Kn]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[zn]&&Object.setPrototypeOf(this,this[Kn])}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[Wn]||(r[Wn]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(be.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(be.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 be)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=Vn(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,n,i,s,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=(s=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],f=(o=(a=p.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(S=>S.split(":")[1]))!==null&&o!==void 0?o:[],y=[...m,...f].filter(u).map(S=>S.trim());for(let S of y)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(", ")}};Gn=Yn;Se([(0,ie.property)()],q.prototype,"exportpartsPrefix",void 0);Se([$n([])],q.prototype,"exportpartsPrefixes",void 0);Se([(0,ie.property)({reflect:!0})],q.prototype,"exportparts",void 0);Se([(0,ie.property)()],q.prototype,"customStylesheet",void 0);Se([(0,ie.property)()],q.prototype,"elementToFocus",void 0);Se([(0,ie.state)()],q.prototype,"useAdoptedStyleSheets",void 0);function mt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ge=Symbol("internalReduxEventsUnsubscribers"),X=Symbol("internalStoresUnsubscribers"),se=Symbol("internalStores"),Ys=lt(Symbol("withRedux"),function(t){var e,r,n;class i 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[se].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[se].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[se].get(a)}addStore(a,o){var u;o=(u=o??a.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(o),this[se].set(o,a),this.subscribeToStore(o,a),this.updateFromStores()}removeStore(a){let o=typeof a=="string"?a:a.name;this.unsubscribeFromStore(o),this[se].delete(o)}setupStores(){this.unsubscribeFromStores(),this[se].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[X].has(a.store):this[X].size>0)&&(this[o]=a.selector(c.getState(),this))}})}subscribeToStore(a,o){var u;this[X].set(a,o.subscribe(()=>this.updateFromStores())),this[Ge].set(a,[]),mt(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[Ge].get(a).push(()=>o.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(a)}unsubscribeFromStores(){this[X].forEach((a,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(a){var o;this[X].has(a)&&this[X].get(a)(),this[X].delete(a),(o=this[Ge].get(a))===null||o===void 0||o.forEach(u=>u()),this[Ge].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=X,r=se,n=Ge,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Qn=class extends Ys(q){};function F(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 i,s;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 z(t){return!!t&&!!t[T]}function H(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 i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===na})(t)||Array.isArray(t)||!!t[ni]||!!(!((e=t.constructor)===null||e===void 0)&&e[ni])||ir(t)||sr(t))}function ae(t,e,r){r===void 0&&(r=!1),xe(t)===0?(r?Object.keys:Ee)(t).forEach((function(n){r&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,i){return e(i,n,t)}))}function xe(t){var e=t[T];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ir(t)?2:sr(t)?3:0}function Ae(t,e){return xe(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Qs(t,e){return xe(t)===2?t.get(e):t[e]}function ii(t,e,r){var n=xe(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function si(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ir(t){return ta&&t instanceof Map}function sr(t){return ra&&t instanceof Set}function J(t){return t.o||t.t}function ar(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ui(t);delete e[T];for(var r=Ee(e),n=0;n<r.length;n++){var i=r[n],s=e[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(e[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function or(t,e){return e===void 0&&(e=!1),ur(t)||z(t)||!H(t)||(xe(t)>1&&(t.set=t.add=t.clear=t.delete=Xs),Object.freeze(t),e&&ae(t,(function(r,n){return or(n,!0)}),!0)),t}function Xs(){F(2)}function ur(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function V(t){var e=nr[t];return e||F(18,t),e}function Js(t,e){nr[t]||(nr[t]=e)}function er(){return Qe}function Qt(t,e){e&&(V("Patches"),t.u=[],t.s=[],t.v=e)}function yt(t){tr(t),t.p.forEach(Zs),t.p=null}function tr(t){t===Qe&&(Qe=t.l)}function Xn(t){return Qe={p:[],l:Qe,h:t,m:!0,_:0}}function Zs(t){var e=t[T];e.i===0||e.i===1?e.j():e.g=!0}function Xt(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||V("ES5").S(e,t,n),n?(r[T].P&&(yt(e),F(4)),H(t)&&(t=gt(e,t),e.l||vt(e,t)),e.u&&V("Patches").M(r[T].t,t,e.u,e.s)):t=gt(e,r,[]),yt(e),e.u&&e.v(e.u,e.s),t!==oi?t:void 0}function gt(t,e,r){if(ur(e))return e;var n=e[T];if(!n)return ae(e,(function(o,u){return Jn(t,n,e,o,u,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return vt(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=ar(n.k):n.o,s=i,a=!1;n.i===3&&(s=new Set(i),i.clear(),a=!0),ae(s,(function(o,u){return Jn(t,n,i,o,u,r,a)})),vt(t,i,!1),r&&t.u&&V("Patches").N(n,r,t.u,t.s)}return n.o}function Jn(t,e,r,n,i,s,a){if(z(i)){var o=gt(t,i,s&&e&&e.i!==3&&!Ae(e.R,n)?s.concat(n):void 0);if(ii(r,n,o),!z(o))return;t.m=!1}else a&&r.add(i);if(H(i)&&!ur(i)){if(!t.h.D&&t._<1)return;gt(t,i),e&&e.A.l||vt(t,i)}}function vt(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&or(e,r)}function Jt(t,e){var r=t[T];return(r?J(r):t)[e]}function Zn(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 Z(t){t.P||(t.P=!0,t.l&&Z(t.l))}function Zt(t){t.o||(t.o=ar(t.t))}function rr(t,e,r){var n=ir(e)?V("MapSet").F(e,r):sr(e)?V("MapSet").T(e,r):t.O?(function(i,s){var a=Array.isArray(i),o={i:a?1:0,A:s?s.A:er(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},u=o,c=Xe;a&&(u=[o],c=Ye);var l=Proxy.revocable(u,c),d=l.revoke,p=l.proxy;return o.k=p,o.j=d,p})(e,r):V("ES5").J(e,r);return(r?r.A:er()).p.push(n),n}function ea(t){return z(t)||F(22,t),(function e(r){if(!H(r))return r;var n,i=r[T],s=xe(r);if(i){if(!i.P&&(i.i<4||!V("ES5").K(i)))return i.t;i.I=!0,n=ei(r,s),i.I=!1}else n=ei(r,s);return ae(n,(function(a,o){i&&Qs(i.t,a)===o||ii(n,a,e(o))})),s===3?new Set(n):n})(t)}function ei(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ar(t)}function ai(){function t(a,o){var u=s[a];return u?u.enumerable=o:s[a]=u={configurable:!0,enumerable:o,get:function(){var c=this[T];return Xe.get(c,a)},set:function(c){var l=this[T];Xe.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)&&Z(u);break;case 4:r(u)&&Z(u)}}}function r(a){for(var o=a.t,u=a.k,c=Ee(u),l=c.length-1;l>=0;l--){var d=c[l];if(d!==T){var p=o[d];if(p===void 0&&!Ae(o,d))return!0;var m=u[d],f=m&&m[T];if(f?f.t!==p:!si(m,p))return!0}}var y=!!o[T];return c.length!==Ee(o).length+(y?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 i(a){a.g&&F(3,JSON.stringify(J(a)))}var s={};Js("ES5",{J:function(a,o){var u=Array.isArray(a),c=(function(d,p){if(d){for(var m=Array(p.length),f=0;f<p.length;f++)Object.defineProperty(m,""+f,t(f,!0));return m}var y=ui(p);delete y[T];for(var S=Ee(y),A=0;A<S.length;A++){var E=S[A];y[E]=t(E,d||!!y[E].enumerable)}return Object.create(Object.getPrototypeOf(p),y)})(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?z(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,f=d.R,y=d.i;if(y===4)ae(m,(function(x){x!==T&&(p[x]!==void 0||Ae(p,x)?f[x]||c(m[x]):(f[x]=!0,Z(d)))})),ae(p,(function(x){m[x]!==void 0||Ae(m,x)||(f[x]=!1,Z(d))}));else if(y===5){if(n(d)&&(Z(d),f.length=!0),m.length<p.length)for(var S=m.length;S<p.length;S++)f[S]=!1;else for(var A=p.length;A<m.length;A++)f[A]=!0;for(var E=Math.min(m.length,p.length),O=0;O<E;O++)m.hasOwnProperty(O)||(f[O]=!0),f[O]===void 0&&c(m[O])}}}})(a.p[0]),e(a.p))},K:function(a){return a.i===4?r(a):n(a)}})}var ti,Qe,cr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ta=typeof Map<"u",ra=typeof Set<"u",ri=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",oi=cr?Symbol.for("immer-nothing"):((ti={})["immer-nothing"]=!0,ti),ni=cr?Symbol.for("immer-draftable"):"__$immer_draftable",T=cr?Symbol.for("immer-state"):"__$immer_state";var na=""+Object.prototype.constructor,Ee=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ui=Object.getOwnPropertyDescriptors||function(t){var e={};return Ee(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},nr={},Xe={get:function(t,e){if(e===T)return t;var r=J(t);if(!Ae(r,e))return(function(i,s,a){var o,u=Zn(s,a);return u?"value"in u?u.value:(o=u.get)===null||o===void 0?void 0:o.call(i.k):void 0})(t,r,e);var n=r[e];return t.I||!H(n)?n:n===Jt(t.t,e)?(Zt(t),t.o[e]=rr(t.A.h,n,t)):n},has:function(t,e){return e in J(t)},ownKeys:function(t){return Reflect.ownKeys(J(t))},set:function(t,e,r){var n=Zn(J(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Jt(J(t),e),s=i?.[T];if(s&&s.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(si(r,i)&&(r!==void 0||Ae(t.t,e)))return!0;Zt(t),Z(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 Jt(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Zt(t),Z(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=J(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){F(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){F(12)}},Ye={};ae(Xe,(function(t,e){Ye[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ye.deleteProperty=function(t,e){return Ye.set.call(this,t,e,void 0)},Ye.set=function(t,e,r){return Xe.set.call(this,t[0],e,r,t[0])};var ia=(function(){function t(r){var n=this;this.O=ri,this.D=!0,this.produce=function(i,s,a){if(typeof i=="function"&&typeof s!="function"){var o=s;s=i;var u=n;return function(y){var S=this;y===void 0&&(y=o);for(var A=arguments.length,E=Array(A>1?A-1:0),O=1;O<A;O++)E[O-1]=arguments[O];return u.produce(y,(function(x){var Q;return(Q=s).call.apply(Q,[S,x].concat(E))}))}}var c;if(typeof s!="function"&&F(6),a!==void 0&&typeof a!="function"&&F(7),H(i)){var l=Xn(n),d=rr(n,i,void 0),p=!0;try{c=s(d),p=!1}finally{p?yt(l):tr(l)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(y){return Qt(l,a),Xt(y,l)}),(function(y){throw yt(l),y})):(Qt(l,a),Xt(c,l))}if(!i||typeof i!="object"){if((c=s(i))===void 0&&(c=i),c===oi&&(c=void 0),n.D&&or(c,!0),a){var m=[],f=[];V("Patches").M(i,c,m,f),a(m,f)}return c}F(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="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 i.apply(void 0,[m].concat(d))}))};var a,o,u=n.produce(i,s,(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){H(r)||F(8),z(r)&&(r=ea(r));var n=Xn(this),i=rr(this,r,void 0);return i[T].C=!0,tr(n),i},e.finishDraft=function(r,n){var i=r&&r[T],s=i.A;return Qt(s,n),Xt(void 0,s)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ri&&F(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var s=n[i];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}i>-1&&(n=n.slice(i+1));var a=V("Patches").$;return z(r)?a(r,n):this.produce(r,(function(o){return a(o,n)}))},t})(),M=new ia,sa=M.produce,Vo=M.produceWithPatches.bind(M),Ko=M.setAutoFreeze.bind(M),zo=M.setUseProxies.bind(M),Wo=M.applyPatches.bind(M),Go=M.createDraft.bind(M),Yo=M.finishDraft.bind(M),bt=sa;function oe(t){"@babel/helpers - typeof";return oe=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},oe(t)}function ci(t,e){if(oe(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(oe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function li(t){var e=ci(t,"string");return oe(e)=="symbol"?e:e+""}function di(t,e,r){return(e=li(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function lr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pi(Object(r),!0).forEach(function(n){di(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pi(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 fi=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),dr=function(){return Math.random().toString(36).substring(7).split("").join(".")},St={INIT:"@@redux/INIT"+dr(),REPLACE:"@@redux/REPLACE"+dr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+dr()}};function aa(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 i=t,s=e,a=[],o=a,u=!1;function c(){o===a&&(o=a.slice())}function l(){if(u)throw new Error(I(3));return s}function d(y){if(typeof y!="function")throw new Error(I(4));if(u)throw new Error(I(5));var S=!0;return c(),o.push(y),function(){if(S){if(u)throw new Error(I(6));S=!1,c();var E=o.indexOf(y);o.splice(E,1),a=null}}}function p(y){if(!aa(y))throw new Error(I(7));if(typeof y.type>"u")throw new Error(I(8));if(u)throw new Error(I(9));try{u=!0,s=i(s,y)}finally{u=!1}for(var S=a=o,A=0;A<S.length;A++){var E=S[A];E()}return y}function m(y){if(typeof y!="function")throw new Error(I(10));i=y,p({type:St.REPLACE})}function f(){var y,S=d;return y={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(I(11));function O(){E.next&&E.next(l())}O();var x=S(O);return{unsubscribe:x}}},y[fi]=function(){return this},y}return p({type:St.INIT}),n={dispatch:p,subscribe:d,getState:l,replaceReducer:m},n[fi]=f,n}function oa(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:St.INIT});if(typeof n>"u")throw new Error(I(12));if(typeof r(void 0,{type:St.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(I(13))})}function hi(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var s=Object.keys(r),a,o;try{oa(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={},f=0;f<s.length;f++){var y=s[f],S=r[y],A=c[y],E=S(A,l);if(typeof E>"u"){var O=l&&l.type;throw new Error(I(14))}m[y]=E,p=p||E!==A}return p=p||s.length!==Object.keys(c).length,p?m:c}}function Ce(){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,i){return function(){return n(i.apply(void 0,arguments))}})}function mi(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),s=function(){throw new Error(I(15))},a={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},o=e.map(function(u){return u(a)});return s=Ce.apply(void 0,o)(i.dispatch),lr(lr({},i),{},{dispatch:s})}}}function yi(t){var e=function(n){var i=n.dispatch,s=n.getState;return function(a){return function(o){return typeof o=="function"?o(i,s,t):a(o)}}};return e}var gi=yi();gi.withExtraArgument=yi;var fr=gi;var Ei=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},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)}})(),ua=function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,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,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(l){c=[6,l],i=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Te=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},ca=Object.defineProperty,la=Object.defineProperties,da=Object.getOwnPropertyDescriptors,vi=Object.getOwnPropertySymbols,pa=Object.prototype.hasOwnProperty,fa=Object.prototype.propertyIsEnumerable,bi=function(t,e,r){return e in t?ca(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},ee=function(t,e){for(var r in e||(e={}))pa.call(e,r)&&bi(t,r,e[r]);if(vi)for(var n=0,i=vi(e);n<i.length;n++){var r=i[n];fa.call(e,r)&&bi(t,r,e[r])}return t},hr=function(t,e){return la(t,da(e))},ha=function(t,e,r){return new Promise(function(n,i){var s=function(u){try{o(r.next(u))}catch(c){i(c)}},a=function(u){try{o(r.throw(u))}catch(c){i(c)}},o=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,a)};o((r=r.apply(t,e)).next())})};var ma=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ce:Ce.apply(null,arguments)},fu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function ya(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 te(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var s=e.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return ee(ee({type:t,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.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 ga=(function(t){Ei(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}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,Te([void 0],r[0].concat(this)))):new(e.bind.apply(e,Te([void 0],r.concat(this))))},e})(Array),va=(function(t){Ei(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}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,Te([void 0],r[0].concat(this)))):new(e.bind.apply(e,Te([void 0],r.concat(this))))},e})(Array);function gr(t){return H(t)?bt(t,function(){}):t}function ba(t){return typeof t=="boolean"}function Sa(){return function(e){return Aa(e)}}function Aa(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,s=t.serializableCheck,a=s===void 0?!0:s,o=t.actionCreatorCheck,u=o===void 0?!0:o,c=new ga;if(r&&(ba(r)?c.push(fr):c.push(fr.withExtraArgument(r.extraArgument))),0){if(i)var l;if(a)var d;if(u)var p}return c}var mr=!0;function xi(t){var e=Sa(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,s=r.middleware,a=s===void 0?e():s,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 i=="function")m=i;else if(ya(i))m=hi(i);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 f=a;if(typeof f=="function"&&(f=f(e),!mr&&!Array.isArray(f)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!mr&&f.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var y=mi.apply(void 0,f),S=Ce;u&&(S=ma(ee({trace:!mr},typeof u=="object"&&u)));var A=new va(y),E=A;Array.isArray(p)?E=Te([y],p):typeof p=="function"&&(E=p(A));var O=S.apply(void 0,E);return pr(m,l,O)}function Ci(t){var e={},r=[],n,i={addCase:function(s,a){var o=typeof s=="string"?s:s.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,i},addMatcher:function(s,a){return r.push({matcher:s,reducer:a}),i},addDefaultCase:function(s){return n=s,i}};return t(i),[e,r,n]}function Ea(t){return typeof t=="function"}function xa(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?Ci(e):[e,r,n],s=i[0],a=i[1],o=i[2],u;if(Ea(t))u=function(){return gr(t())};else{var c=gr(t);u=function(){return c}}function l(d,p){d===void 0&&(d=u());var m=Te([s[p.type]],a.filter(function(f){var y=f.matcher;return y(p)}).map(function(f){var y=f.reducer;return y}));return m.filter(function(f){return!!f}).length===0&&(m=[o]),m.reduce(function(f,y){if(y)if(z(f)){var S=f,A=y(S,p);return A===void 0?f:A}else{if(H(f))return bt(f,function(E){return y(E,p)});var A=y(f,p);if(A===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return f},d)}return l.getInitialState=u,l}function Ca(t,e){return t+"/"+e}function Ti(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:gr(t.initialState),n=t.reducers||{},i=Object.keys(n),s={},a={},o={};i.forEach(function(l){var d=n[l],p=Ca(e,l),m,f;"reducer"in d?(m=d.reducer,f=d.prepare):m=d,s[l]=m,a[p]=m,o[l]=f?te(p,f):te(p)});function u(){var l=typeof t.extraReducers=="function"?Ci(t.extraReducers):[t.extraReducers],d=l[0],p=d===void 0?{}:d,m=l[1],f=m===void 0?[]:m,y=l[2],S=y===void 0?void 0:y,A=ee(ee({},p),a);return xa(r,function(E){for(var O in A)E.addCase(O,A[O]);for(var x=0,Q=f;x<Q.length;x++){var K=Q[x];E.addMatcher(K.matcher,K.reducer)}S&&E.addDefaultCase(S)})}var c;return{name:e,reducer:function(l,d){return c||(c=u()),c(l,d)},actions:o,caseReducers:s,getInitialState:function(){return c||(c=u()),c.getInitialState()}}}var Ta="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Oa=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Ta[Math.random()*64|0];return e},wa=["name","message","stack","code"],yr=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Si=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),_a=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=wa;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},gu=(function(){function t(e,r,n){var i=te(e+"/fulfilled",function(l,d,p,m){return{payload:l,meta:hr(ee({},m||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),s=te(e+"/pending",function(l,d,p){return{payload:void 0,meta:hr(ee({},p||{}),{arg:d,requestId:l,requestStatus:"pending"})}}),a=te(e+"/rejected",function(l,d,p,m,f){return{payload:m,error:(n&&n.serializeError||_a)(l||"Rejected"),meta:hr(ee({},f||{}),{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 f=n?.idGenerator?n.idGenerator(l):Oa(),y=new u,S,A=!1;function E(x){S=x,y.abort()}var O=(function(){return ha(this,null,function(){var x,Q,K,qe,Yr,Ve,Qr;return ua(this,function(ve){switch(ve.label){case 0:return ve.trys.push([0,4,,5]),qe=(x=n?.condition)==null?void 0:x.call(n,l,{getState:p,extra:m}),Ia(qe)?[4,qe]:[3,2];case 1:qe=ve.sent(),ve.label=2;case 2:if(qe===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,Yr=new Promise(function($,Ke){return y.signal.addEventListener("abort",function(){return Ke({name:"AbortError",message:S||"Aborted"})})}),d(s(f,l,(Q=n?.getPendingMeta)==null?void 0:Q.call(n,{requestId:f,arg:l},{getState:p,extra:m}))),[4,Promise.race([Yr,Promise.resolve(r(l,{dispatch:d,getState:p,extra:m,requestId:f,signal:y.signal,abort:E,rejectWithValue:function($,Ke){return new yr($,Ke)},fulfillWithValue:function($,Ke){return new Si($,Ke)}})).then(function($){if($ instanceof yr)throw $;return $ instanceof Si?i($.payload,f,l,$.meta):i($,f,l)})])];case 3:return K=ve.sent(),[3,5];case 4:return Ve=ve.sent(),K=Ve instanceof yr?a(null,f,l,Ve.payload,Ve.meta):a(Ve,f,l),[3,5];case 5:return Qr=n&&!n.dispatchConditionRejection&&a.match(K)&&K.meta.condition,Qr||d(K),[2,K]}})})})();return Object.assign(O,{abort:E,requestId:f,arg:l,unwrap:function(){return O.then(Ra)}})}}return Object.assign(c,{pending:s,rejected:a,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t})();function Ra(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Ia(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Oi="listener",wi="completed",_i="cancelled",vu="task-"+_i,bu="task-"+wi,Su=Oi+"-"+_i,Au=Oi+"-"+wi;var vr="listenerMiddleware";var Eu=te(vr+"/add"),xu=te(vr+"/removeAll"),Cu=te(vr+"/remove");var Ai,Tu=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ai||(Ai=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},La=function(t){return function(e){setTimeout(e,t)}},Ou=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:La(10);ai();var ka=lt(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),At=class extends ka(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ri=class t extends At{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,s=window.ftReduxStores[n];if(mt(s))return s;if(i==null)return;let a=Ti({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),o=xi({reducer:(u,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let l=ze(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[i.name]=new t(a,o,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new dt;let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,a,o)=>{let u=a,c=s[u];return c?(...l)=>{let d=c(...l.map(i));return this.reduxStore.dispatch(d),d}:l=>{this.setState({[u]:i(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 Et=class{static format(e,r,n,i,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(e,r,n,i,!!s)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i,s){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 s?u:i?`${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 xt=v(C()),Da="ft-app-info",Oe=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Oe.eventName="authentication-change";var Je=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Je.eventName="ui-locale-changed";var Ma={session:(t,e)=>{(0,xt.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>b.dispatchEvent(new Oe(e.payload)),0))}},b=xt.FtReduxStore.get({name:Da,reducers:Ma,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 Ii=v(C()),Ct=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},ec=(0,Ii.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 i,s;return((s=(i=this.metadataDescriptors.find(o=>o.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?o=>Et.format(o,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ct([(0,br.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ct([(0,br.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ct([Yt({store:b.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Ct([Yt({store:b.name})],e.prototype,"uiLocale",void 0),e});var Rt=v(C());var Sr=v(C());var ue=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=b.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=b.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var we=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:ue.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ue.await()}};var D=class extends we{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(s,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([o],[u])=>o.localeCompare(u)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Sr.CacheRegistry,this.cache=e?i.commonCache:new Sr.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 Tt=class extends D{async listMySearches(){let{session:e}=b.getState();return Un(e,_.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Ot=class extends D{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 wt=class extends D{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 _t=class extends D{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 Na="ft-user-assets",Pa={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(P).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:i}=e.payload;Er(t,r,[...Ar(t,r),i]),Li(t,r,1,n),ki(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Er(t,r,Ar(t,r).map(i=>i.id===n.id?n:i)),ki(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;Er(t,r,Ar(t,r).filter(s=>s.id!==i)),Li(t,r,-1,n)}},Di={[P.SEARCHES]:"savedSearches",[P.BOOKMARKS]:"bookmarks",[P.BOOKS]:void 0,[P.COLLECTIONS]:void 0},Ar=(t,e)=>{var r;let n=Di[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Er=(t,e,r)=>{let n=Di[e];n&&(t[n]=r)},Li=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===P.BOOKMARKS&&n)){let s=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},ki=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},k=Rt.FtReduxStore.get({name:Na,reducers:Pa,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(P).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),xr=class{constructor(e=new wt,r=new _t){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=b.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ot,this.savedSearchesService=new Tt,b.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=b.getState();(0,Rt.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(),k.actions.clearAssetCount(),k.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),k.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),k.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();k.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();k.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&k.getState().assetCounts.allAsset[e]!==r.count&&k.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&k.getState().assetCounts.bookmarkByMap[e]!==r.count&&k.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(k.getState().assetCounts.bookmarkByMap).length!==0;e===P.BOOKMARKS&&r&&k.actions.clearBookmarkCountByMap(),k.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;k.actions.bookmarks(r)}}},Fa=new xr;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Fa);var Cr=class{addCommand(e,r=!1){b.commands.add(e,r)}consumeCommand(e){return b.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Cr;var U=v(C());var Mi,_e=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Ua=Symbol("clearAfterUnitTest"),It=class extends(0,U.withEventBus)(D){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Mi]=()=>{this.defaultMessages={},this.cache=new U.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 i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,U.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,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 i;let s=e.toLowerCase(),a=this.resolveContext(s);return new U.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},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(i){!(i instanceof U.CanceledPromiseError)&&r&&console.error(i)}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 i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new _e({loadedContexts:e})),this.dispatchEvent(new _e({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new _e({loadedContexts:[e]})),this.dispatchEvent(new _e({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,U.delay)(0).then(()=>n()).catch(()=>null)))}};Mi=Ua;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends It{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends It{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Ni=window.FluidTopicsI18nService,Nc=window.FluidTopicsCustomI18nService;var Pi=v(C()),Tr=class{highlightHtml(e,r,n){(0,Pi.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Tr;var Fi=v(C());var Or=class{isDate(e){var r,n,i,s;return(s=(i=((n=(r=b.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var n,i,s,a;if(e==null)return"";try{return Fi.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:b.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(s=r?.withTime)!==null&&s!==void 0?s:!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 Or;var Ui=v(C());var Ze=class{static get(e,r){var n,i;let s=b.getState(),{lang:a,region:o}=(i=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Ui.SearchPlaceConverter(s.baseUrl,e??20,s.searchInAllLanguagesAllowed,r??`${a}-${o}`)}};var wr=class{urlToSearchRequest(e){return Ze.get().parse(e)}searchRequestToUrl(e){return Ze.get().serialize(e)}};window.FluidTopicsUrlService=new wr;var W=v(C());var ce=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};ce.eventName="change";var _r=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))}},ji=new _r;var Lt=class t extends W.WithEventBus{static build(){return new t(window.history,ji,()=>window.location,!1)}constructor(e,r,n,i){var s,a;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(a=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&a!==void 0?a:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}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,W.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new ce(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[s,a,o])=>{let u=r(),c={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:typeof o=="string"?o:(o??this.windowLocation()).href};n.apply(i,[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(ce.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(ce.eventName,e)}currentItem(){return(0,W.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,W.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,W.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,W.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 i=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}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 i=r??this.currentState.majorStateId,s=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Lt.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 $i=v(ne());var Hi=$i.css`
2
- `;var qi=v(ne()),N=v(B()),pe=v(C());var le=v(C());function Bi(t,e){let{authenticationRequired:r,session:n}=b.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var kt=class extends we{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Rr=class t extends le.FtStateManager{static build(e){return new t(b,e)}constructor(e,r){super(),this.store=e,this.cache=new le.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new kt,this.cleanSessionDebouncer=new le.Debouncer,this.reloadDebouncer=new le.Debouncer(500),this.apiProvider=r??(()=>ue.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Oe.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,i,s,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((i=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&i!==void 0?i:!1),this.store.actions.uiLanguageSetsSearchLanguage((s=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&s!==void 0?s:!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 Je(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)}},Ir=Rr.build();var de=class extends Event{constructor(e,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var et=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:i,callbackRef:s}of n){let a=i.deref(),o=s.deref();a===void 0||o===void 0||a.dispatchEvent(new de(e.context,a,o,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],n=e.callback,i=this.pendingContextRequests.get(e.context);i===void 0&&this.pendingContextRequests.set(e.context,i={callbacks:new WeakMap,requests:[]});let s=i.callbacks.get(r);s===void 0&&i.callbacks.set(r,s=new WeakSet),s.has(n)||(s.add(n),i.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 L=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},w=class extends pe.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=Ir,this.contextRoot=new et}render(){return qi.html`
1
+ "use strict";(()=>{var js=Object.create;var Xr=Object.defineProperty;var $s=Object.getOwnPropertyDescriptor;var Hs=Object.getOwnPropertyNames;var Bs=Object.getPrototypeOf,qs=Object.prototype.hasOwnProperty;var ot=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Vs=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Hs(e))!qs.call(t,i)&&i!==r&&Xr(t,i,{get:()=>e[i],enumerable:!(n=$s(e,i))||n.enumerable});return t};var v=(t,e,r)=>(r=t!=null?js(Bs(t)):{},Vs(e||!t||!t.__esModule?Xr(r,"default",{value:t,enumerable:!0}):r,t));var C=ot((Ja,Jr)=>{Jr.exports=ftGlobals.wcUtils});var ne=ot((Za,Zr)=>{Zr.exports=ftGlobals.lit});var B=ot((eo,en)=>{en.exports=ftGlobals.litDecorators});var _s=ot((np,Rs)=>{Rs.exports=ftGlobals.litUnsafeHTML});var Us=v(C());var at=v(ne()),Ds=v(B()),Ms=v(C());var $t=v(C());var _e=v(C()),kr=v(B());var Vt;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Vt||(Vt={}));var he=v(C());var Ks=v(C());var tn;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(tn||(tn={}));var rn;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(rn||(rn={}));var nn;(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"})(nn||(nn={}));var sn;(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"})(sn||(sn={}));var an;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(an||(an={}));var on;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(on||(on={}));var un;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(un||(un={}));var cn;(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"})(cn||(cn={}));var ln;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(ln||(ln={}));var dn;(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"})(dn||(dn={}));var pn;(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"})(pn||(pn={}));var hn;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(hn||(hn={}));var fn;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(fn||(fn={}));var mn;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(mn||(mn={}));var yn;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(yn||(yn={}));var gn;(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"})(gn||(gn={}));var Kt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Kt||(Kt={}));var vn;(function(t){t.ASC="ASC",t.DESC="DESC"})(vn||(vn={}));var Sn;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Sn||(Sn={}));var zt;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(zt||(zt={}));var bn;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(bn||(bn={}));var ut;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ut||(ut={}));var An;(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"})(An||(An={}));var En;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(En||(En={}));var xn;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(xn||(xn={}));var Wt;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Wt||(Wt={}));var Cn;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Cn||(Cn={}));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 P;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(P||(P={}));var Tn;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Tn||(Tn={}));var wn;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(wn||(wn={}));var On;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(On||(On={}));var Rn;(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"})(Rn||(Rn={}));var _n;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(_n||(_n={}));var In;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(In||(In={}));var Ln;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ln||(Ln={}));var kn;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(kn||(kn={}));var Nn;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Nn||(Nn={}));var Dn;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Dn||(Dn={}));var Mn;(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"})(Mn||(Mn={}));var Pn;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Pn||(Pn={}));var zs={[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 Fn(t,e){return t===e||(zs[t]??[]).some(r=>Fn(r,e))}function Un(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=>Fn(n,e))}var Sr=v(B());var jn=v(B(),1);var Gt=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function $n(t,e){return(0,jn.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return ze(t);try{return JSON.parse(r)}catch{return ze(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:We,...e??{}})}function Ws(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(!ct(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(!ct(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 i=a=>Object.keys(a).filter(o=>a[o]!=null),s=i(t);if(r=s.length,r!==i(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){let a=s[n];if(!ct(t[a],e[a]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ct(t,e){try{return Ws(t,e)}catch{return!1}}function We(t,e){return!ct(t,e)}function ze(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function lt(t,e){let r=n=>n[t]===!0;return n=>{if(r(n))return n;let i=e(n);return i[t]=!0,i}}var Hn=v(B(),1);var Qt=t=>{let e=t??{};return(r,n)=>{var i;let s={hasChanged:We,attribute:!1,...e};(0,Hn.property)(s)(r,n);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(o=>o[n]),store:e.store})}};var dt=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 ie=v(B(),1);var pt=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 i=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let a of n)try{await a()}catch(o){i(o);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var qn=v(ne(),1);var ht=globalThis,Gs=ht.ShadowRoot&&(ht.ShadyCSS===void 0||ht.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Bn=(t,e)=>{if(Gs)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let n=document.createElement("style"),i=ht.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}};var ft=class extends qn.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 Bn(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){Gt(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 Vn(t,e,...r){var n;let i=t.querySelector(e);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var be=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Gn,Kn=Symbol("constructorPrototype"),zn=Symbol("constructorName"),Qn=Symbol("exportpartsDebouncer"),Wn=Symbol("dynamicDependenciesLoaded"),Se=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Se.eventName="exportparts-updated";var q=class extends ft{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Gn]=new pt(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[Qn].run(()=>{var i,s;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[zn]=this.constructor.name,this[Kn]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[zn]&&Object.setPrototypeOf(this,this[Kn])}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[Wn]||(r[Wn]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Se.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Se.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 Se)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=Vn(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,n,i,s,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=(s=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],h=(o=(a=p.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(b=>b.split(":")[1]))!==null&&o!==void 0?o:[],y=[...m,...h].filter(u).map(b=>b.trim());for(let b of y)l.add(b)}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(", ")}};Gn=Qn;be([(0,ie.property)()],q.prototype,"exportpartsPrefix",void 0);be([$n([])],q.prototype,"exportpartsPrefixes",void 0);be([(0,ie.property)({reflect:!0})],q.prototype,"exportparts",void 0);be([(0,ie.property)()],q.prototype,"customStylesheet",void 0);be([(0,ie.property)()],q.prototype,"elementToFocus",void 0);be([(0,ie.state)()],q.prototype,"useAdoptedStyleSheets",void 0);function mt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ge=Symbol("internalReduxEventsUnsubscribers"),X=Symbol("internalStoresUnsubscribers"),se=Symbol("internalStores"),Qs=lt(Symbol("withRedux"),function(t){var e,r,n;class i 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[se].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[se].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[se].get(a)}addStore(a,o){var u;o=(u=o??a.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(o),this[se].set(o,a),this.subscribeToStore(o,a),this.updateFromStores()}removeStore(a){let o=typeof a=="string"?a:a.name;this.unsubscribeFromStore(o),this[se].delete(o)}setupStores(){this.unsubscribeFromStores(),this[se].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[X].has(a.store):this[X].size>0)&&(this[o]=a.selector(c.getState(),this))}})}subscribeToStore(a,o){var u;this[X].set(a,o.subscribe(()=>this.updateFromStores())),this[Ge].set(a,[]),mt(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[Ge].get(a).push(()=>o.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(a)}unsubscribeFromStores(){this[X].forEach((a,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(a){var o;this[X].has(a)&&this[X].get(a)(),this[X].delete(a),(o=this[Ge].get(a))===null||o===void 0||o.forEach(u=>u()),this[Ge].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=X,r=se,n=Ge,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Yn=class extends Qs(q){};function F(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 i,s;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 z(t){return!!t&&!!t[T]}function H(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 i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===na})(t)||Array.isArray(t)||!!t[ni]||!!(!((e=t.constructor)===null||e===void 0)&&e[ni])||ir(t)||sr(t))}function ae(t,e,r){r===void 0&&(r=!1),xe(t)===0?(r?Object.keys:Ee)(t).forEach((function(n){r&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,i){return e(i,n,t)}))}function xe(t){var e=t[T];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ir(t)?2:sr(t)?3:0}function Ae(t,e){return xe(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Ys(t,e){return xe(t)===2?t.get(e):t[e]}function ii(t,e,r){var n=xe(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function si(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ir(t){return ta&&t instanceof Map}function sr(t){return ra&&t instanceof Set}function J(t){return t.o||t.t}function ar(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ui(t);delete e[T];for(var r=Ee(e),n=0;n<r.length;n++){var i=r[n],s=e[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(e[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function or(t,e){return e===void 0&&(e=!1),ur(t)||z(t)||!H(t)||(xe(t)>1&&(t.set=t.add=t.clear=t.delete=Xs),Object.freeze(t),e&&ae(t,(function(r,n){return or(n,!0)}),!0)),t}function Xs(){F(2)}function ur(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function V(t){var e=nr[t];return e||F(18,t),e}function Js(t,e){nr[t]||(nr[t]=e)}function er(){return Ye}function Yt(t,e){e&&(V("Patches"),t.u=[],t.s=[],t.v=e)}function yt(t){tr(t),t.p.forEach(Zs),t.p=null}function tr(t){t===Ye&&(Ye=t.l)}function Xn(t){return Ye={p:[],l:Ye,h:t,m:!0,_:0}}function Zs(t){var e=t[T];e.i===0||e.i===1?e.j():e.g=!0}function Xt(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||V("ES5").S(e,t,n),n?(r[T].P&&(yt(e),F(4)),H(t)&&(t=gt(e,t),e.l||vt(e,t)),e.u&&V("Patches").M(r[T].t,t,e.u,e.s)):t=gt(e,r,[]),yt(e),e.u&&e.v(e.u,e.s),t!==oi?t:void 0}function gt(t,e,r){if(ur(e))return e;var n=e[T];if(!n)return ae(e,(function(o,u){return Jn(t,n,e,o,u,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return vt(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=ar(n.k):n.o,s=i,a=!1;n.i===3&&(s=new Set(i),i.clear(),a=!0),ae(s,(function(o,u){return Jn(t,n,i,o,u,r,a)})),vt(t,i,!1),r&&t.u&&V("Patches").N(n,r,t.u,t.s)}return n.o}function Jn(t,e,r,n,i,s,a){if(z(i)){var o=gt(t,i,s&&e&&e.i!==3&&!Ae(e.R,n)?s.concat(n):void 0);if(ii(r,n,o),!z(o))return;t.m=!1}else a&&r.add(i);if(H(i)&&!ur(i)){if(!t.h.D&&t._<1)return;gt(t,i),e&&e.A.l||vt(t,i)}}function vt(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&or(e,r)}function Jt(t,e){var r=t[T];return(r?J(r):t)[e]}function Zn(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 Z(t){t.P||(t.P=!0,t.l&&Z(t.l))}function Zt(t){t.o||(t.o=ar(t.t))}function rr(t,e,r){var n=ir(e)?V("MapSet").F(e,r):sr(e)?V("MapSet").T(e,r):t.O?(function(i,s){var a=Array.isArray(i),o={i:a?1:0,A:s?s.A:er(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},u=o,c=Xe;a&&(u=[o],c=Qe);var l=Proxy.revocable(u,c),d=l.revoke,p=l.proxy;return o.k=p,o.j=d,p})(e,r):V("ES5").J(e,r);return(r?r.A:er()).p.push(n),n}function ea(t){return z(t)||F(22,t),(function e(r){if(!H(r))return r;var n,i=r[T],s=xe(r);if(i){if(!i.P&&(i.i<4||!V("ES5").K(i)))return i.t;i.I=!0,n=ei(r,s),i.I=!1}else n=ei(r,s);return ae(n,(function(a,o){i&&Ys(i.t,a)===o||ii(n,a,e(o))})),s===3?new Set(n):n})(t)}function ei(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ar(t)}function ai(){function t(a,o){var u=s[a];return u?u.enumerable=o:s[a]=u={configurable:!0,enumerable:o,get:function(){var c=this[T];return Xe.get(c,a)},set:function(c){var l=this[T];Xe.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)&&Z(u);break;case 4:r(u)&&Z(u)}}}function r(a){for(var o=a.t,u=a.k,c=Ee(u),l=c.length-1;l>=0;l--){var d=c[l];if(d!==T){var p=o[d];if(p===void 0&&!Ae(o,d))return!0;var m=u[d],h=m&&m[T];if(h?h.t!==p:!si(m,p))return!0}}var y=!!o[T];return c.length!==Ee(o).length+(y?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 i(a){a.g&&F(3,JSON.stringify(J(a)))}var s={};Js("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 y=ui(p);delete y[T];for(var b=Ee(y),A=0;A<b.length;A++){var E=b[A];y[E]=t(E,d||!!y[E].enumerable)}return Object.create(Object.getPrototypeOf(p),y)})(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?z(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,y=d.i;if(y===4)ae(m,(function(x){x!==T&&(p[x]!==void 0||Ae(p,x)?h[x]||c(m[x]):(h[x]=!0,Z(d)))})),ae(p,(function(x){m[x]!==void 0||Ae(m,x)||(h[x]=!1,Z(d))}));else if(y===5){if(n(d)&&(Z(d),h.length=!0),m.length<p.length)for(var b=m.length;b<p.length;b++)h[b]=!1;else for(var A=p.length;A<m.length;A++)h[A]=!0;for(var E=Math.min(m.length,p.length),w=0;w<E;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 ti,Ye,cr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ta=typeof Map<"u",ra=typeof Set<"u",ri=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",oi=cr?Symbol.for("immer-nothing"):((ti={})["immer-nothing"]=!0,ti),ni=cr?Symbol.for("immer-draftable"):"__$immer_draftable",T=cr?Symbol.for("immer-state"):"__$immer_state";var na=""+Object.prototype.constructor,Ee=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ui=Object.getOwnPropertyDescriptors||function(t){var e={};return Ee(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},nr={},Xe={get:function(t,e){if(e===T)return t;var r=J(t);if(!Ae(r,e))return(function(i,s,a){var o,u=Zn(s,a);return u?"value"in u?u.value:(o=u.get)===null||o===void 0?void 0:o.call(i.k):void 0})(t,r,e);var n=r[e];return t.I||!H(n)?n:n===Jt(t.t,e)?(Zt(t),t.o[e]=rr(t.A.h,n,t)):n},has:function(t,e){return e in J(t)},ownKeys:function(t){return Reflect.ownKeys(J(t))},set:function(t,e,r){var n=Zn(J(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Jt(J(t),e),s=i?.[T];if(s&&s.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(si(r,i)&&(r!==void 0||Ae(t.t,e)))return!0;Zt(t),Z(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 Jt(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Zt(t),Z(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=J(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){F(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){F(12)}},Qe={};ae(Xe,(function(t,e){Qe[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Qe.deleteProperty=function(t,e){return Qe.set.call(this,t,e,void 0)},Qe.set=function(t,e,r){return Xe.set.call(this,t[0],e,r,t[0])};var ia=(function(){function t(r){var n=this;this.O=ri,this.D=!0,this.produce=function(i,s,a){if(typeof i=="function"&&typeof s!="function"){var o=s;s=i;var u=n;return function(y){var b=this;y===void 0&&(y=o);for(var A=arguments.length,E=Array(A>1?A-1:0),w=1;w<A;w++)E[w-1]=arguments[w];return u.produce(y,(function(x){var Y;return(Y=s).call.apply(Y,[b,x].concat(E))}))}}var c;if(typeof s!="function"&&F(6),a!==void 0&&typeof a!="function"&&F(7),H(i)){var l=Xn(n),d=rr(n,i,void 0),p=!0;try{c=s(d),p=!1}finally{p?yt(l):tr(l)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(y){return Yt(l,a),Xt(y,l)}),(function(y){throw yt(l),y})):(Yt(l,a),Xt(c,l))}if(!i||typeof i!="object"){if((c=s(i))===void 0&&(c=i),c===oi&&(c=void 0),n.D&&or(c,!0),a){var m=[],h=[];V("Patches").M(i,c,m,h),a(m,h)}return c}F(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="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 i.apply(void 0,[m].concat(d))}))};var a,o,u=n.produce(i,s,(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){H(r)||F(8),z(r)&&(r=ea(r));var n=Xn(this),i=rr(this,r,void 0);return i[T].C=!0,tr(n),i},e.finishDraft=function(r,n){var i=r&&r[T],s=i.A;return Yt(s,n),Xt(void 0,s)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ri&&F(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var s=n[i];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}i>-1&&(n=n.slice(i+1));var a=V("Patches").$;return z(r)?a(r,n):this.produce(r,(function(o){return a(o,n)}))},t})(),D=new ia,sa=D.produce,Vo=D.produceWithPatches.bind(D),Ko=D.setAutoFreeze.bind(D),zo=D.setUseProxies.bind(D),Wo=D.applyPatches.bind(D),Go=D.createDraft.bind(D),Qo=D.finishDraft.bind(D),St=sa;function oe(t){"@babel/helpers - typeof";return oe=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},oe(t)}function ci(t,e){if(oe(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(oe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function li(t){var e=ci(t,"string");return oe(e)=="symbol"?e:e+""}function di(t,e,r){return(e=li(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function lr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pi(Object(r),!0).forEach(function(n){di(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pi(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 hi=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),dr=function(){return Math.random().toString(36).substring(7).split("").join(".")},bt={INIT:"@@redux/INIT"+dr(),REPLACE:"@@redux/REPLACE"+dr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+dr()}};function aa(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 i=t,s=e,a=[],o=a,u=!1;function c(){o===a&&(o=a.slice())}function l(){if(u)throw new Error(I(3));return s}function d(y){if(typeof y!="function")throw new Error(I(4));if(u)throw new Error(I(5));var b=!0;return c(),o.push(y),function(){if(b){if(u)throw new Error(I(6));b=!1,c();var E=o.indexOf(y);o.splice(E,1),a=null}}}function p(y){if(!aa(y))throw new Error(I(7));if(typeof y.type>"u")throw new Error(I(8));if(u)throw new Error(I(9));try{u=!0,s=i(s,y)}finally{u=!1}for(var b=a=o,A=0;A<b.length;A++){var E=b[A];E()}return y}function m(y){if(typeof y!="function")throw new Error(I(10));i=y,p({type:bt.REPLACE})}function h(){var y,b=d;return y={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(I(11));function w(){E.next&&E.next(l())}w();var x=b(w);return{unsubscribe:x}}},y[hi]=function(){return this},y}return p({type:bt.INIT}),n={dispatch:p,subscribe:d,getState:l,replaceReducer:m},n[hi]=h,n}function oa(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:bt.INIT});if(typeof n>"u")throw new Error(I(12));if(typeof r(void 0,{type:bt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(I(13))})}function fi(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var s=Object.keys(r),a,o;try{oa(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<s.length;h++){var y=s[h],b=r[y],A=c[y],E=b(A,l);if(typeof E>"u"){var w=l&&l.type;throw new Error(I(14))}m[y]=E,p=p||E!==A}return p=p||s.length!==Object.keys(c).length,p?m:c}}function Ce(){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,i){return function(){return n(i.apply(void 0,arguments))}})}function mi(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),s=function(){throw new Error(I(15))},a={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},o=e.map(function(u){return u(a)});return s=Ce.apply(void 0,o)(i.dispatch),lr(lr({},i),{},{dispatch:s})}}}function yi(t){var e=function(n){var i=n.dispatch,s=n.getState;return function(a){return function(o){return typeof o=="function"?o(i,s,t):a(o)}}};return e}var gi=yi();gi.withExtraArgument=yi;var hr=gi;var Ei=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},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)}})(),ua=function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,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,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(l){c=[6,l],i=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Te=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},ca=Object.defineProperty,la=Object.defineProperties,da=Object.getOwnPropertyDescriptors,vi=Object.getOwnPropertySymbols,pa=Object.prototype.hasOwnProperty,ha=Object.prototype.propertyIsEnumerable,Si=function(t,e,r){return e in t?ca(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},ee=function(t,e){for(var r in e||(e={}))pa.call(e,r)&&Si(t,r,e[r]);if(vi)for(var n=0,i=vi(e);n<i.length;n++){var r=i[n];ha.call(e,r)&&Si(t,r,e[r])}return t},fr=function(t,e){return la(t,da(e))},fa=function(t,e,r){return new Promise(function(n,i){var s=function(u){try{o(r.next(u))}catch(c){i(c)}},a=function(u){try{o(r.throw(u))}catch(c){i(c)}},o=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,a)};o((r=r.apply(t,e)).next())})};var ma=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ce:Ce.apply(null,arguments)},hu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function ya(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 te(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var s=e.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return ee(ee({type:t,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.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 ga=(function(t){Ei(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}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,Te([void 0],r[0].concat(this)))):new(e.bind.apply(e,Te([void 0],r.concat(this))))},e})(Array),va=(function(t){Ei(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}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,Te([void 0],r[0].concat(this)))):new(e.bind.apply(e,Te([void 0],r.concat(this))))},e})(Array);function gr(t){return H(t)?St(t,function(){}):t}function Sa(t){return typeof t=="boolean"}function ba(){return function(e){return Aa(e)}}function Aa(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,s=t.serializableCheck,a=s===void 0?!0:s,o=t.actionCreatorCheck,u=o===void 0?!0:o,c=new ga;if(r&&(Sa(r)?c.push(hr):c.push(hr.withExtraArgument(r.extraArgument))),0){if(i)var l;if(a)var d;if(u)var p}return c}var mr=!0;function xi(t){var e=ba(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,s=r.middleware,a=s===void 0?e():s,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 i=="function")m=i;else if(ya(i))m=fi(i);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),!mr&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!mr&&h.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var y=mi.apply(void 0,h),b=Ce;u&&(b=ma(ee({trace:!mr},typeof u=="object"&&u)));var A=new va(y),E=A;Array.isArray(p)?E=Te([y],p):typeof p=="function"&&(E=p(A));var w=b.apply(void 0,E);return pr(m,l,w)}function Ci(t){var e={},r=[],n,i={addCase:function(s,a){var o=typeof s=="string"?s:s.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,i},addMatcher:function(s,a){return r.push({matcher:s,reducer:a}),i},addDefaultCase:function(s){return n=s,i}};return t(i),[e,r,n]}function Ea(t){return typeof t=="function"}function xa(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?Ci(e):[e,r,n],s=i[0],a=i[1],o=i[2],u;if(Ea(t))u=function(){return gr(t())};else{var c=gr(t);u=function(){return c}}function l(d,p){d===void 0&&(d=u());var m=Te([s[p.type]],a.filter(function(h){var y=h.matcher;return y(p)}).map(function(h){var y=h.reducer;return y}));return m.filter(function(h){return!!h}).length===0&&(m=[o]),m.reduce(function(h,y){if(y)if(z(h)){var b=h,A=y(b,p);return A===void 0?h:A}else{if(H(h))return St(h,function(E){return y(E,p)});var A=y(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 Ca(t,e){return t+"/"+e}function Ti(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:gr(t.initialState),n=t.reducers||{},i=Object.keys(n),s={},a={},o={};i.forEach(function(l){var d=n[l],p=Ca(e,l),m,h;"reducer"in d?(m=d.reducer,h=d.prepare):m=d,s[l]=m,a[p]=m,o[l]=h?te(p,h):te(p)});function u(){var l=typeof t.extraReducers=="function"?Ci(t.extraReducers):[t.extraReducers],d=l[0],p=d===void 0?{}:d,m=l[1],h=m===void 0?[]:m,y=l[2],b=y===void 0?void 0:y,A=ee(ee({},p),a);return xa(r,function(E){for(var w in A)E.addCase(w,A[w]);for(var x=0,Y=h;x<Y.length;x++){var K=Y[x];E.addMatcher(K.matcher,K.reducer)}b&&E.addDefaultCase(b)})}var c;return{name:e,reducer:function(l,d){return c||(c=u()),c(l,d)},actions:o,caseReducers:s,getInitialState:function(){return c||(c=u()),c.getInitialState()}}}var Ta="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wa=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Ta[Math.random()*64|0];return e},Oa=["name","message","stack","code"],yr=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),bi=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Ra=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Oa;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},gu=(function(){function t(e,r,n){var i=te(e+"/fulfilled",function(l,d,p,m){return{payload:l,meta:fr(ee({},m||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),s=te(e+"/pending",function(l,d,p){return{payload:void 0,meta:fr(ee({},p||{}),{arg:d,requestId:l,requestStatus:"pending"})}}),a=te(e+"/rejected",function(l,d,p,m,h){return{payload:m,error:(n&&n.serializeError||Ra)(l||"Rejected"),meta:fr(ee({},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):wa(),y=new u,b,A=!1;function E(x){b=x,y.abort()}var w=(function(){return fa(this,null,function(){var x,Y,K,qe,Qr,Ve,Yr;return ua(this,function(ve){switch(ve.label){case 0:return ve.trys.push([0,4,,5]),qe=(x=n?.condition)==null?void 0:x.call(n,l,{getState:p,extra:m}),Ia(qe)?[4,qe]:[3,2];case 1:qe=ve.sent(),ve.label=2;case 2:if(qe===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,Qr=new Promise(function($,Ke){return y.signal.addEventListener("abort",function(){return Ke({name:"AbortError",message:b||"Aborted"})})}),d(s(h,l,(Y=n?.getPendingMeta)==null?void 0:Y.call(n,{requestId:h,arg:l},{getState:p,extra:m}))),[4,Promise.race([Qr,Promise.resolve(r(l,{dispatch:d,getState:p,extra:m,requestId:h,signal:y.signal,abort:E,rejectWithValue:function($,Ke){return new yr($,Ke)},fulfillWithValue:function($,Ke){return new bi($,Ke)}})).then(function($){if($ instanceof yr)throw $;return $ instanceof bi?i($.payload,h,l,$.meta):i($,h,l)})])];case 3:return K=ve.sent(),[3,5];case 4:return Ve=ve.sent(),K=Ve instanceof yr?a(null,h,l,Ve.payload,Ve.meta):a(Ve,h,l),[3,5];case 5:return Yr=n&&!n.dispatchConditionRejection&&a.match(K)&&K.meta.condition,Yr||d(K),[2,K]}})})})();return Object.assign(w,{abort:E,requestId:h,arg:l,unwrap:function(){return w.then(_a)}})}}return Object.assign(c,{pending:s,rejected:a,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t})();function _a(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Ia(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var wi="listener",Oi="completed",Ri="cancelled",vu="task-"+Ri,Su="task-"+Oi,bu=wi+"-"+Ri,Au=wi+"-"+Oi;var vr="listenerMiddleware";var Eu=te(vr+"/add"),xu=te(vr+"/removeAll"),Cu=te(vr+"/remove");var Ai,Tu=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ai||(Ai=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},La=function(t){return function(e){setTimeout(e,t)}},wu=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:La(10);ai();var ka=lt(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),At=class extends ka(Object){};window.ftReduxStores||(window.ftReduxStores={});var _i=class t extends At{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,s=window.ftReduxStores[n];if(mt(s))return s;if(i==null)return;let a=Ti({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),o=xi({reducer:(u,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let l=ze(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[i.name]=new t(a,o,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new dt;let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,a,o)=>{let u=a,c=s[u];return c?(...l)=>{let d=c(...l.map(i));return this.reduxStore.dispatch(d),d}:l=>{this.setState({[u]:i(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 Et=class{static format(e,r,n,i,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(e,r,n,i,!!s)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i,s){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 s?u:i?`${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 xt=v(C()),Na="ft-app-info",we=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};we.eventName="authentication-change";var Je=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Je.eventName="ui-locale-changed";var Da={session:(t,e)=>{(0,xt.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>S.dispatchEvent(new we(e.payload)),0))}},S=xt.FtReduxStore.get({name:Na,reducers:Da,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 Ii=v(C()),Ct=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},ec=(0,Ii.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(S)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,s;return((s=(i=this.metadataDescriptors.find(o=>o.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?o=>Et.format(o,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ct([(0,Sr.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ct([(0,Sr.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ct([Qt({store:S.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Ct([Qt({store:S.name})],e.prototype,"uiLocale",void 0),e});var _t=v(C());var br=v(C());var ue=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=S.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=S.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var Oe=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:ue.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ue.await()}};var N=class extends Oe{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(s,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([o],[u])=>o.localeCompare(u)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new br.CacheRegistry,this.cache=e?i.commonCache:new br.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 Tt=class extends N{async listMySearches(){let{session:e}=S.getState();return Un(e,R.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var wt=class extends N{async listMyBookmarks(){let e=S.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Ot=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=S.getState().session;return!!e?.sessionAuthenticated}};var Rt=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=S.getState().session;return!!e?.sessionAuthenticated}};var Ma="ft-user-assets",Pa={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(P).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:i}=e.payload;Er(t,r,[...Ar(t,r),i]),Li(t,r,1,n),ki(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Er(t,r,Ar(t,r).map(i=>i.id===n.id?n:i)),ki(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;Er(t,r,Ar(t,r).filter(s=>s.id!==i)),Li(t,r,-1,n)}},Ni={[P.SEARCHES]:"savedSearches",[P.BOOKMARKS]:"bookmarks",[P.BOOKS]:void 0,[P.COLLECTIONS]:void 0},Ar=(t,e)=>{var r;let n=Ni[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Er=(t,e,r)=>{let n=Ni[e];n&&(t[n]=r)},Li=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===P.BOOKMARKS&&n)){let s=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},ki=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},k=_t.FtReduxStore.get({name:Ma,reducers:Pa,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(P).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),xr=class{constructor(e=new Ot,r=new Rt){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new wt,this.savedSearchesService=new Tt,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.getState();(0,_t.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(),k.actions.clearAssetCount(),k.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),k.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),k.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();k.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();k.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&k.getState().assetCounts.allAsset[e]!==r.count&&k.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&k.getState().assetCounts.bookmarkByMap[e]!==r.count&&k.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(k.getState().assetCounts.bookmarkByMap).length!==0;e===P.BOOKMARKS&&r&&k.actions.clearBookmarkCountByMap(),k.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;k.actions.bookmarks(r)}}},Fa=new xr;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Fa);var Cr=class{addCommand(e,r=!1){S.commands.add(e,r)}consumeCommand(e){return S.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Cr;var U=v(C());var Di,Re=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Ua=Symbol("clearAfterUnitTest"),It=class extends(0,U.withEventBus)(N){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Di]=()=>{this.defaultMessages={},this.cache=new U.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=S.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 i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,U.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,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 i;let s=e.toLowerCase(),a=this.resolveContext(s);return new U.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},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(i){!(i instanceof U.CanceledPromiseError)&&r&&console.error(i)}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 i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Re({loadedContexts:e})),this.dispatchEvent(new Re({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Re({loadedContexts:[e]})),this.dispatchEvent(new Re({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,U.delay)(0).then(()=>n()).catch(()=>null)))}};Di=Ua;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends It{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends It{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Mi=window.FluidTopicsI18nService,Mc=window.FluidTopicsCustomI18nService;var Pi=v(C()),Tr=class{highlightHtml(e,r,n){(0,Pi.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Tr;var Fi=v(C());var wr=class{isDate(e){var r,n,i,s;return(s=(i=((n=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var n,i,s,a;if(e==null)return"";try{return Fi.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:S.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(s=r?.withTime)!==null&&s!==void 0?s:!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 wr;var Ui=v(C());var Ze=class{static get(e,r){var n,i;let s=S.getState(),{lang:a,region:o}=(i=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Ui.SearchPlaceConverter(s.baseUrl,e??20,s.searchInAllLanguagesAllowed,r??`${a}-${o}`)}};var Or=class{urlToSearchRequest(e){return Ze.get().parse(e)}searchRequestToUrl(e){return Ze.get().serialize(e)}};window.FluidTopicsUrlService=new Or;var W=v(C());var ce=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};ce.eventName="change";var Rr=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))}},ji=new Rr;var Lt=class t extends W.WithEventBus{static build(){return new t(window.history,ji,()=>window.location,!1)}constructor(e,r,n,i){var s,a;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(a=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&a!==void 0?a:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}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,W.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new ce(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[s,a,o])=>{let u=r(),c={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:typeof o=="string"?o:(o??this.windowLocation()).href};n.apply(i,[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(ce.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(ce.eventName,e)}currentItem(){return(0,W.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,W.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,W.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,W.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 i=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}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 i=r??this.currentState.majorStateId,s=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Lt.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 $i=v(ne());var Hi=$i.css`
2
+ `;var qi=v(ne()),M=v(B()),pe=v(C());var le=v(C());function Bi(t,e){let{authenticationRequired:r,session:n}=S.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var kt=class extends Oe{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var _r=class t extends le.FtStateManager{static build(e){return new t(S,e)}constructor(e,r){super(),this.store=e,this.cache=new le.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new kt,this.cleanSessionDebouncer=new le.Debouncer,this.reloadDebouncer=new le.Debouncer(500),this.apiProvider=r??(()=>ue.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(we.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,i,s,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((i=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&i!==void 0?i:!1),this.store.actions.uiLanguageSetsSearchLanguage((s=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&s!==void 0?s:!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 Je(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)}},Ir=_r.build();var de=class extends Event{constructor(e,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var et=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:i,callbackRef:s}of n){let a=i.deref(),o=s.deref();a===void 0||o===void 0||a.dispatchEvent(new de(e.context,a,o,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],n=e.callback,i=this.pendingContextRequests.get(e.context);i===void 0&&this.pendingContextRequests.set(e.context,i={callbacks:new WeakMap,requests:[]});let s=i.callbacks.get(r);s===void 0&&i.callbacks.set(r,s=new WeakSet),s.has(n)||(s.add(n),i.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 L=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},O=class extends pe.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=Ir,this.contextRoot=new et}render(){return qi.html`
3
3
  <slot></slot>
4
- `}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=>Ni.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())}};w.elementDefinitions={};w.styles=Hi;L([(0,N.property)()],w.prototype,"baseUrl",void 0);L([(0,N.property)()],w.prototype,"apiIntegrationIdentifier",void 0);L([(0,N.property)()],w.prototype,"apiIntegrationAppVersion",void 0);L([(0,N.property)()],w.prototype,"uiLocale",void 0);L([(0,pe.jsonProperty)(null)],w.prototype,"availableUiLocales",void 0);L([(0,pe.jsonProperty)(null)],w.prototype,"metadataConfiguration",void 0);L([(0,N.property)({type:Boolean})],w.prototype,"editorMode",void 0);L([(0,N.property)({type:Boolean})],w.prototype,"noCustom",void 0);L([(0,N.property)({type:Boolean})],w.prototype,"openExternalDocumentInNewTab",void 0);L([(0,N.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],w.prototype,"noCustomComponent",void 0);L([(0,N.property)({type:Boolean})],w.prototype,"withManualResources",void 0);L([(0,N.property)({type:Boolean})],w.prototype,"navigatorOnline",void 0);L([(0,N.property)({type:Boolean})],w.prototype,"forcedOffline",void 0);L([(0,N.property)({type:Boolean})],w.prototype,"authenticationRequired",void 0);L([(0,pe.jsonProperty)([])],w.prototype,"messageContexts",void 0);L([(0,pe.jsonProperty)(void 0)],w.prototype,"session",void 0);var Ki=v(C());var Vi={"ft-app-context":w};(0,Ki.customElements)(Vi);var Dt=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},Mt=class extends CustomEvent{constructor(e,r){super("ft-search-result-open-context-menu",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}};var Nt=class t extends Event{constructor(){super(t.eventName)}};Nt.eventName="search-context-clear-all-filters";var zi=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Dr=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Wi=Symbol("registerInterval"),Lr=Symbol("registerAttempts"),Ha=40,Ba=(0,Re.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(n){var i,s,a;super.willUpdate(n),n.has("neededSearchRequests")&&((i=this.stateManager)===null||i===void 0||i.unregisterComponent(this,(s=n.get("neededSearchRequests"))!==null&&s!==void 0?s:[]),(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[Lr]=0,this.tryToRegisterToContext(),this[Wi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Lr]>Ha?window.clearInterval(this[Wi]):(this[Lr]++,this.dispatchEvent(new Dr))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return zi([(0,kr.state)()],e.prototype,"stateManager",void 0),zi([(0,kr.state)({hasChanged:Re.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),Pt=class extends Ba(Re.FtLitElementRedux){};var Ut=v(B()),Ft=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Nr=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Mr=Symbol("registerInterval"),qa=(0,$t.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(i){this.resultStateManager=i}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Mr]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Mr]):this.dispatchEvent(new Nr)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Mr,Ft([(0,Ut.property)({attribute:!1})],r.prototype,"cluster",void 0),Ft([(0,Ut.property)({attribute:!1})],r.prototype,"result",void 0),Ft([(0,$t.numberProperty)()],r.prototype,"rank",void 0),Ft([(0,Ut.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),jt=class extends qa(Pt){};var Gi=v(ne()),Yi=v(C()),Va={highlightBackgroundColor:Yi.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},Qi=Gi.css`
4
+ `}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=>Mi.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=Hi;L([(0,M.property)()],O.prototype,"baseUrl",void 0);L([(0,M.property)()],O.prototype,"apiIntegrationIdentifier",void 0);L([(0,M.property)()],O.prototype,"apiIntegrationAppVersion",void 0);L([(0,M.property)()],O.prototype,"uiLocale",void 0);L([(0,pe.jsonProperty)(null)],O.prototype,"availableUiLocales",void 0);L([(0,pe.jsonProperty)(null)],O.prototype,"metadataConfiguration",void 0);L([(0,M.property)({type:Boolean})],O.prototype,"editorMode",void 0);L([(0,M.property)({type:Boolean})],O.prototype,"noCustom",void 0);L([(0,M.property)({type:Boolean})],O.prototype,"openExternalDocumentInNewTab",void 0);L([(0,M.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],O.prototype,"noCustomComponent",void 0);L([(0,M.property)({type:Boolean})],O.prototype,"withManualResources",void 0);L([(0,M.property)({type:Boolean})],O.prototype,"navigatorOnline",void 0);L([(0,M.property)({type:Boolean})],O.prototype,"forcedOffline",void 0);L([(0,M.property)({type:Boolean})],O.prototype,"authenticationRequired",void 0);L([(0,pe.jsonProperty)([])],O.prototype,"messageContexts",void 0);L([(0,pe.jsonProperty)(void 0)],O.prototype,"session",void 0);var Ki=v(C());var Vi={"ft-app-context":O};(0,Ki.customElements)(Vi);var Nt=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},Dt=class extends CustomEvent{constructor(e,r){super("ft-search-result-open-context-menu",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}};var Mt=class t extends Event{constructor(){super(t.eventName)}};Mt.eventName="search-context-clear-all-filters";var zi=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Nr=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Wi=Symbol("registerInterval"),Lr=Symbol("registerAttempts"),Ha=40,Ba=(0,_e.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(n){var i,s,a;super.willUpdate(n),n.has("neededSearchRequests")&&((i=this.stateManager)===null||i===void 0||i.unregisterComponent(this,(s=n.get("neededSearchRequests"))!==null&&s!==void 0?s:[]),(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[Lr]=0,this.tryToRegisterToContext(),this[Wi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Lr]>Ha?window.clearInterval(this[Wi]):(this[Lr]++,this.dispatchEvent(new Nr))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return zi([(0,kr.state)()],e.prototype,"stateManager",void 0),zi([(0,kr.state)({hasChanged:_e.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),Pt=class extends Ba(_e.FtLitElementRedux){};var Ut=v(B()),Ft=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Mr=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Dr=Symbol("registerInterval"),qa=(0,$t.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(i){this.resultStateManager=i}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Dr]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Dr]):this.dispatchEvent(new Mr)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Dr,Ft([(0,Ut.property)({attribute:!1})],r.prototype,"cluster",void 0),Ft([(0,Ut.property)({attribute:!1})],r.prototype,"result",void 0),Ft([(0,$t.numberProperty)()],r.prototype,"rank",void 0),Ft([(0,Ut.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),jt=class extends qa(Pt){};var Gi=v(ne()),Qi=v(C()),Va={highlightBackgroundColor:Qi.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},Yi=Gi.css`
5
5
  .kwicmatch {
6
6
  font-weight: 700;
7
7
  background-color: ${Va.highlightBackgroundColor};
@@ -16,9 +16,18 @@
16
16
  outline: revert;
17
17
  }
18
18
  `;var Br=globalThis,Ht=Br.trustedTypes,Xi=Ht?Ht.createPolicy("lit-html",{createHTML:t=>t}):void 0,ns="$lit$",re=`lit$${Math.random().toFixed(9).slice(2)}$`,is="?"+re,Ka=`<${is}>`,ye=document,Bt=()=>ye.createComment(""),rt=t=>t===null||typeof t!="object"&&typeof t!="function",qr=Array.isArray,za=t=>qr(t)||typeof t?.[Symbol.iterator]=="function",Pr=`[
19
- \f\r]`,tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ji=/-->/g,Zi=/>/g,he=RegExp(`>|${Pr}(?:([^\\s"'>=/]+)(${Pr}*=${Pr}*(?:[^
20
- \f\r"'\`<>=]|("|')|))|$)`,"g"),es=/'/g,ts=/"/g,ss=/^(?:script|style|textarea|title)$/i,Vr=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),as=Vr(1),os=Vr(2),us=Vr(3),nt=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),rs=new WeakMap,me=ye.createTreeWalker(ye,129);function cs(t,e){if(!qr(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xi!==void 0?Xi.createHTML(e):e}var Wa=(t,e)=>{let r=t.length-1,n=[],i,s=e===2?"<svg>":e===3?"<math>":"",a=tt;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===tt?l[1]==="!--"?a=Ji:l[1]!==void 0?a=Zi:l[2]!==void 0?(ss.test(l[2])&&(i=RegExp("</"+l[2],"g")),a=he):l[3]!==void 0&&(a=he):a===he?l[0]===">"?(a=i??tt,d=-1):l[1]===void 0?d=-2:(d=a.lastIndex-l[2].length,c=l[1],a=l[3]===void 0?he:l[3]==='"'?ts:es):a===ts||a===es?a=he:a===Ji||a===Zi?a=tt:(a=he,i=void 0);let m=a===he&&t[o+1].startsWith("/>")?" ":"";s+=a===tt?u+Ka:d>=0?(n.push(c),u.slice(0,d)+ns+u.slice(d)+re+m):u+re+(d===-2?o:m)}return[cs(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},it=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let s=0,a=0,o=e.length-1,u=this.parts,[c,l]=Wa(e,r);if(this.el=t.createElement(c,n),me.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=me.nextNode())!==null&&u.length<o;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(ns)){let p=l[a++],m=i.getAttribute(d).split(re),f=/([.?@])?(.*)/.exec(p);u.push({type:1,index:s,name:f[2],strings:m,ctor:f[1]==="."?Ur:f[1]==="?"?jr:f[1]==="@"?$r:Le}),i.removeAttribute(d)}else d.startsWith(re)&&(u.push({type:6,index:s}),i.removeAttribute(d));if(ss.test(i.tagName)){let d=i.textContent.split(re),p=d.length-1;if(p>0){i.textContent=Ht?Ht.emptyScript:"";for(let m=0;m<p;m++)i.append(d[m],Bt()),me.nextNode(),u.push({type:2,index:++s});i.append(d[p],Bt())}}}else if(i.nodeType===8)if(i.data===is)u.push({type:2,index:s});else{let d=-1;for(;(d=i.data.indexOf(re,d+1))!==-1;)u.push({type:7,index:s}),d+=re.length-1}s++}}static createElement(e,r){let n=ye.createElement("template");return n.innerHTML=e,n}};function Ie(t,e,r=t,n){if(e===nt)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=rt(e)?void 0:e._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=Ie(t,i._$AS(t,e.values),i,n)),e}var Fr=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,i=(e?.creationScope??ye).importNode(r,!0);me.currentNode=i;let s=me.nextNode(),a=0,o=0,u=n[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new qt(s,s.nextSibling,this,e):u.type===1?c=new u.ctor(s,u.name,u.strings,this,e):u.type===6&&(c=new Hr(s,this,e)),this._$AV.push(c),u=n[++o]}a!==u?.index&&(s=me.nextNode(),a++)}return me.currentNode=ye,i}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++}},qt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.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=Ie(this,e,r),rt(e)?e===R||e==null||e===""?(this._$AH!==R&&this._$AR(),this._$AH=R):e!==this._$AH&&e!==nt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):za(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!==R&&rt(this._$AH)?this._$AA.nextSibling.data=e:this.T(ye.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=it.createElement(cs(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new Fr(i,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let r=rs.get(e.strings);return r===void 0&&rs.set(e.strings,r=new it(e)),r}k(e){qr(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of e)i===r.length?r.push(n=new t(this.O(Bt()),this.O(Bt()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$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))}},Le=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,s){this.type=1,this._$AH=R,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=R}_$AI(e,r=this,n,i){let s=this.strings,a=!1;if(s===void 0)e=Ie(this,e,r,0),a=!rt(e)||e!==this._$AH&&e!==nt,a&&(this._$AH=e);else{let o=e,u,c;for(e=s[0],u=0;u<s.length-1;u++)c=Ie(this,o[n+u],r,u),c===nt&&(c=this._$AH[u]),a||=!rt(c)||c!==this._$AH[u],c===R?e=R:e!==R&&(e+=(c??"")+s[u+1]),this._$AH[u]=c}a&&!i&&this.j(e)}j(e){e===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ur=class extends Le{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===R?void 0:e}},jr=class extends Le{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==R)}},$r=class extends Le{constructor(e,r,n,i,s){super(e,r,n,i,s),this.type=5}_$AI(e,r=this){if((e=Ie(this,e,r,0)??R)===nt)return;let n=this._$AH,i=e===R&&n!==R||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==R&&(n===R||i);i&&this.element.removeEventListener(this.name,this,n),s&&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)}},Hr=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){Ie(this,e)}};var Ga=Br.litHtmlPolyfillSupport;Ga?.(it,qt),(Br.litHtmlVersions??=[]).push("3.3.0");var ds=Symbol.for(""),Ya=t=>{if(t?.r===ds)return t?._$litStatic$},Kr=t=>({_$litStatic$:t,r:ds});var ls=new Map,zr=t=>(e,...r)=>{let n=r.length,i,s,a=[],o=[],u,c=0,l=!1;for(;c<n;){for(u=e[c];c<n&&(s=r[c],(i=Ya(s))!==void 0);)u+=i+e[++c],l=!0;c!==n&&o.push(s),a.push(u),c++}if(c===n&&a.push(e[n]),l){let d=a.join("$$lit$$");(e=ls.get(d))===void 0&&(a.raw=a,ls.set(d,e=a)),r=o}return t(e,...r)},Wr=zr(as),Ud=zr(os),jd=zr(us);var Gr=v(B()),Ts=v(C());var ke;(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"})(ke||(ke={}));var j=v(ne()),h=v(C()),ps=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),G=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),g={fontFamily:G,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},De={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ps),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit")},Me={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ps),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit")},Ne={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",G),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit")},Pe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",G),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit")},Fe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",G),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit")},Ue={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",G),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit")},je={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",G),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit")},$e={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",G),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit")},He={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",G),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase")},Be={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",G),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase")},fs=j.css`
19
+ \f\r]`,tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ji=/-->/g,Zi=/>/g,fe=RegExp(`>|${Pr}(?:([^\\s"'>=/]+)(${Pr}*=${Pr}*(?:[^
20
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),es=/'/g,ts=/"/g,ss=/^(?:script|style|textarea|title)$/i,Vr=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),as=Vr(1),os=Vr(2),us=Vr(3),nt=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),rs=new WeakMap,me=ye.createTreeWalker(ye,129);function cs(t,e){if(!qr(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xi!==void 0?Xi.createHTML(e):e}var Wa=(t,e)=>{let r=t.length-1,n=[],i,s=e===2?"<svg>":e===3?"<math>":"",a=tt;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===tt?l[1]==="!--"?a=Ji:l[1]!==void 0?a=Zi:l[2]!==void 0?(ss.test(l[2])&&(i=RegExp("</"+l[2],"g")),a=fe):l[3]!==void 0&&(a=fe):a===fe?l[0]===">"?(a=i??tt,d=-1):l[1]===void 0?d=-2:(d=a.lastIndex-l[2].length,c=l[1],a=l[3]===void 0?fe:l[3]==='"'?ts:es):a===ts||a===es?a=fe:a===Ji||a===Zi?a=tt:(a=fe,i=void 0);let m=a===fe&&t[o+1].startsWith("/>")?" ":"";s+=a===tt?u+Ka:d>=0?(n.push(c),u.slice(0,d)+ns+u.slice(d)+re+m):u+re+(d===-2?o:m)}return[cs(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},it=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let s=0,a=0,o=e.length-1,u=this.parts,[c,l]=Wa(e,r);if(this.el=t.createElement(c,n),me.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=me.nextNode())!==null&&u.length<o;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(ns)){let p=l[a++],m=i.getAttribute(d).split(re),h=/([.?@])?(.*)/.exec(p);u.push({type:1,index:s,name:h[2],strings:m,ctor:h[1]==="."?Ur:h[1]==="?"?jr:h[1]==="@"?$r:Le}),i.removeAttribute(d)}else d.startsWith(re)&&(u.push({type:6,index:s}),i.removeAttribute(d));if(ss.test(i.tagName)){let d=i.textContent.split(re),p=d.length-1;if(p>0){i.textContent=Ht?Ht.emptyScript:"";for(let m=0;m<p;m++)i.append(d[m],Bt()),me.nextNode(),u.push({type:2,index:++s});i.append(d[p],Bt())}}}else if(i.nodeType===8)if(i.data===is)u.push({type:2,index:s});else{let d=-1;for(;(d=i.data.indexOf(re,d+1))!==-1;)u.push({type:7,index:s}),d+=re.length-1}s++}}static createElement(e,r){let n=ye.createElement("template");return n.innerHTML=e,n}};function Ie(t,e,r=t,n){if(e===nt)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=rt(e)?void 0:e._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=Ie(t,i._$AS(t,e.values),i,n)),e}var Fr=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,i=(e?.creationScope??ye).importNode(r,!0);me.currentNode=i;let s=me.nextNode(),a=0,o=0,u=n[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new qt(s,s.nextSibling,this,e):u.type===1?c=new u.ctor(s,u.name,u.strings,this,e):u.type===6&&(c=new Hr(s,this,e)),this._$AV.push(c),u=n[++o]}a!==u?.index&&(s=me.nextNode(),a++)}return me.currentNode=ye,i}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++}},qt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.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=Ie(this,e,r),rt(e)?e===_||e==null||e===""?(this._$AH!==_&&this._$AR(),this._$AH=_):e!==this._$AH&&e!==nt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):za(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!==_&&rt(this._$AH)?this._$AA.nextSibling.data=e:this.T(ye.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=it.createElement(cs(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new Fr(i,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let r=rs.get(e.strings);return r===void 0&&rs.set(e.strings,r=new it(e)),r}k(e){qr(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of e)i===r.length?r.push(n=new t(this.O(Bt()),this.O(Bt()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$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))}},Le=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,s){this.type=1,this._$AH=_,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=s,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,i){let s=this.strings,a=!1;if(s===void 0)e=Ie(this,e,r,0),a=!rt(e)||e!==this._$AH&&e!==nt,a&&(this._$AH=e);else{let o=e,u,c;for(e=s[0],u=0;u<s.length-1;u++)c=Ie(this,o[n+u],r,u),c===nt&&(c=this._$AH[u]),a||=!rt(c)||c!==this._$AH[u],c===_?e=_:e!==_&&(e+=(c??"")+s[u+1]),this._$AH[u]=c}a&&!i&&this.j(e)}j(e){e===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ur=class extends Le{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_?void 0:e}},jr=class extends Le{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==_)}},$r=class extends Le{constructor(e,r,n,i,s){super(e,r,n,i,s),this.type=5}_$AI(e,r=this){if((e=Ie(this,e,r,0)??_)===nt)return;let n=this._$AH,i=e===_&&n!==_||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==_&&(n===_||i);i&&this.element.removeEventListener(this.name,this,n),s&&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)}},Hr=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){Ie(this,e)}};var Ga=Br.litHtmlPolyfillSupport;Ga?.(it,qt),(Br.litHtmlVersions??=[]).push("3.3.0");var ds=Symbol.for(""),Qa=t=>{if(t?.r===ds)return t?._$litStatic$},Kr=t=>({_$litStatic$:t,r:ds});var ls=new Map,zr=t=>(e,...r)=>{let n=r.length,i,s,a=[],o=[],u,c=0,l=!1;for(;c<n;){for(u=e[c];c<n&&(s=r[c],(i=Qa(s))!==void 0);)u+=i+e[++c],l=!0;c!==n&&o.push(s),a.push(u),c++}if(c===n&&a.push(e[n]),l){let d=a.join("$$lit$$");(e=ls.get(d))===void 0&&(a.raw=a,ls.set(d,e=a)),r=o}return t(e,...r)},Wr=zr(as),Ud=zr(os),jd=zr(us);var Gr=v(B()),Ts=v(C());var ke;(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"})(ke||(ke={}));var j=v(ne()),f=v(C()),ps=f.FtCssVariableFactory.extend("--ft-typography-font-family","",f.designSystemVariables.titleFont),G=f.FtCssVariableFactory.extend("--ft-typography-font-family","",f.designSystemVariables.contentFont),g={fontFamily:G,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")},Ne={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ps),fontSize:f.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit")},De={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ps),fontSize:f.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit")},Me={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",G),fontSize:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit")},Pe={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",G),fontSize:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit")},Fe={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",G),fontSize:f.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit")},Ue={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",G),fontSize:f.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit")},je={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",G),fontSize:f.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit")},$e={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",G),fontSize:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit")},He={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",G),fontSize:f.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase")},Be={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-button-font-family","",G),fontSize:f.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase")},hs=j.css`
21
21
  .ft-typography--title {
22
+ font-family: ${Ne.fontFamily};
23
+ font-size: ${Ne.fontSize};
24
+ font-weight: ${Ne.fontWeight};
25
+ letter-spacing: ${Ne.letterSpacing};
26
+ line-height: ${Ne.lineHeight};
27
+ text-transform: ${Ne.textTransform};
28
+ }
29
+ `,fs=j.css`
30
+ .ft-typography--title-dense {
22
31
  font-family: ${De.fontFamily};
23
32
  font-size: ${De.fontSize};
24
33
  font-weight: ${De.fontWeight};
@@ -26,8 +35,8 @@
26
35
  line-height: ${De.lineHeight};
27
36
  text-transform: ${De.textTransform};
28
37
  }
29
- `,hs=j.css`
30
- .ft-typography--title-dense {
38
+ `,ms=j.css`
39
+ .ft-typography--subtitle1 {
31
40
  font-family: ${Me.fontFamily};
32
41
  font-size: ${Me.fontSize};
33
42
  font-weight: ${Me.fontWeight};
@@ -35,15 +44,6 @@
35
44
  line-height: ${Me.lineHeight};
36
45
  text-transform: ${Me.textTransform};
37
46
  }
38
- `,ms=j.css`
39
- .ft-typography--subtitle1 {
40
- font-family: ${Ne.fontFamily};
41
- font-size: ${Ne.fontSize};
42
- font-weight: ${Ne.fontWeight};
43
- letter-spacing: ${Ne.letterSpacing};
44
- line-height: ${Ne.lineHeight};
45
- text-transform: ${Ne.textTransform};
46
- }
47
47
  `,ys=j.css`
48
48
  .ft-typography--subtitle2 {
49
49
  font-family: ${Pe.fontFamily};
@@ -72,7 +72,7 @@
72
72
  line-height: ${Ue.lineHeight};
73
73
  text-transform: ${Ue.textTransform};
74
74
  }
75
- `,bs=j.css`
75
+ `,Ss=j.css`
76
76
  .ft-typography--caption {
77
77
  font-family: ${je.fontFamily};
78
78
  font-size: ${je.fontSize};
@@ -81,7 +81,7 @@
81
81
  line-height: ${je.lineHeight};
82
82
  text-transform: ${je.textTransform};
83
83
  }
84
- `,Ss=j.css`
84
+ `,bs=j.css`
85
85
  .ft-typography--breadcrumb {
86
86
  font-family: ${$e.fontFamily};
87
87
  font-size: ${$e.fontSize};
@@ -112,7 +112,7 @@
112
112
  .ft-typography {
113
113
  vertical-align: inherit;
114
114
  }
115
- `;var Cs=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Y=class extends Ts.FtLitElement{constructor(){super(...arguments),this.variant=ke.body1}render(){return this.element?Wr`
115
+ `;var Cs=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Q=class extends Ts.FtLitElement{constructor(){super(...arguments),this.variant=ke.body1}render(){return this.element?Wr`
116
116
  <${Kr(this.element)}
117
117
  part="text"
118
118
  class="ft-typography ft-typography--${this.variant}">
@@ -120,18 +120,18 @@
120
120
  </${Kr(this.element)}>
121
121
  `:Wr`
122
122
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
123
- `}};Y.styles=[fs,hs,ms,ys,gs,vs,bs,Ss,As,Es,xs];Cs([(0,Gr.property)()],Y.prototype,"element",void 0);Cs([(0,Gr.property)()],Y.prototype,"variant",void 0);var ws=v(C());var Os={"ft-typography":Y};(0,ws.customElements)(Os);var Ps=v(Rs());var Is=t=>t??R;var st=v(C());function Ls(t){var e;return((e=(0,st.accessResult)(t))===null||e===void 0?void 0:e.openMode)===ut.EXTERNAL}function ks(t){return Ls(t)?(0,st.accessResult)(t).originUrl:(0,st.accessResultUrl)(t)}function Ds(t,e){return Is(e&&Ls(t)?"_blank":void 0)}var Qa=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},ge=class extends jt{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():at.html`
123
+ `}};Q.styles=[hs,fs,ms,ys,gs,vs,Ss,bs,As,Es,xs];Cs([(0,Gr.property)()],Q.prototype,"element",void 0);Cs([(0,Gr.property)()],Q.prototype,"variant",void 0);var Os=v(C());var ws={"ft-typography":Q};(0,Os.customElements)(ws);var Ps=v(_s());var Is=t=>t??_;var st=v(C());function Ls(t){var e;return((e=(0,st.accessResult)(t))===null||e===void 0?void 0:e.openMode)===ut.EXTERNAL}function ks(t){return Ls(t)?(0,st.accessResult)(t).originUrl:(0,st.accessResultUrl)(t)}function Ns(t,e){return Is(e&&Ls(t)?"_blank":void 0)}var Ya=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},ge=class extends jt{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():at.html`
124
124
  <a href="${ks(this.result)}"
125
125
  @click=${this.onResultClick}
126
126
  @auxclick=${r=>this.onAuxClick(r)}
127
127
  @contextmenu=${this.onContextMenu}
128
- target="${Ds(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
128
+ target="${Ns(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
129
129
  part="link">
130
130
  ${this.renderTitle()}
131
131
  </a>
132
132
  `:at.nothing}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){var e;return at.html`
133
- <ft-typography variant="${ke.title}" part="text">${(0,Ps.unsafeHTML)((e=(0,Ns.accessResult)(this.result))===null||e===void 0?void 0:e.htmlTitle)}</ft-typography>
134
- `}onResultClick(){this.dispatchEvent(new Dt(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new Mt(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"})}};ge.elementDefinitions={"ft-typography":Y};ge.styles=Qi;Qa([(0,Ms.property)({type:Boolean})],ge.prototype,"withoutLink",void 0);var Fs={"ft-search-result-title":ge};(0,Us.customElements)(Fs);})();
133
+ <ft-typography variant="${ke.title}" part="text">${(0,Ps.unsafeHTML)((e=(0,Ms.accessResult)(this.result))===null||e===void 0?void 0:e.htmlTitle)}</ft-typography>
134
+ `}onResultClick(){this.dispatchEvent(new Nt(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new Dt(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"})}};ge.elementDefinitions={"ft-typography":Q};ge.styles=Yi;Ya([(0,Ds.property)({type:Boolean})],ge.prototype,"withoutLink",void 0);var Fs={"ft-search-result-title":ge};(0,Us.customElements)(Fs);})();
135
135
  /*! Bundled license information:
136
136
 
137
137
  @lit/reactive-element/css-tag.js: