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