@fluid-topics/ft-search-saved-searches 1.2.60 → 1.2.61
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.
|
@@ -1532,7 +1532,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1532
1532
|
`;var cl=b(L());var Ms=b(G()),Ne=b(re()),Ge=b(L());var $s=b(G());var Fs=$s.css`
|
|
1533
1533
|
`;var fo=b(L()),ad="ft-app-info",Nn=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},id={session:(e,t)=>{(0,fo.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>k.dispatchEvent(new Nn(t.payload)),0))}},k=fo.FtReduxStore.get({name:ad,reducers:id,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Je=b(L());var Tn=b(L());var Dt=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=k.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=k.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var Pr=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Dt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Dt.await()}};var ct=class extends Pr{constructor(t=!0,o){var n;super(o);let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Tn.CacheRegistry,this.cache=t?a.commonCache:new Tn.CacheRegistry}clearCache(){this.cache.clearAll()}};var Us,sd=Symbol("clearAfterUnitTest"),ho=class extends ct{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Us]=()=>{this.defaultMessages={},this.cache=new Je.CacheRegistry,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=k.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(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,Je.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return 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 a;let i=t.toLowerCase(),c=this.resolveContext(i);return new Je.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t))}catch(a){!(a instanceof Je.CanceledPromiseError)&&o&&console.error(a)}return o&&await this.notify(t),n}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 a;return(a=this.listeners[t])===null||a===void 0?void 0:a.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,Je.delay)(0).then(()=>o()).catch(()=>null)))}};Us=sd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ho{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ho{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var cr=window.FluidTopicsI18nService,yo=window.FluidTopicsCustomI18nService;var ge=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},ee=class extends Ge.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=()=>Dt.get(),this.messageContexts=[],this.cache=new Ge.CacheRegistry,this.cleanSessionDebouncer=new Ge.Debouncer}render(){return Ms.html`
|
|
1534
1534
|
<slot></slot>
|
|
1535
|
-
`}update(t){var o,n,a,i,c;super.update(t),t.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&k.actions.noCustom(this.noCustom),t.has("editorMode")&&k.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&k.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>cr.addContext(l)),t.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(k.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),k.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),k.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let 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())}};ee.elementDefinitions={};ee.styles=Fs;ge([(0,Ne.property)()],ee.prototype,"baseUrl",void 0);ge([(0,Ne.property)()],ee.prototype,"apiIntegrationIdentifier",void 0);ge([(0,Ne.property)()],ee.prototype,"uiLocale",void 0);ge([(0,Ge.jsonProperty)(null)],ee.prototype,"availableUiLocales",void 0);ge([(0,Ge.jsonProperty)(null)],ee.prototype,"metadataConfiguration",void 0);ge([(0,Ne.property)({type:Boolean})],ee.prototype,"editorMode",void 0);ge([(0,Ne.property)({type:Boolean})],ee.prototype,"noCustom",void 0);ge([(0,Ne.property)({type:Boolean})],ee.prototype,"openExternalDocumentInNewTab",void 0);ge([(0,Ne.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],ee.prototype,"noCustomComponent",void 0);ge([(0,Ne.property)({type:Boolean})],ee.prototype,"withManualResources",void 0);ge([(0,Ne.property)({type:Boolean})],ee.prototype,"navigatorOnline",void 0);ge([(0,Ne.property)({type:Boolean})],ee.prototype,"forcedOffline",void 0);ge([(0,Ne.property)({type:Object})],ee.prototype,"apiProvider",void 0);ge([(0,Ge.jsonProperty)([])],ee.prototype,"messageContexts",void 0);ge([(0,Ge.jsonProperty)(void 0)],ee.prototype,"session",void 0);ge([(0,Ne.state)()],ee.prototype,"localesConfiguration",void 0);var Zd=b(re());function cd(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var o,n,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!mo(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!mo(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=i(e),o=a.length,o!==i(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!mo(e[c],t[c]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function mo(e,t){try{return cd(e,t)}catch{return!1}}function go(e,t){return!mo(e,t)}var ld=b(re(),1);var bo=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(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}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var lr=b(re(),1);var Ws=b(re(),1);function Hs(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,Ws.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:go,...t??{}})}var xo=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 a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Gs=b(G(),1);var vo=globalThis,dd=vo.ShadowRoot&&(vo.ShadyCSS===void 0||vo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Kb=Symbol();var zs=(e,t)=>{if(dd)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),a=vo.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var So=class extends Gs.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return zs(n,t.elementStyles),n}};function js(e,t,...o){var n;let a=e.querySelector(t);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var kr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},qs,Vs=Symbol("constructorPrototype"),Ks=Symbol("constructorName"),Ys=Symbol("exportpartsDebouncer"),Zs=Symbol("dynamicDependenciesLoaded"),lt=class extends So{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[qs]=new xo(5),this[Ks]=this.constructor.name,this[Vs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ks]&&Object.setPrototypeOf(this,this[Vs])}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[Zs]||(t[Zs]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=js(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var 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[Ys].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var o,n,a,i,c,l;let u=g=>g!=null&&g.trim().length>0,p=t.filter(u).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...S,...v).filter(u).map(O=>O.trim()).forEach(O=>m.add(O))}if(m.size===0){this.removeAttribute("exportparts");return}let y=[...m.values()].flatMap(g=>p.map(S=>`${g}:${S}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};qs=Ys;kr([(0,lr.property)()],lt.prototype,"exportpartsPrefix",void 0);kr([Hs([])],lt.prototype,"exportpartsPrefixes",void 0);kr([(0,lr.property)()],lt.prototype,"customStylesheet",void 0);kr([(0,lr.property)()],lt.prototype,"elementToFocus",void 0);kr([(0,lr.state)()],lt.prototype,"useAdoptedStyleSheets",void 0);function Dr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Xs,Qs,Js,Br=Symbol("internalReduxEventsUnsubscribers"),xt=Symbol("internalStoresUnsubscribers"),Bt=Symbol("internalStores"),$r=class extends lt{constructor(){super(...arguments),this[Xs]=new Map,this[Qs]=new Map,this[Js]=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[Bt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Bt].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Bt].get(t)}addStore(t,o){var n;o=(n=o??(Dr(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Bt].set(o,t),this.subscribeToStore(o,t),this.updateFromStores()}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[Bt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Bt].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 a=this.getStore(t.store);a&&(t.store?this[xt].has(t.store):this[xt].size>0)&&(this[o]=t.selector(a.getState(),this))}})}subscribeToStore(t,o){var n;this[xt].set(t,o.subscribe(()=>this.updateFromStores())),this[Br].set(t,[]),Dr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=l=>this[i](l);o.addEventListener(a.eventName,c),this[Br].get(t).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[xt].forEach((t,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(t){var o;this[xt].has(t)&&this[xt].get(t)(),this[xt].delete(t),(o=this[Br].get(t))===null||o===void 0||o.forEach(n=>n()),this[Br].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Xs=xt,Qs=Bt,Js=Br;$r.reduxProperties=new Map;$r.reduxReactiveProperties=new Set;$r.reduxEventListeners=new Map;function Fe(e){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 a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function dt(e){return!!e&&!!e[q]}function je(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===bd}(e)||Array.isArray(e)||!!e[ic]||!!(!((t=e.constructor)===null||t===void 0)&&t[ic])||Fn(e)||Un(e))}function $t(e,t,o){o===void 0&&(o=!1),pr(e)===0?(o?Object.keys:ur)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function pr(e){var t=e[q];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Fn(e)?2:Un(e)?3:0}function dr(e,t){return pr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ud(e,t){return pr(e)===2?e.get(t):e[t]}function sc(e,t,o){var n=pr(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function cc(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Fn(e){return md&&e instanceof Map}function Un(e){return gd&&e instanceof Set}function vt(e){return e.o||e.t}function Mn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=uc(e);delete t[q];for(var o=ur(t),n=0;n<o.length;n++){var a=o[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function Wn(e,t){return t===void 0&&(t=!1),Hn(e)||dt(e)||!je(e)||(pr(e)>1&&(e.set=e.add=e.clear=e.delete=pd),Object.freeze(e),t&&$t(e,function(o,n){return Wn(n,!0)},!0)),e}function pd(){Fe(2)}function Hn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function et(e){var t=$n[e];return t||Fe(18,e),t}function fd(e,t){$n[e]||($n[e]=t)}function kn(){return Ur}function Ln(e,t){t&&(et("Patches"),e.u=[],e.s=[],e.v=t)}function Oo(e){Dn(e),e.p.forEach(hd),e.p=null}function Dn(e){e===Ur&&(Ur=e.l)}function ec(e){return Ur={p:[],l:Ur,h:e,m:!0,_:0}}function hd(e){var t=e[q];t.i===0||t.i===1?t.j():t.g=!0}function In(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||et("ES5").S(t,e,n),n?(o[q].P&&(Oo(t),Fe(4)),je(e)&&(e=Co(t,e),t.l||Eo(t,e)),t.u&&et("Patches").M(o[q].t,e,t.u,t.s)):e=Co(t,o,[]),Oo(t),t.u&&t.v(t.u,t.s),e!==dc?e:void 0}function Co(e,t,o){if(Hn(t))return t;var n=t[q];if(!n)return $t(t,function(l,u){return tc(e,n,t,l,u,o)},!0),t;if(n.A!==e)return t;if(!n.P)return Eo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Mn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),$t(i,function(l,u){return tc(e,n,a,l,u,o,c)}),Eo(e,a,!1),o&&e.u&&et("Patches").N(n,o,e.u,e.s)}return n.o}function tc(e,t,o,n,a,i,c){if(dt(a)){var l=Co(e,a,i&&t&&t.i!==3&&!dr(t.R,n)?i.concat(n):void 0);if(sc(o,n,l),!dt(l))return;e.m=!1}else c&&o.add(a);if(je(a)&&!Hn(a)){if(!e.h.D&&e._<1)return;Co(e,a),t&&t.A.l||Eo(e,a)}}function Eo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Wn(t,o)}function _n(e,t){var o=e[q];return(o?vt(o):e)[t]}function rc(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function St(e){e.P||(e.P=!0,e.l&&St(e.l))}function Pn(e){e.o||(e.o=Mn(e.t))}function Bn(e,t,o){var n=Fn(t)?et("MapSet").F(t,o):Un(t)?et("MapSet").T(t,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:kn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=Mr;c&&(u=[l],p=Fr);var m=Proxy.revocable(u,p),y=m.revoke,g=m.proxy;return l.k=g,l.j=y,g}(t,o):et("ES5").J(t,o);return(o?o.A:kn()).p.push(n),n}function yd(e){return dt(e)||Fe(22,e),function t(o){if(!je(o))return o;var n,a=o[q],i=pr(o);if(a){if(!a.P&&(a.i<4||!et("ES5").K(a)))return a.t;a.I=!0,n=oc(o,i),a.I=!1}else n=oc(o,i);return $t(n,function(c,l){a&&ud(a.t,c)===l||sc(n,c,t(l))}),i===3?new Set(n):n}(e)}function oc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Mn(e)}function lc(){function e(c,l){var u=i[c];return u?u.enumerable=l:i[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[q];return Mr.get(p,c)},set:function(p){var m=this[q];Mr.set(m,c,p)}},u}function t(c){for(var l=c.length-1;l>=0;l--){var u=c[l][q];if(!u.P)switch(u.i){case 5:n(u)&&St(u);break;case 4:o(u)&&St(u)}}}function o(c){for(var l=c.t,u=c.k,p=ur(u),m=p.length-1;m>=0;m--){var y=p[m];if(y!==q){var g=l[y];if(g===void 0&&!dr(l,y))return!0;var S=u[y],v=S&&S[q];if(v?v.t!==g:!cc(S,g))return!0}}var O=!!l[q];return p.length!==ur(l).length+(O?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&Fe(3,JSON.stringify(vt(c)))}var i={};fd("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(y,g){if(y){for(var S=Array(g.length),v=0;v<g.length;v++)Object.defineProperty(S,""+v,e(v,!0));return S}var O=uc(g);delete O[q];for(var T=ur(O),R=0;R<T.length;R++){var N=T[R];O[N]=e(N,y||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(u,c),m={i:u?5:4,A:l?l.A:kn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,q,{value:m,writable:!0}),p},S:function(c,l,u){u?dt(l)&&l[q].A===c&&t(c.p):(c.u&&function p(m){if(m&&typeof m=="object"){var y=m[q];if(y){var g=y.t,S=y.k,v=y.R,O=y.i;if(O===4)$t(S,function(F){F!==q&&(g[F]!==void 0||dr(g,F)?v[F]||p(S[F]):(v[F]=!0,St(y)))}),$t(g,function(F){S[F]!==void 0||dr(S,F)||(v[F]=!1,St(y))});else if(O===5){if(n(y)&&(St(y),v.length=!0),S.length<g.length)for(var T=S.length;T<g.length;T++)v[T]=!1;else for(var R=g.length;R<S.length;R++)v[R]=!0;for(var N=Math.min(S.length,g.length),D=0;D<N;D++)S.hasOwnProperty(D)||(v[D]=!0),v[D]===void 0&&p(S[D])}}}}(c.p[0]),t(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var nc,Ur,zn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",md=typeof Map<"u",gd=typeof Set<"u",ac=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",dc=zn?Symbol.for("immer-nothing"):((nc={})["immer-nothing"]=!0,nc),ic=zn?Symbol.for("immer-draftable"):"__$immer_draftable",q=zn?Symbol.for("immer-state"):"__$immer_state";var bd=""+Object.prototype.constructor,ur=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,uc=Object.getOwnPropertyDescriptors||function(e){var t={};return ur(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},$n={},Mr={get:function(e,t){if(t===q)return e;var o=vt(e);if(!dr(o,t))return function(a,i,c){var l,u=rc(i,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,t);var n=o[t];return e.I||!je(n)?n:n===_n(e.t,t)?(Pn(e),e.o[t]=Bn(e.A.h,n,e)):n},has:function(e,t){return t in vt(e)},ownKeys:function(e){return Reflect.ownKeys(vt(e))},set:function(e,t,o){var n=rc(vt(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=_n(vt(e),t),i=a?.[q];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(cc(o,a)&&(o!==void 0||dr(e.t,t)))return!0;Pn(e),St(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return _n(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Pn(e),St(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=vt(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Fe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Fe(12)}},Fr={};$t(Mr,function(e,t){Fr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Fr.deleteProperty=function(e,t){return Fr.set.call(this,e,t,void 0)},Fr.set=function(e,t,o){return Mr.set.call(this,e[0],t,o,e[0])};var xd=function(){function e(o){var n=this;this.O=ac,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(O){var T=this;O===void 0&&(O=l);for(var R=arguments.length,N=Array(R>1?R-1:0),D=1;D<R;D++)N[D-1]=arguments[D];return u.produce(O,function(F){var W;return(W=i).call.apply(W,[T,F].concat(N))})}}var p;if(typeof i!="function"&&Fe(6),c!==void 0&&typeof c!="function"&&Fe(7),je(a)){var m=ec(n),y=Bn(n,a,void 0),g=!0;try{p=i(y),g=!1}finally{g?Oo(m):Dn(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Ln(m,c),In(O,m)},function(O){throw Oo(m),O}):(Ln(m,c),In(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===dc&&(p=void 0),n.D&&Wn(p,!0),c){var S=[],v=[];et("Patches").M(a,p,S,v),c(S,v)}return p}Fe(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,y=Array(m>1?m-1:0),g=1;g<m;g++)y[g-1]=arguments[g];return n.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(y))})};var c,l,u=n.produce(a,i,function(p,m){c=p,l=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){je(o)||Fe(8),dt(o)&&(o=yd(o));var n=ec(this),a=Bn(this,o,void 0);return a[q].C=!0,Dn(n),a},t.finishDraft=function(o,n){var a=o&&o[q],i=a.A;return Ln(i,n),In(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!ac&&Fe(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=et("Patches").$;return dt(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),Ie=new xd,vd=Ie.produce,sx=Ie.produceWithPatches.bind(Ie),cx=Ie.setAutoFreeze.bind(Ie),lx=Ie.setUseProxies.bind(Ie),dx=Ie.applyPatches.bind(Ie),ux=Ie.createDraft.bind(Ie),px=Ie.finishDraft.bind(Ie),wo=vd;function Ft(e){"@babel/helpers - typeof";return Ft=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},Ft(e)}function pc(e,t){if(Ft(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(Ft(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fc(e){var t=pc(e,"string");return Ft(t)=="symbol"?t:t+""}function hc(e,t,o){return(t=fc(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function yc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Gn(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?yc(Object(o),!0).forEach(function(n){hc(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):yc(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function be(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var mc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),jn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ao={INIT:"@@redux/INIT"+jn(),REPLACE:"@@redux/REPLACE"+jn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+jn()}};function Sd(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Vn(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(be(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(be(1));return o(Vn)(e,t)}if(typeof e!="function")throw new Error(be(2));var a=e,i=t,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function m(){if(u)throw new Error(be(3));return i}function y(O){if(typeof O!="function")throw new Error(be(4));if(u)throw new Error(be(5));var T=!0;return p(),l.push(O),function(){if(T){if(u)throw new Error(be(6));T=!1,p();var N=l.indexOf(O);l.splice(N,1),c=null}}}function g(O){if(!Sd(O))throw new Error(be(7));if(typeof O.type>"u")throw new Error(be(8));if(u)throw new Error(be(9));try{u=!0,i=a(i,O)}finally{u=!1}for(var T=c=l,R=0;R<T.length;R++){var N=T[R];N()}return O}function S(O){if(typeof O!="function")throw new Error(be(10));a=O,g({type:Ao.REPLACE})}function v(){var O,T=y;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(be(11));function D(){N.next&&N.next(m())}D();var F=T(D);return{unsubscribe:F}}},O[mc]=function(){return this},O}return g({type:Ao.INIT}),n={dispatch:g,subscribe:y,getState:m,replaceReducer:S},n[mc]=v,n}function Od(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:Ao.INIT});if(typeof n>"u")throw new Error(be(12));if(typeof o(void 0,{type:Ao.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(be(13))})}function gc(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{Od(o)}catch(u){l=u}return function(p,m){if(p===void 0&&(p={}),l)throw l;if(0)var y;for(var g=!1,S={},v=0;v<i.length;v++){var O=i[v],T=o[O],R=p[O],N=T(R,m);if(typeof N>"u"){var D=m&&m.type;throw new Error(be(14))}S[O]=N,g=g||N!==R}return g=g||i.length!==Object.keys(p).length,g?S:p}}function fr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function bc(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(be(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(u){return u(c)});return i=fr.apply(void 0,l)(a.dispatch),Gn(Gn({},a),{},{dispatch:i})}}}function xc(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return t}var vc=xc();vc.withExtraArgument=xc;var Kn=vc;var wc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(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");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Cd=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(m){p=[6,m],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},hr=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},Ed=Object.defineProperty,wd=Object.defineProperties,Ad=Object.getOwnPropertyDescriptors,Sc=Object.getOwnPropertySymbols,Rd=Object.prototype.hasOwnProperty,Nd=Object.prototype.propertyIsEnumerable,Oc=function(e,t,o){return t in e?Ed(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},Ot=function(e,t){for(var o in t||(t={}))Rd.call(t,o)&&Oc(e,o,t[o]);if(Sc)for(var n=0,a=Sc(t);n<a.length;n++){var o=a[n];Nd.call(t,o)&&Oc(e,o,t[o])}return e},Zn=function(e,t){return wd(e,Ad(t))},Td=function(e,t,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};l((o=o.apply(e,t)).next())})};var Ld=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?fr:fr.apply(null,arguments)},Lx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Id(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var _d=function(e){wc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}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 e.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,hr([void 0],o[0].concat(this)))):new(t.bind.apply(t,hr([void 0],o.concat(this))))},t}(Array),Pd=function(e){wc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}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 e.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,hr([void 0],o[0].concat(this)))):new(t.bind.apply(t,hr([void 0],o.concat(this))))},t}(Array);function Xn(e){return je(e)?wo(e,function(){}):e}function kd(e){return typeof e=="boolean"}function Dd(){return function(t){return Bd(t)}}function Bd(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=new _d;if(o&&(kd(o)?l.push(Kn):l.push(Kn.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var qn=!0;function Ac(e){var t=Dd(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?t():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,m=p===void 0?void 0:p,y=o.enhancers,g=y===void 0?void 0:y,S;if(typeof a=="function")S=a;else if(Id(a))S=gc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=c;if(typeof v=="function"&&(v=v(t),!qn&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!qn&&v.some(function(F){return typeof F!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=bc.apply(void 0,v),T=fr;u&&(T=Ld(Ot({trace:!qn},typeof u=="object"&&u)));var R=new Pd(O),N=R;Array.isArray(g)?N=hr([O],g):typeof g=="function"&&(N=g(R));var D=T.apply(void 0,N);return Vn(S,m,D)}function Ct(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Ot(Ot({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Rc(e){var t={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,o,n]}function $d(e){return typeof e=="function"}function Fd(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?Rc(t):[t,o,n],i=a[0],c=a[1],l=a[2],u;if($d(e))u=function(){return Xn(e())};else{var p=Xn(e);u=function(){return p}}function m(y,g){y===void 0&&(y=u());var S=hr([i[g.type]],c.filter(function(v){var O=v.matcher;return O(g)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[l]),S.reduce(function(v,O){if(O)if(dt(v)){var T=v,R=O(T,g);return R===void 0?v:R}else{if(je(v))return wo(v,function(N){return O(N,g)});var R=O(v,g);if(R===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return v},y)}return m.getInitialState=u,m}function Ud(e,t){return e+"/"+t}function Nc(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Xn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(m){var y=n[m],g=Ud(t,m),S,v;"reducer"in y?(S=y.reducer,v=y.prepare):S=y,i[m]=S,c[g]=S,l[m]=v?Ct(g,v):Ct(g)});function u(){var m=typeof e.extraReducers=="function"?Rc(e.extraReducers):[e.extraReducers],y=m[0],g=y===void 0?{}:y,S=m[1],v=S===void 0?[]:S,O=m[2],T=O===void 0?void 0:O,R=Ot(Ot({},g),c);return Fd(o,function(N){for(var D in R)N.addCase(D,R[D]);for(var F=0,W=v;F<W.length;F++){var Oe=W[F];N.addMatcher(Oe.matcher,Oe.reducer)}T&&N.addDefaultCase(T)})}var p;return{name:t,reducer:function(m,y){return p||(p=u()),p(m,y)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Md="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wd=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=Md[Math.random()*64|0];return t},Hd=["name","message","stack","code"],Yn=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),Cc=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),zd=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=Hd;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},kx=function(){function e(t,o,n){var a=Ct(t+"/fulfilled",function(m,y,g,S){return{payload:m,meta:Zn(Ot({},S||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),i=Ct(t+"/pending",function(m,y,g){return{payload:void 0,meta:Zn(Ot({},g||{}),{arg:y,requestId:m,requestStatus:"pending"})}}),c=Ct(t+"/rejected",function(m,y,g,S,v){return{payload:S,error:(n&&n.serializeError||zd)(m||"Rejected"),meta:Zn(Ot({},v||{}),{arg:g,requestId:y,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(y,g,S){var v=n?.idGenerator?n.idGenerator(m):Wd(),O=new u,T,R=!1;function N(F){T=F,O.abort()}var D=function(){return Td(this,null,function(){var F,W,Oe,Ze,xe,qe,pe;return Cd(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),Ze=(F=n?.condition)==null?void 0:F.call(n,m,{getState:g,extra:S}),jd(Ze)?[4,Ze]:[3,2];case 1:Ze=h.sent(),h.label=2;case 2:if(Ze===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,xe=new Promise(function(x,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:T||"Aborted"})})}),y(i(v,m,(W=n?.getPendingMeta)==null?void 0:W.call(n,{requestId:v,arg:m},{getState:g,extra:S}))),[4,Promise.race([xe,Promise.resolve(o(m,{dispatch:y,getState:g,extra:S,requestId:v,signal:O.signal,abort:N,rejectWithValue:function(x,P){return new Yn(x,P)},fulfillWithValue:function(x,P){return new Cc(x,P)}})).then(function(x){if(x instanceof Yn)throw x;return x instanceof Cc?a(x.payload,v,m,x.meta):a(x,v,m)})])];case 3:return Oe=h.sent(),[3,5];case 4:return qe=h.sent(),Oe=qe instanceof Yn?c(null,v,m,qe.payload,qe.meta):c(qe,v,m),[3,5];case 5:return pe=n&&!n.dispatchConditionRejection&&c.match(Oe)&&Oe.meta.condition,pe||y(Oe),[2,Oe]}})})}();return Object.assign(D,{abort:N,requestId:v,arg:m,unwrap:function(){return D.then(Gd)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Gd(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function jd(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Tc="listener",Lc="completed",Ic="cancelled",Dx="task-"+Ic,Bx="task-"+Lc,$x=Tc+"-"+Ic,Fx=Tc+"-"+Lc;var Qn="listenerMiddleware";var Ux=Ct(Qn+"/add"),Mx=Ct(Qn+"/removeAll"),Wx=Ct(Qn+"/remove");var Ec,Hx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Ec||(Ec=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Vd=function(e){return function(t){setTimeout(t,e)}},zx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Vd(10);lc();function Kd(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Ro=class extends Kd(Object){};window.ftReduxStores||(window.ftReduxStores={});var _c=class e extends Ro{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(Dr(i))return i;if(a==null)return;let c=Nc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Ac({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new bo;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let u=c,p=i[u];return p?(...m)=>{let y=p(...m.map(a));return this.reduxStore.dispatch(y),y}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}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 Po=b(L());var Yd=b(kc(),1);var Dc;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Dc||(Dc={}));var Bc;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Bc||(Bc={}));var $c;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})($c||($c={}));var Fc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Fc||(Fc={}));var Uc;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Uc||(Uc={}));var Mc;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_CONTEXT_MENU="SEARCH_RESULT__OPEN_CONTEXT_MENU",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Mc||(Mc={}));var Wc;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Wc||(Wc={}));var Hc;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(Hc||(Hc={}));var zc;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(zc||(zc={}));var Gc;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Gc||(Gc={}));var jc;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(jc||(jc={}));var Vc;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Vc||(Vc={}));var Kc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Kc||(Kc={}));var Zc;(function(e){e.ASC="ASC",e.DESC="DESC"})(Zc||(Zc={}));var qc;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(qc||(qc={}));var Wr;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Wr||(Wr={}));var Yc;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Yc||(Yc={}));var Xc;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Xc||(Xc={}));var Qc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Qc||(Qc={}));var mr;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(mr||(mr={}));var Jc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Jc||(Jc={}));var Hr;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Hr||(Hr={}));var te;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(te||(te={}));var el;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(el||(el={}));var tl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(tl||(tl={}));var rl;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(rl||(rl={}));var qd={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function ol(e,t){return e===t||(qd[e]??[]).some(o=>ol(o,t))}function Lo(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>ol(n,t))}var Io=class extends ct{async listMySearches(){let{session:t}=k.getState();return Lo(t,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var _o=class extends ct{async listMyBookmarks(){let t=k.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var Xd="ft-user-assets",Ut=Po.FtReduxStore.get({name:Xd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Jn=class{constructor(){this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _o,this.savedSearchesService=new Io,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=k.getState();(0,Po.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(),Ut.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ut.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Ut.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;Ut.actions.bookmarks(o)}}},ea=new Jn;var ta=class{addCommand(t,o=!1){k.commands.add(t,o)}consumeCommand(t){return k.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new ta;var nl=b(L()),ra=class{highlightHtml(t,o,n){(0,nl.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new ra;var al=b(L());var oa=class{isDate(t){var o,n,a,i;return(i=(a=((n=(o=k.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,o){var n,a,i;return al.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:k.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new oa;var il=b(L());var Mt=class{static get(t,o){var n,a,i,c;let l=k.getState(),{lang:u,region:p}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new il.SearchPlaceConverter(l.baseUrl,(c=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&c!==void 0?c:{},t??20,l.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var na=class{urlToSearchRequest(t){return Mt.get().parse(t)}searchRequestToUrl(t){return Mt.get().serialize(t)}};window.FluidTopicsUrlService=new na;var wt=b(L());var Wt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Wt.eventName="change";var aa=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},sl=new aa;var ko=class e extends wt.WithEventBus{static build(){return new e(window.history,sl,()=>window.location,!1)}constructor(t,o,n,a){var i,c;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(c=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,wt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Wt(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t,o=!1){var n,a,i;let c={...this.buildCurrentState(),...t,index:this.currentIndex,title:(n=t?.title)!==null&&n!==void 0?n:this.currentState.title},l=o?(a=t?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:t?.majorState;l!=null&&(c.majorState=l),this.setCurrentState(c)}addHistoryChangeListener(t){this.addEventListener(Wt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Wt.eventName,t)}currentItem(){return(0,wt.deepCopy)(this.currentState)}back(){let t=this.previousMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,wt.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let t=this.currentIndex;for(;t>0&&!this.isMajorState(t);)t--;return this.previousExistingPosition(t)}forward(){let t=this.nextMajorPosition();t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){return(0,wt.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let t=this.currentIndex;do t++;while(t<this.states.length&&!this.isMajorState(t));do t++;while(t<this.states.length&&!this.isMajorState(t));return this.previousExistingPosition(t)}previousExistingPosition(t){let o=t;do o--;while(o>0&&!this.hasState(o));return o}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isMajorState(t){var o,n;return this.hasState(t)&&((n=(o=this.states[t])===null||o===void 0?void 0:o.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ko.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});(0,cl.customElement)("ft-app-context")(ee);var wl=b(dl());var fl=b(L()),hl=b(re());var Do=b(L());var ul=b(L());var ia=class e extends Event{constructor(){super(e.eventName)}};ia.eventName="search-context-clear-all-filters";var Qd=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},ca=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},pl=Symbol("registerInterval"),sa=Symbol("registerAttempts"),Jd=40;function eu(e){class t extends e{setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[sa]=0,this[pl]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[sa]>Jd?window.clearInterval(this[pl]):(this[sa]++,this.dispatchEvent(new ca))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Qd([(0,hl.state)()],t.prototype,"stateManager",void 0),t}var Bo=class extends eu(fl.FtLitElementRedux){};var Cl=b(L());var Wo=b(G()),Ho=b(re()),zo=b(L());var yl=b(G());var ml=yl.css`
|
|
1535
|
+
`}update(t){var o,n,a,i,c;super.update(t),t.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&k.actions.noCustom(this.noCustom),t.has("editorMode")&&k.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&k.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>cr.addContext(l)),t.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(k.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),k.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),k.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let 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())}};ee.elementDefinitions={};ee.styles=Fs;ge([(0,Ne.property)()],ee.prototype,"baseUrl",void 0);ge([(0,Ne.property)()],ee.prototype,"apiIntegrationIdentifier",void 0);ge([(0,Ne.property)()],ee.prototype,"uiLocale",void 0);ge([(0,Ge.jsonProperty)(null)],ee.prototype,"availableUiLocales",void 0);ge([(0,Ge.jsonProperty)(null)],ee.prototype,"metadataConfiguration",void 0);ge([(0,Ne.property)({type:Boolean})],ee.prototype,"editorMode",void 0);ge([(0,Ne.property)({type:Boolean})],ee.prototype,"noCustom",void 0);ge([(0,Ne.property)({type:Boolean})],ee.prototype,"openExternalDocumentInNewTab",void 0);ge([(0,Ne.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],ee.prototype,"noCustomComponent",void 0);ge([(0,Ne.property)({type:Boolean})],ee.prototype,"withManualResources",void 0);ge([(0,Ne.property)({type:Boolean})],ee.prototype,"navigatorOnline",void 0);ge([(0,Ne.property)({type:Boolean})],ee.prototype,"forcedOffline",void 0);ge([(0,Ne.property)({type:Object})],ee.prototype,"apiProvider",void 0);ge([(0,Ge.jsonProperty)([])],ee.prototype,"messageContexts",void 0);ge([(0,Ge.jsonProperty)(void 0)],ee.prototype,"session",void 0);ge([(0,Ne.state)()],ee.prototype,"localesConfiguration",void 0);var Zd=b(re());function cd(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var o,n,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!mo(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!mo(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=i(e),o=a.length,o!==i(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!mo(e[c],t[c]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function mo(e,t){try{return cd(e,t)}catch{return!1}}function go(e,t){return!mo(e,t)}var ld=b(re(),1);var bo=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(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}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var lr=b(re(),1);var Ws=b(re(),1);function Hs(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,Ws.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:go,...t??{}})}var xo=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 a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Gs=b(G(),1);var vo=globalThis,dd=vo.ShadowRoot&&(vo.ShadyCSS===void 0||vo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Kb=Symbol();var zs=(e,t)=>{if(dd)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),a=vo.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var So=class extends Gs.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return zs(n,t.elementStyles),n}};function js(e,t,...o){var n;let a=e.querySelector(t);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var kr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},qs,Vs=Symbol("constructorPrototype"),Ks=Symbol("constructorName"),Ys=Symbol("exportpartsDebouncer"),Zs=Symbol("dynamicDependenciesLoaded"),lt=class extends So{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[qs]=new xo(5),this[Ks]=this.constructor.name,this[Vs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ks]&&Object.setPrototypeOf(this,this[Vs])}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[Zs]||(t[Zs]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=js(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var 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[Ys].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var o,n,a,i,c,l;let u=g=>g!=null&&g.trim().length>0,p=t.filter(u).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...S,...v).filter(u).map(O=>O.trim()).forEach(O=>m.add(O))}if(m.size===0){this.removeAttribute("exportparts");return}let y=[...m.values()].flatMap(g=>p.map(S=>`${g}:${S}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};qs=Ys;kr([(0,lr.property)()],lt.prototype,"exportpartsPrefix",void 0);kr([Hs([])],lt.prototype,"exportpartsPrefixes",void 0);kr([(0,lr.property)()],lt.prototype,"customStylesheet",void 0);kr([(0,lr.property)()],lt.prototype,"elementToFocus",void 0);kr([(0,lr.state)()],lt.prototype,"useAdoptedStyleSheets",void 0);function Dr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Xs,Qs,Js,Br=Symbol("internalReduxEventsUnsubscribers"),xt=Symbol("internalStoresUnsubscribers"),Bt=Symbol("internalStores"),$r=class extends lt{constructor(){super(...arguments),this[Xs]=new Map,this[Qs]=new Map,this[Js]=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[Bt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Bt].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Bt].get(t)}addStore(t,o){var n;o=(n=o??(Dr(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Bt].set(o,t),this.subscribeToStore(o,t),this.updateFromStores()}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[Bt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Bt].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 a=this.getStore(t.store);a&&(t.store?this[xt].has(t.store):this[xt].size>0)&&(this[o]=t.selector(a.getState(),this))}})}subscribeToStore(t,o){var n;this[xt].set(t,o.subscribe(()=>this.updateFromStores())),this[Br].set(t,[]),Dr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=l=>this[i](l);o.addEventListener(a.eventName,c),this[Br].get(t).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[xt].forEach((t,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(t){var o;this[xt].has(t)&&this[xt].get(t)(),this[xt].delete(t),(o=this[Br].get(t))===null||o===void 0||o.forEach(n=>n()),this[Br].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Xs=xt,Qs=Bt,Js=Br;$r.reduxProperties=new Map;$r.reduxReactiveProperties=new Set;$r.reduxEventListeners=new Map;function Fe(e){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 a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function dt(e){return!!e&&!!e[q]}function je(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===bd}(e)||Array.isArray(e)||!!e[ic]||!!(!((t=e.constructor)===null||t===void 0)&&t[ic])||Fn(e)||Un(e))}function $t(e,t,o){o===void 0&&(o=!1),pr(e)===0?(o?Object.keys:ur)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function pr(e){var t=e[q];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Fn(e)?2:Un(e)?3:0}function dr(e,t){return pr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ud(e,t){return pr(e)===2?e.get(t):e[t]}function sc(e,t,o){var n=pr(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function cc(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Fn(e){return md&&e instanceof Map}function Un(e){return gd&&e instanceof Set}function vt(e){return e.o||e.t}function Mn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=uc(e);delete t[q];for(var o=ur(t),n=0;n<o.length;n++){var a=o[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function Wn(e,t){return t===void 0&&(t=!1),Hn(e)||dt(e)||!je(e)||(pr(e)>1&&(e.set=e.add=e.clear=e.delete=pd),Object.freeze(e),t&&$t(e,function(o,n){return Wn(n,!0)},!0)),e}function pd(){Fe(2)}function Hn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function et(e){var t=$n[e];return t||Fe(18,e),t}function fd(e,t){$n[e]||($n[e]=t)}function kn(){return Ur}function Ln(e,t){t&&(et("Patches"),e.u=[],e.s=[],e.v=t)}function Oo(e){Dn(e),e.p.forEach(hd),e.p=null}function Dn(e){e===Ur&&(Ur=e.l)}function ec(e){return Ur={p:[],l:Ur,h:e,m:!0,_:0}}function hd(e){var t=e[q];t.i===0||t.i===1?t.j():t.g=!0}function In(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||et("ES5").S(t,e,n),n?(o[q].P&&(Oo(t),Fe(4)),je(e)&&(e=Co(t,e),t.l||Eo(t,e)),t.u&&et("Patches").M(o[q].t,e,t.u,t.s)):e=Co(t,o,[]),Oo(t),t.u&&t.v(t.u,t.s),e!==dc?e:void 0}function Co(e,t,o){if(Hn(t))return t;var n=t[q];if(!n)return $t(t,function(l,u){return tc(e,n,t,l,u,o)},!0),t;if(n.A!==e)return t;if(!n.P)return Eo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Mn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),$t(i,function(l,u){return tc(e,n,a,l,u,o,c)}),Eo(e,a,!1),o&&e.u&&et("Patches").N(n,o,e.u,e.s)}return n.o}function tc(e,t,o,n,a,i,c){if(dt(a)){var l=Co(e,a,i&&t&&t.i!==3&&!dr(t.R,n)?i.concat(n):void 0);if(sc(o,n,l),!dt(l))return;e.m=!1}else c&&o.add(a);if(je(a)&&!Hn(a)){if(!e.h.D&&e._<1)return;Co(e,a),t&&t.A.l||Eo(e,a)}}function Eo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Wn(t,o)}function _n(e,t){var o=e[q];return(o?vt(o):e)[t]}function rc(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function St(e){e.P||(e.P=!0,e.l&&St(e.l))}function Pn(e){e.o||(e.o=Mn(e.t))}function Bn(e,t,o){var n=Fn(t)?et("MapSet").F(t,o):Un(t)?et("MapSet").T(t,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:kn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=Mr;c&&(u=[l],p=Fr);var m=Proxy.revocable(u,p),y=m.revoke,g=m.proxy;return l.k=g,l.j=y,g}(t,o):et("ES5").J(t,o);return(o?o.A:kn()).p.push(n),n}function yd(e){return dt(e)||Fe(22,e),function t(o){if(!je(o))return o;var n,a=o[q],i=pr(o);if(a){if(!a.P&&(a.i<4||!et("ES5").K(a)))return a.t;a.I=!0,n=oc(o,i),a.I=!1}else n=oc(o,i);return $t(n,function(c,l){a&&ud(a.t,c)===l||sc(n,c,t(l))}),i===3?new Set(n):n}(e)}function oc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Mn(e)}function lc(){function e(c,l){var u=i[c];return u?u.enumerable=l:i[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[q];return Mr.get(p,c)},set:function(p){var m=this[q];Mr.set(m,c,p)}},u}function t(c){for(var l=c.length-1;l>=0;l--){var u=c[l][q];if(!u.P)switch(u.i){case 5:n(u)&&St(u);break;case 4:o(u)&&St(u)}}}function o(c){for(var l=c.t,u=c.k,p=ur(u),m=p.length-1;m>=0;m--){var y=p[m];if(y!==q){var g=l[y];if(g===void 0&&!dr(l,y))return!0;var S=u[y],v=S&&S[q];if(v?v.t!==g:!cc(S,g))return!0}}var O=!!l[q];return p.length!==ur(l).length+(O?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&Fe(3,JSON.stringify(vt(c)))}var i={};fd("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(y,g){if(y){for(var S=Array(g.length),v=0;v<g.length;v++)Object.defineProperty(S,""+v,e(v,!0));return S}var O=uc(g);delete O[q];for(var T=ur(O),R=0;R<T.length;R++){var N=T[R];O[N]=e(N,y||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(u,c),m={i:u?5:4,A:l?l.A:kn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,q,{value:m,writable:!0}),p},S:function(c,l,u){u?dt(l)&&l[q].A===c&&t(c.p):(c.u&&function p(m){if(m&&typeof m=="object"){var y=m[q];if(y){var g=y.t,S=y.k,v=y.R,O=y.i;if(O===4)$t(S,function(F){F!==q&&(g[F]!==void 0||dr(g,F)?v[F]||p(S[F]):(v[F]=!0,St(y)))}),$t(g,function(F){S[F]!==void 0||dr(S,F)||(v[F]=!1,St(y))});else if(O===5){if(n(y)&&(St(y),v.length=!0),S.length<g.length)for(var T=S.length;T<g.length;T++)v[T]=!1;else for(var R=g.length;R<S.length;R++)v[R]=!0;for(var N=Math.min(S.length,g.length),D=0;D<N;D++)S.hasOwnProperty(D)||(v[D]=!0),v[D]===void 0&&p(S[D])}}}}(c.p[0]),t(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var nc,Ur,zn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",md=typeof Map<"u",gd=typeof Set<"u",ac=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",dc=zn?Symbol.for("immer-nothing"):((nc={})["immer-nothing"]=!0,nc),ic=zn?Symbol.for("immer-draftable"):"__$immer_draftable",q=zn?Symbol.for("immer-state"):"__$immer_state";var bd=""+Object.prototype.constructor,ur=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,uc=Object.getOwnPropertyDescriptors||function(e){var t={};return ur(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},$n={},Mr={get:function(e,t){if(t===q)return e;var o=vt(e);if(!dr(o,t))return function(a,i,c){var l,u=rc(i,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,t);var n=o[t];return e.I||!je(n)?n:n===_n(e.t,t)?(Pn(e),e.o[t]=Bn(e.A.h,n,e)):n},has:function(e,t){return t in vt(e)},ownKeys:function(e){return Reflect.ownKeys(vt(e))},set:function(e,t,o){var n=rc(vt(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=_n(vt(e),t),i=a?.[q];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(cc(o,a)&&(o!==void 0||dr(e.t,t)))return!0;Pn(e),St(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return _n(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Pn(e),St(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=vt(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Fe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Fe(12)}},Fr={};$t(Mr,function(e,t){Fr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Fr.deleteProperty=function(e,t){return Fr.set.call(this,e,t,void 0)},Fr.set=function(e,t,o){return Mr.set.call(this,e[0],t,o,e[0])};var xd=function(){function e(o){var n=this;this.O=ac,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(O){var T=this;O===void 0&&(O=l);for(var R=arguments.length,N=Array(R>1?R-1:0),D=1;D<R;D++)N[D-1]=arguments[D];return u.produce(O,function(F){var W;return(W=i).call.apply(W,[T,F].concat(N))})}}var p;if(typeof i!="function"&&Fe(6),c!==void 0&&typeof c!="function"&&Fe(7),je(a)){var m=ec(n),y=Bn(n,a,void 0),g=!0;try{p=i(y),g=!1}finally{g?Oo(m):Dn(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Ln(m,c),In(O,m)},function(O){throw Oo(m),O}):(Ln(m,c),In(p,m))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===dc&&(p=void 0),n.D&&Wn(p,!0),c){var S=[],v=[];et("Patches").M(a,p,S,v),c(S,v)}return p}Fe(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var m=arguments.length,y=Array(m>1?m-1:0),g=1;g<m;g++)y[g-1]=arguments[g];return n.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(y))})};var c,l,u=n.produce(a,i,function(p,m){c=p,l=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){je(o)||Fe(8),dt(o)&&(o=yd(o));var n=ec(this),a=Bn(this,o,void 0);return a[q].C=!0,Dn(n),a},t.finishDraft=function(o,n){var a=o&&o[q],i=a.A;return Ln(i,n),In(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!ac&&Fe(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=et("Patches").$;return dt(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),Ie=new xd,vd=Ie.produce,sx=Ie.produceWithPatches.bind(Ie),cx=Ie.setAutoFreeze.bind(Ie),lx=Ie.setUseProxies.bind(Ie),dx=Ie.applyPatches.bind(Ie),ux=Ie.createDraft.bind(Ie),px=Ie.finishDraft.bind(Ie),wo=vd;function Ft(e){"@babel/helpers - typeof";return Ft=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},Ft(e)}function pc(e,t){if(Ft(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(Ft(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fc(e){var t=pc(e,"string");return Ft(t)=="symbol"?t:t+""}function hc(e,t,o){return(t=fc(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function yc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Gn(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?yc(Object(o),!0).forEach(function(n){hc(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):yc(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function be(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var mc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),jn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ao={INIT:"@@redux/INIT"+jn(),REPLACE:"@@redux/REPLACE"+jn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+jn()}};function Sd(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Vn(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(be(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(be(1));return o(Vn)(e,t)}if(typeof e!="function")throw new Error(be(2));var a=e,i=t,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function m(){if(u)throw new Error(be(3));return i}function y(O){if(typeof O!="function")throw new Error(be(4));if(u)throw new Error(be(5));var T=!0;return p(),l.push(O),function(){if(T){if(u)throw new Error(be(6));T=!1,p();var N=l.indexOf(O);l.splice(N,1),c=null}}}function g(O){if(!Sd(O))throw new Error(be(7));if(typeof O.type>"u")throw new Error(be(8));if(u)throw new Error(be(9));try{u=!0,i=a(i,O)}finally{u=!1}for(var T=c=l,R=0;R<T.length;R++){var N=T[R];N()}return O}function S(O){if(typeof O!="function")throw new Error(be(10));a=O,g({type:Ao.REPLACE})}function v(){var O,T=y;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(be(11));function D(){N.next&&N.next(m())}D();var F=T(D);return{unsubscribe:F}}},O[mc]=function(){return this},O}return g({type:Ao.INIT}),n={dispatch:g,subscribe:y,getState:m,replaceReducer:S},n[mc]=v,n}function Od(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:Ao.INIT});if(typeof n>"u")throw new Error(be(12));if(typeof o(void 0,{type:Ao.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(be(13))})}function gc(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{Od(o)}catch(u){l=u}return function(p,m){if(p===void 0&&(p={}),l)throw l;if(0)var y;for(var g=!1,S={},v=0;v<i.length;v++){var O=i[v],T=o[O],R=p[O],N=T(R,m);if(typeof N>"u"){var D=m&&m.type;throw new Error(be(14))}S[O]=N,g=g||N!==R}return g=g||i.length!==Object.keys(p).length,g?S:p}}function fr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function bc(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(be(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(u){return u(c)});return i=fr.apply(void 0,l)(a.dispatch),Gn(Gn({},a),{},{dispatch:i})}}}function xc(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return t}var vc=xc();vc.withExtraArgument=xc;var Kn=vc;var wc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(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");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Cd=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(m){p=[6,m],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},hr=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},Ed=Object.defineProperty,wd=Object.defineProperties,Ad=Object.getOwnPropertyDescriptors,Sc=Object.getOwnPropertySymbols,Rd=Object.prototype.hasOwnProperty,Nd=Object.prototype.propertyIsEnumerable,Oc=function(e,t,o){return t in e?Ed(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},Ot=function(e,t){for(var o in t||(t={}))Rd.call(t,o)&&Oc(e,o,t[o]);if(Sc)for(var n=0,a=Sc(t);n<a.length;n++){var o=a[n];Nd.call(t,o)&&Oc(e,o,t[o])}return e},Zn=function(e,t){return wd(e,Ad(t))},Td=function(e,t,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};l((o=o.apply(e,t)).next())})};var Ld=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?fr:fr.apply(null,arguments)},Lx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Id(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var _d=function(e){wc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}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 e.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,hr([void 0],o[0].concat(this)))):new(t.bind.apply(t,hr([void 0],o.concat(this))))},t}(Array),Pd=function(e){wc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}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 e.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,hr([void 0],o[0].concat(this)))):new(t.bind.apply(t,hr([void 0],o.concat(this))))},t}(Array);function Xn(e){return je(e)?wo(e,function(){}):e}function kd(e){return typeof e=="boolean"}function Dd(){return function(t){return Bd(t)}}function Bd(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=new _d;if(o&&(kd(o)?l.push(Kn):l.push(Kn.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var qn=!0;function Ac(e){var t=Dd(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?t():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,m=p===void 0?void 0:p,y=o.enhancers,g=y===void 0?void 0:y,S;if(typeof a=="function")S=a;else if(Id(a))S=gc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=c;if(typeof v=="function"&&(v=v(t),!qn&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!qn&&v.some(function(F){return typeof F!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=bc.apply(void 0,v),T=fr;u&&(T=Ld(Ot({trace:!qn},typeof u=="object"&&u)));var R=new Pd(O),N=R;Array.isArray(g)?N=hr([O],g):typeof g=="function"&&(N=g(R));var D=T.apply(void 0,N);return Vn(S,m,D)}function Ct(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Ot(Ot({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Rc(e){var t={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,o,n]}function $d(e){return typeof e=="function"}function Fd(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?Rc(t):[t,o,n],i=a[0],c=a[1],l=a[2],u;if($d(e))u=function(){return Xn(e())};else{var p=Xn(e);u=function(){return p}}function m(y,g){y===void 0&&(y=u());var S=hr([i[g.type]],c.filter(function(v){var O=v.matcher;return O(g)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[l]),S.reduce(function(v,O){if(O)if(dt(v)){var T=v,R=O(T,g);return R===void 0?v:R}else{if(je(v))return wo(v,function(N){return O(N,g)});var R=O(v,g);if(R===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return v},y)}return m.getInitialState=u,m}function Ud(e,t){return e+"/"+t}function Nc(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Xn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(m){var y=n[m],g=Ud(t,m),S,v;"reducer"in y?(S=y.reducer,v=y.prepare):S=y,i[m]=S,c[g]=S,l[m]=v?Ct(g,v):Ct(g)});function u(){var m=typeof e.extraReducers=="function"?Rc(e.extraReducers):[e.extraReducers],y=m[0],g=y===void 0?{}:y,S=m[1],v=S===void 0?[]:S,O=m[2],T=O===void 0?void 0:O,R=Ot(Ot({},g),c);return Fd(o,function(N){for(var D in R)N.addCase(D,R[D]);for(var F=0,W=v;F<W.length;F++){var Oe=W[F];N.addMatcher(Oe.matcher,Oe.reducer)}T&&N.addDefaultCase(T)})}var p;return{name:t,reducer:function(m,y){return p||(p=u()),p(m,y)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Md="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wd=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=Md[Math.random()*64|0];return t},Hd=["name","message","stack","code"],Yn=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),Cc=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),zd=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=Hd;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},kx=function(){function e(t,o,n){var a=Ct(t+"/fulfilled",function(m,y,g,S){return{payload:m,meta:Zn(Ot({},S||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),i=Ct(t+"/pending",function(m,y,g){return{payload:void 0,meta:Zn(Ot({},g||{}),{arg:y,requestId:m,requestStatus:"pending"})}}),c=Ct(t+"/rejected",function(m,y,g,S,v){return{payload:S,error:(n&&n.serializeError||zd)(m||"Rejected"),meta:Zn(Ot({},v||{}),{arg:g,requestId:y,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(y,g,S){var v=n?.idGenerator?n.idGenerator(m):Wd(),O=new u,T,R=!1;function N(F){T=F,O.abort()}var D=function(){return Td(this,null,function(){var F,W,Oe,Ze,xe,qe,pe;return Cd(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),Ze=(F=n?.condition)==null?void 0:F.call(n,m,{getState:g,extra:S}),jd(Ze)?[4,Ze]:[3,2];case 1:Ze=h.sent(),h.label=2;case 2:if(Ze===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,xe=new Promise(function(x,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:T||"Aborted"})})}),y(i(v,m,(W=n?.getPendingMeta)==null?void 0:W.call(n,{requestId:v,arg:m},{getState:g,extra:S}))),[4,Promise.race([xe,Promise.resolve(o(m,{dispatch:y,getState:g,extra:S,requestId:v,signal:O.signal,abort:N,rejectWithValue:function(x,P){return new Yn(x,P)},fulfillWithValue:function(x,P){return new Cc(x,P)}})).then(function(x){if(x instanceof Yn)throw x;return x instanceof Cc?a(x.payload,v,m,x.meta):a(x,v,m)})])];case 3:return Oe=h.sent(),[3,5];case 4:return qe=h.sent(),Oe=qe instanceof Yn?c(null,v,m,qe.payload,qe.meta):c(qe,v,m),[3,5];case 5:return pe=n&&!n.dispatchConditionRejection&&c.match(Oe)&&Oe.meta.condition,pe||y(Oe),[2,Oe]}})})}();return Object.assign(D,{abort:N,requestId:v,arg:m,unwrap:function(){return D.then(Gd)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Gd(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function jd(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Tc="listener",Lc="completed",Ic="cancelled",Dx="task-"+Ic,Bx="task-"+Lc,$x=Tc+"-"+Ic,Fx=Tc+"-"+Lc;var Qn="listenerMiddleware";var Ux=Ct(Qn+"/add"),Mx=Ct(Qn+"/removeAll"),Wx=Ct(Qn+"/remove");var Ec,Hx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Ec||(Ec=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Vd=function(e){return function(t){setTimeout(t,e)}},zx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Vd(10);lc();function Kd(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Ro=class extends Kd(Object){};window.ftReduxStores||(window.ftReduxStores={});var _c=class e extends Ro{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(Dr(i))return i;if(a==null)return;let c=Nc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Ac({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new bo;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let u=c,p=i[u];return p?(...m)=>{let y=p(...m.map(a));return this.reduxStore.dispatch(y),y}:m=>{this.setState({[u]:a(m)})}}}),this.eventBus=n??this.eventBus}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 Po=b(L());var Yd=b(kc(),1);var Dc;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Dc||(Dc={}));var Bc;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Bc||(Bc={}));var $c;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})($c||($c={}));var Fc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Fc||(Fc={}));var Uc;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Uc||(Uc={}));var Mc;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Mc||(Mc={}));var Wc;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Wc||(Wc={}));var Hc;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(Hc||(Hc={}));var zc;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(zc||(zc={}));var Gc;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Gc||(Gc={}));var jc;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(jc||(jc={}));var Vc;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Vc||(Vc={}));var Kc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Kc||(Kc={}));var Zc;(function(e){e.ASC="ASC",e.DESC="DESC"})(Zc||(Zc={}));var qc;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(qc||(qc={}));var Wr;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Wr||(Wr={}));var Yc;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Yc||(Yc={}));var Xc;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Xc||(Xc={}));var Qc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Qc||(Qc={}));var mr;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(mr||(mr={}));var Jc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Jc||(Jc={}));var Hr;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Hr||(Hr={}));var te;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(te||(te={}));var el;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(el||(el={}));var tl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(tl||(tl={}));var rl;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(rl||(rl={}));var qd={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function ol(e,t){return e===t||(qd[e]??[]).some(o=>ol(o,t))}function Lo(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>ol(n,t))}var Io=class extends ct{async listMySearches(){let{session:t}=k.getState();return Lo(t,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var _o=class extends ct{async listMyBookmarks(){let t=k.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var Xd="ft-user-assets",Ut=Po.FtReduxStore.get({name:Xd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Jn=class{constructor(){this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _o,this.savedSearchesService=new Io,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=k.getState();(0,Po.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(),Ut.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ut.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Ut.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;Ut.actions.bookmarks(o)}}},ea=new Jn;var ta=class{addCommand(t,o=!1){k.commands.add(t,o)}consumeCommand(t){return k.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new ta;var nl=b(L()),ra=class{highlightHtml(t,o,n){(0,nl.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new ra;var al=b(L());var oa=class{isDate(t){var o,n,a,i;return(i=(a=((n=(o=k.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,o){var n,a,i;return al.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:k.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new oa;var il=b(L());var Mt=class{static get(t,o){var n,a,i,c;let l=k.getState(),{lang:u,region:p}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new il.SearchPlaceConverter(l.baseUrl,(c=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&c!==void 0?c:{},t??20,l.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var na=class{urlToSearchRequest(t){return Mt.get().parse(t)}searchRequestToUrl(t){return Mt.get().serialize(t)}};window.FluidTopicsUrlService=new na;var wt=b(L());var Wt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Wt.eventName="change";var aa=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},sl=new aa;var ko=class e extends wt.WithEventBus{static build(){return new e(window.history,sl,()=>window.location,!1)}constructor(t,o,n,a){var i,c;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(c=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,wt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Wt(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t,o=!1){var n,a,i;let c={...this.buildCurrentState(),...t,index:this.currentIndex,title:(n=t?.title)!==null&&n!==void 0?n:this.currentState.title},l=o?(a=t?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:t?.majorState;l!=null&&(c.majorState=l),this.setCurrentState(c)}addHistoryChangeListener(t){this.addEventListener(Wt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Wt.eventName,t)}currentItem(){return(0,wt.deepCopy)(this.currentState)}back(){let t=this.previousMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,wt.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let t=this.currentIndex;for(;t>0&&!this.isMajorState(t);)t--;return this.previousExistingPosition(t)}forward(){let t=this.nextMajorPosition();t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){return(0,wt.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let t=this.currentIndex;do t++;while(t<this.states.length&&!this.isMajorState(t));do t++;while(t<this.states.length&&!this.isMajorState(t));return this.previousExistingPosition(t)}previousExistingPosition(t){let o=t;do o--;while(o>0&&!this.hasState(o));return o}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isMajorState(t){var o,n;return this.hasState(t)&&((n=(o=this.states[t])===null||o===void 0?void 0:o.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ko.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});(0,cl.customElement)("ft-app-context")(ee);var wl=b(dl());var fl=b(L()),hl=b(re());var Do=b(L());var ul=b(L());var ia=class e extends Event{constructor(){super(e.eventName)}};ia.eventName="search-context-clear-all-filters";var Qd=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},ca=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},pl=Symbol("registerInterval"),sa=Symbol("registerAttempts"),Jd=40;function eu(e){class t extends e{setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[sa]=0,this[pl]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[sa]>Jd?window.clearInterval(this[pl]):(this[sa]++,this.dispatchEvent(new ca))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Qd([(0,hl.state)()],t.prototype,"stateManager",void 0),t}var Bo=class extends eu(fl.FtLitElementRedux){};var Cl=b(L());var Wo=b(G()),Ho=b(re()),zo=b(L());var yl=b(G());var ml=yl.css`
|
|
1536
1536
|
`;var Uo=b(L());var Sl=b(re());var tu=b(L());function gl(e){return e.match(/^[\w-]+\.[\w-]+$/)}var ru=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},bl=Symbol("i18nAttributes"),xl=Symbol("i18nListAttributes"),Ol=Symbol("i18nProperties"),$o=Symbol("i18nContexts"),zr=Symbol("i18nUnsubs");function Mo(e){var t,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?yo:cr}i18n(i){var c;this.hasI18nContext(i.context)||this.addI18nContext(i.context,void 0,i.custom);let l=(c=i.args)!==null&&c!==void 0?c:i.argsProvider?i.argsProvider(this):[];return this.getI18nService(i.custom).resolveMessage(i.context,i.key,...l)}customI18n(i,c){if(gl(i)){let[l,u]=i.split(".");return this.i18n({custom:!0,context:l,key:u,...c})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((c,l,u)=>i.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((c,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(c=>c.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var c,l;let u=this,p=(m,y,g)=>g?.context&&g.key&&i(m,y,g)?{...g,message:this.i18n({context:g.context,key:g.key,...m})}:g;(c=this[bl])===null||c===void 0||c.forEach((m,y)=>u[y]=p(m,y,u[y])),(l=this[xl])===null||l===void 0||l.forEach((m,y)=>{var g;return u[y]=(g=u[y])===null||g===void 0?void 0:g.map(S=>p(m,y,S))})}updateI18nProperties(i){var c;(c=this[Ol])===null||c===void 0||c.forEach((l,u)=>{i(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(i,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,c,l)}addI18nContext(i,c,l){let u=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[$o].set(u,{isCustomContext:l}),this[zr].has(u)||this[zr].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,c)}hasI18nContext(i){return this[$o].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[$o].forEach((i,c)=>this.addI18nContext(c,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[zr].forEach(i=>i()),this[zr].clear()}}return t=$o,o=zr,ru([(0,Sl.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var vl=class extends Mo(Uo.FtLitElement){},Fo=class extends Mo(Uo.FtLitElementRedux){};var Gr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Ve=class extends Fo{constructor(){super(),this.editorMode=!1,this.addStore(k)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Wo.nothing:Wo.html`
|
|
1537
1537
|
<span class="ft-i18n">
|
|
1538
1538
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
@@ -45,7 +45,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
45
45
|
input::-webkit-search-results-decoration {
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
|
-
`;var Vs={};var Fa={};q(Fa,{ParametrizedLabelResolver:()=>Qr});var Qr=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,a;e=this.resolvePluralKey(e,o);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...o)}static replaceParameters(e,...o){return o.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=a=>o?.includes("date")?e.toLocaleDateString(a):o?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var si={};q(si,{FtCommandQueue:()=>eo,FtLitElementRedux:()=>Xe,FtReduxStore:()=>Tt,ReduxWatcher:()=>Fo,clearAllStores:()=>xu,isFtReduxStore:()=>Ut,redux:()=>Ct,reduxEventListener:()=>$p,reduxReactive:()=>Dp,watch:()=>Rc});var Dp=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},Ct=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:vt,attribute:!1,...e};A(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}},$p=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var eo=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function Ut(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Gs,Ks,Zs,to=Symbol("internalReduxEventsUnsubscribers"),Et=Symbol("internalStoresUnsubscribers"),Wt=Symbol("internalStores"),Xe=class extends K{constructor(){super(...arguments),this[Gs]=new Map,this[Ks]=new Map,this[Zs]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Wt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Wt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Wt].get(e)}addStore(e,o){var n;o=(n=o??(Ut(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Wt].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Wt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Wt].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[Et].has(e.store):this[Et].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[Et].set(e,o.subscribe(()=>this.updateFromStores())),this[to].set(e,[]),Ut(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let s=l=>this[i](l);o.addEventListener(a.eventName,s),this[to].get(e).push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Et].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[Et].has(e)&&this[Et].get(e)(),this[Et].delete(e),(o=this[to].get(e))===null||o===void 0||o.forEach(n=>n()),this[to].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Gs=Et,Ks=Wt,Zs=to;Xe.reduxProperties=new Map;Xe.reduxReactiveProperties=new Set;Xe.reduxEventListeners=new Map;function ke(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ut(t){return!!t&&!!t[te]}function We(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===jp}(t)||Array.isArray(t)||!!t[tc]||!!(!((e=t.constructor)===null||e===void 0)&&e[tc])||Ga(t)||Ka(t))}function Ht(t,e,o){o===void 0&&(o=!1),fr(t)===0?(o?Object.keys:ur)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function fr(t){var e=t[te];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ga(t)?2:Ka(t)?3:0}function pr(t,e){return fr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Fp(t,e){return fr(t)===2?t.get(e):t[e]}function rc(t,e,o){var n=fr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function oc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ga(t){return Hp&&t instanceof Map}function Ka(t){return zp&&t instanceof Set}function wt(t){return t.o||t.t}function Za(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ic(t);delete e[te];for(var o=ur(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function qa(t,e){return e===void 0&&(e=!1),Ya(t)||ut(t)||!We(t)||(fr(t)>1&&(t.set=t.add=t.clear=t.delete=Bp),Object.freeze(t),e&&Ht(t,function(o,n){return qa(n,!0)},!0)),t}function Bp(){ke(2)}function Ya(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Je(t){var e=Va[t];return e||ke(18,t),e}function Mp(t,e){Va[t]||(Va[t]=e)}function Ha(){return oo}function Ba(t,e){e&&(Je("Patches"),t.u=[],t.s=[],t.v=e)}function Po(t){za(t),t.p.forEach(Up),t.p=null}function za(t){t===oo&&(oo=t.l)}function qs(t){return oo={p:[],l:oo,h:t,m:!0,_:0}}function Up(t){var e=t[te];e.i===0||e.i===1?e.j():e.g=!0}function Ma(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Je("ES5").S(e,t,n),n?(o[te].P&&(Po(e),ke(4)),We(t)&&(t=Io(e,t),e.l||ko(e,t)),e.u&&Je("Patches").M(o[te].t,t,e.u,e.s)):t=Io(e,o,[]),Po(e),e.u&&e.v(e.u,e.s),t!==ac?t:void 0}function Io(t,e,o){if(Ya(e))return e;var n=e[te];if(!n)return Ht(e,function(l,d){return Ys(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return ko(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Za(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Ht(i,function(l,d){return Ys(t,n,a,l,d,o,s)}),ko(t,a,!1),o&&t.u&&Je("Patches").N(n,o,t.u,t.s)}return n.o}function Ys(t,e,o,n,a,i,s){if(ut(a)){var l=Io(t,a,i&&e&&e.i!==3&&!pr(e.R,n)?i.concat(n):void 0);if(rc(o,n,l),!ut(l))return;t.m=!1}else s&&o.add(a);if(We(a)&&!Ya(a)){if(!t.h.D&&t._<1)return;Io(t,a),e&&e.A.l||ko(t,a)}}function ko(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&qa(e,o)}function Ua(t,e){var o=t[te];return(o?wt(o):t)[e]}function Xs(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function At(t){t.P||(t.P=!0,t.l&&At(t.l))}function Wa(t){t.o||(t.o=Za(t.t))}function ja(t,e,o){var n=Ga(e)?Je("MapSet").F(e,o):Ka(e)?Je("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Ha(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,u=no;s&&(d=[l],u=ro);var h=Proxy.revocable(d,u),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(e,o):Je("ES5").J(e,o);return(o?o.A:Ha()).p.push(n),n}function Wp(t){return ut(t)||ke(22,t),function e(o){if(!We(o))return o;var n,a=o[te],i=fr(o);if(a){if(!a.P&&(a.i<4||!Je("ES5").K(a)))return a.t;a.I=!0,n=Js(o,i),a.I=!1}else n=Js(o,i);return Ht(n,function(s,l){a&&Fp(a.t,s)===l||rc(n,s,e(l))}),i===3?new Set(n):n}(t)}function Js(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Za(t)}function nc(){function t(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[te];return no.get(u,s)},set:function(u){var h=this[te];no.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][te];if(!d.P)switch(d.i){case 5:n(d)&&At(d);break;case 4:o(d)&&At(d)}}}function o(s){for(var l=s.t,d=s.k,u=ur(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==te){var m=l[f];if(m===void 0&&!pr(l,f))return!0;var b=d[f],x=b&&b[te];if(x?x.t!==m:!oc(b,m))return!0}}var C=!!l[te];return u.length!==ur(l).length+(C?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&ke(3,JSON.stringify(wt(s)))}var i={};Mp("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,m){if(f){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,t(x,!0));return b}var C=ic(m);delete C[te];for(var T=ur(C),N=0;N<T.length;N++){var L=T[N];C[L]=t(L,f||!!C[L].enumerable)}return Object.create(Object.getPrototypeOf(m),C)}(d,s),h={i:d?5:4,A:l?l.A:Ha(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,te,{value:h,writable:!0}),u},S:function(s,l,d){d?ut(l)&&l[te].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[te];if(f){var m=f.t,b=f.k,x=f.R,C=f.i;if(C===4)Ht(b,function(S){S!==te&&(m[S]!==void 0||pr(m,S)?x[S]||u(b[S]):(x[S]=!0,At(f)))}),Ht(m,function(S){b[S]!==void 0||pr(b,S)||(x[S]=!1,At(f))});else if(C===5){if(n(f)&&(At(f),x.length=!0),b.length<m.length)for(var T=b.length;T<m.length;T++)x[T]=!1;else for(var N=m.length;N<b.length;N++)x[N]=!0;for(var L=Math.min(b.length,m.length),E=0;E<L;E++)b.hasOwnProperty(E)||(x[E]=!0),x[E]===void 0&&u(b[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Qs,oo,Xa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Hp=typeof Map<"u",zp=typeof Set<"u",ec=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ac=Xa?Symbol.for("immer-nothing"):((Qs={})["immer-nothing"]=!0,Qs),tc=Xa?Symbol.for("immer-draftable"):"__$immer_draftable",te=Xa?Symbol.for("immer-state"):"__$immer_state";var jp=""+Object.prototype.constructor,ur=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ic=Object.getOwnPropertyDescriptors||function(t){var e={};return ur(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Va={},no={get:function(t,e){if(e===te)return t;var o=wt(t);if(!pr(o,e))return function(a,i,s){var l,d=Xs(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!We(n)?n:n===Ua(t.t,e)?(Wa(t),t.o[e]=ja(t.A.h,n,t)):n},has:function(t,e){return e in wt(t)},ownKeys:function(t){return Reflect.ownKeys(wt(t))},set:function(t,e,o){var n=Xs(wt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Ua(wt(t),e),i=a?.[te];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(oc(o,a)&&(o!==void 0||pr(t.t,e)))return!0;Wa(t),At(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ua(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Wa(t),At(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=wt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ke(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ke(12)}},ro={};Ht(no,function(t,e){ro[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ro.deleteProperty=function(t,e){return ro.set.call(this,t,e,void 0)},ro.set=function(t,e,o){return no.set.call(this,t[0],e,o,t[0])};var Vp=function(){function t(o){var n=this;this.O=ec,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(C){var T=this;C===void 0&&(C=l);for(var N=arguments.length,L=Array(N>1?N-1:0),E=1;E<N;E++)L[E-1]=arguments[E];return d.produce(C,function(S){var w;return(w=i).call.apply(w,[T,S].concat(L))})}}var u;if(typeof i!="function"&&ke(6),s!==void 0&&typeof s!="function"&&ke(7),We(a)){var h=qs(n),f=ja(n,a,void 0),m=!0;try{u=i(f),m=!1}finally{m?Po(h):za(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(C){return Ba(h,s),Ma(C,h)},function(C){throw Po(h),C}):(Ba(h,s),Ma(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===ac&&(u=void 0),n.D&&qa(u,!0),s){var b=[],x=[];Je("Patches").M(a,u,b,x),s(b,x)}return u}ke(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(u,function(b){return a.apply(void 0,[b].concat(f))})};var s,l,d=n.produce(a,i,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){We(o)||ke(8),ut(o)&&(o=Wp(o));var n=qs(this),a=ja(this,o,void 0);return a[te].C=!0,za(n),a},e.finishDraft=function(o,n){var a=o&&o[te],i=a.A;return Ba(i,n),Ma(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!ec&&ke(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=Je("Patches").$;return ut(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),_e=new Vp,Gp=_e.produce,sb=_e.produceWithPatches.bind(_e),cb=_e.setAutoFreeze.bind(_e),lb=_e.setUseProxies.bind(_e),db=_e.applyPatches.bind(_e),pb=_e.createDraft.bind(_e),ub=_e.finishDraft.bind(_e),Do=Gp;function zt(t){"@babel/helpers - typeof";return zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zt(t)}function sc(t,e){if(zt(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(zt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function cc(t){var e=sc(t,"string");return zt(e)=="symbol"?e:e+""}function lc(t,e,o){return(e=cc(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function dc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function Ja(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?dc(Object(o),!0).forEach(function(n){lc(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):dc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function xe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var pc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Qa=function(){return Math.random().toString(36).substring(7).split("").join(".")},$o={INIT:"@@redux/INIT"+Qa(),REPLACE:"@@redux/REPLACE"+Qa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Qa()}};function Kp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ei(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(xe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(xe(1));return o(ei)(t,e)}if(typeof t!="function")throw new Error(xe(2));var a=t,i=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(xe(3));return i}function f(C){if(typeof C!="function")throw new Error(xe(4));if(d)throw new Error(xe(5));var T=!0;return u(),l.push(C),function(){if(T){if(d)throw new Error(xe(6));T=!1,u();var L=l.indexOf(C);l.splice(L,1),s=null}}}function m(C){if(!Kp(C))throw new Error(xe(7));if(typeof C.type>"u")throw new Error(xe(8));if(d)throw new Error(xe(9));try{d=!0,i=a(i,C)}finally{d=!1}for(var T=s=l,N=0;N<T.length;N++){var L=T[N];L()}return C}function b(C){if(typeof C!="function")throw new Error(xe(10));a=C,m({type:$o.REPLACE})}function x(){var C,T=f;return C={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(xe(11));function E(){L.next&&L.next(h())}E();var S=T(E);return{unsubscribe:S}}},C[pc]=function(){return this},C}return m({type:$o.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:b},n[pc]=x,n}function Zp(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:$o.INIT});if(typeof n>"u")throw new Error(xe(12));if(typeof o(void 0,{type:$o.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(xe(13))})}function uc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,l;try{Zp(o)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var m=!1,b={},x=0;x<i.length;x++){var C=i[x],T=o[C],N=u[C],L=T(N,h);if(typeof L>"u"){var E=h&&h.type;throw new Error(xe(14))}b[C]=L,m=m||L!==N}return m=m||i.length!==Object.keys(u).length,m?b:u}}function hr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function fc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(xe(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=hr.apply(void 0,l)(a.dispatch),Ja(Ja({},a),{},{dispatch:i})}}}function hc(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var yc=hc();yc.withExtraArgument=hc;var ti=yc;var vc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),qp=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},yr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Yp=Object.defineProperty,Xp=Object.defineProperties,Jp=Object.getOwnPropertyDescriptors,mc=Object.getOwnPropertySymbols,Qp=Object.prototype.hasOwnProperty,eu=Object.prototype.propertyIsEnumerable,gc=function(t,e,o){return e in t?Yp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Rt=function(t,e){for(var o in e||(e={}))Qp.call(e,o)&&gc(t,o,e[o]);if(mc)for(var n=0,a=mc(e);n<a.length;n++){var o=a[n];eu.call(e,o)&&gc(t,o,e[o])}return t},ri=function(t,e){return Xp(t,Jp(e))},tu=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(u){a(u)}},s=function(d){try{l(o.throw(d))}catch(u){a(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(t,e)).next())})};var ru=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hr:hr.apply(null,arguments)},_b=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function ou(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var nu=function(t){vc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,yr([void 0],o[0].concat(this)))):new(e.bind.apply(e,yr([void 0],o.concat(this))))},e}(Array),au=function(t){vc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,yr([void 0],o[0].concat(this)))):new(e.bind.apply(e,yr([void 0],o.concat(this))))},e}(Array);function ai(t){return We(t)?Do(t,function(){}):t}function iu(t){return typeof t=="boolean"}function su(){return function(e){return cu(e)}}function cu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,l=new nu;if(o&&(iu(o)?l.push(ti):l.push(ti.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var u}return l}var oi=!0;function Sc(t){var e=su(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,d=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,m=f===void 0?void 0:f,b;if(typeof a=="function")b=a;else if(ou(a))b=uc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(e),!oi&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!oi&&x.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=fc.apply(void 0,x),T=hr;d&&(T=ru(Rt({trace:!oi},typeof d=="object"&&d)));var N=new au(C),L=N;Array.isArray(m)?L=yr([C],m):typeof m=="function"&&(L=m(N));var E=T.apply(void 0,L);return ei(b,h,E)}function Nt(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Rt(Rt({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Oc(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function lu(t){return typeof t=="function"}function du(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Oc(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(lu(t))d=function(){return ai(t())};else{var u=ai(t);d=function(){return u}}function h(f,m){f===void 0&&(f=d());var b=yr([i[m.type]],s.filter(function(x){var C=x.matcher;return C(m)}).map(function(x){var C=x.reducer;return C}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,C){if(C)if(ut(x)){var T=x,N=C(T,m);return N===void 0?x:N}else{if(We(x))return Do(x,function(L){return C(L,m)});var N=C(x,m);if(N===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return x},f)}return h.getInitialState=d,h}function pu(t,e){return t+"/"+e}function Cc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:ai(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],m=pu(e,h),b,x;"reducer"in f?(b=f.reducer,x=f.prepare):b=f,i[h]=b,s[m]=b,l[h]=x?Nt(m,x):Nt(m)});function d(){var h=typeof t.extraReducers=="function"?Oc(t.extraReducers):[t.extraReducers],f=h[0],m=f===void 0?{}:f,b=h[1],x=b===void 0?[]:b,C=h[2],T=C===void 0?void 0:C,N=Rt(Rt({},m),s);return du(o,function(L){for(var E in N)L.addCase(E,N[E]);for(var S=0,w=x;S<w.length;S++){var I=w[S];L.addMatcher(I.matcher,I.reducer)}T&&L.addDefaultCase(T)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var uu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",fu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=uu[Math.random()*64|0];return e},hu=["name","message","stack","code"],ni=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),bc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),yu=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=hu;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},kb=function(){function t(e,o,n){var a=Nt(e+"/fulfilled",function(h,f,m,b){return{payload:h,meta:ri(Rt({},b||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),i=Nt(e+"/pending",function(h,f,m){return{payload:void 0,meta:ri(Rt({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Nt(e+"/rejected",function(h,f,m,b,x){return{payload:b,error:(n&&n.serializeError||yu)(h||"Rejected"),meta:ri(Rt({},x||{}),{arg:m,requestId:f,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(f,m,b){var x=n?.idGenerator?n.idGenerator(h):fu(),C=new d,T,N=!1;function L(S){T=S,C.abort()}var E=function(){return tu(this,null,function(){var S,w,I,U,G,z,k;return qp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),U=(S=n?.condition)==null?void 0:S.call(n,h,{getState:m,extra:b}),gu(U)?[4,U]:[3,2];case 1:U=y.sent(),y.label=2;case 2:if(U===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,G=new Promise(function(O,P){return C.signal.addEventListener("abort",function(){return P({name:"AbortError",message:T||"Aborted"})})}),f(i(x,h,(w=n?.getPendingMeta)==null?void 0:w.call(n,{requestId:x,arg:h},{getState:m,extra:b}))),[4,Promise.race([G,Promise.resolve(o(h,{dispatch:f,getState:m,extra:b,requestId:x,signal:C.signal,abort:L,rejectWithValue:function(O,P){return new ni(O,P)},fulfillWithValue:function(O,P){return new bc(O,P)}})).then(function(O){if(O instanceof ni)throw O;return O instanceof bc?a(O.payload,x,h,O.meta):a(O,x,h)})])];case 3:return I=y.sent(),[3,5];case 4:return z=y.sent(),I=z instanceof ni?s(null,x,h,z.payload,z.meta):s(z,x,h),[3,5];case 5:return k=n&&!n.dispatchConditionRejection&&s.match(I)&&I.meta.condition,k||f(I),[2,I]}})})}();return Object.assign(E,{abort:L,requestId:x,arg:h,unwrap:function(){return E.then(mu)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function mu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function gu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ec="listener",wc="completed",Ac="cancelled",Db="task-"+Ac,$b="task-"+wc,Fb=Ec+"-"+Ac,Bb=Ec+"-"+wc;var ii="listenerMiddleware";var Mb=Nt(ii+"/add"),Ub=Nt(ii+"/removeAll"),Wb=Nt(ii+"/remove");var xc,Hb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(xc||(xc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},bu=function(t){return function(e){setTimeout(e,t)}},zb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:bu(10);nc();window.ftReduxStores||(window.ftReduxStores={});var Tt=class t extends at{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Ut(i))return i;if(a==null)return;let s=Cc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Sc({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new eo;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let d=s,u=i[d];return u?(...h)=>{let f=u(...h.map(a));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function xu(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Ut(e)&&e.clear()}var Fo=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);vt(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Rc(t,e,o){return new Fo(t,e,o).watch()}var di={};q(di,{scrollHelper:()=>vu});var ci,Bo=new Map,li=class{lock(e,o){if(o){let n=Bo.get(o);if(n==null||n===e)return Bo.set(o,e),o}}release(e,o){o&&Bo.get(o)===e&&Bo.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of Dn(e)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&a==null&&(a=s)}return(o=n??a)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,a;let i=0;for(;o&&o.offsetParent!==e.offsetParent;)i+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return i+((a=o?.offsetTop)!==null&&a!==void 0?a:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,l=or(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,l)*(i-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(ci=window.FluidTopicsScrollHelper)!==null&&ci!==void 0?ci:new li;var vu=window.FluidTopicsScrollHelper;var pi={};q(pi,{SearchPlaceConverter:()=>br,SearchPlaceQueryParams:()=>Y,isSearchPlaceQueryParams:()=>rl,serializeRequest:()=>Eu});var Ou=ad(Tc(),1);var _c;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(_c||(_c={}));var Lc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Lc||(Lc={}));var Pc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(Pc||(Pc={}));var Ic;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ic||(Ic={}));var kc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(kc||(kc={}));var Dc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",t.GEN_AI__RATE="GEN_AI__RATE",t.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",t.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_CONTEXT_MENU="SEARCH_RESULT__OPEN_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Dc||(Dc={}));var $c;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})($c||($c={}));var Fc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(Fc||(Fc={}));var Bc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Bc||(Bc={}));var Mc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Mc||(Mc={}));var Uc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Uc||(Uc={}));var Wc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Wc||(Wc={}));var Hc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Hc||(Hc={}));var zc;(function(t){t.ASC="ASC",t.DESC="DESC"})(zc||(zc={}));var jc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(jc||(jc={}));var gr;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(gr||(gr={}));var qc=t=>Object.keys(gr).includes(t);var Vc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Vc||(Vc={}));var Gc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Gc||(Gc={}));var Kc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Kc||(Kc={}));var Qe;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Qe||(Qe={}));var Yc=t=>Object.keys(Qe).includes(t);var Zc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Zc||(Zc={}));var ao;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ao||(ao={}));var se;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(se||(se={}));var Xc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Xc||(Xc={}));var Jc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Jc||(Jc={}));var Qc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Qc||(Qc={}));var Su={[se.PERSONAL_BOOK_SHARE_USER]:[se.PERSONAL_BOOK_USER],[se.HTML_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.PDF_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.KHUB_ADMIN]:[se.CONTENT_PUBLISHER],[se.ADMIN]:[se.KHUB_ADMIN,se.USERS_ADMIN,se.PORTAL_ADMIN],[se.GENERATIVE_AI_EXPORT_USER]:[se.GENERATIVE_AI_USER]};function el(t,e){return t===e||(Su[t]??[]).some(o=>el(o,e))}function Wo(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>el(n,e))}function Cu(t){return`"${t}"`}function tl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Eu(t,e){return new br(t).serialize(e)}var Y;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page"})(Y||(Y={}));var wu=new Set(Object.values(Y));function rl(t){return wu.has(t)}var br=class{constructor(e,o={},n=20,a=!1,i="en-US"){this.baseUrl=e,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=a,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=this.toURLSearchParams(e),a.toString()}toURLSearchParams(e,o=!1){var n,a,i,s,l,d,u,h,f,m,b,x;let C=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&C.append(Y.LOCALE,e.contentLocale):C.append(Y.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&C.append(Y.QUERY,e.query);let T=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(S=>S.valueFilter))!==null&&i!==void 0?i:[];if(T.length>0){let S=T.map(w=>{var I,U;let G=((U=(I=w.valueFilter)===null||I===void 0?void 0:I.values)!==null&&U!==void 0?U:[]).map(z=>this.escapeFilters(z)).map(z=>Cu(tl(z))).join("_");return`${w.key}~${G}`}).join("*");C.append(Y.VALUE_FILTERS,S)}let N=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(S=>S.dateFilter))!==null&&l!==void 0?l:[];if(N.length>0){let S=N.map(w=>{var I;return`${w.key}~${(I=w.dateFilter)===null||I===void 0?void 0:I.type.toLowerCase()}`}).join("*");C.append(Y.DATE_FILTERS,S)}let L=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(S=>S.rangeFilter))!==null&&u!==void 0?u:[];if(L.length>0){let S=L.map(w=>{var I,U;return`${w.key}~${(I=w.rangeFilter)===null||I===void 0?void 0:I.from}_${(U=w.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");C.append(Y.RANGE_FILTERS,S)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&C.append(Y.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&C.append(Y.SCOPE,e.scope.toLowerCase()),((h=e.sort)===null||h===void 0?void 0:h.length)>0&&e.sort[0].key==="ft:lastEdition"&&C.append(Y.SORT,"last_update"),!((f=e.paging)===null||f===void 0)&&f.perPage&&((b=(m=e.paging)===null||m===void 0?void 0:m.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&C.append(Y.PER_PAGE,String(e.paging.perPage));let E=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let S in E)C.append(S,E[S]);return encodeURI(C.toString()).replace(/#/g,"%23")}parse(e){var o;let n=e.split("?"),a=this.fromURLSearchParams(n.slice(1).join("?")),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(o=this.scopeMapping[i])!==null&&o!==void 0?o:a.scope}}fromURLSearchParams(e){var o,n,a,i,s,l,d,u;try{e=decodeURI(e).replace(/%23/g,"#")}catch(N){console.warn("Could not decode search request query params, fallback on raw value",N)}let h=new URLSearchParams(e),f=h.get(Y.LOCALE)==="all"?void 0:h.get(Y.LOCALE),m=((o=h.get(Y.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),b=((n=h.get(Y.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),x=(a=h.get(Y.SCOPE))!==null&&a!==void 0?a:"default",C=+((i=h.get(Y.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),T={};for(let N of h.keys())rl(N)||(T[N]=h.get(N));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=h.get(Y.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[x])!==null&&l!==void 0?l:"DEFAULT",virtualField:qc(m)?m:"EVERYWHERE",sort:(u=(d=this.predefinedSorts[b])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&u!==void 0?u:[],metadataFilters:this.parseCompatFilters(h),facets:[],paging:{page:1,perPage:or(1,isNaN(C)?this.defaultPerPage:C,1e3)},otherQueryParams:T}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(Y.FILTERS)&&(d=this.parseValueFilters((o=e.get(Y.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(Y.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(Y.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(Y.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(Y.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(Y.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(tl).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:Qe[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replace(a,o);return e}parseLegacyPeriodFilter(e){if(Yc(e))return[{key:"ft:lastEdition",dateFilter:{type:Qe[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var hi={};q(hi,{toFtFormComponent:()=>fi});var ui=Symbol("elementInternals");function fi(t){class e extends t{static get formAssociated(){return!0}get form(){return this[ui].form}constructor(...n){super(n),this[ui]=this.attachInternals()}setFormValue(n){this[ui].setFormValue(n)}}return e}var yi={};q(yi,{DateFormatter:()=>xr});var xr=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var gi={};q(gi,{ALL_KEYS_VALUE:()=>mi,SameWindowStorageEvent:()=>vr});var mi="__all__",vr=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==mi}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new vr(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new vr(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new vr(mi))}});var xi={};q(xi,{FocusMainContentEvent:()=>bi});var bi=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var ol={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1};function Au(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function Ru(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Au);document.addEventListener("click",Ru);var vi,Si,Oi,Ci,io=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Oi=(Si=(vi=window.safari)===null||vi===void 0?void 0:vi.pushNotification)===null||Si===void 0?void 0:Si.toString())!==null&&Oi!==void 0?Oi:"")==="[object SafariRemoteNotification]",Nu="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ci=window.ftGlobals)!==null&&Ci!==void 0?Ci:{lit:mn,litDecorators:bn,litRepeat:vn,litClassMap:Sn,litStyleMap:On,litUnsafeHTML:En,wcUtils:{..._n,...wn,...In,...yi,...kn,...Fn,...ua,...Tn,...Ra,...xi,...ol,...di,...pa,...Pa,...hi,...La,...zs,...$n,...Da,...$a,...Vs,...Fa,...si,...gi,...Na,..._a,...pi,isSafari:io,isTouchScreen:Nu,setVariable:v}};function He(t,e,o){return t?e(t):o?.(t)}var nl=r.extend("--ft-ripple-color","",D.colorContent),R={color:nl,backgroundColor:r.extend("--ft-ripple-background-color","",nl),opacityContentOnSurfacePressed:r.external(D.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(D.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(D.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(D.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},al=r.extend("--ft-ripple-color","",D.colorPrimary),il={color:al,backgroundColor:r.extend("--ft-ripple-background-color","",al)},sl=r.extend("--ft-ripple-color","",D.colorSecondary),cl={color:sl,backgroundColor:r.extend("--ft-ripple-background-color","",sl)},ll=$`
|
|
48
|
+
`;var Vs={};var Fa={};q(Fa,{ParametrizedLabelResolver:()=>Qr});var Qr=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,a;e=this.resolvePluralKey(e,o);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...o)}static replaceParameters(e,...o){return o.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=a=>o?.includes("date")?e.toLocaleDateString(a):o?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var si={};q(si,{FtCommandQueue:()=>eo,FtLitElementRedux:()=>Xe,FtReduxStore:()=>Tt,ReduxWatcher:()=>Fo,clearAllStores:()=>xu,isFtReduxStore:()=>Ut,redux:()=>Ct,reduxEventListener:()=>$p,reduxReactive:()=>Dp,watch:()=>Rc});var Dp=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},Ct=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:vt,attribute:!1,...e};A(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}},$p=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var eo=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function Ut(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Gs,Ks,Zs,to=Symbol("internalReduxEventsUnsubscribers"),Et=Symbol("internalStoresUnsubscribers"),Wt=Symbol("internalStores"),Xe=class extends K{constructor(){super(...arguments),this[Gs]=new Map,this[Ks]=new Map,this[Zs]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Wt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Wt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Wt].get(e)}addStore(e,o){var n;o=(n=o??(Ut(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Wt].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Wt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Wt].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[Et].has(e.store):this[Et].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[Et].set(e,o.subscribe(()=>this.updateFromStores())),this[to].set(e,[]),Ut(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let s=l=>this[i](l);o.addEventListener(a.eventName,s),this[to].get(e).push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Et].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[Et].has(e)&&this[Et].get(e)(),this[Et].delete(e),(o=this[to].get(e))===null||o===void 0||o.forEach(n=>n()),this[to].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Gs=Et,Ks=Wt,Zs=to;Xe.reduxProperties=new Map;Xe.reduxReactiveProperties=new Set;Xe.reduxEventListeners=new Map;function ke(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ut(t){return!!t&&!!t[te]}function We(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===jp}(t)||Array.isArray(t)||!!t[tc]||!!(!((e=t.constructor)===null||e===void 0)&&e[tc])||Ga(t)||Ka(t))}function Ht(t,e,o){o===void 0&&(o=!1),fr(t)===0?(o?Object.keys:ur)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function fr(t){var e=t[te];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ga(t)?2:Ka(t)?3:0}function pr(t,e){return fr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Fp(t,e){return fr(t)===2?t.get(e):t[e]}function rc(t,e,o){var n=fr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function oc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ga(t){return Hp&&t instanceof Map}function Ka(t){return zp&&t instanceof Set}function wt(t){return t.o||t.t}function Za(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ic(t);delete e[te];for(var o=ur(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function qa(t,e){return e===void 0&&(e=!1),Ya(t)||ut(t)||!We(t)||(fr(t)>1&&(t.set=t.add=t.clear=t.delete=Bp),Object.freeze(t),e&&Ht(t,function(o,n){return qa(n,!0)},!0)),t}function Bp(){ke(2)}function Ya(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Je(t){var e=Va[t];return e||ke(18,t),e}function Mp(t,e){Va[t]||(Va[t]=e)}function Ha(){return oo}function Ba(t,e){e&&(Je("Patches"),t.u=[],t.s=[],t.v=e)}function Po(t){za(t),t.p.forEach(Up),t.p=null}function za(t){t===oo&&(oo=t.l)}function qs(t){return oo={p:[],l:oo,h:t,m:!0,_:0}}function Up(t){var e=t[te];e.i===0||e.i===1?e.j():e.g=!0}function Ma(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Je("ES5").S(e,t,n),n?(o[te].P&&(Po(e),ke(4)),We(t)&&(t=Io(e,t),e.l||ko(e,t)),e.u&&Je("Patches").M(o[te].t,t,e.u,e.s)):t=Io(e,o,[]),Po(e),e.u&&e.v(e.u,e.s),t!==ac?t:void 0}function Io(t,e,o){if(Ya(e))return e;var n=e[te];if(!n)return Ht(e,function(l,d){return Ys(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return ko(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Za(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Ht(i,function(l,d){return Ys(t,n,a,l,d,o,s)}),ko(t,a,!1),o&&t.u&&Je("Patches").N(n,o,t.u,t.s)}return n.o}function Ys(t,e,o,n,a,i,s){if(ut(a)){var l=Io(t,a,i&&e&&e.i!==3&&!pr(e.R,n)?i.concat(n):void 0);if(rc(o,n,l),!ut(l))return;t.m=!1}else s&&o.add(a);if(We(a)&&!Ya(a)){if(!t.h.D&&t._<1)return;Io(t,a),e&&e.A.l||ko(t,a)}}function ko(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&qa(e,o)}function Ua(t,e){var o=t[te];return(o?wt(o):t)[e]}function Xs(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function At(t){t.P||(t.P=!0,t.l&&At(t.l))}function Wa(t){t.o||(t.o=Za(t.t))}function ja(t,e,o){var n=Ga(e)?Je("MapSet").F(e,o):Ka(e)?Je("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Ha(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,u=no;s&&(d=[l],u=ro);var h=Proxy.revocable(d,u),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(e,o):Je("ES5").J(e,o);return(o?o.A:Ha()).p.push(n),n}function Wp(t){return ut(t)||ke(22,t),function e(o){if(!We(o))return o;var n,a=o[te],i=fr(o);if(a){if(!a.P&&(a.i<4||!Je("ES5").K(a)))return a.t;a.I=!0,n=Js(o,i),a.I=!1}else n=Js(o,i);return Ht(n,function(s,l){a&&Fp(a.t,s)===l||rc(n,s,e(l))}),i===3?new Set(n):n}(t)}function Js(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Za(t)}function nc(){function t(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[te];return no.get(u,s)},set:function(u){var h=this[te];no.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][te];if(!d.P)switch(d.i){case 5:n(d)&&At(d);break;case 4:o(d)&&At(d)}}}function o(s){for(var l=s.t,d=s.k,u=ur(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==te){var m=l[f];if(m===void 0&&!pr(l,f))return!0;var b=d[f],x=b&&b[te];if(x?x.t!==m:!oc(b,m))return!0}}var C=!!l[te];return u.length!==ur(l).length+(C?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&ke(3,JSON.stringify(wt(s)))}var i={};Mp("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,m){if(f){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,t(x,!0));return b}var C=ic(m);delete C[te];for(var T=ur(C),N=0;N<T.length;N++){var L=T[N];C[L]=t(L,f||!!C[L].enumerable)}return Object.create(Object.getPrototypeOf(m),C)}(d,s),h={i:d?5:4,A:l?l.A:Ha(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,te,{value:h,writable:!0}),u},S:function(s,l,d){d?ut(l)&&l[te].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[te];if(f){var m=f.t,b=f.k,x=f.R,C=f.i;if(C===4)Ht(b,function(S){S!==te&&(m[S]!==void 0||pr(m,S)?x[S]||u(b[S]):(x[S]=!0,At(f)))}),Ht(m,function(S){b[S]!==void 0||pr(b,S)||(x[S]=!1,At(f))});else if(C===5){if(n(f)&&(At(f),x.length=!0),b.length<m.length)for(var T=b.length;T<m.length;T++)x[T]=!1;else for(var N=m.length;N<b.length;N++)x[N]=!0;for(var L=Math.min(b.length,m.length),E=0;E<L;E++)b.hasOwnProperty(E)||(x[E]=!0),x[E]===void 0&&u(b[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Qs,oo,Xa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Hp=typeof Map<"u",zp=typeof Set<"u",ec=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ac=Xa?Symbol.for("immer-nothing"):((Qs={})["immer-nothing"]=!0,Qs),tc=Xa?Symbol.for("immer-draftable"):"__$immer_draftable",te=Xa?Symbol.for("immer-state"):"__$immer_state";var jp=""+Object.prototype.constructor,ur=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ic=Object.getOwnPropertyDescriptors||function(t){var e={};return ur(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Va={},no={get:function(t,e){if(e===te)return t;var o=wt(t);if(!pr(o,e))return function(a,i,s){var l,d=Xs(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!We(n)?n:n===Ua(t.t,e)?(Wa(t),t.o[e]=ja(t.A.h,n,t)):n},has:function(t,e){return e in wt(t)},ownKeys:function(t){return Reflect.ownKeys(wt(t))},set:function(t,e,o){var n=Xs(wt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Ua(wt(t),e),i=a?.[te];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(oc(o,a)&&(o!==void 0||pr(t.t,e)))return!0;Wa(t),At(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ua(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Wa(t),At(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=wt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ke(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ke(12)}},ro={};Ht(no,function(t,e){ro[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ro.deleteProperty=function(t,e){return ro.set.call(this,t,e,void 0)},ro.set=function(t,e,o){return no.set.call(this,t[0],e,o,t[0])};var Vp=function(){function t(o){var n=this;this.O=ec,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(C){var T=this;C===void 0&&(C=l);for(var N=arguments.length,L=Array(N>1?N-1:0),E=1;E<N;E++)L[E-1]=arguments[E];return d.produce(C,function(S){var w;return(w=i).call.apply(w,[T,S].concat(L))})}}var u;if(typeof i!="function"&&ke(6),s!==void 0&&typeof s!="function"&&ke(7),We(a)){var h=qs(n),f=ja(n,a,void 0),m=!0;try{u=i(f),m=!1}finally{m?Po(h):za(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(C){return Ba(h,s),Ma(C,h)},function(C){throw Po(h),C}):(Ba(h,s),Ma(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===ac&&(u=void 0),n.D&&qa(u,!0),s){var b=[],x=[];Je("Patches").M(a,u,b,x),s(b,x)}return u}ke(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(u,function(b){return a.apply(void 0,[b].concat(f))})};var s,l,d=n.produce(a,i,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){We(o)||ke(8),ut(o)&&(o=Wp(o));var n=qs(this),a=ja(this,o,void 0);return a[te].C=!0,za(n),a},e.finishDraft=function(o,n){var a=o&&o[te],i=a.A;return Ba(i,n),Ma(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!ec&&ke(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=Je("Patches").$;return ut(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),_e=new Vp,Gp=_e.produce,sb=_e.produceWithPatches.bind(_e),cb=_e.setAutoFreeze.bind(_e),lb=_e.setUseProxies.bind(_e),db=_e.applyPatches.bind(_e),pb=_e.createDraft.bind(_e),ub=_e.finishDraft.bind(_e),Do=Gp;function zt(t){"@babel/helpers - typeof";return zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zt(t)}function sc(t,e){if(zt(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(zt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function cc(t){var e=sc(t,"string");return zt(e)=="symbol"?e:e+""}function lc(t,e,o){return(e=cc(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function dc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function Ja(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?dc(Object(o),!0).forEach(function(n){lc(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):dc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function xe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var pc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Qa=function(){return Math.random().toString(36).substring(7).split("").join(".")},$o={INIT:"@@redux/INIT"+Qa(),REPLACE:"@@redux/REPLACE"+Qa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Qa()}};function Kp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ei(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(xe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(xe(1));return o(ei)(t,e)}if(typeof t!="function")throw new Error(xe(2));var a=t,i=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(xe(3));return i}function f(C){if(typeof C!="function")throw new Error(xe(4));if(d)throw new Error(xe(5));var T=!0;return u(),l.push(C),function(){if(T){if(d)throw new Error(xe(6));T=!1,u();var L=l.indexOf(C);l.splice(L,1),s=null}}}function m(C){if(!Kp(C))throw new Error(xe(7));if(typeof C.type>"u")throw new Error(xe(8));if(d)throw new Error(xe(9));try{d=!0,i=a(i,C)}finally{d=!1}for(var T=s=l,N=0;N<T.length;N++){var L=T[N];L()}return C}function b(C){if(typeof C!="function")throw new Error(xe(10));a=C,m({type:$o.REPLACE})}function x(){var C,T=f;return C={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(xe(11));function E(){L.next&&L.next(h())}E();var S=T(E);return{unsubscribe:S}}},C[pc]=function(){return this},C}return m({type:$o.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:b},n[pc]=x,n}function Zp(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:$o.INIT});if(typeof n>"u")throw new Error(xe(12));if(typeof o(void 0,{type:$o.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(xe(13))})}function uc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,l;try{Zp(o)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var m=!1,b={},x=0;x<i.length;x++){var C=i[x],T=o[C],N=u[C],L=T(N,h);if(typeof L>"u"){var E=h&&h.type;throw new Error(xe(14))}b[C]=L,m=m||L!==N}return m=m||i.length!==Object.keys(u).length,m?b:u}}function hr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function fc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(xe(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=hr.apply(void 0,l)(a.dispatch),Ja(Ja({},a),{},{dispatch:i})}}}function hc(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var yc=hc();yc.withExtraArgument=hc;var ti=yc;var vc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),qp=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},yr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Yp=Object.defineProperty,Xp=Object.defineProperties,Jp=Object.getOwnPropertyDescriptors,mc=Object.getOwnPropertySymbols,Qp=Object.prototype.hasOwnProperty,eu=Object.prototype.propertyIsEnumerable,gc=function(t,e,o){return e in t?Yp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Rt=function(t,e){for(var o in e||(e={}))Qp.call(e,o)&&gc(t,o,e[o]);if(mc)for(var n=0,a=mc(e);n<a.length;n++){var o=a[n];eu.call(e,o)&&gc(t,o,e[o])}return t},ri=function(t,e){return Xp(t,Jp(e))},tu=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(u){a(u)}},s=function(d){try{l(o.throw(d))}catch(u){a(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(t,e)).next())})};var ru=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hr:hr.apply(null,arguments)},_b=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function ou(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var nu=function(t){vc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,yr([void 0],o[0].concat(this)))):new(e.bind.apply(e,yr([void 0],o.concat(this))))},e}(Array),au=function(t){vc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,yr([void 0],o[0].concat(this)))):new(e.bind.apply(e,yr([void 0],o.concat(this))))},e}(Array);function ai(t){return We(t)?Do(t,function(){}):t}function iu(t){return typeof t=="boolean"}function su(){return function(e){return cu(e)}}function cu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,l=new nu;if(o&&(iu(o)?l.push(ti):l.push(ti.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var u}return l}var oi=!0;function Sc(t){var e=su(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,d=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,m=f===void 0?void 0:f,b;if(typeof a=="function")b=a;else if(ou(a))b=uc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(e),!oi&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!oi&&x.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=fc.apply(void 0,x),T=hr;d&&(T=ru(Rt({trace:!oi},typeof d=="object"&&d)));var N=new au(C),L=N;Array.isArray(m)?L=yr([C],m):typeof m=="function"&&(L=m(N));var E=T.apply(void 0,L);return ei(b,h,E)}function Nt(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Rt(Rt({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Oc(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function lu(t){return typeof t=="function"}function du(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Oc(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(lu(t))d=function(){return ai(t())};else{var u=ai(t);d=function(){return u}}function h(f,m){f===void 0&&(f=d());var b=yr([i[m.type]],s.filter(function(x){var C=x.matcher;return C(m)}).map(function(x){var C=x.reducer;return C}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,C){if(C)if(ut(x)){var T=x,N=C(T,m);return N===void 0?x:N}else{if(We(x))return Do(x,function(L){return C(L,m)});var N=C(x,m);if(N===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return x},f)}return h.getInitialState=d,h}function pu(t,e){return t+"/"+e}function Cc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:ai(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],m=pu(e,h),b,x;"reducer"in f?(b=f.reducer,x=f.prepare):b=f,i[h]=b,s[m]=b,l[h]=x?Nt(m,x):Nt(m)});function d(){var h=typeof t.extraReducers=="function"?Oc(t.extraReducers):[t.extraReducers],f=h[0],m=f===void 0?{}:f,b=h[1],x=b===void 0?[]:b,C=h[2],T=C===void 0?void 0:C,N=Rt(Rt({},m),s);return du(o,function(L){for(var E in N)L.addCase(E,N[E]);for(var S=0,w=x;S<w.length;S++){var I=w[S];L.addMatcher(I.matcher,I.reducer)}T&&L.addDefaultCase(T)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var uu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",fu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=uu[Math.random()*64|0];return e},hu=["name","message","stack","code"],ni=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),bc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),yu=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=hu;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},kb=function(){function t(e,o,n){var a=Nt(e+"/fulfilled",function(h,f,m,b){return{payload:h,meta:ri(Rt({},b||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),i=Nt(e+"/pending",function(h,f,m){return{payload:void 0,meta:ri(Rt({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Nt(e+"/rejected",function(h,f,m,b,x){return{payload:b,error:(n&&n.serializeError||yu)(h||"Rejected"),meta:ri(Rt({},x||{}),{arg:m,requestId:f,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(f,m,b){var x=n?.idGenerator?n.idGenerator(h):fu(),C=new d,T,N=!1;function L(S){T=S,C.abort()}var E=function(){return tu(this,null,function(){var S,w,I,U,G,z,k;return qp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),U=(S=n?.condition)==null?void 0:S.call(n,h,{getState:m,extra:b}),gu(U)?[4,U]:[3,2];case 1:U=y.sent(),y.label=2;case 2:if(U===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,G=new Promise(function(O,P){return C.signal.addEventListener("abort",function(){return P({name:"AbortError",message:T||"Aborted"})})}),f(i(x,h,(w=n?.getPendingMeta)==null?void 0:w.call(n,{requestId:x,arg:h},{getState:m,extra:b}))),[4,Promise.race([G,Promise.resolve(o(h,{dispatch:f,getState:m,extra:b,requestId:x,signal:C.signal,abort:L,rejectWithValue:function(O,P){return new ni(O,P)},fulfillWithValue:function(O,P){return new bc(O,P)}})).then(function(O){if(O instanceof ni)throw O;return O instanceof bc?a(O.payload,x,h,O.meta):a(O,x,h)})])];case 3:return I=y.sent(),[3,5];case 4:return z=y.sent(),I=z instanceof ni?s(null,x,h,z.payload,z.meta):s(z,x,h),[3,5];case 5:return k=n&&!n.dispatchConditionRejection&&s.match(I)&&I.meta.condition,k||f(I),[2,I]}})})}();return Object.assign(E,{abort:L,requestId:x,arg:h,unwrap:function(){return E.then(mu)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function mu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function gu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ec="listener",wc="completed",Ac="cancelled",Db="task-"+Ac,$b="task-"+wc,Fb=Ec+"-"+Ac,Bb=Ec+"-"+wc;var ii="listenerMiddleware";var Mb=Nt(ii+"/add"),Ub=Nt(ii+"/removeAll"),Wb=Nt(ii+"/remove");var xc,Hb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(xc||(xc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},bu=function(t){return function(e){setTimeout(e,t)}},zb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:bu(10);nc();window.ftReduxStores||(window.ftReduxStores={});var Tt=class t extends at{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Ut(i))return i;if(a==null)return;let s=Cc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Sc({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new eo;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let d=s,u=i[d];return u?(...h)=>{let f=u(...h.map(a));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function xu(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Ut(e)&&e.clear()}var Fo=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);vt(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Rc(t,e,o){return new Fo(t,e,o).watch()}var di={};q(di,{scrollHelper:()=>vu});var ci,Bo=new Map,li=class{lock(e,o){if(o){let n=Bo.get(o);if(n==null||n===e)return Bo.set(o,e),o}}release(e,o){o&&Bo.get(o)===e&&Bo.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of Dn(e)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&a==null&&(a=s)}return(o=n??a)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,a;let i=0;for(;o&&o.offsetParent!==e.offsetParent;)i+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return i+((a=o?.offsetTop)!==null&&a!==void 0?a:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,l=or(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,l)*(i-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(ci=window.FluidTopicsScrollHelper)!==null&&ci!==void 0?ci:new li;var vu=window.FluidTopicsScrollHelper;var pi={};q(pi,{SearchPlaceConverter:()=>br,SearchPlaceQueryParams:()=>Y,isSearchPlaceQueryParams:()=>rl,serializeRequest:()=>Eu});var Ou=ad(Tc(),1);var _c;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(_c||(_c={}));var Lc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Lc||(Lc={}));var Pc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(Pc||(Pc={}));var Ic;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ic||(Ic={}));var kc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(kc||(kc={}));var Dc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",t.GEN_AI__RATE="GEN_AI__RATE",t.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",t.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Dc||(Dc={}));var $c;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})($c||($c={}));var Fc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(Fc||(Fc={}));var Bc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Bc||(Bc={}));var Mc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Mc||(Mc={}));var Uc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Uc||(Uc={}));var Wc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Wc||(Wc={}));var Hc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Hc||(Hc={}));var zc;(function(t){t.ASC="ASC",t.DESC="DESC"})(zc||(zc={}));var jc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(jc||(jc={}));var gr;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(gr||(gr={}));var qc=t=>Object.keys(gr).includes(t);var Vc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Vc||(Vc={}));var Gc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Gc||(Gc={}));var Kc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Kc||(Kc={}));var Qe;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Qe||(Qe={}));var Yc=t=>Object.keys(Qe).includes(t);var Zc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Zc||(Zc={}));var ao;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ao||(ao={}));var se;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(se||(se={}));var Xc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Xc||(Xc={}));var Jc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Jc||(Jc={}));var Qc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Qc||(Qc={}));var Su={[se.PERSONAL_BOOK_SHARE_USER]:[se.PERSONAL_BOOK_USER],[se.HTML_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.PDF_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.KHUB_ADMIN]:[se.CONTENT_PUBLISHER],[se.ADMIN]:[se.KHUB_ADMIN,se.USERS_ADMIN,se.PORTAL_ADMIN],[se.GENERATIVE_AI_EXPORT_USER]:[se.GENERATIVE_AI_USER]};function el(t,e){return t===e||(Su[t]??[]).some(o=>el(o,e))}function Wo(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>el(n,e))}function Cu(t){return`"${t}"`}function tl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Eu(t,e){return new br(t).serialize(e)}var Y;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page"})(Y||(Y={}));var wu=new Set(Object.values(Y));function rl(t){return wu.has(t)}var br=class{constructor(e,o={},n=20,a=!1,i="en-US"){this.baseUrl=e,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=a,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=this.toURLSearchParams(e),a.toString()}toURLSearchParams(e,o=!1){var n,a,i,s,l,d,u,h,f,m,b,x;let C=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&C.append(Y.LOCALE,e.contentLocale):C.append(Y.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&C.append(Y.QUERY,e.query);let T=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(S=>S.valueFilter))!==null&&i!==void 0?i:[];if(T.length>0){let S=T.map(w=>{var I,U;let G=((U=(I=w.valueFilter)===null||I===void 0?void 0:I.values)!==null&&U!==void 0?U:[]).map(z=>this.escapeFilters(z)).map(z=>Cu(tl(z))).join("_");return`${w.key}~${G}`}).join("*");C.append(Y.VALUE_FILTERS,S)}let N=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(S=>S.dateFilter))!==null&&l!==void 0?l:[];if(N.length>0){let S=N.map(w=>{var I;return`${w.key}~${(I=w.dateFilter)===null||I===void 0?void 0:I.type.toLowerCase()}`}).join("*");C.append(Y.DATE_FILTERS,S)}let L=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(S=>S.rangeFilter))!==null&&u!==void 0?u:[];if(L.length>0){let S=L.map(w=>{var I,U;return`${w.key}~${(I=w.rangeFilter)===null||I===void 0?void 0:I.from}_${(U=w.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");C.append(Y.RANGE_FILTERS,S)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&C.append(Y.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&C.append(Y.SCOPE,e.scope.toLowerCase()),((h=e.sort)===null||h===void 0?void 0:h.length)>0&&e.sort[0].key==="ft:lastEdition"&&C.append(Y.SORT,"last_update"),!((f=e.paging)===null||f===void 0)&&f.perPage&&((b=(m=e.paging)===null||m===void 0?void 0:m.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&C.append(Y.PER_PAGE,String(e.paging.perPage));let E=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let S in E)C.append(S,E[S]);return encodeURI(C.toString()).replace(/#/g,"%23")}parse(e){var o;let n=e.split("?"),a=this.fromURLSearchParams(n.slice(1).join("?")),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(o=this.scopeMapping[i])!==null&&o!==void 0?o:a.scope}}fromURLSearchParams(e){var o,n,a,i,s,l,d,u;try{e=decodeURI(e).replace(/%23/g,"#")}catch(N){console.warn("Could not decode search request query params, fallback on raw value",N)}let h=new URLSearchParams(e),f=h.get(Y.LOCALE)==="all"?void 0:h.get(Y.LOCALE),m=((o=h.get(Y.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),b=((n=h.get(Y.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),x=(a=h.get(Y.SCOPE))!==null&&a!==void 0?a:"default",C=+((i=h.get(Y.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),T={};for(let N of h.keys())rl(N)||(T[N]=h.get(N));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=h.get(Y.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[x])!==null&&l!==void 0?l:"DEFAULT",virtualField:qc(m)?m:"EVERYWHERE",sort:(u=(d=this.predefinedSorts[b])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&u!==void 0?u:[],metadataFilters:this.parseCompatFilters(h),facets:[],paging:{page:1,perPage:or(1,isNaN(C)?this.defaultPerPage:C,1e3)},otherQueryParams:T}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(Y.FILTERS)&&(d=this.parseValueFilters((o=e.get(Y.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(Y.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(Y.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(Y.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(Y.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(Y.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(tl).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:Qe[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replace(a,o);return e}parseLegacyPeriodFilter(e){if(Yc(e))return[{key:"ft:lastEdition",dateFilter:{type:Qe[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var hi={};q(hi,{toFtFormComponent:()=>fi});var ui=Symbol("elementInternals");function fi(t){class e extends t{static get formAssociated(){return!0}get form(){return this[ui].form}constructor(...n){super(n),this[ui]=this.attachInternals()}setFormValue(n){this[ui].setFormValue(n)}}return e}var yi={};q(yi,{DateFormatter:()=>xr});var xr=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var gi={};q(gi,{ALL_KEYS_VALUE:()=>mi,SameWindowStorageEvent:()=>vr});var mi="__all__",vr=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==mi}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new vr(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new vr(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new vr(mi))}});var xi={};q(xi,{FocusMainContentEvent:()=>bi});var bi=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var ol={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1};function Au(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function Ru(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Au);document.addEventListener("click",Ru);var vi,Si,Oi,Ci,io=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Oi=(Si=(vi=window.safari)===null||vi===void 0?void 0:vi.pushNotification)===null||Si===void 0?void 0:Si.toString())!==null&&Oi!==void 0?Oi:"")==="[object SafariRemoteNotification]",Nu="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ci=window.ftGlobals)!==null&&Ci!==void 0?Ci:{lit:mn,litDecorators:bn,litRepeat:vn,litClassMap:Sn,litStyleMap:On,litUnsafeHTML:En,wcUtils:{..._n,...wn,...In,...yi,...kn,...Fn,...ua,...Tn,...Ra,...xi,...ol,...di,...pa,...Pa,...hi,...La,...zs,...$n,...Da,...$a,...Vs,...Fa,...si,...gi,...Na,..._a,...pi,isSafari:io,isTouchScreen:Nu,setVariable:v}};function He(t,e,o){return t?e(t):o?.(t)}var nl=r.extend("--ft-ripple-color","",D.colorContent),R={color:nl,backgroundColor:r.extend("--ft-ripple-background-color","",nl),opacityContentOnSurfacePressed:r.external(D.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(D.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(D.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(D.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},al=r.extend("--ft-ripple-color","",D.colorPrimary),il={color:al,backgroundColor:r.extend("--ft-ripple-background-color","",al)},sl=r.extend("--ft-ripple-color","",D.colorSecondary),cl={color:sl,backgroundColor:r.extend("--ft-ripple-background-color","",sl)},ll=$`
|
|
49
49
|
:host {
|
|
50
50
|
display: contents;
|
|
51
51
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-saved-searches",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.61",
|
|
4
4
|
"description": "Displays the saved searches",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-search-context": "1.2.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.2.
|
|
22
|
+
"@fluid-topics/ft-search-context": "1.2.61",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.2.61",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@fluid-topics/public-api": "1.0.
|
|
27
|
+
"@fluid-topics/public-api": "1.0.95"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "924cb24583d473e221182ffe54f8c500643227c1"
|
|
30
30
|
}
|