@fluid-topics/ft-search-load-more-button 1.2.25 → 1.2.27

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.
@@ -1057,7 +1057,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1057
1057
  `,O.noTextSelect];var Ar=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},$e=class extends(0,Nr.toFtdsBase)(F){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=fr.brand,this.iconVariant=Ie.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case bt.large:return Ge.body2medium;case bt.medium:return Ge.caption1medium;case bt.small:return Ge.caption2medium}}};$e.styles=[Nr.safariEllipsisFix,Di];Ar([(0,er.property)({type:Boolean})],$e.prototype,"primary",void 0);Ar([(0,er.property)({type:Boolean})],$e.prototype,"secondary",void 0);Ar([(0,er.property)({type:Boolean})],$e.prototype,"tertiary",void 0);Ar([(0,er.property)({type:Boolean})],$e.prototype,"round",void 0);(0,To.customElement)("ft-button")(Se);(0,To.customElement)("ftds-button")($e);var Js=C(k()),ec=C(ne());var Yr=C(k());var Bi=C(k());var Wc=C(Mi(),1);var $i;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})($i||($i={}));var Wi;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Wi||(Wi={}));var Fi;(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"})(Fi||(Fi={}));var Hi;(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"})(Hi||(Hi={}));var zi;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(zi||(zi={}));var Gi;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Gi||(Gi={}));var ji;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ji||(ji={}));var Vi;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Vi||(Vi={}));var Ki;(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"})(Ki||(Ki={}));var Zi;(function(e){e.ASC="ASC",e.DESC="DESC"})(Zi||(Zi={}));var qi;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(qi||(qi={}));var _o;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(_o||(_o={}));var Yi;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Yi||(Yi={}));var Xi;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Xi||(Xi={}));var Qi;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Qi||(Qi={}));var Ji;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ji||(Ji={}));var es;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(es||(es={}));var ko;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ko||(ko={}));var q;(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.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(q||(q={}));var ts;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ts||(ts={}));var rs;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(rs||(rs={}));var im={[q.PERSONAL_BOOK_SHARE_USER]:[q.PERSONAL_BOOK_USER],[q.HTML_EXPORT_USER]:[q.PERSONAL_BOOK_USER],[q.PDF_EXPORT_USER]:[q.PERSONAL_BOOK_USER],[q.KHUB_ADMIN]:[q.CONTENT_PUBLISHER],[q.ADMIN]:[q.KHUB_ADMIN,q.USERS_ADMIN,q.PORTAL_ADMIN],[q.DEVELOPER]:[q.BETA_USER,q.DEBUG_USER],[q.GENERATIVE_AI_EXPORT_USER]:[q.GENERATIVE_AI_USER]};var Qs=C(k());var ss=C(G()),pe=C(ne()),Oe=C(k());var os=C(G());var ns=os.css`
1058
1058
  `;var Ir=C(k()),Fc="ft-app-info",Do=class extends CustomEvent{constructor(r){super("authentication-change",{detail:r})}},Hc={session:(e,r)=>{(0,Ir.deepEqual)(e.session,r.payload)||(e.session=r.payload,setTimeout(()=>_.dispatchEvent(new Do(r.payload)),0))}},_=Ir.FtReduxStore.get({name:Fc,reducers:Hc,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Ye=C(k());var Bo=C(k());var pt=class e{static get(r){let{baseUrl:o,apiIntegrationIdentifier:n}=_.getState(),a=r??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(r){return new Promise(o=>{let n=e.get(r);if(n)o(n);else{let a=_.subscribe(()=>{n=e.get(r),n&&(a(),o(n))})}})}};var We=class{constructor(r=!0,o){var n;this.overrideApi=o;let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Bo.CacheRegistry,this.cache=r?a.commonCache:new Bo.CacheRegistry}get api(){var r;return(r=this.overrideApi)!==null&&r!==void 0?r:pt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):pt.await()}clearCache(){this.cache.clearAll()}};var as,zc=Symbol("clearAfterUnitTest"),Pr=class extends We{constructor(r){super(),this.messageContextProvider=r,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[as]=()=>{this.defaultMessages={},this.cache=new Ye.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:r}=_.getState();this.currentUiLocale!==r&&(this.currentUiLocale=r,this.cache.clearAll(),this.notifyAll())}addContext(r){let o=r.name.toLowerCase();this.cache.setFinal(o,r),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(r,o){var n;if(r=r.toLowerCase(),Object.keys(o).length>0){let a={...(n=this.defaultMessages[r])!==null&&n!==void 0?n:{},...o};(0,Ye.deepEqual)(this.defaultMessages[r],a)||(this.defaultMessages[r]=a,await this.notify(r))}await this.fetchContext(r)}resolveContext(r){var o,n;return this.fetchContext(r),(n=(o=this.cache.getNow(r))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(r,o){let n=r.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(r,o,...n){var a;let i=r.toLowerCase(),c=this.resolveContext(i);return new Ye.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(r){if(!this.cache.has(r))try{await this.cache.get(r,()=>this.messageContextProvider(this.currentUiLocale,r)),await this.notify(r)}catch(o){console.error(o)}}subscribe(r,o){var n;return r=r.toLowerCase(),this.listeners[r]=(n=this.listeners[r])!==null&&n!==void 0?n:new Set,this.listeners[r].add(o),()=>{var a;return(a=this.listeners[r])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(r=>this.notify(r)))}async notify(r){this.listeners[r]!=null&&await Promise.all([...this.listeners[r].values()].map(o=>(0,Ye.delay)(0).then(()=>o()).catch(()=>null)))}};as=zc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Pr{constructor(){super(async(e,r)=>(await this.awaitApi).getFluidTopicsMessageContext(e,r))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Pr{constructor(){super(async(e,r)=>(await this.awaitApi).getCustomMessageContext(e,r))}});var ht=window.FluidTopicsI18nService,is=window.FluidTopicsCustomI18nService;var ae=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},K=class extends Oe.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>pt.get(),this.messageContexts=[],this.cache=new Oe.CacheRegistry,this.cleanSessionDebouncer=new Oe.Debouncer}render(){return ss.html`
1059
1059
  <slot></slot>
1060
- `}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&_.actions.noCustom(this.noCustom),r.has("editorMode")&&_.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&_.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>ht.addContext(d)),r.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};K.elementDefinitions={};K.styles=ns;ae([(0,pe.property)()],K.prototype,"baseUrl",void 0);ae([(0,pe.property)()],K.prototype,"apiIntegrationIdentifier",void 0);ae([(0,pe.property)()],K.prototype,"uiLocale",void 0);ae([(0,Oe.jsonProperty)(null)],K.prototype,"availableUiLocales",void 0);ae([(0,Oe.jsonProperty)(null)],K.prototype,"metadataConfiguration",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"editorMode",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"noCustom",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,pe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],K.prototype,"noCustomComponent",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"withManualResources",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"navigatorOnline",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"forcedOffline",void 0);ae([(0,pe.property)({type:Object})],K.prototype,"apiProvider",void 0);ae([(0,Oe.jsonProperty)([])],K.prototype,"messageContexts",void 0);ae([(0,Oe.jsonProperty)(void 0)],K.prototype,"session",void 0);ae([(0,pe.state)()],K.prototype,"localesConfiguration",void 0);var Il=C(ne());function Gc(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Tr(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!Tr(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(a=Object.keys(e),o=a.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){var i=a[n];if(!Tr(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function Tr(e,r){try{return Gc(e,r)}catch{return!1}}function _r(e,r){return!Tr(e,r)}var jc=C(ne(),1);var kr=class{constructor(){this.queue=[]}add(r,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==r.type)),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var tr=C(ne(),1);var cs=C(ne(),1);function ls(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,cs.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:_r,...r??{}})}var Dr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);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 us=C(G(),1);var Br=window,Vc=Br.ShadowRoot&&(Br.ShadyCSS===void 0||Br.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$m=Symbol();var ds=(e,r)=>{Vc?e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):r.forEach(o=>{let n=document.createElement("style"),a=Br.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)})};var Ur=class extends us.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return ds(n,r.elementStyles),n}};var Mr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ys,fs=Symbol("constructorPrototype"),ps=Symbol("constructorName"),ms=Symbol("exportpartsDebouncer"),hs=Symbol("dynamicDependenciesLoaded"),Xe=class extends Ur{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ys]=new Dr(5),this[ps]=this.constructor.name,this[fs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ps]&&Object.setPrototypeOf(this,this[fs])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[hs]||(r[hs]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate()})}contentAvailableCallback(r){}applyCustomStylesheet(r){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(r.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}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)}}scheduleExportpartsUpdate(){var r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[ms].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(r){var o,n,a,i,c,d;let f=g=>g!=null&&g.trim().length>0,u=r.filter(f).map(g=>g.trim());if(u.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(d=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...v,...x).filter(f).map(S=>S.trim()).forEach(S=>y.add(S))}if(y.size===0){this.removeAttribute("exportparts");return}let h=[...y.values()].flatMap(g=>u.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};ys=ms;Mr([(0,tr.property)()],Xe.prototype,"exportpartsPrefix",void 0);Mr([ls([])],Xe.prototype,"exportpartsPrefixes",void 0);Mr([(0,tr.property)()],Xe.prototype,"customStylesheet",void 0);Mr([(0,tr.state)()],Xe.prototype,"useAdoptedStyleSheets",void 0);function rr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var gs,bs,xs,or=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),yt=Symbol("internalStores"),nr=class extends Xe{constructor(){super(...arguments),this[gs]=new Map,this[bs]=new Map,this[xs]=new Map}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[yt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[yt].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[yt].get(r)}addStore(r,o){var n;o=(n=o??(rr(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[yt].set(o,r),this.subscribeToStore(o,r),this.updateFromStores()}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[yt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[yt].forEach((r,o)=>this.subscribeToStore(o,r)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((r,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(r.store);a&&(r.store?this[Qe].has(r.store):this[Qe].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[Qe].set(r,o.subscribe(()=>this.updateFromStores())),this[or].set(r,[]),rr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=d=>this[i](d);o.addEventListener(a.eventName,c),this[or].get(r).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[Qe].forEach((r,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(r){var o;this[Qe].has(r)&&this[Qe].get(r)(),this[Qe].delete(r),(o=this[or].get(r))===null||o===void 0||o.forEach(n=>n()),this[or].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};gs=Qe,bs=yt,xs=or;nr.reduxProperties=new Map;nr.reduxReactiveProperties=new Set;nr.reduxEventListeners=new Map;function be(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Fe(e){return!!e&&!!e[H]}function Ce(e){var r;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===el}(e)||Array.isArray(e)||!!e[As]||!!(!((r=e.constructor)===null||r===void 0)&&r[As])||jo(e)||Vo(e))}function mt(e,r,o){o===void 0&&(o=!1),Ut(e)===0?(o?Object.keys:Bt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Ut(e){var r=e[H];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:jo(e)?2:Vo(e)?3:0}function Dt(e,r){return Ut(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Kc(e,r){return Ut(e)===2?e.get(r):e[r]}function Ns(e,r,o){var n=Ut(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function Rs(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function jo(e){return Qc&&e instanceof Map}function Vo(e){return Jc&&e instanceof Set}function Je(e){return e.o||e.t}function Ko(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Ps(e);delete r[H];for(var o=Bt(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function Zo(e,r){return r===void 0&&(r=!1),qo(e)||Fe(e)||!Ce(e)||(Ut(e)>1&&(e.set=e.add=e.clear=e.delete=Zc),Object.freeze(e),r&&mt(e,function(o,n){return Zo(n,!0)},!0)),e}function Zc(){be(2)}function qo(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pe(e){var r=Go[e];return r||be(18,e),r}function qc(e,r){Go[e]||(Go[e]=r)}function Fo(){return ir}function Uo(e,r){r&&(Pe("Patches"),e.u=[],e.s=[],e.v=r)}function $r(e){Ho(e),e.p.forEach(Yc),e.p=null}function Ho(e){e===ir&&(ir=e.l)}function vs(e){return ir={p:[],l:ir,h:e,m:!0,_:0}}function Yc(e){var r=e[H];r.i===0||r.i===1?r.j():r.g=!0}function Mo(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||Pe("ES5").S(r,e,n),n?(o[H].P&&($r(r),be(4)),Ce(e)&&(e=Wr(r,e),r.l||Fr(r,e)),r.u&&Pe("Patches").M(o[H].t,e,r.u,r.s)):e=Wr(r,o,[]),$r(r),r.u&&r.v(r.u,r.s),e!==Is?e:void 0}function Wr(e,r,o){if(qo(r))return r;var n=r[H];if(!n)return mt(r,function(d,f){return Ss(e,n,r,d,f,o)},!0),r;if(n.A!==e)return r;if(!n.P)return Fr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Ko(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),mt(i,function(d,f){return Ss(e,n,a,d,f,o,c)}),Fr(e,a,!1),o&&e.u&&Pe("Patches").N(n,o,e.u,e.s)}return n.o}function Ss(e,r,o,n,a,i,c){if(Fe(a)){var d=Wr(e,a,i&&r&&r.i!==3&&!Dt(r.R,n)?i.concat(n):void 0);if(Ns(o,n,d),!Fe(d))return;e.m=!1}else c&&o.add(a);if(Ce(a)&&!qo(a)){if(!e.h.D&&e._<1)return;Wr(e,a),r&&r.A.l||Fr(e,a)}}function Fr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Zo(r,o)}function $o(e,r){var o=e[H];return(o?Je(o):e)[r]}function Os(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function et(e){e.P||(e.P=!0,e.l&&et(e.l))}function Wo(e){e.o||(e.o=Ko(e.t))}function zo(e,r,o){var n=jo(r)?Pe("MapSet").F(r,o):Vo(r)?Pe("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),d={i:c?1:0,A:i?i.A:Fo(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=d,u=sr;c&&(f=[d],u=ar);var y=Proxy.revocable(f,u),h=y.revoke,g=y.proxy;return d.k=g,d.j=h,g}(r,o):Pe("ES5").J(r,o);return(o?o.A:Fo()).p.push(n),n}function Xc(e){return Fe(e)||be(22,e),function r(o){if(!Ce(o))return o;var n,a=o[H],i=Ut(o);if(a){if(!a.P&&(a.i<4||!Pe("ES5").K(a)))return a.t;a.I=!0,n=Cs(o,i),a.I=!1}else n=Cs(o,i);return mt(n,function(c,d){a&&Kc(a.t,c)===d||Ns(n,c,r(d))}),i===3?new Set(n):n}(e)}function Cs(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return Ko(e)}function Ls(){function e(c,d){var f=i[c];return f?f.enumerable=d:i[c]=f={configurable:!0,enumerable:d,get:function(){var u=this[H];return sr.get(u,c)},set:function(u){var y=this[H];sr.set(y,c,u)}},f}function r(c){for(var d=c.length-1;d>=0;d--){var f=c[d][H];if(!f.P)switch(f.i){case 5:n(f)&&et(f);break;case 4:o(f)&&et(f)}}}function o(c){for(var d=c.t,f=c.k,u=Bt(f),y=u.length-1;y>=0;y--){var h=u[y];if(h!==H){var g=d[h];if(g===void 0&&!Dt(d,h))return!0;var v=f[h],x=v&&v[H];if(x?x.t!==g:!Rs(v,g))return!0}}var S=!!d[H];return u.length!==Bt(d).length+(S?0:1)}function n(c){var d=c.k;if(d.length!==c.t.length)return!0;var f=Object.getOwnPropertyDescriptor(d,d.length-1);if(f&&!f.get)return!0;for(var u=0;u<d.length;u++)if(!d.hasOwnProperty(u))return!0;return!1}function a(c){c.g&&be(3,JSON.stringify(Je(c)))}var i={};qc("ES5",{J:function(c,d){var f=Array.isArray(c),u=function(h,g){if(h){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var S=Ps(g);delete S[H];for(var L=Bt(S),N=0;N<L.length;N++){var R=L[N];S[R]=e(R,h||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(f,c),y={i:f?5:4,A:d?d.A:Fo(),P:!1,I:!1,R:{},l:d,t:c,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,H,{value:y,writable:!0}),u},S:function(c,d,f){f?Fe(d)&&d[H].A===c&&r(c.p):(c.u&&function u(y){if(y&&typeof y=="object"){var h=y[H];if(h){var g=h.t,v=h.k,x=h.R,S=h.i;if(S===4)mt(v,function(B){B!==H&&(g[B]!==void 0||Dt(g,B)?x[B]||u(v[B]):(x[B]=!0,et(h)))}),mt(g,function(B){v[B]!==void 0||Dt(v,B)||(x[B]=!1,et(h))});else if(S===5){if(n(h)&&(et(h),x.length=!0),v.length<g.length)for(var L=v.length;L<g.length;L++)x[L]=!1;else for(var N=g.length;N<v.length;N++)x[N]=!0;for(var R=Math.min(v.length,g.length),T=0;T<R;T++)v.hasOwnProperty(T)||(x[T]=!0),x[T]===void 0&&u(v[T])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Es,ir,Yo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Qc=typeof Map<"u",Jc=typeof Set<"u",ws=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Is=Yo?Symbol.for("immer-nothing"):((Es={})["immer-nothing"]=!0,Es),As=Yo?Symbol.for("immer-draftable"):"__$immer_draftable",H=Yo?Symbol.for("immer-state"):"__$immer_state";var el=""+Object.prototype.constructor,Bt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Ps=Object.getOwnPropertyDescriptors||function(e){var r={};return Bt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},Go={},sr={get:function(e,r){if(r===H)return e;var o=Je(e);if(!Dt(o,r))return function(a,i,c){var d,f=Os(i,c);return f?"value"in f?f.value:(d=f.get)===null||d===void 0?void 0:d.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Ce(n)?n:n===$o(e.t,r)?(Wo(e),e.o[r]=zo(e.A.h,n,e)):n},has:function(e,r){return r in Je(e)},ownKeys:function(e){return Reflect.ownKeys(Je(e))},set:function(e,r,o){var n=Os(Je(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=$o(Je(e),r),i=a?.[H];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(Rs(o,a)&&(o!==void 0||Dt(e.t,r)))return!0;Wo(e),et(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return $o(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,Wo(e),et(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=Je(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){be(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){be(12)}},ar={};mt(sr,function(e,r){ar[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),ar.deleteProperty=function(e,r){return ar.set.call(this,e,r,void 0)},ar.set=function(e,r,o){return sr.set.call(this,e[0],r,o,e[0])};var tl=function(){function e(o){var n=this;this.O=ws,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var d=i;i=a;var f=n;return function(S){var L=this;S===void 0&&(S=d);for(var N=arguments.length,R=Array(N>1?N-1:0),T=1;T<N;T++)R[T-1]=arguments[T];return f.produce(S,function(B){var U;return(U=i).call.apply(U,[L,B].concat(R))})}}var u;if(typeof i!="function"&&be(6),c!==void 0&&typeof c!="function"&&be(7),Ce(a)){var y=vs(n),h=zo(n,a,void 0),g=!0;try{u=i(h),g=!1}finally{g?$r(y):Ho(y)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return Uo(y,c),Mo(S,y)},function(S){throw $r(y),S}):(Uo(y,c),Mo(u,y))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Is&&(u=void 0),n.D&&Zo(u,!0),c){var v=[],x=[];Pe("Patches").M(a,u,v,x),c(v,x)}return u}be(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var y=arguments.length,h=Array(y>1?y-1:0),g=1;g<y;g++)h[g-1]=arguments[g];return n.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(h))})};var c,d,f=n.produce(a,i,function(u,y){c=u,d=y});return typeof Promise<"u"&&f instanceof Promise?f.then(function(u){return[u,c,d]}):[f,c,d]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){Ce(o)||be(8),Fe(o)&&(o=Xc(o));var n=vs(this),a=zo(this,o,void 0);return a[H].C=!0,Ho(n),a},r.finishDraft=function(o,n){var a=o&&o[H],i=a.A;return Uo(i,n),Mo(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!ws&&be(20),this.O=o},r.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Pe("Patches").$;return Fe(o)?c(o,n):this.produce(o,function(d){return c(d,n)})},e}(),ye=new tl,rl=ye.produce,Xm=ye.produceWithPatches.bind(ye),Qm=ye.setAutoFreeze.bind(ye),Jm=ye.setUseProxies.bind(ye),eg=ye.applyPatches.bind(ye),tg=ye.createDraft.bind(ye),rg=ye.finishDraft.bind(ye),Hr=rl;function tt(e){"@babel/helpers - typeof";return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},tt(e)}function Xo(e,r){if(tt(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(tt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Qo(e){var r=Xo(e,"string");return tt(r)==="symbol"?r:String(r)}function Jo(e,r,o){return r=Qo(r),r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function Ts(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function zr(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Ts(Object(o),!0).forEach(function(n){Jo(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ts(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ie(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 _s=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),en=function(){return Math.random().toString(36).substring(7).split("").join(".")},Gr={INIT:"@@redux/INIT"+en(),REPLACE:"@@redux/REPLACE"+en(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+en()}};function ol(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function tn(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ie(1));return o(tn)(e,r)}if(typeof e!="function")throw new Error(ie(2));var a=e,i=r,c=[],d=c,f=!1;function u(){d===c&&(d=c.slice())}function y(){if(f)throw new Error(ie(3));return i}function h(S){if(typeof S!="function")throw new Error(ie(4));if(f)throw new Error(ie(5));var L=!0;return u(),d.push(S),function(){if(L){if(f)throw new Error(ie(6));L=!1,u();var R=d.indexOf(S);d.splice(R,1),c=null}}}function g(S){if(!ol(S))throw new Error(ie(7));if(typeof S.type>"u")throw new Error(ie(8));if(f)throw new Error(ie(9));try{f=!0,i=a(i,S)}finally{f=!1}for(var L=c=d,N=0;N<L.length;N++){var R=L[N];R()}return S}function v(S){if(typeof S!="function")throw new Error(ie(10));a=S,g({type:Gr.REPLACE})}function x(){var S,L=h;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(ie(11));function T(){R.next&&R.next(y())}T();var B=L(T);return{unsubscribe:B}}},S[_s]=function(){return this},S}return g({type:Gr.INIT}),n={dispatch:g,subscribe:h,getState:y,replaceReducer:v},n[_s]=x,n}function nl(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:Gr.INIT});if(typeof n>"u")throw new Error(ie(12));if(typeof o(void 0,{type:Gr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function ks(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,d;try{nl(o)}catch(f){d=f}return function(u,y){if(u===void 0&&(u={}),d)throw d;if(0)var h;for(var g=!1,v={},x=0;x<i.length;x++){var S=i[x],L=o[S],N=u[S],R=L(N,y);if(typeof R>"u"){var T=y&&y.type;throw new Error(ie(14))}v[S]=R,g=g||R!==N}return g=g||i.length!==Object.keys(u).length,g?v:u}}function Mt(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Ds(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ie(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},d=r.map(function(f){return f(c)});return i=Mt.apply(void 0,d)(a.dispatch),zr(zr({},a),{},{dispatch:i})}}}function Bs(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(d){return typeof d=="function"?d(a,i,e):c(d)}}};return r}var Us=Bs();Us.withExtraArgument=Bs;var rn=Us;var Hs=function(){var e=function(r,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),al=function(e,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(u){return function(y){return f([u,y])}}function f(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=r.call(e,o)}catch(y){u=[6,y],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},$t=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},il=Object.defineProperty,sl=Object.defineProperties,cl=Object.getOwnPropertyDescriptors,Ms=Object.getOwnPropertySymbols,ll=Object.prototype.hasOwnProperty,dl=Object.prototype.propertyIsEnumerable,$s=function(e,r,o){return r in e?il(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},rt=function(e,r){for(var o in r||(r={}))ll.call(r,o)&&$s(e,o,r[o]);if(Ms)for(var n=0,a=Ms(r);n<a.length;n++){var o=a[n];dl.call(r,o)&&$s(e,o,r[o])}return e},on=function(e,r){return sl(e,cl(r))},ul=function(e,r,o){return new Promise(function(n,a){var i=function(f){try{d(o.next(f))}catch(u){a(u)}},c=function(f){try{d(o.throw(f))}catch(u){a(u)}},d=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,c)};d((o=o.apply(e,r)).next())})};var fl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Mt:Mt.apply(null,arguments)},vg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function pl(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var hl=function(e){Hs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array),yl=function(e){Hs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array);function sn(e){return Ce(e)?Hr(e,function(){}):e}function ml(e){return typeof e=="boolean"}function gl(){return function(r){return bl(r)}}function bl(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,d=new hl;if(o&&(ml(o)?d.push(rn):d.push(rn.withExtraArgument(o.extraArgument))),0){if(a)var f;if(c)var u}return d}var nn=!0;function zs(e){var r=gl(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,d=o.devTools,f=d===void 0?!0:d,u=o.preloadedState,y=u===void 0?void 0:u,h=o.enhancers,g=h===void 0?void 0:h,v;if(typeof a=="function")v=a;else if(pl(a))v=ks(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=c;if(typeof x=="function"&&(x=x(r),!nn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!nn&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Ds.apply(void 0,x),L=Mt;f&&(L=fl(rt({trace:!nn},typeof f=="object"&&f)));var N=new yl(S),R=N;Array.isArray(g)?R=$t([S],g):typeof g=="function"&&(R=g(N));var T=L.apply(void 0,R);return tn(v,y,T)}function ot(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return rt(rt({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Gs(e){var r={},o=[],n,a={addCase:function(i,c){var d=typeof i=="string"?i:i.type;if(d in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[d]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function xl(e){return typeof e=="function"}function vl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?Gs(r):[r,o,n],i=a[0],c=a[1],d=a[2],f;if(xl(e))f=function(){return sn(e())};else{var u=sn(e);f=function(){return u}}function y(h,g){h===void 0&&(h=f());var v=$t([i[g.type]],c.filter(function(x){var S=x.matcher;return S(g)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[d]),v.reduce(function(x,S){if(S)if(Fe(x)){var L=x,N=S(L,g);return N===void 0?x:N}else{if(Ce(x))return Hr(x,function(R){return S(R,g)});var N=S(x,g);if(N===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return x},h)}return y.getInitialState=f,y}function Sl(e,r){return e+"/"+r}function js(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:sn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},d={};a.forEach(function(y){var h=n[y],g=Sl(r,y),v,x;"reducer"in h?(v=h.reducer,x=h.prepare):v=h,i[y]=v,c[g]=v,d[y]=x?ot(g,x):ot(g)});function f(){var y=typeof e.extraReducers=="function"?Gs(e.extraReducers):[e.extraReducers],h=y[0],g=h===void 0?{}:h,v=y[1],x=v===void 0?[]:v,S=y[2],L=S===void 0?void 0:S,N=rt(rt({},g),c);return vl(o,function(R){for(var T in N)R.addCase(T,N[T]);for(var B=0,U=x;B<U.length;B++){var le=U[B];R.addMatcher(le.matcher,le.reducer)}L&&R.addDefaultCase(L)})}var u;return{name:r,reducer:function(y,h){return u||(u=f()),u(y,h)},actions:d,caseReducers:i,getInitialState:function(){return u||(u=f()),u.getInitialState()}}}var Ol="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Cl=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=Ol[Math.random()*64|0];return r},El=["name","message","stack","code"],an=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Ws=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),wl=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=El;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},Eg=function(){function e(r,o,n){var a=ot(r+"/fulfilled",function(y,h,g,v){return{payload:y,meta:on(rt({},v||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),i=ot(r+"/pending",function(y,h,g){return{payload:void 0,meta:on(rt({},g||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),c=ot(r+"/rejected",function(y,h,g,v,x){return{payload:v,error:(n&&n.serializeError||wl)(y||"Rejected"),meta:on(rt({},x||{}),{arg:g,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),d=!1,f=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function u(y){return function(h,g,v){var x=n?.idGenerator?n.idGenerator(y):Cl(),S=new f,L,N=!1;function R(B){L=B,S.abort()}var T=function(){return ul(this,null,function(){var B,U,le,we,se,Ae,ee;return al(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),we=(B=n?.condition)==null?void 0:B.call(n,y,{getState:g,extra:v}),Nl(we)?[4,we]:[3,2];case 1:we=m.sent(),m.label=2;case 2:if(we===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,se=new Promise(function(b,P){return S.signal.addEventListener("abort",function(){return P({name:"AbortError",message:L||"Aborted"})})}),h(i(x,y,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:y},{getState:g,extra:v}))),[4,Promise.race([se,Promise.resolve(o(y,{dispatch:h,getState:g,extra:v,requestId:x,signal:S.signal,abort:R,rejectWithValue:function(b,P){return new an(b,P)},fulfillWithValue:function(b,P){return new Ws(b,P)}})).then(function(b){if(b instanceof an)throw b;return b instanceof Ws?a(b.payload,x,y,b.meta):a(b,x,y)})])];case 3:return le=m.sent(),[3,5];case 4:return Ae=m.sent(),le=Ae instanceof an?c(null,x,y,Ae.payload,Ae.meta):c(Ae,x,y),[3,5];case 5:return ee=n&&!n.dispatchConditionRejection&&c.match(le)&&le.meta.condition,ee||h(le),[2,le]}})})}();return Object.assign(T,{abort:R,requestId:x,arg:y,unwrap:function(){return T.then(Al)}})}}return Object.assign(u,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function Al(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Nl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Vs="listener",Ks="completed",Zs="cancelled",wg="task-"+Zs,Ag="task-"+Ks,Ng=Vs+"-"+Zs,Rg=Vs+"-"+Ks;var cn="listenerMiddleware";var Lg=ot(cn+"/add"),Ig=ot(cn+"/removeAll"),Pg=ot(cn+"/remove");var Fs,Tg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Fs||(Fs=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},Rl=function(e){return function(r){setTimeout(r,e)}},_g=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Rl(10);Ls();function Ll(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var jr=class extends Ll(Object){};window.ftReduxStores||(window.ftReduxStores={});var qs=class e extends jr{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(rr(i))return i;if(a==null)return;let c=js({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),d=zs({reducer:(f,u)=>u.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...u.overwrites}:c.reducer(f,u)});return window.ftReduxStores[a.name]=new e(c,d)}constructor(r,o){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new kr;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,i,c)=>{let d=i,f=a[d];return f?(...u)=>{let y=f(...u.map(n));return this.reduxStore.dispatch(y),y}:u=>{this.setState({[d]:n(u)})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var qr=C(k());var Vr=class extends We{async listMySearches(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var Kr=class extends We{async listMyBookmarks(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var Pl="ft-user-assets",Zr=qr.FtReduxStore.get({name:Pl,initialState:{savedSearches:void 0,bookmarks:void 0}}),ln=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Kr,this.savedSearchesService=new Vr,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=_.getState();(0,qr.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Zr.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Zr.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();Zr.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Zr.actions.bookmarks(o)}}},hb=new ln;var dn=class{addCommand(r,o=!1){_.commands.add(r,o)}consumeCommand(r){return _.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new dn;var Ys=C(k()),un=class{highlightHtml(r,o,n){(0,Ys.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new un;var Xs=C(k());var fn=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return Xs.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new fn;var Tl=C(k());(0,Qs.customElement)("ft-app-context")(K);var pn=class e extends Event{constructor(){super(e.eventName)}};pn.eventName="search-context-clear-all-filters";var _l=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},yn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},hn=Symbol("registerInterval");function kl(e){var r;class o extends e{constructor(){super(...arguments),this[r]=0}setSearchStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[hn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[hn]):this.dispatchEvent(new yn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return r=hn,_l([(0,ec.state)()],o.prototype,"stateManager",void 0),o}var Xr=class extends kl(Js.FtLitElementRedux){};var ac=C(k());var ro=C(G()),oo=C(ne()),no=C(k());var tc=C(G());var rc=tc.css`
1060
+ `}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&_.actions.noCustom(this.noCustom),r.has("editorMode")&&_.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&_.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>ht.addContext(d)),r.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};K.elementDefinitions={};K.styles=ns;ae([(0,pe.property)()],K.prototype,"baseUrl",void 0);ae([(0,pe.property)()],K.prototype,"apiIntegrationIdentifier",void 0);ae([(0,pe.property)()],K.prototype,"uiLocale",void 0);ae([(0,Oe.jsonProperty)(null)],K.prototype,"availableUiLocales",void 0);ae([(0,Oe.jsonProperty)(null)],K.prototype,"metadataConfiguration",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"editorMode",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"noCustom",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,pe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],K.prototype,"noCustomComponent",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"withManualResources",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"navigatorOnline",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"forcedOffline",void 0);ae([(0,pe.property)({type:Object})],K.prototype,"apiProvider",void 0);ae([(0,Oe.jsonProperty)([])],K.prototype,"messageContexts",void 0);ae([(0,Oe.jsonProperty)(void 0)],K.prototype,"session",void 0);ae([(0,pe.state)()],K.prototype,"localesConfiguration",void 0);var Il=C(ne());function Gc(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Tr(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!Tr(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();let i=c=>Object.keys(c).filter(d=>c[d]!=null);if(a=i(e),o=a.length,o!==i(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Tr(e[c],r[c]))return!1}return!0}return e!==e&&r!==r||e==null&&r==null}function Tr(e,r){try{return Gc(e,r)}catch{return!1}}function _r(e,r){return!Tr(e,r)}var jc=C(ne(),1);var kr=class{constructor(){this.queue=[]}add(r,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==r.type)),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var tr=C(ne(),1);var cs=C(ne(),1);function ls(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,cs.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:_r,...r??{}})}var Dr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);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 us=C(G(),1);var Br=window,Vc=Br.ShadowRoot&&(Br.ShadyCSS===void 0||Br.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$m=Symbol();var ds=(e,r)=>{Vc?e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):r.forEach(o=>{let n=document.createElement("style"),a=Br.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)})};var Ur=class extends us.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return ds(n,r.elementStyles),n}};var Mr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ys,fs=Symbol("constructorPrototype"),ps=Symbol("constructorName"),ms=Symbol("exportpartsDebouncer"),hs=Symbol("dynamicDependenciesLoaded"),Xe=class extends Ur{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ys]=new Dr(5),this[ps]=this.constructor.name,this[fs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ps]&&Object.setPrototypeOf(this,this[fs])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[hs]||(r[hs]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate()})}contentAvailableCallback(r){}applyCustomStylesheet(r){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(r.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}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)}}scheduleExportpartsUpdate(){var r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[ms].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(r){var o,n,a,i,c,d;let f=g=>g!=null&&g.trim().length>0,u=r.filter(f).map(g=>g.trim());if(u.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(d=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...v,...x).filter(f).map(S=>S.trim()).forEach(S=>y.add(S))}if(y.size===0){this.removeAttribute("exportparts");return}let h=[...y.values()].flatMap(g=>u.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};ys=ms;Mr([(0,tr.property)()],Xe.prototype,"exportpartsPrefix",void 0);Mr([ls([])],Xe.prototype,"exportpartsPrefixes",void 0);Mr([(0,tr.property)()],Xe.prototype,"customStylesheet",void 0);Mr([(0,tr.state)()],Xe.prototype,"useAdoptedStyleSheets",void 0);function rr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var gs,bs,xs,or=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),yt=Symbol("internalStores"),nr=class extends Xe{constructor(){super(...arguments),this[gs]=new Map,this[bs]=new Map,this[xs]=new Map}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[yt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[yt].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[yt].get(r)}addStore(r,o){var n;o=(n=o??(rr(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[yt].set(o,r),this.subscribeToStore(o,r),this.updateFromStores()}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[yt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[yt].forEach((r,o)=>this.subscribeToStore(o,r)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((r,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(r.store);a&&(r.store?this[Qe].has(r.store):this[Qe].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[Qe].set(r,o.subscribe(()=>this.updateFromStores())),this[or].set(r,[]),rr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=d=>this[i](d);o.addEventListener(a.eventName,c),this[or].get(r).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[Qe].forEach((r,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(r){var o;this[Qe].has(r)&&this[Qe].get(r)(),this[Qe].delete(r),(o=this[or].get(r))===null||o===void 0||o.forEach(n=>n()),this[or].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};gs=Qe,bs=yt,xs=or;nr.reduxProperties=new Map;nr.reduxReactiveProperties=new Set;nr.reduxEventListeners=new Map;function be(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Fe(e){return!!e&&!!e[H]}function Ce(e){var r;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===el}(e)||Array.isArray(e)||!!e[As]||!!(!((r=e.constructor)===null||r===void 0)&&r[As])||jo(e)||Vo(e))}function mt(e,r,o){o===void 0&&(o=!1),Ut(e)===0?(o?Object.keys:Bt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Ut(e){var r=e[H];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:jo(e)?2:Vo(e)?3:0}function Dt(e,r){return Ut(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Kc(e,r){return Ut(e)===2?e.get(r):e[r]}function Ns(e,r,o){var n=Ut(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function Rs(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function jo(e){return Qc&&e instanceof Map}function Vo(e){return Jc&&e instanceof Set}function Je(e){return e.o||e.t}function Ko(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Ps(e);delete r[H];for(var o=Bt(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function Zo(e,r){return r===void 0&&(r=!1),qo(e)||Fe(e)||!Ce(e)||(Ut(e)>1&&(e.set=e.add=e.clear=e.delete=Zc),Object.freeze(e),r&&mt(e,function(o,n){return Zo(n,!0)},!0)),e}function Zc(){be(2)}function qo(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pe(e){var r=Go[e];return r||be(18,e),r}function qc(e,r){Go[e]||(Go[e]=r)}function Fo(){return ir}function Uo(e,r){r&&(Pe("Patches"),e.u=[],e.s=[],e.v=r)}function $r(e){Ho(e),e.p.forEach(Yc),e.p=null}function Ho(e){e===ir&&(ir=e.l)}function vs(e){return ir={p:[],l:ir,h:e,m:!0,_:0}}function Yc(e){var r=e[H];r.i===0||r.i===1?r.j():r.g=!0}function Mo(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||Pe("ES5").S(r,e,n),n?(o[H].P&&($r(r),be(4)),Ce(e)&&(e=Wr(r,e),r.l||Fr(r,e)),r.u&&Pe("Patches").M(o[H].t,e,r.u,r.s)):e=Wr(r,o,[]),$r(r),r.u&&r.v(r.u,r.s),e!==Is?e:void 0}function Wr(e,r,o){if(qo(r))return r;var n=r[H];if(!n)return mt(r,function(d,f){return Ss(e,n,r,d,f,o)},!0),r;if(n.A!==e)return r;if(!n.P)return Fr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Ko(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),mt(i,function(d,f){return Ss(e,n,a,d,f,o,c)}),Fr(e,a,!1),o&&e.u&&Pe("Patches").N(n,o,e.u,e.s)}return n.o}function Ss(e,r,o,n,a,i,c){if(Fe(a)){var d=Wr(e,a,i&&r&&r.i!==3&&!Dt(r.R,n)?i.concat(n):void 0);if(Ns(o,n,d),!Fe(d))return;e.m=!1}else c&&o.add(a);if(Ce(a)&&!qo(a)){if(!e.h.D&&e._<1)return;Wr(e,a),r&&r.A.l||Fr(e,a)}}function Fr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Zo(r,o)}function $o(e,r){var o=e[H];return(o?Je(o):e)[r]}function Os(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function et(e){e.P||(e.P=!0,e.l&&et(e.l))}function Wo(e){e.o||(e.o=Ko(e.t))}function zo(e,r,o){var n=jo(r)?Pe("MapSet").F(r,o):Vo(r)?Pe("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),d={i:c?1:0,A:i?i.A:Fo(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=d,u=sr;c&&(f=[d],u=ar);var y=Proxy.revocable(f,u),h=y.revoke,g=y.proxy;return d.k=g,d.j=h,g}(r,o):Pe("ES5").J(r,o);return(o?o.A:Fo()).p.push(n),n}function Xc(e){return Fe(e)||be(22,e),function r(o){if(!Ce(o))return o;var n,a=o[H],i=Ut(o);if(a){if(!a.P&&(a.i<4||!Pe("ES5").K(a)))return a.t;a.I=!0,n=Cs(o,i),a.I=!1}else n=Cs(o,i);return mt(n,function(c,d){a&&Kc(a.t,c)===d||Ns(n,c,r(d))}),i===3?new Set(n):n}(e)}function Cs(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return Ko(e)}function Ls(){function e(c,d){var f=i[c];return f?f.enumerable=d:i[c]=f={configurable:!0,enumerable:d,get:function(){var u=this[H];return sr.get(u,c)},set:function(u){var y=this[H];sr.set(y,c,u)}},f}function r(c){for(var d=c.length-1;d>=0;d--){var f=c[d][H];if(!f.P)switch(f.i){case 5:n(f)&&et(f);break;case 4:o(f)&&et(f)}}}function o(c){for(var d=c.t,f=c.k,u=Bt(f),y=u.length-1;y>=0;y--){var h=u[y];if(h!==H){var g=d[h];if(g===void 0&&!Dt(d,h))return!0;var v=f[h],x=v&&v[H];if(x?x.t!==g:!Rs(v,g))return!0}}var S=!!d[H];return u.length!==Bt(d).length+(S?0:1)}function n(c){var d=c.k;if(d.length!==c.t.length)return!0;var f=Object.getOwnPropertyDescriptor(d,d.length-1);if(f&&!f.get)return!0;for(var u=0;u<d.length;u++)if(!d.hasOwnProperty(u))return!0;return!1}function a(c){c.g&&be(3,JSON.stringify(Je(c)))}var i={};qc("ES5",{J:function(c,d){var f=Array.isArray(c),u=function(h,g){if(h){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var S=Ps(g);delete S[H];for(var L=Bt(S),N=0;N<L.length;N++){var R=L[N];S[R]=e(R,h||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(f,c),y={i:f?5:4,A:d?d.A:Fo(),P:!1,I:!1,R:{},l:d,t:c,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,H,{value:y,writable:!0}),u},S:function(c,d,f){f?Fe(d)&&d[H].A===c&&r(c.p):(c.u&&function u(y){if(y&&typeof y=="object"){var h=y[H];if(h){var g=h.t,v=h.k,x=h.R,S=h.i;if(S===4)mt(v,function(B){B!==H&&(g[B]!==void 0||Dt(g,B)?x[B]||u(v[B]):(x[B]=!0,et(h)))}),mt(g,function(B){v[B]!==void 0||Dt(v,B)||(x[B]=!1,et(h))});else if(S===5){if(n(h)&&(et(h),x.length=!0),v.length<g.length)for(var L=v.length;L<g.length;L++)x[L]=!1;else for(var N=g.length;N<v.length;N++)x[N]=!0;for(var R=Math.min(v.length,g.length),T=0;T<R;T++)v.hasOwnProperty(T)||(x[T]=!0),x[T]===void 0&&u(v[T])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Es,ir,Yo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Qc=typeof Map<"u",Jc=typeof Set<"u",ws=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Is=Yo?Symbol.for("immer-nothing"):((Es={})["immer-nothing"]=!0,Es),As=Yo?Symbol.for("immer-draftable"):"__$immer_draftable",H=Yo?Symbol.for("immer-state"):"__$immer_state";var el=""+Object.prototype.constructor,Bt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Ps=Object.getOwnPropertyDescriptors||function(e){var r={};return Bt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},Go={},sr={get:function(e,r){if(r===H)return e;var o=Je(e);if(!Dt(o,r))return function(a,i,c){var d,f=Os(i,c);return f?"value"in f?f.value:(d=f.get)===null||d===void 0?void 0:d.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Ce(n)?n:n===$o(e.t,r)?(Wo(e),e.o[r]=zo(e.A.h,n,e)):n},has:function(e,r){return r in Je(e)},ownKeys:function(e){return Reflect.ownKeys(Je(e))},set:function(e,r,o){var n=Os(Je(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=$o(Je(e),r),i=a?.[H];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(Rs(o,a)&&(o!==void 0||Dt(e.t,r)))return!0;Wo(e),et(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return $o(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,Wo(e),et(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=Je(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){be(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){be(12)}},ar={};mt(sr,function(e,r){ar[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),ar.deleteProperty=function(e,r){return ar.set.call(this,e,r,void 0)},ar.set=function(e,r,o){return sr.set.call(this,e[0],r,o,e[0])};var tl=function(){function e(o){var n=this;this.O=ws,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var d=i;i=a;var f=n;return function(S){var L=this;S===void 0&&(S=d);for(var N=arguments.length,R=Array(N>1?N-1:0),T=1;T<N;T++)R[T-1]=arguments[T];return f.produce(S,function(B){var U;return(U=i).call.apply(U,[L,B].concat(R))})}}var u;if(typeof i!="function"&&be(6),c!==void 0&&typeof c!="function"&&be(7),Ce(a)){var y=vs(n),h=zo(n,a,void 0),g=!0;try{u=i(h),g=!1}finally{g?$r(y):Ho(y)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return Uo(y,c),Mo(S,y)},function(S){throw $r(y),S}):(Uo(y,c),Mo(u,y))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Is&&(u=void 0),n.D&&Zo(u,!0),c){var v=[],x=[];Pe("Patches").M(a,u,v,x),c(v,x)}return u}be(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var y=arguments.length,h=Array(y>1?y-1:0),g=1;g<y;g++)h[g-1]=arguments[g];return n.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(h))})};var c,d,f=n.produce(a,i,function(u,y){c=u,d=y});return typeof Promise<"u"&&f instanceof Promise?f.then(function(u){return[u,c,d]}):[f,c,d]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){Ce(o)||be(8),Fe(o)&&(o=Xc(o));var n=vs(this),a=zo(this,o,void 0);return a[H].C=!0,Ho(n),a},r.finishDraft=function(o,n){var a=o&&o[H],i=a.A;return Uo(i,n),Mo(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!ws&&be(20),this.O=o},r.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Pe("Patches").$;return Fe(o)?c(o,n):this.produce(o,function(d){return c(d,n)})},e}(),ye=new tl,rl=ye.produce,Xm=ye.produceWithPatches.bind(ye),Qm=ye.setAutoFreeze.bind(ye),Jm=ye.setUseProxies.bind(ye),eg=ye.applyPatches.bind(ye),tg=ye.createDraft.bind(ye),rg=ye.finishDraft.bind(ye),Hr=rl;function tt(e){"@babel/helpers - typeof";return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},tt(e)}function Xo(e,r){if(tt(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(tt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Qo(e){var r=Xo(e,"string");return tt(r)==="symbol"?r:String(r)}function Jo(e,r,o){return r=Qo(r),r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function Ts(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function zr(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Ts(Object(o),!0).forEach(function(n){Jo(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ts(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ie(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 _s=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),en=function(){return Math.random().toString(36).substring(7).split("").join(".")},Gr={INIT:"@@redux/INIT"+en(),REPLACE:"@@redux/REPLACE"+en(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+en()}};function ol(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function tn(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ie(1));return o(tn)(e,r)}if(typeof e!="function")throw new Error(ie(2));var a=e,i=r,c=[],d=c,f=!1;function u(){d===c&&(d=c.slice())}function y(){if(f)throw new Error(ie(3));return i}function h(S){if(typeof S!="function")throw new Error(ie(4));if(f)throw new Error(ie(5));var L=!0;return u(),d.push(S),function(){if(L){if(f)throw new Error(ie(6));L=!1,u();var R=d.indexOf(S);d.splice(R,1),c=null}}}function g(S){if(!ol(S))throw new Error(ie(7));if(typeof S.type>"u")throw new Error(ie(8));if(f)throw new Error(ie(9));try{f=!0,i=a(i,S)}finally{f=!1}for(var L=c=d,N=0;N<L.length;N++){var R=L[N];R()}return S}function v(S){if(typeof S!="function")throw new Error(ie(10));a=S,g({type:Gr.REPLACE})}function x(){var S,L=h;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(ie(11));function T(){R.next&&R.next(y())}T();var B=L(T);return{unsubscribe:B}}},S[_s]=function(){return this},S}return g({type:Gr.INIT}),n={dispatch:g,subscribe:h,getState:y,replaceReducer:v},n[_s]=x,n}function nl(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:Gr.INIT});if(typeof n>"u")throw new Error(ie(12));if(typeof o(void 0,{type:Gr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function ks(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,d;try{nl(o)}catch(f){d=f}return function(u,y){if(u===void 0&&(u={}),d)throw d;if(0)var h;for(var g=!1,v={},x=0;x<i.length;x++){var S=i[x],L=o[S],N=u[S],R=L(N,y);if(typeof R>"u"){var T=y&&y.type;throw new Error(ie(14))}v[S]=R,g=g||R!==N}return g=g||i.length!==Object.keys(u).length,g?v:u}}function Mt(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Ds(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ie(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},d=r.map(function(f){return f(c)});return i=Mt.apply(void 0,d)(a.dispatch),zr(zr({},a),{},{dispatch:i})}}}function Bs(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(d){return typeof d=="function"?d(a,i,e):c(d)}}};return r}var Us=Bs();Us.withExtraArgument=Bs;var rn=Us;var Hs=function(){var e=function(r,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),al=function(e,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(u){return function(y){return f([u,y])}}function f(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=r.call(e,o)}catch(y){u=[6,y],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},$t=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},il=Object.defineProperty,sl=Object.defineProperties,cl=Object.getOwnPropertyDescriptors,Ms=Object.getOwnPropertySymbols,ll=Object.prototype.hasOwnProperty,dl=Object.prototype.propertyIsEnumerable,$s=function(e,r,o){return r in e?il(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},rt=function(e,r){for(var o in r||(r={}))ll.call(r,o)&&$s(e,o,r[o]);if(Ms)for(var n=0,a=Ms(r);n<a.length;n++){var o=a[n];dl.call(r,o)&&$s(e,o,r[o])}return e},on=function(e,r){return sl(e,cl(r))},ul=function(e,r,o){return new Promise(function(n,a){var i=function(f){try{d(o.next(f))}catch(u){a(u)}},c=function(f){try{d(o.throw(f))}catch(u){a(u)}},d=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,c)};d((o=o.apply(e,r)).next())})};var fl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Mt:Mt.apply(null,arguments)},vg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function pl(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var hl=function(e){Hs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array),yl=function(e){Hs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array);function sn(e){return Ce(e)?Hr(e,function(){}):e}function ml(e){return typeof e=="boolean"}function gl(){return function(r){return bl(r)}}function bl(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,d=new hl;if(o&&(ml(o)?d.push(rn):d.push(rn.withExtraArgument(o.extraArgument))),0){if(a)var f;if(c)var u}return d}var nn=!0;function zs(e){var r=gl(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,d=o.devTools,f=d===void 0?!0:d,u=o.preloadedState,y=u===void 0?void 0:u,h=o.enhancers,g=h===void 0?void 0:h,v;if(typeof a=="function")v=a;else if(pl(a))v=ks(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=c;if(typeof x=="function"&&(x=x(r),!nn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!nn&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Ds.apply(void 0,x),L=Mt;f&&(L=fl(rt({trace:!nn},typeof f=="object"&&f)));var N=new yl(S),R=N;Array.isArray(g)?R=$t([S],g):typeof g=="function"&&(R=g(N));var T=L.apply(void 0,R);return tn(v,y,T)}function ot(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return rt(rt({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Gs(e){var r={},o=[],n,a={addCase:function(i,c){var d=typeof i=="string"?i:i.type;if(d in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[d]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function xl(e){return typeof e=="function"}function vl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?Gs(r):[r,o,n],i=a[0],c=a[1],d=a[2],f;if(xl(e))f=function(){return sn(e())};else{var u=sn(e);f=function(){return u}}function y(h,g){h===void 0&&(h=f());var v=$t([i[g.type]],c.filter(function(x){var S=x.matcher;return S(g)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[d]),v.reduce(function(x,S){if(S)if(Fe(x)){var L=x,N=S(L,g);return N===void 0?x:N}else{if(Ce(x))return Hr(x,function(R){return S(R,g)});var N=S(x,g);if(N===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return x},h)}return y.getInitialState=f,y}function Sl(e,r){return e+"/"+r}function js(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:sn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},d={};a.forEach(function(y){var h=n[y],g=Sl(r,y),v,x;"reducer"in h?(v=h.reducer,x=h.prepare):v=h,i[y]=v,c[g]=v,d[y]=x?ot(g,x):ot(g)});function f(){var y=typeof e.extraReducers=="function"?Gs(e.extraReducers):[e.extraReducers],h=y[0],g=h===void 0?{}:h,v=y[1],x=v===void 0?[]:v,S=y[2],L=S===void 0?void 0:S,N=rt(rt({},g),c);return vl(o,function(R){for(var T in N)R.addCase(T,N[T]);for(var B=0,U=x;B<U.length;B++){var le=U[B];R.addMatcher(le.matcher,le.reducer)}L&&R.addDefaultCase(L)})}var u;return{name:r,reducer:function(y,h){return u||(u=f()),u(y,h)},actions:d,caseReducers:i,getInitialState:function(){return u||(u=f()),u.getInitialState()}}}var Ol="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Cl=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=Ol[Math.random()*64|0];return r},El=["name","message","stack","code"],an=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Ws=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),wl=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=El;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},Eg=function(){function e(r,o,n){var a=ot(r+"/fulfilled",function(y,h,g,v){return{payload:y,meta:on(rt({},v||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),i=ot(r+"/pending",function(y,h,g){return{payload:void 0,meta:on(rt({},g||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),c=ot(r+"/rejected",function(y,h,g,v,x){return{payload:v,error:(n&&n.serializeError||wl)(y||"Rejected"),meta:on(rt({},x||{}),{arg:g,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),d=!1,f=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function u(y){return function(h,g,v){var x=n?.idGenerator?n.idGenerator(y):Cl(),S=new f,L,N=!1;function R(B){L=B,S.abort()}var T=function(){return ul(this,null,function(){var B,U,le,we,se,Ae,ee;return al(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),we=(B=n?.condition)==null?void 0:B.call(n,y,{getState:g,extra:v}),Nl(we)?[4,we]:[3,2];case 1:we=m.sent(),m.label=2;case 2:if(we===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,se=new Promise(function(b,P){return S.signal.addEventListener("abort",function(){return P({name:"AbortError",message:L||"Aborted"})})}),h(i(x,y,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:y},{getState:g,extra:v}))),[4,Promise.race([se,Promise.resolve(o(y,{dispatch:h,getState:g,extra:v,requestId:x,signal:S.signal,abort:R,rejectWithValue:function(b,P){return new an(b,P)},fulfillWithValue:function(b,P){return new Ws(b,P)}})).then(function(b){if(b instanceof an)throw b;return b instanceof Ws?a(b.payload,x,y,b.meta):a(b,x,y)})])];case 3:return le=m.sent(),[3,5];case 4:return Ae=m.sent(),le=Ae instanceof an?c(null,x,y,Ae.payload,Ae.meta):c(Ae,x,y),[3,5];case 5:return ee=n&&!n.dispatchConditionRejection&&c.match(le)&&le.meta.condition,ee||h(le),[2,le]}})})}();return Object.assign(T,{abort:R,requestId:x,arg:y,unwrap:function(){return T.then(Al)}})}}return Object.assign(u,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function Al(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Nl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Vs="listener",Ks="completed",Zs="cancelled",wg="task-"+Zs,Ag="task-"+Ks,Ng=Vs+"-"+Zs,Rg=Vs+"-"+Ks;var cn="listenerMiddleware";var Lg=ot(cn+"/add"),Ig=ot(cn+"/removeAll"),Pg=ot(cn+"/remove");var Fs,Tg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Fs||(Fs=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},Rl=function(e){return function(r){setTimeout(r,e)}},_g=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Rl(10);Ls();function Ll(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var jr=class extends Ll(Object){};window.ftReduxStores||(window.ftReduxStores={});var qs=class e extends jr{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(rr(i))return i;if(a==null)return;let c=js({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),d=zs({reducer:(f,u)=>u.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...u.overwrites}:c.reducer(f,u)});return window.ftReduxStores[a.name]=new e(c,d)}constructor(r,o){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new kr;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,i,c)=>{let d=i,f=a[d];return f?(...u)=>{let y=f(...u.map(n));return this.reduxStore.dispatch(y),y}:u=>{this.setState({[d]:n(u)})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var qr=C(k());var Vr=class extends We{async listMySearches(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var Kr=class extends We{async listMyBookmarks(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var Pl="ft-user-assets",Zr=qr.FtReduxStore.get({name:Pl,initialState:{savedSearches:void 0,bookmarks:void 0}}),ln=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Kr,this.savedSearchesService=new Vr,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=_.getState();(0,qr.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Zr.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Zr.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();Zr.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Zr.actions.bookmarks(o)}}},hb=new ln;var dn=class{addCommand(r,o=!1){_.commands.add(r,o)}consumeCommand(r){return _.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new dn;var Ys=C(k()),un=class{highlightHtml(r,o,n){(0,Ys.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new un;var Xs=C(k());var fn=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return Xs.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new fn;var Tl=C(k());(0,Qs.customElement)("ft-app-context")(K);var pn=class e extends Event{constructor(){super(e.eventName)}};pn.eventName="search-context-clear-all-filters";var _l=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},yn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},hn=Symbol("registerInterval");function kl(e){var r;class o extends e{constructor(){super(...arguments),this[r]=0}setSearchStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[hn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[hn]):this.dispatchEvent(new yn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return r=hn,_l([(0,ec.state)()],o.prototype,"stateManager",void 0),o}var Xr=class extends kl(Js.FtLitElementRedux){};var ac=C(k());var ro=C(G()),oo=C(ne()),no=C(k());var tc=C(G());var rc=tc.css`
1061
1061
  `;var eo=C(k());var nc=C(ne()),Dl=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},mn=Symbol("i18nAttributes"),gn=Symbol("i18nListAttributes"),Qr=Symbol("i18nProperties"),bn=Symbol("i18nManualContexts"),cr=Symbol("i18nUnsubs");function to(e){var r,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?is:ht}i18n(i,c,...d){var f;if(typeof i=="string")return this.i18nService.resolveMessage(i,c,...d);let u=(f=i.args)!==null&&f!==void 0?f:i.argsProvider?i.argsProvider(this):[];return this.i18nService.resolveMessage(i.context,i.key,...u)}onI18nUpdate(i){var c,d,f;(c=this[mn])===null||c===void 0||c.forEach((u,y)=>{let h=this.getI18nAttributeValue(y);h&&(this[y]=this.getI18nAttributeMessage(h,u,i))}),(d=this[gn])===null||d===void 0||d.forEach((u,y)=>{let h=this.getI18nListAttributeValues(y);this[y]=h?.map(g=>this.getI18nAttributeMessage(g,u,i))}),(f=this[Qr])===null||f===void 0||f.forEach((u,y)=>{u.context.toLowerCase()===i.toLowerCase()&&(this[y]=this.i18n(u))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(i,c){return{...i,message:this.i18n({context:i.context,key:i.key,...c})}}getI18nAttributeMessage(i,c,d){var f;let u=!d||((f=i.context)===null||f===void 0?void 0:f.toLowerCase())===d.toLowerCase();return i.context&&i.key&&u?this.buildI18nAttributeMessage(i,c):i}update(i){var c,d,f;super.update(i),(c=this[mn])===null||c===void 0||c.forEach((u,y)=>{let h=this.getI18nAttributeValue(y);h?.context&&h.key&&(i.has(y)||u.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,i,y),this[y]=this.getI18nAttributeMessage(h,u))}),(d=this[gn])===null||d===void 0||d.forEach((u,y)=>{let h=this.getI18nListAttributeValues(y);(i.has(y)||u.argsProvider!=null)&&(this[y]=h?.map(g=>(this.addI18nContextIfNeeded(g,i,y),this.getI18nAttributeMessage(g,u))))}),(f=this[Qr])===null||f===void 0||f.forEach((u,y)=>{u.argsProvider!=null&&(this[y]=this.i18n(u))})}getI18nAttributeValue(i){return this[i]}getI18nListAttributeValues(i){return this[i]}addI18nContextIfNeeded(i,c,d){i.context&&i.key&&c.has(d)&&this.addI18nContext(i.context)}addI18nMessagesAndSubscribe(i,c){i=i.toLowerCase(),this[cr].has(i)||this[cr].set(i,this.i18nService.subscribe(i,()=>this.onI18nUpdate(i))),this.i18nService.prepareContext(i,c??{}),this.onI18nUpdate(i)}connectedCallback(){var i,c,d,f,u,y;super.connectedCallback(),new Set([...(c=(i=this[Qr])===null||i===void 0?void 0:i.values())!==null&&c!==void 0?c:[],...[...(f=(d=this[mn])===null||d===void 0?void 0:d.keys())!==null&&f!==void 0?f:[]].map(h=>this.getI18nAttributeValue(h)),...[...(y=(u=this[gn])===null||u===void 0?void 0:u.keys())!==null&&y!==void 0?y:[]].flatMap(h=>this.getI18nListAttributeValues(h))].map(h=>h?.context)).forEach(h=>h&&this.addI18nMessages(h)),this[bn].forEach((h,g)=>{this.addI18nMessages(g,h)})}addI18nMessages(i,c){this[bn].set(i,c??{}),this.addI18nMessagesAndSubscribe(i,c)}addI18nContext(i,c){this.addI18nMessages(typeof i=="string"?i:i.name,c)}disconnectedCallback(){super.disconnectedCallback(),this[cr].forEach(i=>i()),this[cr].clear()}}return r=bn,o=cr,Dl([(0,nc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var oc=class extends to(eo.FtLitElement){},Jr=class extends to(eo.FtLitElementRedux){};var lr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Ee=class extends Jr{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":ro.nothing:ro.html`
1062
1062
  <span class="ft-i18n">
1063
1063
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}