@fluid-topics/ft-search-results-number 1.2.24 → 1.2.26
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.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
`;var gn=w(U()),mn=w(J());var Lt=w(U());var Xr=w(U());var Ma=w(Jr(),1);var eo;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(eo||(eo={}));var to;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(to||(to={}));var ro;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(ro||(ro={}));var oo;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(oo||(oo={}));var no;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(no||(no={}));var ao;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(ao||(ao={}));var io;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(io||(io={}));var co;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(co||(co={}));var so;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(so||(so={}));var lo;(function(r){r.ASC="ASC",r.DESC="DESC"})(lo||(lo={}));var uo;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(uo||(uo={}));var Zt;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Zt||(Zt={}));var po;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(po||(po={}));var fo;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(fo||(fo={}));var ho;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(ho||(ho={}));var yo;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(yo||(yo={}));var go;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(go||(go={}));var qt;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(qt||(qt={}));var D;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(D||(D={}));var mo;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(mo||(mo={}));var bo;(function(r){r.TEXT="TEXT",r.HTML="HTML"})(bo||(bo={}));var Ji={[D.PERSONAL_BOOK_SHARE_USER]:[D.PERSONAL_BOOK_USER],[D.HTML_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.PDF_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.KHUB_ADMIN]:[D.CONTENT_PUBLISHER],[D.ADMIN]:[D.KHUB_ADMIN,D.USERS_ADMIN,D.PORTAL_ADMIN],[D.DEVELOPER]:[D.BETA_USER,D.DEBUG_USER],[D.GENERATIVE_AI_EXPORT_USER]:[D.GENERATIVE_AI_USER]};var yn=w(U());var Co=w(q()),G=w(J()),Y=w(U());var xo=w(q());var vo=xo.css`
|
|
5
5
|
`;var dt=w(U()),Wa="ft-app-info",Yt=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},za={session:(r,t)=>{(0,dt.deepEqual)(r.session,t.payload)||(r.session=t.payload,setTimeout(()=>E.dispatchEvent(new Yt(t.payload)),0))}},E=dt.FtReduxStore.get({name:Wa,reducers:za,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 ce=w(U());var Xt=w(U());var ve=class r{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=E.getState(),i=t??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(t){return new Promise(o=>{let n=r.get(t);if(n)o(n);else{let i=E.subscribe(()=>{n=r.get(t),n&&(i(),o(n))})}})}};var te=class{constructor(t=!0,o){var n;this.overrideApi=o;let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Xt.CacheRegistry,this.cache=t?i.commonCache:new Xt.CacheRegistry}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:ve.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ve.await()}clearCache(){this.cache.clearAll()}};var So,Ha=Symbol("clearAfterUnitTest"),ut=class extends te{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[So]=()=>{this.defaultMessages={},this.cache=new ce.CacheRegistry,this.listeners={}},this.currentUiLocale=E.getState().uiLocale,E.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=E.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),Object.keys(o).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,ce.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var i;let c=t.toLowerCase(),l=this.resolveContext(c);return new ce.ParametrizedLabelResolver((i=this.defaultMessages[c])!==null&&i!==void 0?i:{},l).resolve(o,...n)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(o){console.error(o)}}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(o=>(0,ce.delay)(0).then(()=>o()).catch(()=>null)))}};So=Ha;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ut{constructor(){super(async(r,t)=>(await this.awaitApi).getFluidTopicsMessageContext(r,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ut{constructor(){super(async(r,t)=>(await this.awaitApi).getCustomMessageContext(r,t))}});var Se=window.FluidTopicsI18nService,Oo=window.FluidTopicsCustomI18nService;var z=function(r,t,o,n){var i=arguments.length,c=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(c=(i<3?l(c):i>3?l(t,o,c):l(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},_=class extends Y.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=()=>ve.get(),this.messageContexts=[],this.cache=new Y.CacheRegistry,this.cleanSessionDebouncer=new Y.Debouncer}render(){return Co.html`
|
|
6
6
|
<slot></slot>
|
|
7
|
-
`}update(t){var o,n,i,c,l;super.update(t),t.has("baseUrl")&&(E.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&E.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&E.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&E.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&E.actions.noCustom(this.noCustom),t.has("editorMode")&&E.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&E.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&E.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>Se.addContext(d)),t.has("openExternalDocumentInNewTab")&&E.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&E.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&E.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(E.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),E.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),E.actions.searchInAllLanguagesAllowed((l=(c=this.localesConfiguration)===null||c===void 0?void 0:c.allLanguagesAllowed)!==null&&l!==void 0?l:!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 t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};_.elementDefinitions={};_.styles=vo;z([(0,G.property)()],_.prototype,"baseUrl",void 0);z([(0,G.property)()],_.prototype,"apiIntegrationIdentifier",void 0);z([(0,G.property)()],_.prototype,"uiLocale",void 0);z([(0,Y.jsonProperty)(null)],_.prototype,"availableUiLocales",void 0);z([(0,Y.jsonProperty)(null)],_.prototype,"metadataConfiguration",void 0);z([(0,G.property)({type:Boolean})],_.prototype,"editorMode",void 0);z([(0,G.property)({type:Boolean})],_.prototype,"noCustom",void 0);z([(0,G.property)({type:Boolean})],_.prototype,"openExternalDocumentInNewTab",void 0);z([(0,G.property)({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],_.prototype,"noCustomComponent",void 0);z([(0,G.property)({type:Boolean})],_.prototype,"withManualResources",void 0);z([(0,G.property)({type:Boolean})],_.prototype,"navigatorOnline",void 0);z([(0,G.property)({type:Boolean})],_.prototype,"forcedOffline",void 0);z([(0,G.property)({type:Object})],_.prototype,"apiProvider",void 0);z([(0,Y.jsonProperty)([])],_.prototype,"messageContexts",void 0);z([(0,Y.jsonProperty)(void 0)],_.prototype,"session",void 0);z([(0,G.state)()],_.prototype,"localesConfiguration",void 0);var Ri=w(J());function $a(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var o,n,i;if(Array.isArray(r)){if(o=r.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!pt(r[n],t[n]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(n of r.entries())if(!t.has(n[0]))return!1;for(n of r.entries())if(!pt(n[1],t.get(n[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(n of r.entries())if(!t.has(n[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(i=Object.keys(r),o=i.length,o!==Object.keys(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=o;n--!==0;){var c=i[n];if(!pt(r[c],t[c]))return!1}return!0}return r!==r&&t!==t}function pt(r,t){try{return $a(r,t)}catch{return!1}}function ft(r,t){return!pt(r,t)}var Ga=w(J(),1);var ht=class{constructor(){this.queue=[]}add(t,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==t.type)),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var Ve=w(J(),1);var Eo=w(J(),1);function wo(r,t){let o=()=>JSON.parse(JSON.stringify(r));return(0,Eo.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:ft,...t??{}})}var yt=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,c=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(d){i(d);return}c(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var No=w(q(),1);var gt=window,ja=gt.ShadowRoot&&(gt.ShadyCSS===void 0||gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Tc=Symbol();var Ao=(r,t)=>{ja?r.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):t.forEach(o=>{let n=document.createElement("style"),i=gt.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,r.appendChild(n)})};var mt=class extends No.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,c])=>t.registry.define(i,c)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Ao(n,t.elementStyles),n}};var bt=function(r,t,o,n){var i=arguments.length,c=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(c=(i<3?l(c):i>3?l(t,o,c):l(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},Po,Io=Symbol("constructorPrototype"),Ro=Symbol("constructorName"),To=Symbol("exportpartsDebouncer"),Lo=Symbol("dynamicDependenciesLoaded"),se=class extends mt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Po]=new yt(5),this[Ro]=this.constructor.name,this[Io]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ro]&&Object.setPrototypeOf(this,this[Io])}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 t=this.constructor;t[Lo]||(t[Lo]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var o,n,i;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(c=>c.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(c){console.error(c,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let c=document.createElement("style");c.classList.add("ft-lit-element--custom-stylesheet"),c.innerHTML=this.customStylesheet,this.shadowRoot.append(c)}}scheduleExportpartsUpdate(){var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[To].run(()=>{var i,c;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((c=this.exportpartsPrefixes)===null||c===void 0?void 0:c.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var o,n,i,c,l,d;let p=m=>m!=null&&m.trim().length>0,u=t.filter(p).map(m=>m.trim());if(u.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let m of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(c=(i=m.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&c!==void 0?c:[],b=(d=(l=m.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(S=>S.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...v,...b).filter(p).map(S=>S.trim()).forEach(S=>y.add(S))}if(y.size===0){this.removeAttribute("exportparts");return}let h=[...y.values()].flatMap(m=>u.map(v=>`${m}:${v}--${m}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};Po=To;bt([(0,Ve.property)()],se.prototype,"exportpartsPrefix",void 0);bt([wo([])],se.prototype,"exportpartsPrefixes",void 0);bt([(0,Ve.property)()],se.prototype,"customStylesheet",void 0);bt([(0,Ve.state)()],se.prototype,"useAdoptedStyleSheets",void 0);function Ze(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Fo,ko,_o,qe=Symbol("internalReduxEventsUnsubscribers"),le=Symbol("internalStoresUnsubscribers"),Oe=Symbol("internalStores"),Ye=class extends se{constructor(){super(...arguments),this[Fo]=new Map,this[ko]=new Map,this[_o]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Oe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Oe].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Oe].get(t)}addStore(t,o){var n;o=(n=o??(Ze(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Oe].set(o,t),this.subscribeToStore(o,t),this.updateFromStores()}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[Oe].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Oe].forEach((t,o)=>this.subscribeToStore(o,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(t.store);i&&(t.store?this[le].has(t.store):this[le].size>0)&&(this[o]=t.selector(i.getState(),this))}})}subscribeToStore(t,o){var n;this[le].set(t,o.subscribe(()=>this.updateFromStores())),this[qe].set(t,[]),Ze(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,c)=>{if(typeof this[c]=="function"&&(!i.store||o.name===i.store)){let l=d=>this[c](d);o.addEventListener(i.eventName,l),this[qe].get(t).push(()=>o.removeEventListener(i.eventName,l))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[le].forEach((t,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(t){var o;this[le].has(t)&&this[le].get(t)(),this[le].delete(t),(o=this[qe].get(t))===null||o===void 0||o.forEach(n=>n()),this[qe].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Fo=le,ko=Oe,_o=qe;Ye.reduxProperties=new Map;Ye.reduxReactiveProperties=new Set;Ye.reduxEventListeners=new Map;function K(r){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var i,c;throw Error("[Immer] minified error nr: "+r+(o.length?" "+o.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function re(r){return!!r&&!!r[F]}function X(r){var t;return!!r&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Ja}(r)||Array.isArray(r)||!!r[Ho]||!!(!((t=r.constructor)===null||t===void 0)&&t[Ho])||ir(r)||cr(r))}function Ce(r,t,o){o===void 0&&(o=!1),Te(r)===0?(o?Object.keys:Pe)(r).forEach(function(n){o&&typeof n=="symbol"||t(n,r[n],r)}):r.forEach(function(n,i){return t(i,n,r)})}function Te(r){var t=r[F];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:ir(r)?2:cr(r)?3:0}function Le(r,t){return Te(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function Ka(r,t){return Te(r)===2?r.get(t):r[t]}function $o(r,t,o){var n=Te(r);n===2?r.set(t,o):n===3?r.add(o):r[t]=o}function Go(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function ir(r){return Xa&&r instanceof Map}function cr(r){return Qa&&r instanceof Set}function de(r){return r.o||r.t}function sr(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=Vo(r);delete t[F];for(var o=Pe(t),n=0;n<o.length;n++){var i=o[n],c=t[i];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(t[i]={configurable:!0,writable:!0,enumerable:c.enumerable,value:r[i]})}return Object.create(Object.getPrototypeOf(r),t)}function lr(r,t){return t===void 0&&(t=!1),dr(r)||re(r)||!X(r)||(Te(r)>1&&(r.set=r.add=r.clear=r.delete=Va),Object.freeze(r),t&&Ce(r,function(o,n){return lr(n,!0)},!0)),r}function Va(){K(2)}function dr(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function ee(r){var t=ar[r];return t||K(18,r),t}function Za(r,t){ar[r]||(ar[r]=t)}function rr(){return Qe}function Qt(r,t){t&&(ee("Patches"),r.u=[],r.s=[],r.v=t)}function xt(r){or(r),r.p.forEach(qa),r.p=null}function or(r){r===Qe&&(Qe=r.l)}function Uo(r){return Qe={p:[],l:Qe,h:r,m:!0,_:0}}function qa(r){var t=r[F];t.i===0||t.i===1?t.j():t.g=!0}function Jt(r,t){t._=t.p.length;var o=t.p[0],n=r!==void 0&&r!==o;return t.h.O||ee("ES5").S(t,r,n),n?(o[F].P&&(xt(t),K(4)),X(r)&&(r=vt(t,r),t.l||St(t,r)),t.u&&ee("Patches").M(o[F].t,r,t.u,t.s)):r=vt(t,o,[]),xt(t),t.u&&t.v(t.u,t.s),r!==Ko?r:void 0}function vt(r,t,o){if(dr(t))return t;var n=t[F];if(!n)return Ce(t,function(d,p){return Do(r,n,t,d,p,o)},!0),t;if(n.A!==r)return t;if(!n.P)return St(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=sr(n.k):n.o,c=i,l=!1;n.i===3&&(c=new Set(i),i.clear(),l=!0),Ce(c,function(d,p){return Do(r,n,i,d,p,o,l)}),St(r,i,!1),o&&r.u&&ee("Patches").N(n,o,r.u,r.s)}return n.o}function Do(r,t,o,n,i,c,l){if(re(i)){var d=vt(r,i,c&&t&&t.i!==3&&!Le(t.R,n)?c.concat(n):void 0);if($o(o,n,d),!re(d))return;r.m=!1}else l&&o.add(i);if(X(i)&&!dr(i)){if(!r.h.D&&r._<1)return;vt(r,i),t&&t.A.l||St(r,i)}}function St(r,t,o){o===void 0&&(o=!1),!r.l&&r.h.D&&r.m&&lr(t,o)}function er(r,t){var o=r[F];return(o?de(o):r)[t]}function Bo(r,t){if(t in r)for(var o=Object.getPrototypeOf(r);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function ue(r){r.P||(r.P=!0,r.l&&ue(r.l))}function tr(r){r.o||(r.o=sr(r.t))}function nr(r,t,o){var n=ir(t)?ee("MapSet").F(t,o):cr(t)?ee("MapSet").T(t,o):r.O?function(i,c){var l=Array.isArray(i),d={i:l?1:0,A:c?c.A:rr(),P:!1,I:!1,R:{},l:c,t:i,k:null,o:null,j:null,C:!1},p=d,u=Je;l&&(p=[d],u=Xe);var y=Proxy.revocable(p,u),h=y.revoke,m=y.proxy;return d.k=m,d.j=h,m}(t,o):ee("ES5").J(t,o);return(o?o.A:rr()).p.push(n),n}function Ya(r){return re(r)||K(22,r),function t(o){if(!X(o))return o;var n,i=o[F],c=Te(o);if(i){if(!i.P&&(i.i<4||!ee("ES5").K(i)))return i.t;i.I=!0,n=Mo(o,c),i.I=!1}else n=Mo(o,c);return Ce(n,function(l,d){i&&Ka(i.t,l)===d||$o(n,l,t(d))}),c===3?new Set(n):n}(r)}function Mo(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return sr(r)}function jo(){function r(l,d){var p=c[l];return p?p.enumerable=d:c[l]=p={configurable:!0,enumerable:d,get:function(){var u=this[F];return Je.get(u,l)},set:function(u){var y=this[F];Je.set(y,l,u)}},p}function t(l){for(var d=l.length-1;d>=0;d--){var p=l[d][F];if(!p.P)switch(p.i){case 5:n(p)&&ue(p);break;case 4:o(p)&&ue(p)}}}function o(l){for(var d=l.t,p=l.k,u=Pe(p),y=u.length-1;y>=0;y--){var h=u[y];if(h!==F){var m=d[h];if(m===void 0&&!Le(d,h))return!0;var v=p[h],b=v&&v[F];if(b?b.t!==m:!Go(v,m))return!0}}var S=!!d[F];return u.length!==Pe(d).length+(S?0:1)}function n(l){var d=l.k;if(d.length!==l.t.length)return!0;var p=Object.getOwnPropertyDescriptor(d,d.length-1);if(p&&!p.get)return!0;for(var u=0;u<d.length;u++)if(!d.hasOwnProperty(u))return!0;return!1}function i(l){l.g&&K(3,JSON.stringify(de(l)))}var c={};Za("ES5",{J:function(l,d){var p=Array.isArray(l),u=function(h,m){if(h){for(var v=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(v,""+b,r(b,!0));return v}var S=Vo(m);delete S[F];for(var R=Pe(S),A=0;A<R.length;A++){var N=R[A];S[N]=r(N,h||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(m),S)}(p,l),y={i:p?5:4,A:d?d.A:rr(),P:!1,I:!1,R:{},l:d,t:l,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,F,{value:y,writable:!0}),u},S:function(l,d,p){p?re(d)&&d[F].A===l&&t(l.p):(l.u&&function u(y){if(y&&typeof y=="object"){var h=y[F];if(h){var m=h.t,v=h.k,b=h.R,S=h.i;if(S===4)Ce(v,function(L){L!==F&&(m[L]!==void 0||Le(m,L)?b[L]||u(v[L]):(b[L]=!0,ue(h)))}),Ce(m,function(L){v[L]!==void 0||Le(v,L)||(b[L]=!1,ue(h))});else if(S===5){if(n(h)&&(ue(h),b.length=!0),v.length<m.length)for(var R=v.length;R<m.length;R++)b[R]=!1;else for(var A=m.length;A<v.length;A++)b[A]=!0;for(var N=Math.min(v.length,m.length),T=0;T<N;T++)v.hasOwnProperty(T)||(b[T]=!0),b[T]===void 0&&u(v[T])}}}}(l.p[0]),t(l.p))},K:function(l){return l.i===4?o(l):n(l)}})}var Wo,Qe,ur=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Xa=typeof Map<"u",Qa=typeof Set<"u",zo=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ko=ur?Symbol.for("immer-nothing"):((Wo={})["immer-nothing"]=!0,Wo),Ho=ur?Symbol.for("immer-draftable"):"__$immer_draftable",F=ur?Symbol.for("immer-state"):"__$immer_state";var Ja=""+Object.prototype.constructor,Pe=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Vo=Object.getOwnPropertyDescriptors||function(r){var t={};return Pe(r).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(r,o)}),t},ar={},Je={get:function(r,t){if(t===F)return r;var o=de(r);if(!Le(o,t))return function(i,c,l){var d,p=Bo(c,l);return p?"value"in p?p.value:(d=p.get)===null||d===void 0?void 0:d.call(i.k):void 0}(r,o,t);var n=o[t];return r.I||!X(n)?n:n===er(r.t,t)?(tr(r),r.o[t]=nr(r.A.h,n,r)):n},has:function(r,t){return t in de(r)},ownKeys:function(r){return Reflect.ownKeys(de(r))},set:function(r,t,o){var n=Bo(de(r),t);if(n?.set)return n.set.call(r.k,o),!0;if(!r.P){var i=er(de(r),t),c=i?.[F];if(c&&c.t===o)return r.o[t]=o,r.R[t]=!1,!0;if(Go(o,i)&&(o!==void 0||Le(r.t,t)))return!0;tr(r),ue(r)}return r.o[t]===o&&(o!==void 0||t in r.o)||Number.isNaN(o)&&Number.isNaN(r.o[t])||(r.o[t]=o,r.R[t]=!0),!0},deleteProperty:function(r,t){return er(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,tr(r),ue(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var o=de(r),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){K(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){K(12)}},Xe={};Ce(Je,function(r,t){Xe[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Xe.deleteProperty=function(r,t){return Xe.set.call(this,r,t,void 0)},Xe.set=function(r,t,o){return Je.set.call(this,r[0],t,o,r[0])};var ei=function(){function r(o){var n=this;this.O=zo,this.D=!0,this.produce=function(i,c,l){if(typeof i=="function"&&typeof c!="function"){var d=c;c=i;var p=n;return function(S){var R=this;S===void 0&&(S=d);for(var A=arguments.length,N=Array(A>1?A-1:0),T=1;T<A;T++)N[T-1]=arguments[T];return p.produce(S,function(L){var M;return(M=c).call.apply(M,[R,L].concat(N))})}}var u;if(typeof c!="function"&&K(6),l!==void 0&&typeof l!="function"&&K(7),X(i)){var y=Uo(n),h=nr(n,i,void 0),m=!0;try{u=c(h),m=!1}finally{m?xt(y):or(y)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return Qt(y,l),Jt(S,y)},function(S){throw xt(y),S}):(Qt(y,l),Jt(u,y))}if(!i||typeof i!="object"){if((u=c(i))===void 0&&(u=i),u===Ko&&(u=void 0),n.D&&lr(u,!0),l){var v=[],b=[];ee("Patches").M(i,u,v,b),l(v,b)}return u}K(21,i)},this.produceWithPatches=function(i,c){if(typeof i=="function")return function(u){for(var y=arguments.length,h=Array(y>1?y-1:0),m=1;m<y;m++)h[m-1]=arguments[m];return n.produceWithPatches(u,function(v){return i.apply(void 0,[v].concat(h))})};var l,d,p=n.produce(i,c,function(u,y){l=u,d=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,l,d]}):[p,l,d]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=r.prototype;return t.createDraft=function(o){X(o)||K(8),re(o)&&(o=Ya(o));var n=Uo(this),i=nr(this,o,void 0);return i[F].C=!0,or(n),i},t.finishDraft=function(o,n){var i=o&&o[F],c=i.A;return Qt(c,n),Jt(void 0,c)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!zo&&K(20),this.O=o},t.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var c=n[i];if(c.path.length===0&&c.op==="replace"){o=c.value;break}}i>-1&&(n=n.slice(i+1));var l=ee("Patches").$;return re(o)?l(o,n):this.produce(o,function(d){return l(d,n)})},r}(),j=new ei,ti=j.produce,Gc=j.produceWithPatches.bind(j),jc=j.setAutoFreeze.bind(j),Kc=j.setUseProxies.bind(j),Vc=j.applyPatches.bind(j),Zc=j.createDraft.bind(j),qc=j.finishDraft.bind(j),Ot=ti;function pe(r){"@babel/helpers - typeof";return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pe(r)}function pr(r,t){if(pe(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var n=o.call(r,t||"default");if(pe(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function fr(r){var t=pr(r,"string");return pe(t)==="symbol"?t:String(t)}function hr(r,t,o){return t=fr(t),t in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o,r}function Zo(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),o.push.apply(o,n)}return o}function Ct(r){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Zo(Object(o),!0).forEach(function(n){hr(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Zo(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}function H(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var qo=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),yr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Et={INIT:"@@redux/INIT"+yr(),REPLACE:"@@redux/REPLACE"+yr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+yr()}};function ri(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function gr(r,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(H(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(H(1));return o(gr)(r,t)}if(typeof r!="function")throw new Error(H(2));var i=r,c=t,l=[],d=l,p=!1;function u(){d===l&&(d=l.slice())}function y(){if(p)throw new Error(H(3));return c}function h(S){if(typeof S!="function")throw new Error(H(4));if(p)throw new Error(H(5));var R=!0;return u(),d.push(S),function(){if(R){if(p)throw new Error(H(6));R=!1,u();var N=d.indexOf(S);d.splice(N,1),l=null}}}function m(S){if(!ri(S))throw new Error(H(7));if(typeof S.type>"u")throw new Error(H(8));if(p)throw new Error(H(9));try{p=!0,c=i(c,S)}finally{p=!1}for(var R=l=d,A=0;A<R.length;A++){var N=R[A];N()}return S}function v(S){if(typeof S!="function")throw new Error(H(10));i=S,m({type:Et.REPLACE})}function b(){var S,R=h;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(H(11));function T(){N.next&&N.next(y())}T();var L=R(T);return{unsubscribe:L}}},S[qo]=function(){return this},S}return m({type:Et.INIT}),n={dispatch:m,subscribe:h,getState:y,replaceReducer:v},n[qo]=b,n}function oi(r){Object.keys(r).forEach(function(t){var o=r[t],n=o(void 0,{type:Et.INIT});if(typeof n>"u")throw new Error(H(12));if(typeof o(void 0,{type:Et.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(H(13))})}function Yo(r){for(var t=Object.keys(r),o={},n=0;n<t.length;n++){var i=t[n];typeof r[i]=="function"&&(o[i]=r[i])}var c=Object.keys(o),l,d;try{oi(o)}catch(p){d=p}return function(u,y){if(u===void 0&&(u={}),d)throw d;if(0)var h;for(var m=!1,v={},b=0;b<c.length;b++){var S=c[b],R=o[S],A=u[S],N=R(A,y);if(typeof N>"u"){var T=y&&y.type;throw new Error(H(14))}v[S]=N,m=m||N!==A}return m=m||c.length!==Object.keys(u).length,m?v:u}}function Fe(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Xo(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),c=function(){throw new Error(H(15))},l={getState:i.getState,dispatch:function(){return c.apply(void 0,arguments)}},d=t.map(function(p){return p(l)});return c=Fe.apply(void 0,d)(i.dispatch),Ct(Ct({},i),{},{dispatch:c})}}}function Qo(r){var t=function(n){var i=n.dispatch,c=n.getState;return function(l){return function(d){return typeof d=="function"?d(i,c,r):l(d)}}};return t}var Jo=Qo();Jo.withExtraArgument=Qo;var mr=Jo;var nn=function(){var r=function(t,o){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(n[c]=i[c])},r(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");r(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),ni=function(r,t){var o={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},n,i,c,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(u){return function(y){return p([u,y])}}function p(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(c=u[0]&2?i.return:u[0]?i.throw||((c=i.return)&&c.call(i),0):i.next)&&!(c=c.call(i,u[1])).done)return c;switch(i=0,c&&(u=[u[0]&2,c.value]),u[0]){case 0:case 1:c=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(c=o.trys,!(c=c.length>0&&c[c.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!c||u[1]>c[0]&&u[1]<c[3])){o.label=u[1];break}if(u[0]===6&&o.label<c[1]){o.label=c[1],c=u;break}if(c&&o.label<c[2]){o.label=c[2],o.ops.push(u);break}c[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(r,o)}catch(y){u=[6,y],i=0}finally{n=c=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ke=function(r,t){for(var o=0,n=t.length,i=r.length;o<n;o++,i++)r[i]=t[o];return r},ai=Object.defineProperty,ii=Object.defineProperties,ci=Object.getOwnPropertyDescriptors,en=Object.getOwnPropertySymbols,si=Object.prototype.hasOwnProperty,li=Object.prototype.propertyIsEnumerable,tn=function(r,t,o){return t in r?ai(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o},fe=function(r,t){for(var o in t||(t={}))si.call(t,o)&&tn(r,o,t[o]);if(en)for(var n=0,i=en(t);n<i.length;n++){var o=i[n];li.call(t,o)&&tn(r,o,t[o])}return r},br=function(r,t){return ii(r,ci(t))},di=function(r,t,o){return new Promise(function(n,i){var c=function(p){try{d(o.next(p))}catch(u){i(u)}},l=function(p){try{d(o.throw(p))}catch(u){i(u)}},d=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(c,l)};d((o=o.apply(r,t)).next())})};var ui=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Fe:Fe.apply(null,arguments)},fs=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function pi(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var fi=function(r){nn(t,r);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=r.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,ke([void 0],o[0].concat(this)))):new(t.bind.apply(t,ke([void 0],o.concat(this))))},t}(Array),hi=function(r){nn(t,r);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=r.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,ke([void 0],o[0].concat(this)))):new(t.bind.apply(t,ke([void 0],o.concat(this))))},t}(Array);function Sr(r){return X(r)?Ot(r,function(){}):r}function yi(r){return typeof r=="boolean"}function gi(){return function(t){return mi(t)}}function mi(r){r===void 0&&(r={});var t=r.thunk,o=t===void 0?!0:t,n=r.immutableCheck,i=n===void 0?!0:n,c=r.serializableCheck,l=c===void 0?!0:c,d=new fi;if(o&&(yi(o)?d.push(mr):d.push(mr.withExtraArgument(o.extraArgument))),0){if(i)var p;if(l)var u}return d}var xr=!0;function an(r){var t=gi(),o=r||{},n=o.reducer,i=n===void 0?void 0:n,c=o.middleware,l=c===void 0?t():c,d=o.devTools,p=d===void 0?!0:d,u=o.preloadedState,y=u===void 0?void 0:u,h=o.enhancers,m=h===void 0?void 0:h,v;if(typeof i=="function")v=i;else if(pi(i))v=Yo(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=l;if(typeof b=="function"&&(b=b(t),!xr&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!xr&&b.some(function(L){return typeof L!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Xo.apply(void 0,b),R=Fe;p&&(R=ui(fe({trace:!xr},typeof p=="object"&&p)));var A=new hi(S),N=A;Array.isArray(m)?N=ke([S],m):typeof m=="function"&&(N=m(A));var T=R.apply(void 0,N);return gr(v,y,T)}function he(r,t){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var c=t.apply(void 0,n);if(!c)throw new Error("prepareAction did not return an object");return fe(fe({type:r,payload:c.payload},"meta"in c&&{meta:c.meta}),"error"in c&&{error:c.error})}return{type:r,payload:n[0]}}return o.toString=function(){return""+r},o.type=r,o.match=function(n){return n.type===r},o}function cn(r){var t={},o=[],n,i={addCase:function(c,l){var d=typeof c=="string"?c:c.type;if(d in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[d]=l,i},addMatcher:function(c,l){return o.push({matcher:c,reducer:l}),i},addDefaultCase:function(c){return n=c,i}};return r(i),[t,o,n]}function bi(r){return typeof r=="function"}function xi(r,t,o,n){o===void 0&&(o=[]);var i=typeof t=="function"?cn(t):[t,o,n],c=i[0],l=i[1],d=i[2],p;if(bi(r))p=function(){return Sr(r())};else{var u=Sr(r);p=function(){return u}}function y(h,m){h===void 0&&(h=p());var v=ke([c[m.type]],l.filter(function(b){var S=b.matcher;return S(m)}).map(function(b){var S=b.reducer;return S}));return v.filter(function(b){return!!b}).length===0&&(v=[d]),v.reduce(function(b,S){if(S)if(re(b)){var R=b,A=S(R,m);return A===void 0?b:A}else{if(X(b))return Ot(b,function(N){return S(N,m)});var A=S(b,m);if(A===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return b},h)}return y.getInitialState=p,y}function vi(r,t){return r+"/"+t}function sn(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof r.initialState=="function"?r.initialState:Sr(r.initialState),n=r.reducers||{},i=Object.keys(n),c={},l={},d={};i.forEach(function(y){var h=n[y],m=vi(t,y),v,b;"reducer"in h?(v=h.reducer,b=h.prepare):v=h,c[y]=v,l[m]=v,d[y]=b?he(m,b):he(m)});function p(){var y=typeof r.extraReducers=="function"?cn(r.extraReducers):[r.extraReducers],h=y[0],m=h===void 0?{}:h,v=y[1],b=v===void 0?[]:v,S=y[2],R=S===void 0?void 0:S,A=fe(fe({},m),l);return xi(o,function(N){for(var T in A)N.addCase(T,A[T]);for(var L=0,M=b;L<M.length;L++){var Z=M[L];N.addMatcher(Z.matcher,Z.reducer)}R&&N.addDefaultCase(R)})}var u;return{name:t,reducer:function(y,h){return u||(u=p()),u(y,h)},actions:d,caseReducers:c,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var Si="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Oi=function(r){r===void 0&&(r=21);for(var t="",o=r;o--;)t+=Si[Math.random()*64|0];return t},Ci=["name","message","stack","code"],vr=function(){function r(t,o){this.payload=t,this.meta=o}return r}(),rn=function(){function r(t,o){this.payload=t,this.meta=o}return r}(),Ei=function(r){if(typeof r=="object"&&r!==null){for(var t={},o=0,n=Ci;o<n.length;o++){var i=n[o];typeof r[i]=="string"&&(t[i]=r[i])}return t}return{message:String(r)}},ms=function(){function r(t,o,n){var i=he(t+"/fulfilled",function(y,h,m,v){return{payload:y,meta:br(fe({},v||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),c=he(t+"/pending",function(y,h,m){return{payload:void 0,meta:br(fe({},m||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),l=he(t+"/rejected",function(y,h,m,v,b){return{payload:v,error:(n&&n.serializeError||Ei)(y||"Rejected"),meta:br(fe({},b||{}),{arg:m,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),d=!1,p=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,m,v){var b=n?.idGenerator?n.idGenerator(y):Oi(),S=new p,R,A=!1;function N(L){R=L,S.abort()}var T=function(){return di(this,null,function(){var L,M,Z,me,$,be,Ie;return ni(this,function(f){switch(f.label){case 0:return f.trys.push([0,4,,5]),me=(L=n?.condition)==null?void 0:L.call(n,y,{getState:m,extra:v}),Ai(me)?[4,me]:[3,2];case 1:me=f.sent(),f.label=2;case 2:if(me===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,$=new Promise(function(g,C){return S.signal.addEventListener("abort",function(){return C({name:"AbortError",message:R||"Aborted"})})}),h(c(b,y,(M=n?.getPendingMeta)==null?void 0:M.call(n,{requestId:b,arg:y},{getState:m,extra:v}))),[4,Promise.race([$,Promise.resolve(o(y,{dispatch:h,getState:m,extra:v,requestId:b,signal:S.signal,abort:N,rejectWithValue:function(g,C){return new vr(g,C)},fulfillWithValue:function(g,C){return new rn(g,C)}})).then(function(g){if(g instanceof vr)throw g;return g instanceof rn?i(g.payload,b,y,g.meta):i(g,b,y)})])];case 3:return Z=f.sent(),[3,5];case 4:return be=f.sent(),Z=be instanceof vr?l(null,b,y,be.payload,be.meta):l(be,b,y),[3,5];case 5:return Ie=n&&!n.dispatchConditionRejection&&l.match(Z)&&Z.meta.condition,Ie||h(Z),[2,Z]}})})}();return Object.assign(T,{abort:N,requestId:b,arg:y,unwrap:function(){return T.then(wi)}})}}return Object.assign(u,{pending:c,rejected:l,fulfilled:i,typePrefix:t})}return r.withTypes=function(){return r},r}();function wi(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Ai(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var ln="listener",dn="completed",un="cancelled",bs="task-"+un,xs="task-"+dn,vs=ln+"-"+un,Ss=ln+"-"+dn;var Or="listenerMiddleware";var Os=he(Or+"/add"),Cs=he(Or+"/removeAll"),Es=he(Or+"/remove");var on,ws=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(on||(on=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},Ni=function(r){return function(t){setTimeout(t,r)}},As=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ni(10);jo();function Ii(r,t){return class extends r{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,i){this.eventBus.addEventListener(o,n,i)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,i){this.eventBus.removeEventListener(o,n,i)}}}var wt=class extends Ii(Object){};window.ftReduxStores||(window.ftReduxStores={});var pn=class r extends wt{static get(t){var o;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,c=window.ftReduxStores[n];if(Ze(c))return c;if(i==null)return;let l=sn({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),d=an({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:l.reducer(p,u)});return window.ftReduxStores[i.name]=new r(l,d)}constructor(t,o){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new ht;let n=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let d=c,p=i[d];return p?(...u)=>{let y=p(...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(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Rt=w(U());var At=class extends te{async listMySearches(){let t=E.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Nt=class extends te{async listMyBookmarks(){let t=E.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var Li="ft-user-assets",It=Rt.FtReduxStore.get({name:Li,initialState:{savedSearches:void 0,bookmarks:void 0}}),Cr=class{constructor(){this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Nt,this.savedSearchesService=new At,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=E.getState();(0,Rt.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),It.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),It.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();It.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;It.actions.bookmarks(o)}}},cl=new Cr;var Er=class{addCommand(t,o=!1){E.commands.add(t,o)}consumeCommand(t){return E.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Er;var fn=w(U()),wr=class{highlightHtml(t,o,n){(0,fn.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new wr;var hn=w(U());var Ar=class{isDate(t){var o,n,i,c;return(c=(i=((n=(o=E.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===t))===null||i===void 0?void 0:i.date)!==null&&c!==void 0?c:!1}format(t,o){var n,i,c;return hn.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:E.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(c=o?.withTime)!==null&&c!==void 0?c:!1)}};window.FluidTopicsDateService=new Ar;var Pi=w(U());(0,yn.customElement)("ft-app-context")(_);var Nr=class r extends Event{constructor(){super(r.eventName)}};Nr.eventName="search-context-clear-all-filters";var Ti=function(r,t,o,n){var i=arguments.length,c=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(c=(i<3?l(c):i>3?l(t,o,c):l(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},Rr=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Ir=Symbol("registerInterval");function Fi(r){var t;class o extends r{constructor(){super(...arguments),this[t]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ir]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ir]):this.dispatchEvent(new Rr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Ir,Ti([(0,mn.state)()],o.prototype,"stateManager",void 0),o}var Pt=class extends Fi(gn.FtLitElementRedux){};var On=w(U());var Ut=w(q()),Dt=w(J()),Bt=w(U());var bn=w(q());var xn=bn.css`
|
|
7
|
+
`}update(t){var o,n,i,c,l;super.update(t),t.has("baseUrl")&&(E.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&E.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&E.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&E.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&E.actions.noCustom(this.noCustom),t.has("editorMode")&&E.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&E.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&E.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>Se.addContext(d)),t.has("openExternalDocumentInNewTab")&&E.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&E.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&E.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(E.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),E.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),E.actions.searchInAllLanguagesAllowed((l=(c=this.localesConfiguration)===null||c===void 0?void 0:c.allLanguagesAllowed)!==null&&l!==void 0?l:!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 t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};_.elementDefinitions={};_.styles=vo;z([(0,G.property)()],_.prototype,"baseUrl",void 0);z([(0,G.property)()],_.prototype,"apiIntegrationIdentifier",void 0);z([(0,G.property)()],_.prototype,"uiLocale",void 0);z([(0,Y.jsonProperty)(null)],_.prototype,"availableUiLocales",void 0);z([(0,Y.jsonProperty)(null)],_.prototype,"metadataConfiguration",void 0);z([(0,G.property)({type:Boolean})],_.prototype,"editorMode",void 0);z([(0,G.property)({type:Boolean})],_.prototype,"noCustom",void 0);z([(0,G.property)({type:Boolean})],_.prototype,"openExternalDocumentInNewTab",void 0);z([(0,G.property)({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],_.prototype,"noCustomComponent",void 0);z([(0,G.property)({type:Boolean})],_.prototype,"withManualResources",void 0);z([(0,G.property)({type:Boolean})],_.prototype,"navigatorOnline",void 0);z([(0,G.property)({type:Boolean})],_.prototype,"forcedOffline",void 0);z([(0,G.property)({type:Object})],_.prototype,"apiProvider",void 0);z([(0,Y.jsonProperty)([])],_.prototype,"messageContexts",void 0);z([(0,Y.jsonProperty)(void 0)],_.prototype,"session",void 0);z([(0,G.state)()],_.prototype,"localesConfiguration",void 0);var Ri=w(J());function $a(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var o,n,i;if(Array.isArray(r)){if(o=r.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!pt(r[n],t[n]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(n of r.entries())if(!t.has(n[0]))return!1;for(n of r.entries())if(!pt(n[1],t.get(n[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(n of r.entries())if(!t.has(n[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();let c=l=>Object.keys(l).filter(d=>l[d]!=null);if(i=c(r),o=i.length,o!==c(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=o;n--!==0;){let l=i[n];if(!pt(r[l],t[l]))return!1}return!0}return r!==r&&t!==t||r==null&&t==null}function pt(r,t){try{return $a(r,t)}catch{return!1}}function ft(r,t){return!pt(r,t)}var Ga=w(J(),1);var ht=class{constructor(){this.queue=[]}add(t,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==t.type)),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var Ve=w(J(),1);var Eo=w(J(),1);function wo(r,t){let o=()=>JSON.parse(JSON.stringify(r));return(0,Eo.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:ft,...t??{}})}var yt=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,c=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(d){i(d);return}c(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var No=w(q(),1);var gt=window,ja=gt.ShadowRoot&&(gt.ShadyCSS===void 0||gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Tc=Symbol();var Ao=(r,t)=>{ja?r.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):t.forEach(o=>{let n=document.createElement("style"),i=gt.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,r.appendChild(n)})};var mt=class extends No.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,c])=>t.registry.define(i,c)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Ao(n,t.elementStyles),n}};var bt=function(r,t,o,n){var i=arguments.length,c=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(c=(i<3?l(c):i>3?l(t,o,c):l(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},Po,Io=Symbol("constructorPrototype"),Ro=Symbol("constructorName"),To=Symbol("exportpartsDebouncer"),Lo=Symbol("dynamicDependenciesLoaded"),se=class extends mt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Po]=new yt(5),this[Ro]=this.constructor.name,this[Io]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ro]&&Object.setPrototypeOf(this,this[Io])}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 t=this.constructor;t[Lo]||(t[Lo]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var o,n,i;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(c=>c.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(c){console.error(c,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let c=document.createElement("style");c.classList.add("ft-lit-element--custom-stylesheet"),c.innerHTML=this.customStylesheet,this.shadowRoot.append(c)}}scheduleExportpartsUpdate(){var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[To].run(()=>{var i,c;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((c=this.exportpartsPrefixes)===null||c===void 0?void 0:c.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var o,n,i,c,l,d;let p=m=>m!=null&&m.trim().length>0,u=t.filter(p).map(m=>m.trim());if(u.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let m of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(c=(i=m.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&c!==void 0?c:[],b=(d=(l=m.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(S=>S.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...v,...b).filter(p).map(S=>S.trim()).forEach(S=>y.add(S))}if(y.size===0){this.removeAttribute("exportparts");return}let h=[...y.values()].flatMap(m=>u.map(v=>`${m}:${v}--${m}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};Po=To;bt([(0,Ve.property)()],se.prototype,"exportpartsPrefix",void 0);bt([wo([])],se.prototype,"exportpartsPrefixes",void 0);bt([(0,Ve.property)()],se.prototype,"customStylesheet",void 0);bt([(0,Ve.state)()],se.prototype,"useAdoptedStyleSheets",void 0);function Ze(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Fo,ko,_o,qe=Symbol("internalReduxEventsUnsubscribers"),le=Symbol("internalStoresUnsubscribers"),Oe=Symbol("internalStores"),Ye=class extends se{constructor(){super(...arguments),this[Fo]=new Map,this[ko]=new Map,this[_o]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Oe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Oe].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Oe].get(t)}addStore(t,o){var n;o=(n=o??(Ze(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Oe].set(o,t),this.subscribeToStore(o,t),this.updateFromStores()}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[Oe].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Oe].forEach((t,o)=>this.subscribeToStore(o,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(t.store);i&&(t.store?this[le].has(t.store):this[le].size>0)&&(this[o]=t.selector(i.getState(),this))}})}subscribeToStore(t,o){var n;this[le].set(t,o.subscribe(()=>this.updateFromStores())),this[qe].set(t,[]),Ze(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,c)=>{if(typeof this[c]=="function"&&(!i.store||o.name===i.store)){let l=d=>this[c](d);o.addEventListener(i.eventName,l),this[qe].get(t).push(()=>o.removeEventListener(i.eventName,l))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[le].forEach((t,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(t){var o;this[le].has(t)&&this[le].get(t)(),this[le].delete(t),(o=this[qe].get(t))===null||o===void 0||o.forEach(n=>n()),this[qe].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Fo=le,ko=Oe,_o=qe;Ye.reduxProperties=new Map;Ye.reduxReactiveProperties=new Set;Ye.reduxEventListeners=new Map;function K(r){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var i,c;throw Error("[Immer] minified error nr: "+r+(o.length?" "+o.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function re(r){return!!r&&!!r[F]}function X(r){var t;return!!r&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Ja}(r)||Array.isArray(r)||!!r[Ho]||!!(!((t=r.constructor)===null||t===void 0)&&t[Ho])||ir(r)||cr(r))}function Ce(r,t,o){o===void 0&&(o=!1),Te(r)===0?(o?Object.keys:Pe)(r).forEach(function(n){o&&typeof n=="symbol"||t(n,r[n],r)}):r.forEach(function(n,i){return t(i,n,r)})}function Te(r){var t=r[F];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:ir(r)?2:cr(r)?3:0}function Le(r,t){return Te(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function Ka(r,t){return Te(r)===2?r.get(t):r[t]}function $o(r,t,o){var n=Te(r);n===2?r.set(t,o):n===3?r.add(o):r[t]=o}function Go(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function ir(r){return Xa&&r instanceof Map}function cr(r){return Qa&&r instanceof Set}function de(r){return r.o||r.t}function sr(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=Vo(r);delete t[F];for(var o=Pe(t),n=0;n<o.length;n++){var i=o[n],c=t[i];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(t[i]={configurable:!0,writable:!0,enumerable:c.enumerable,value:r[i]})}return Object.create(Object.getPrototypeOf(r),t)}function lr(r,t){return t===void 0&&(t=!1),dr(r)||re(r)||!X(r)||(Te(r)>1&&(r.set=r.add=r.clear=r.delete=Va),Object.freeze(r),t&&Ce(r,function(o,n){return lr(n,!0)},!0)),r}function Va(){K(2)}function dr(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function ee(r){var t=ar[r];return t||K(18,r),t}function Za(r,t){ar[r]||(ar[r]=t)}function rr(){return Qe}function Qt(r,t){t&&(ee("Patches"),r.u=[],r.s=[],r.v=t)}function xt(r){or(r),r.p.forEach(qa),r.p=null}function or(r){r===Qe&&(Qe=r.l)}function Uo(r){return Qe={p:[],l:Qe,h:r,m:!0,_:0}}function qa(r){var t=r[F];t.i===0||t.i===1?t.j():t.g=!0}function Jt(r,t){t._=t.p.length;var o=t.p[0],n=r!==void 0&&r!==o;return t.h.O||ee("ES5").S(t,r,n),n?(o[F].P&&(xt(t),K(4)),X(r)&&(r=vt(t,r),t.l||St(t,r)),t.u&&ee("Patches").M(o[F].t,r,t.u,t.s)):r=vt(t,o,[]),xt(t),t.u&&t.v(t.u,t.s),r!==Ko?r:void 0}function vt(r,t,o){if(dr(t))return t;var n=t[F];if(!n)return Ce(t,function(d,p){return Do(r,n,t,d,p,o)},!0),t;if(n.A!==r)return t;if(!n.P)return St(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=sr(n.k):n.o,c=i,l=!1;n.i===3&&(c=new Set(i),i.clear(),l=!0),Ce(c,function(d,p){return Do(r,n,i,d,p,o,l)}),St(r,i,!1),o&&r.u&&ee("Patches").N(n,o,r.u,r.s)}return n.o}function Do(r,t,o,n,i,c,l){if(re(i)){var d=vt(r,i,c&&t&&t.i!==3&&!Le(t.R,n)?c.concat(n):void 0);if($o(o,n,d),!re(d))return;r.m=!1}else l&&o.add(i);if(X(i)&&!dr(i)){if(!r.h.D&&r._<1)return;vt(r,i),t&&t.A.l||St(r,i)}}function St(r,t,o){o===void 0&&(o=!1),!r.l&&r.h.D&&r.m&&lr(t,o)}function er(r,t){var o=r[F];return(o?de(o):r)[t]}function Bo(r,t){if(t in r)for(var o=Object.getPrototypeOf(r);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function ue(r){r.P||(r.P=!0,r.l&&ue(r.l))}function tr(r){r.o||(r.o=sr(r.t))}function nr(r,t,o){var n=ir(t)?ee("MapSet").F(t,o):cr(t)?ee("MapSet").T(t,o):r.O?function(i,c){var l=Array.isArray(i),d={i:l?1:0,A:c?c.A:rr(),P:!1,I:!1,R:{},l:c,t:i,k:null,o:null,j:null,C:!1},p=d,u=Je;l&&(p=[d],u=Xe);var y=Proxy.revocable(p,u),h=y.revoke,m=y.proxy;return d.k=m,d.j=h,m}(t,o):ee("ES5").J(t,o);return(o?o.A:rr()).p.push(n),n}function Ya(r){return re(r)||K(22,r),function t(o){if(!X(o))return o;var n,i=o[F],c=Te(o);if(i){if(!i.P&&(i.i<4||!ee("ES5").K(i)))return i.t;i.I=!0,n=Mo(o,c),i.I=!1}else n=Mo(o,c);return Ce(n,function(l,d){i&&Ka(i.t,l)===d||$o(n,l,t(d))}),c===3?new Set(n):n}(r)}function Mo(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return sr(r)}function jo(){function r(l,d){var p=c[l];return p?p.enumerable=d:c[l]=p={configurable:!0,enumerable:d,get:function(){var u=this[F];return Je.get(u,l)},set:function(u){var y=this[F];Je.set(y,l,u)}},p}function t(l){for(var d=l.length-1;d>=0;d--){var p=l[d][F];if(!p.P)switch(p.i){case 5:n(p)&&ue(p);break;case 4:o(p)&&ue(p)}}}function o(l){for(var d=l.t,p=l.k,u=Pe(p),y=u.length-1;y>=0;y--){var h=u[y];if(h!==F){var m=d[h];if(m===void 0&&!Le(d,h))return!0;var v=p[h],b=v&&v[F];if(b?b.t!==m:!Go(v,m))return!0}}var S=!!d[F];return u.length!==Pe(d).length+(S?0:1)}function n(l){var d=l.k;if(d.length!==l.t.length)return!0;var p=Object.getOwnPropertyDescriptor(d,d.length-1);if(p&&!p.get)return!0;for(var u=0;u<d.length;u++)if(!d.hasOwnProperty(u))return!0;return!1}function i(l){l.g&&K(3,JSON.stringify(de(l)))}var c={};Za("ES5",{J:function(l,d){var p=Array.isArray(l),u=function(h,m){if(h){for(var v=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(v,""+b,r(b,!0));return v}var S=Vo(m);delete S[F];for(var R=Pe(S),A=0;A<R.length;A++){var N=R[A];S[N]=r(N,h||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(m),S)}(p,l),y={i:p?5:4,A:d?d.A:rr(),P:!1,I:!1,R:{},l:d,t:l,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,F,{value:y,writable:!0}),u},S:function(l,d,p){p?re(d)&&d[F].A===l&&t(l.p):(l.u&&function u(y){if(y&&typeof y=="object"){var h=y[F];if(h){var m=h.t,v=h.k,b=h.R,S=h.i;if(S===4)Ce(v,function(L){L!==F&&(m[L]!==void 0||Le(m,L)?b[L]||u(v[L]):(b[L]=!0,ue(h)))}),Ce(m,function(L){v[L]!==void 0||Le(v,L)||(b[L]=!1,ue(h))});else if(S===5){if(n(h)&&(ue(h),b.length=!0),v.length<m.length)for(var R=v.length;R<m.length;R++)b[R]=!1;else for(var A=m.length;A<v.length;A++)b[A]=!0;for(var N=Math.min(v.length,m.length),T=0;T<N;T++)v.hasOwnProperty(T)||(b[T]=!0),b[T]===void 0&&u(v[T])}}}}(l.p[0]),t(l.p))},K:function(l){return l.i===4?o(l):n(l)}})}var Wo,Qe,ur=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Xa=typeof Map<"u",Qa=typeof Set<"u",zo=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ko=ur?Symbol.for("immer-nothing"):((Wo={})["immer-nothing"]=!0,Wo),Ho=ur?Symbol.for("immer-draftable"):"__$immer_draftable",F=ur?Symbol.for("immer-state"):"__$immer_state";var Ja=""+Object.prototype.constructor,Pe=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Vo=Object.getOwnPropertyDescriptors||function(r){var t={};return Pe(r).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(r,o)}),t},ar={},Je={get:function(r,t){if(t===F)return r;var o=de(r);if(!Le(o,t))return function(i,c,l){var d,p=Bo(c,l);return p?"value"in p?p.value:(d=p.get)===null||d===void 0?void 0:d.call(i.k):void 0}(r,o,t);var n=o[t];return r.I||!X(n)?n:n===er(r.t,t)?(tr(r),r.o[t]=nr(r.A.h,n,r)):n},has:function(r,t){return t in de(r)},ownKeys:function(r){return Reflect.ownKeys(de(r))},set:function(r,t,o){var n=Bo(de(r),t);if(n?.set)return n.set.call(r.k,o),!0;if(!r.P){var i=er(de(r),t),c=i?.[F];if(c&&c.t===o)return r.o[t]=o,r.R[t]=!1,!0;if(Go(o,i)&&(o!==void 0||Le(r.t,t)))return!0;tr(r),ue(r)}return r.o[t]===o&&(o!==void 0||t in r.o)||Number.isNaN(o)&&Number.isNaN(r.o[t])||(r.o[t]=o,r.R[t]=!0),!0},deleteProperty:function(r,t){return er(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,tr(r),ue(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var o=de(r),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){K(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){K(12)}},Xe={};Ce(Je,function(r,t){Xe[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Xe.deleteProperty=function(r,t){return Xe.set.call(this,r,t,void 0)},Xe.set=function(r,t,o){return Je.set.call(this,r[0],t,o,r[0])};var ei=function(){function r(o){var n=this;this.O=zo,this.D=!0,this.produce=function(i,c,l){if(typeof i=="function"&&typeof c!="function"){var d=c;c=i;var p=n;return function(S){var R=this;S===void 0&&(S=d);for(var A=arguments.length,N=Array(A>1?A-1:0),T=1;T<A;T++)N[T-1]=arguments[T];return p.produce(S,function(L){var M;return(M=c).call.apply(M,[R,L].concat(N))})}}var u;if(typeof c!="function"&&K(6),l!==void 0&&typeof l!="function"&&K(7),X(i)){var y=Uo(n),h=nr(n,i,void 0),m=!0;try{u=c(h),m=!1}finally{m?xt(y):or(y)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return Qt(y,l),Jt(S,y)},function(S){throw xt(y),S}):(Qt(y,l),Jt(u,y))}if(!i||typeof i!="object"){if((u=c(i))===void 0&&(u=i),u===Ko&&(u=void 0),n.D&&lr(u,!0),l){var v=[],b=[];ee("Patches").M(i,u,v,b),l(v,b)}return u}K(21,i)},this.produceWithPatches=function(i,c){if(typeof i=="function")return function(u){for(var y=arguments.length,h=Array(y>1?y-1:0),m=1;m<y;m++)h[m-1]=arguments[m];return n.produceWithPatches(u,function(v){return i.apply(void 0,[v].concat(h))})};var l,d,p=n.produce(i,c,function(u,y){l=u,d=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,l,d]}):[p,l,d]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=r.prototype;return t.createDraft=function(o){X(o)||K(8),re(o)&&(o=Ya(o));var n=Uo(this),i=nr(this,o,void 0);return i[F].C=!0,or(n),i},t.finishDraft=function(o,n){var i=o&&o[F],c=i.A;return Qt(c,n),Jt(void 0,c)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!zo&&K(20),this.O=o},t.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var c=n[i];if(c.path.length===0&&c.op==="replace"){o=c.value;break}}i>-1&&(n=n.slice(i+1));var l=ee("Patches").$;return re(o)?l(o,n):this.produce(o,function(d){return l(d,n)})},r}(),j=new ei,ti=j.produce,Gc=j.produceWithPatches.bind(j),jc=j.setAutoFreeze.bind(j),Kc=j.setUseProxies.bind(j),Vc=j.applyPatches.bind(j),Zc=j.createDraft.bind(j),qc=j.finishDraft.bind(j),Ot=ti;function pe(r){"@babel/helpers - typeof";return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pe(r)}function pr(r,t){if(pe(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var n=o.call(r,t||"default");if(pe(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function fr(r){var t=pr(r,"string");return pe(t)==="symbol"?t:String(t)}function hr(r,t,o){return t=fr(t),t in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o,r}function Zo(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),o.push.apply(o,n)}return o}function Ct(r){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Zo(Object(o),!0).forEach(function(n){hr(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Zo(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}function H(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var qo=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),yr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Et={INIT:"@@redux/INIT"+yr(),REPLACE:"@@redux/REPLACE"+yr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+yr()}};function ri(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function gr(r,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(H(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(H(1));return o(gr)(r,t)}if(typeof r!="function")throw new Error(H(2));var i=r,c=t,l=[],d=l,p=!1;function u(){d===l&&(d=l.slice())}function y(){if(p)throw new Error(H(3));return c}function h(S){if(typeof S!="function")throw new Error(H(4));if(p)throw new Error(H(5));var R=!0;return u(),d.push(S),function(){if(R){if(p)throw new Error(H(6));R=!1,u();var N=d.indexOf(S);d.splice(N,1),l=null}}}function m(S){if(!ri(S))throw new Error(H(7));if(typeof S.type>"u")throw new Error(H(8));if(p)throw new Error(H(9));try{p=!0,c=i(c,S)}finally{p=!1}for(var R=l=d,A=0;A<R.length;A++){var N=R[A];N()}return S}function v(S){if(typeof S!="function")throw new Error(H(10));i=S,m({type:Et.REPLACE})}function b(){var S,R=h;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(H(11));function T(){N.next&&N.next(y())}T();var L=R(T);return{unsubscribe:L}}},S[qo]=function(){return this},S}return m({type:Et.INIT}),n={dispatch:m,subscribe:h,getState:y,replaceReducer:v},n[qo]=b,n}function oi(r){Object.keys(r).forEach(function(t){var o=r[t],n=o(void 0,{type:Et.INIT});if(typeof n>"u")throw new Error(H(12));if(typeof o(void 0,{type:Et.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(H(13))})}function Yo(r){for(var t=Object.keys(r),o={},n=0;n<t.length;n++){var i=t[n];typeof r[i]=="function"&&(o[i]=r[i])}var c=Object.keys(o),l,d;try{oi(o)}catch(p){d=p}return function(u,y){if(u===void 0&&(u={}),d)throw d;if(0)var h;for(var m=!1,v={},b=0;b<c.length;b++){var S=c[b],R=o[S],A=u[S],N=R(A,y);if(typeof N>"u"){var T=y&&y.type;throw new Error(H(14))}v[S]=N,m=m||N!==A}return m=m||c.length!==Object.keys(u).length,m?v:u}}function Fe(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Xo(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),c=function(){throw new Error(H(15))},l={getState:i.getState,dispatch:function(){return c.apply(void 0,arguments)}},d=t.map(function(p){return p(l)});return c=Fe.apply(void 0,d)(i.dispatch),Ct(Ct({},i),{},{dispatch:c})}}}function Qo(r){var t=function(n){var i=n.dispatch,c=n.getState;return function(l){return function(d){return typeof d=="function"?d(i,c,r):l(d)}}};return t}var Jo=Qo();Jo.withExtraArgument=Qo;var mr=Jo;var nn=function(){var r=function(t,o){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(n[c]=i[c])},r(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");r(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),ni=function(r,t){var o={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},n,i,c,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(u){return function(y){return p([u,y])}}function p(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(c=u[0]&2?i.return:u[0]?i.throw||((c=i.return)&&c.call(i),0):i.next)&&!(c=c.call(i,u[1])).done)return c;switch(i=0,c&&(u=[u[0]&2,c.value]),u[0]){case 0:case 1:c=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(c=o.trys,!(c=c.length>0&&c[c.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!c||u[1]>c[0]&&u[1]<c[3])){o.label=u[1];break}if(u[0]===6&&o.label<c[1]){o.label=c[1],c=u;break}if(c&&o.label<c[2]){o.label=c[2],o.ops.push(u);break}c[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(r,o)}catch(y){u=[6,y],i=0}finally{n=c=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ke=function(r,t){for(var o=0,n=t.length,i=r.length;o<n;o++,i++)r[i]=t[o];return r},ai=Object.defineProperty,ii=Object.defineProperties,ci=Object.getOwnPropertyDescriptors,en=Object.getOwnPropertySymbols,si=Object.prototype.hasOwnProperty,li=Object.prototype.propertyIsEnumerable,tn=function(r,t,o){return t in r?ai(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o},fe=function(r,t){for(var o in t||(t={}))si.call(t,o)&&tn(r,o,t[o]);if(en)for(var n=0,i=en(t);n<i.length;n++){var o=i[n];li.call(t,o)&&tn(r,o,t[o])}return r},br=function(r,t){return ii(r,ci(t))},di=function(r,t,o){return new Promise(function(n,i){var c=function(p){try{d(o.next(p))}catch(u){i(u)}},l=function(p){try{d(o.throw(p))}catch(u){i(u)}},d=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(c,l)};d((o=o.apply(r,t)).next())})};var ui=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Fe:Fe.apply(null,arguments)},fs=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function pi(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var fi=function(r){nn(t,r);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=r.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,ke([void 0],o[0].concat(this)))):new(t.bind.apply(t,ke([void 0],o.concat(this))))},t}(Array),hi=function(r){nn(t,r);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=r.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,ke([void 0],o[0].concat(this)))):new(t.bind.apply(t,ke([void 0],o.concat(this))))},t}(Array);function Sr(r){return X(r)?Ot(r,function(){}):r}function yi(r){return typeof r=="boolean"}function gi(){return function(t){return mi(t)}}function mi(r){r===void 0&&(r={});var t=r.thunk,o=t===void 0?!0:t,n=r.immutableCheck,i=n===void 0?!0:n,c=r.serializableCheck,l=c===void 0?!0:c,d=new fi;if(o&&(yi(o)?d.push(mr):d.push(mr.withExtraArgument(o.extraArgument))),0){if(i)var p;if(l)var u}return d}var xr=!0;function an(r){var t=gi(),o=r||{},n=o.reducer,i=n===void 0?void 0:n,c=o.middleware,l=c===void 0?t():c,d=o.devTools,p=d===void 0?!0:d,u=o.preloadedState,y=u===void 0?void 0:u,h=o.enhancers,m=h===void 0?void 0:h,v;if(typeof i=="function")v=i;else if(pi(i))v=Yo(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=l;if(typeof b=="function"&&(b=b(t),!xr&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!xr&&b.some(function(L){return typeof L!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Xo.apply(void 0,b),R=Fe;p&&(R=ui(fe({trace:!xr},typeof p=="object"&&p)));var A=new hi(S),N=A;Array.isArray(m)?N=ke([S],m):typeof m=="function"&&(N=m(A));var T=R.apply(void 0,N);return gr(v,y,T)}function he(r,t){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var c=t.apply(void 0,n);if(!c)throw new Error("prepareAction did not return an object");return fe(fe({type:r,payload:c.payload},"meta"in c&&{meta:c.meta}),"error"in c&&{error:c.error})}return{type:r,payload:n[0]}}return o.toString=function(){return""+r},o.type=r,o.match=function(n){return n.type===r},o}function cn(r){var t={},o=[],n,i={addCase:function(c,l){var d=typeof c=="string"?c:c.type;if(d in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[d]=l,i},addMatcher:function(c,l){return o.push({matcher:c,reducer:l}),i},addDefaultCase:function(c){return n=c,i}};return r(i),[t,o,n]}function bi(r){return typeof r=="function"}function xi(r,t,o,n){o===void 0&&(o=[]);var i=typeof t=="function"?cn(t):[t,o,n],c=i[0],l=i[1],d=i[2],p;if(bi(r))p=function(){return Sr(r())};else{var u=Sr(r);p=function(){return u}}function y(h,m){h===void 0&&(h=p());var v=ke([c[m.type]],l.filter(function(b){var S=b.matcher;return S(m)}).map(function(b){var S=b.reducer;return S}));return v.filter(function(b){return!!b}).length===0&&(v=[d]),v.reduce(function(b,S){if(S)if(re(b)){var R=b,A=S(R,m);return A===void 0?b:A}else{if(X(b))return Ot(b,function(N){return S(N,m)});var A=S(b,m);if(A===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return b},h)}return y.getInitialState=p,y}function vi(r,t){return r+"/"+t}function sn(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof r.initialState=="function"?r.initialState:Sr(r.initialState),n=r.reducers||{},i=Object.keys(n),c={},l={},d={};i.forEach(function(y){var h=n[y],m=vi(t,y),v,b;"reducer"in h?(v=h.reducer,b=h.prepare):v=h,c[y]=v,l[m]=v,d[y]=b?he(m,b):he(m)});function p(){var y=typeof r.extraReducers=="function"?cn(r.extraReducers):[r.extraReducers],h=y[0],m=h===void 0?{}:h,v=y[1],b=v===void 0?[]:v,S=y[2],R=S===void 0?void 0:S,A=fe(fe({},m),l);return xi(o,function(N){for(var T in A)N.addCase(T,A[T]);for(var L=0,M=b;L<M.length;L++){var Z=M[L];N.addMatcher(Z.matcher,Z.reducer)}R&&N.addDefaultCase(R)})}var u;return{name:t,reducer:function(y,h){return u||(u=p()),u(y,h)},actions:d,caseReducers:c,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var Si="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Oi=function(r){r===void 0&&(r=21);for(var t="",o=r;o--;)t+=Si[Math.random()*64|0];return t},Ci=["name","message","stack","code"],vr=function(){function r(t,o){this.payload=t,this.meta=o}return r}(),rn=function(){function r(t,o){this.payload=t,this.meta=o}return r}(),Ei=function(r){if(typeof r=="object"&&r!==null){for(var t={},o=0,n=Ci;o<n.length;o++){var i=n[o];typeof r[i]=="string"&&(t[i]=r[i])}return t}return{message:String(r)}},ms=function(){function r(t,o,n){var i=he(t+"/fulfilled",function(y,h,m,v){return{payload:y,meta:br(fe({},v||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),c=he(t+"/pending",function(y,h,m){return{payload:void 0,meta:br(fe({},m||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),l=he(t+"/rejected",function(y,h,m,v,b){return{payload:v,error:(n&&n.serializeError||Ei)(y||"Rejected"),meta:br(fe({},b||{}),{arg:m,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),d=!1,p=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,m,v){var b=n?.idGenerator?n.idGenerator(y):Oi(),S=new p,R,A=!1;function N(L){R=L,S.abort()}var T=function(){return di(this,null,function(){var L,M,Z,me,$,be,Ie;return ni(this,function(f){switch(f.label){case 0:return f.trys.push([0,4,,5]),me=(L=n?.condition)==null?void 0:L.call(n,y,{getState:m,extra:v}),Ai(me)?[4,me]:[3,2];case 1:me=f.sent(),f.label=2;case 2:if(me===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,$=new Promise(function(g,C){return S.signal.addEventListener("abort",function(){return C({name:"AbortError",message:R||"Aborted"})})}),h(c(b,y,(M=n?.getPendingMeta)==null?void 0:M.call(n,{requestId:b,arg:y},{getState:m,extra:v}))),[4,Promise.race([$,Promise.resolve(o(y,{dispatch:h,getState:m,extra:v,requestId:b,signal:S.signal,abort:N,rejectWithValue:function(g,C){return new vr(g,C)},fulfillWithValue:function(g,C){return new rn(g,C)}})).then(function(g){if(g instanceof vr)throw g;return g instanceof rn?i(g.payload,b,y,g.meta):i(g,b,y)})])];case 3:return Z=f.sent(),[3,5];case 4:return be=f.sent(),Z=be instanceof vr?l(null,b,y,be.payload,be.meta):l(be,b,y),[3,5];case 5:return Ie=n&&!n.dispatchConditionRejection&&l.match(Z)&&Z.meta.condition,Ie||h(Z),[2,Z]}})})}();return Object.assign(T,{abort:N,requestId:b,arg:y,unwrap:function(){return T.then(wi)}})}}return Object.assign(u,{pending:c,rejected:l,fulfilled:i,typePrefix:t})}return r.withTypes=function(){return r},r}();function wi(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Ai(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var ln="listener",dn="completed",un="cancelled",bs="task-"+un,xs="task-"+dn,vs=ln+"-"+un,Ss=ln+"-"+dn;var Or="listenerMiddleware";var Os=he(Or+"/add"),Cs=he(Or+"/removeAll"),Es=he(Or+"/remove");var on,ws=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(on||(on=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},Ni=function(r){return function(t){setTimeout(t,r)}},As=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ni(10);jo();function Ii(r,t){return class extends r{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,i){this.eventBus.addEventListener(o,n,i)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,i){this.eventBus.removeEventListener(o,n,i)}}}var wt=class extends Ii(Object){};window.ftReduxStores||(window.ftReduxStores={});var pn=class r extends wt{static get(t){var o;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,c=window.ftReduxStores[n];if(Ze(c))return c;if(i==null)return;let l=sn({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),d=an({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:l.reducer(p,u)});return window.ftReduxStores[i.name]=new r(l,d)}constructor(t,o){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new ht;let n=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let d=c,p=i[d];return p?(...u)=>{let y=p(...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(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Rt=w(U());var At=class extends te{async listMySearches(){let t=E.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Nt=class extends te{async listMyBookmarks(){let t=E.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var Li="ft-user-assets",It=Rt.FtReduxStore.get({name:Li,initialState:{savedSearches:void 0,bookmarks:void 0}}),Cr=class{constructor(){this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Nt,this.savedSearchesService=new At,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=E.getState();(0,Rt.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),It.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),It.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();It.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;It.actions.bookmarks(o)}}},cl=new Cr;var Er=class{addCommand(t,o=!1){E.commands.add(t,o)}consumeCommand(t){return E.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Er;var fn=w(U()),wr=class{highlightHtml(t,o,n){(0,fn.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new wr;var hn=w(U());var Ar=class{isDate(t){var o,n,i,c;return(c=(i=((n=(o=E.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===t))===null||i===void 0?void 0:i.date)!==null&&c!==void 0?c:!1}format(t,o){var n,i,c;return hn.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:E.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(c=o?.withTime)!==null&&c!==void 0?c:!1)}};window.FluidTopicsDateService=new Ar;var Pi=w(U());(0,yn.customElement)("ft-app-context")(_);var Nr=class r extends Event{constructor(){super(r.eventName)}};Nr.eventName="search-context-clear-all-filters";var Ti=function(r,t,o,n){var i=arguments.length,c=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(c=(i<3?l(c):i>3?l(t,o,c):l(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},Rr=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Ir=Symbol("registerInterval");function Fi(r){var t;class o extends r{constructor(){super(...arguments),this[t]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ir]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ir]):this.dispatchEvent(new Rr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Ir,Ti([(0,mn.state)()],o.prototype,"stateManager",void 0),o}var Pt=class extends Fi(gn.FtLitElementRedux){};var On=w(U());var Ut=w(q()),Dt=w(J()),Bt=w(U());var bn=w(q());var xn=bn.css`
|
|
8
8
|
`;var kt=w(U());var Sn=w(J()),ki=function(r,t,o,n){var i=arguments.length,c=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(c=(i<3?l(c):i>3?l(t,o,c):l(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},Lr=Symbol("i18nAttributes"),Pr=Symbol("i18nListAttributes"),Tt=Symbol("i18nProperties"),Tr=Symbol("i18nManualContexts"),et=Symbol("i18nUnsubs");function _t(r){var t,o;class n extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?Oo:Se}i18n(c,l,...d){var p;if(typeof c=="string")return this.i18nService.resolveMessage(c,l,...d);let u=(p=c.args)!==null&&p!==void 0?p:c.argsProvider?c.argsProvider(this):[];return this.i18nService.resolveMessage(c.context,c.key,...u)}onI18nUpdate(c){var l,d,p;(l=this[Lr])===null||l===void 0||l.forEach((u,y)=>{let h=this.getI18nAttributeValue(y);h&&(this[y]=this.getI18nAttributeMessage(h,u,c))}),(d=this[Pr])===null||d===void 0||d.forEach((u,y)=>{let h=this.getI18nListAttributeValues(y);this[y]=h?.map(m=>this.getI18nAttributeMessage(m,u,c))}),(p=this[Tt])===null||p===void 0||p.forEach((u,y)=>{u.context.toLowerCase()===c.toLowerCase()&&(this[y]=this.i18n(u))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(c,l){return{...c,message:this.i18n({context:c.context,key:c.key,...l})}}getI18nAttributeMessage(c,l,d){var p;let u=!d||((p=c.context)===null||p===void 0?void 0:p.toLowerCase())===d.toLowerCase();return c.context&&c.key&&u?this.buildI18nAttributeMessage(c,l):c}update(c){var l,d,p;super.update(c),(l=this[Lr])===null||l===void 0||l.forEach((u,y)=>{let h=this.getI18nAttributeValue(y);h?.context&&h.key&&(c.has(y)||u.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,c,y),this[y]=this.getI18nAttributeMessage(h,u))}),(d=this[Pr])===null||d===void 0||d.forEach((u,y)=>{let h=this.getI18nListAttributeValues(y);(c.has(y)||u.argsProvider!=null)&&(this[y]=h?.map(m=>(this.addI18nContextIfNeeded(m,c,y),this.getI18nAttributeMessage(m,u))))}),(p=this[Tt])===null||p===void 0||p.forEach((u,y)=>{u.argsProvider!=null&&(this[y]=this.i18n(u))})}getI18nAttributeValue(c){return this[c]}getI18nListAttributeValues(c){return this[c]}addI18nContextIfNeeded(c,l,d){c.context&&c.key&&l.has(d)&&this.addI18nContext(c.context)}addI18nMessagesAndSubscribe(c,l){c=c.toLowerCase(),this[et].has(c)||this[et].set(c,this.i18nService.subscribe(c,()=>this.onI18nUpdate(c))),this.i18nService.prepareContext(c,l??{}),this.onI18nUpdate(c)}connectedCallback(){var c,l,d,p,u,y;super.connectedCallback(),new Set([...(l=(c=this[Tt])===null||c===void 0?void 0:c.values())!==null&&l!==void 0?l:[],...[...(p=(d=this[Lr])===null||d===void 0?void 0:d.keys())!==null&&p!==void 0?p:[]].map(h=>this.getI18nAttributeValue(h)),...[...(y=(u=this[Pr])===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[Tr].forEach((h,m)=>{this.addI18nMessages(m,h)})}addI18nMessages(c,l){this[Tr].set(c,l??{}),this.addI18nMessagesAndSubscribe(c,l)}addI18nContext(c,l){this.addI18nMessages(typeof c=="string"?c:c.name,l)}disconnectedCallback(){super.disconnectedCallback(),this[et].forEach(c=>c()),this[et].clear()}}return t=Tr,o=et,ki([(0,Sn.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var vn=class extends _t(kt.FtLitElement){},Ft=class extends _t(kt.FtLitElementRedux){};var tt=function(r,t,o,n){var i=arguments.length,c=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(c=(i<3?l(c):i>3?l(t,o,c):l(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},Q=class extends Ft{constructor(){super(),this.editorMode=!1,this.addStore(E)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Ut.nothing:Ut.html`
|
|
9
9
|
<span class="ft-i18n">
|
|
10
10
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|