@fluid-topics/ft-reader-page-title 2.1.4 → 2.1.6

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.
@@ -103,7 +103,7 @@
103
103
  </${ar(this.element)}>
104
104
  `:ur`
105
105
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
106
- `}};J.styles=[xn,Cn,Tn,On,wn,_n,Rn,In,Pn,Ln,Nn];Mn([(0,cr.property)()],J.prototype,"element",void 0);Mn([(0,cr.property)()],J.prototype,"variant",void 0);var Un=b(O());var Dn={"ft-typography":J};(0,Un.customElements)(Dn);var kr=b(B());var Fn=b(B(),1);var lr=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function jn(t,e){return(0,Fn.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Je(t);try{return JSON.parse(r)}catch{return Je(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Xe,...e??{}})}function ra(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!ft(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!ft(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=a=>Object.keys(a).filter(o=>a[o]!=null),s=i(t);if(r=s.length,r!==i(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){let a=s[n];if(!ft(t[a],e[a]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ft(t,e){try{return ra(t,e)}catch{return!1}}function Xe(t,e){return!ft(t,e)}function Je(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ht(t,e){let r=n=>n[t]===!0;return n=>{if(r(n))return n;let i=e(n);return i[t]=!0,i}}var $n=b(B(),1);var dr=t=>{let e=t??{};return(r,n)=>{var i;let s={hasChanged:Xe,attribute:!1,...e};(0,$n.property)(s)(r,n);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(o=>o[n]),store:e.store})}};var mt=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var ce=b(B(),1);var yt=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let a of n)try{await a()}catch(o){i(o);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Hn=b(G(),1);var gt=globalThis,na=gt.ShadowRoot&&(gt.ShadyCSS===void 0||gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Bn=(t,e)=>{if(na)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let n=document.createElement("style"),i=gt.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}};var vt=class extends Hn.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Bn(n,e.elementStyles),n}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(e,r){lr(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function Vn(t,e,...r){var n;let i=t.querySelector(e);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var Le=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Wn,Kn=Symbol("constructorPrototype"),qn=Symbol("constructorName"),Gn=Symbol("exportpartsDebouncer"),zn=Symbol("dynamicDependenciesLoaded"),Pe=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Pe.eventName="exportparts-updated";var K=class extends vt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Wn]=new yt(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Gn].run(()=>{var i,s;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[qn]=this.constructor.name,this[Kn]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[qn]&&Object.setPrototypeOf(this,this[Kn])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[zn]||(r[zn]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Pe.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Pe.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Pe)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=Vn(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,n,i,s,a,o;let u=p=>p!=null&&p.trim().length>0,c=e.filter(u).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let l=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let m=(s=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],f=(o=(a=p.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(A=>A.split(":")[1]))!==null&&o!==void 0?o:[],y=[...m,...f].filter(u).map(A=>A.trim());for(let A of y)l.add(A)}if(l.size===0){this.exportparts=void 0;return}let d=[...l.values()].flatMap(p=>c.map(m=>`${p}:${m}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Wn=Gn;Le([(0,ce.property)()],K.prototype,"exportpartsPrefix",void 0);Le([jn([])],K.prototype,"exportpartsPrefixes",void 0);Le([(0,ce.property)({reflect:!0})],K.prototype,"exportparts",void 0);Le([(0,ce.property)()],K.prototype,"customStylesheet",void 0);Le([(0,ce.property)()],K.prototype,"elementToFocus",void 0);Le([(0,ce.state)()],K.prototype,"useAdoptedStyleSheets",void 0);function bt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Qe=Symbol("internalReduxEventsUnsubscribers"),te=Symbol("internalStoresUnsubscribers"),le=Symbol("internalStores"),ia=ht(Symbol("withRedux"),function(t){var e,r,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(a){super.willUpdate(a),[...this.reduxConstructor.reduxReactiveProperties].some(o=>a.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[le].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[le].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[le].get(a)}addStore(a,o){var u;o=(u=o??a.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(o),this[le].set(o,a),this.subscribeToStore(o,a),this.updateFromStores()}removeStore(a){let o=typeof a=="string"?a:a.name;this.unsubscribeFromStore(o),this[le].delete(o)}setupStores(){this.unsubscribeFromStores(),this[le].forEach((a,o)=>this.subscribeToStore(o,a)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((a,o)=>{let u=this.constructor.getPropertyOptions(o);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:o)){let c=this.getStore(a.store);c&&(a.store?this[te].has(a.store):this[te].size>0)&&(this[o]=a.selector(c.getState(),this))}})}subscribeToStore(a,o){var u;this[te].set(a,o.subscribe(()=>this.updateFromStores())),this[Qe].set(a,[]),bt(o)&&o.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((c,l)=>{if(typeof this[l]=="function"&&(!c.store||o.name===c.store)){let d=p=>this[l](p);o.addEventListener(c.eventName,d),this[Qe].get(a).push(()=>o.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(a)}unsubscribeFromStores(){this[te].forEach((a,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(a){var o;this[te].has(a)&&this[te].get(a)(),this[te].delete(a),(o=this[Qe].get(a))===null||o===void 0||o.forEach(u=>u()),this[Qe].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=te,r=le,n=Qe,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Yn=class extends ia(K){};function U(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,s;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(a){return"'"+a+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function X(t){return!!t&&!!t[C]}function H(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===pa})(t)||Array.isArray(t)||!!t[ri]||!!(!((e=t.constructor)===null||e===void 0)&&e[ri])||Ar(t)||Sr(t))}function de(t,e,r){r===void 0&&(r=!1),ke(t)===0?(r?Object.keys:Me)(t).forEach((function(n){r&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,i){return e(i,n,t)}))}function ke(t){var e=t[C];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ar(t)?2:Sr(t)?3:0}function Ne(t,e){return ke(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function sa(t,e){return ke(t)===2?t.get(e):t[e]}function ni(t,e,r){var n=ke(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function ii(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ar(t){return la&&t instanceof Map}function Sr(t){return da&&t instanceof Set}function re(t){return t.o||t.t}function Er(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=oi(t);delete e[C];for(var r=Me(e),n=0;n<r.length;n++){var i=r[n],s=e[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(e[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function xr(t,e){return e===void 0&&(e=!1),Cr(t)||X(t)||!H(t)||(ke(t)>1&&(t.set=t.add=t.clear=t.delete=aa),Object.freeze(t),e&&de(t,(function(r,n){return xr(n,!0)}),!0)),t}function aa(){U(2)}function Cr(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function q(t){var e=br[t];return e||U(18,t),e}function oa(t,e){br[t]||(br[t]=e)}function yr(){return et}function pr(t,e){e&&(q("Patches"),t.u=[],t.s=[],t.v=e)}function At(t){gr(t),t.p.forEach(ua),t.p=null}function gr(t){t===et&&(et=t.l)}function Jn(t){return et={p:[],l:et,h:t,m:!0,_:0}}function ua(t){var e=t[C];e.i===0||e.i===1?e.j():e.g=!0}function fr(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||q("ES5").S(e,t,n),n?(r[C].P&&(At(e),U(4)),H(t)&&(t=St(e,t),e.l||Et(e,t)),e.u&&q("Patches").M(r[C].t,t,e.u,e.s)):t=St(e,r,[]),At(e),e.u&&e.v(e.u,e.s),t!==ai?t:void 0}function St(t,e,r){if(Cr(e))return e;var n=e[C];if(!n)return de(e,(function(o,u){return Xn(t,n,e,o,u,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return Et(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Er(n.k):n.o,s=i,a=!1;n.i===3&&(s=new Set(i),i.clear(),a=!0),de(s,(function(o,u){return Xn(t,n,i,o,u,r,a)})),Et(t,i,!1),r&&t.u&&q("Patches").N(n,r,t.u,t.s)}return n.o}function Xn(t,e,r,n,i,s,a){if(X(i)){var o=St(t,i,s&&e&&e.i!==3&&!Ne(e.R,n)?s.concat(n):void 0);if(ni(r,n,o),!X(o))return;t.m=!1}else a&&r.add(i);if(H(i)&&!Cr(i)){if(!t.h.D&&t._<1)return;St(t,i),e&&e.A.l||Et(t,i)}}function Et(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&xr(e,r)}function hr(t,e){var r=t[C];return(r?re(r):t)[e]}function Qn(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function ne(t){t.P||(t.P=!0,t.l&&ne(t.l))}function mr(t){t.o||(t.o=Er(t.t))}function vr(t,e,r){var n=Ar(e)?q("MapSet").F(e,r):Sr(e)?q("MapSet").T(e,r):t.O?(function(i,s){var a=Array.isArray(i),o={i:a?1:0,A:s?s.A:yr(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},u=o,c=tt;a&&(u=[o],c=Ze);var l=Proxy.revocable(u,c),d=l.revoke,p=l.proxy;return o.k=p,o.j=d,p})(e,r):q("ES5").J(e,r);return(r?r.A:yr()).p.push(n),n}function ca(t){return X(t)||U(22,t),(function e(r){if(!H(r))return r;var n,i=r[C],s=ke(r);if(i){if(!i.P&&(i.i<4||!q("ES5").K(i)))return i.t;i.I=!0,n=Zn(r,s),i.I=!1}else n=Zn(r,s);return de(n,(function(a,o){i&&sa(i.t,a)===o||ni(n,a,e(o))})),s===3?new Set(n):n})(t)}function Zn(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Er(t)}function si(){function t(a,o){var u=s[a];return u?u.enumerable=o:s[a]=u={configurable:!0,enumerable:o,get:function(){var c=this[C];return tt.get(c,a)},set:function(c){var l=this[C];tt.set(l,a,c)}},u}function e(a){for(var o=a.length-1;o>=0;o--){var u=a[o][C];if(!u.P)switch(u.i){case 5:n(u)&&ne(u);break;case 4:r(u)&&ne(u)}}}function r(a){for(var o=a.t,u=a.k,c=Me(u),l=c.length-1;l>=0;l--){var d=c[l];if(d!==C){var p=o[d];if(p===void 0&&!Ne(o,d))return!0;var m=u[d],f=m&&m[C];if(f?f.t!==p:!ii(m,p))return!0}}var y=!!o[C];return c.length!==Me(o).length+(y?0:1)}function n(a){var o=a.k;if(o.length!==a.t.length)return!0;var u=Object.getOwnPropertyDescriptor(o,o.length-1);if(u&&!u.get)return!0;for(var c=0;c<o.length;c++)if(!o.hasOwnProperty(c))return!0;return!1}function i(a){a.g&&U(3,JSON.stringify(re(a)))}var s={};oa("ES5",{J:function(a,o){var u=Array.isArray(a),c=(function(d,p){if(d){for(var m=Array(p.length),f=0;f<p.length;f++)Object.defineProperty(m,""+f,t(f,!0));return m}var y=oi(p);delete y[C];for(var A=Me(y),S=0;S<A.length;S++){var E=A[S];y[E]=t(E,d||!!y[E].enumerable)}return Object.create(Object.getPrototypeOf(p),y)})(u,a),l={i:u?5:4,A:o?o.A:yr(),P:!1,I:!1,R:{},l:o,t:a,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,C,{value:l,writable:!0}),c},S:function(a,o,u){u?X(o)&&o[C].A===a&&e(a.p):(a.u&&(function c(l){if(l&&typeof l=="object"){var d=l[C];if(d){var p=d.t,m=d.k,f=d.R,y=d.i;if(y===4)de(m,(function(x){x!==C&&(p[x]!==void 0||Ne(p,x)?f[x]||c(m[x]):(f[x]=!0,ne(d)))})),de(p,(function(x){m[x]!==void 0||Ne(m,x)||(f[x]=!1,ne(d))}));else if(y===5){if(n(d)&&(ne(d),f.length=!0),m.length<p.length)for(var A=m.length;A<p.length;A++)f[A]=!1;else for(var S=p.length;S<m.length;S++)f[S]=!0;for(var E=Math.min(m.length,p.length),T=0;T<E;T++)m.hasOwnProperty(T)||(f[T]=!0),f[T]===void 0&&c(m[T])}}}})(a.p[0]),e(a.p))},K:function(a){return a.i===4?r(a):n(a)}})}var ei,et,Tr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",la=typeof Map<"u",da=typeof Set<"u",ti=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ai=Tr?Symbol.for("immer-nothing"):((ei={})["immer-nothing"]=!0,ei),ri=Tr?Symbol.for("immer-draftable"):"__$immer_draftable",C=Tr?Symbol.for("immer-state"):"__$immer_state";var pa=""+Object.prototype.constructor,Me=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,oi=Object.getOwnPropertyDescriptors||function(t){var e={};return Me(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},br={},tt={get:function(t,e){if(e===C)return t;var r=re(t);if(!Ne(r,e))return(function(i,s,a){var o,u=Qn(s,a);return u?"value"in u?u.value:(o=u.get)===null||o===void 0?void 0:o.call(i.k):void 0})(t,r,e);var n=r[e];return t.I||!H(n)?n:n===hr(t.t,e)?(mr(t),t.o[e]=vr(t.A.h,n,t)):n},has:function(t,e){return e in re(t)},ownKeys:function(t){return Reflect.ownKeys(re(t))},set:function(t,e,r){var n=Qn(re(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=hr(re(t),e),s=i?.[C];if(s&&s.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(ii(r,i)&&(r!==void 0||Ne(t.t,e)))return!0;mr(t),ne(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return hr(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,mr(t),ne(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=re(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){U(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){U(12)}},Ze={};de(tt,(function(t,e){Ze[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ze.deleteProperty=function(t,e){return Ze.set.call(this,t,e,void 0)},Ze.set=function(t,e,r){return tt.set.call(this,t[0],e,r,t[0])};var fa=(function(){function t(r){var n=this;this.O=ti,this.D=!0,this.produce=function(i,s,a){if(typeof i=="function"&&typeof s!="function"){var o=s;s=i;var u=n;return function(y){var A=this;y===void 0&&(y=o);for(var S=arguments.length,E=Array(S>1?S-1:0),T=1;T<S;T++)E[T-1]=arguments[T];return u.produce(y,(function(x){var Z;return(Z=s).call.apply(Z,[A,x].concat(E))}))}}var c;if(typeof s!="function"&&U(6),a!==void 0&&typeof a!="function"&&U(7),H(i)){var l=Jn(n),d=vr(n,i,void 0),p=!0;try{c=s(d),p=!1}finally{p?At(l):gr(l)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(y){return pr(l,a),fr(y,l)}),(function(y){throw At(l),y})):(pr(l,a),fr(c,l))}if(!i||typeof i!="object"){if((c=s(i))===void 0&&(c=i),c===ai&&(c=void 0),n.D&&xr(c,!0),a){var m=[],f=[];q("Patches").M(i,c,m,f),a(m,f)}return c}U(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(c){for(var l=arguments.length,d=Array(l>1?l-1:0),p=1;p<l;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,(function(m){return i.apply(void 0,[m].concat(d))}))};var a,o,u=n.produce(i,s,(function(c,l){a=c,o=l}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(c){return[c,a,o]})):[u,a,o]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){H(r)||U(8),X(r)&&(r=ca(r));var n=Jn(this),i=vr(this,r,void 0);return i[C].C=!0,gr(n),i},e.finishDraft=function(r,n){var i=r&&r[C],s=i.A;return pr(s,n),fr(void 0,s)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ti&&U(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var s=n[i];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}i>-1&&(n=n.slice(i+1));var a=q("Patches").$;return X(r)?a(r,n):this.produce(r,(function(o){return a(o,n)}))},t})(),N=new fa,ha=N.produce,eu=N.produceWithPatches.bind(N),tu=N.setAutoFreeze.bind(N),ru=N.setUseProxies.bind(N),nu=N.applyPatches.bind(N),iu=N.createDraft.bind(N),su=N.finishDraft.bind(N),xt=ha;function pe(t){"@babel/helpers - typeof";return pe=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},pe(t)}function ui(t,e){if(pe(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(pe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ci(t){var e=ui(t,"string");return pe(e)=="symbol"?e:e+""}function li(t,e,r){return(e=ci(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function di(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Or(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?di(Object(r),!0).forEach(function(n){li(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):di(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function I(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var pi=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),wr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ct={INIT:"@@redux/INIT"+wr(),REPLACE:"@@redux/REPLACE"+wr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wr()}};function ma(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 _r(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(I(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(I(1));return r(_r)(t,e)}if(typeof t!="function")throw new Error(I(2));var i=t,s=e,a=[],o=a,u=!1;function c(){o===a&&(o=a.slice())}function l(){if(u)throw new Error(I(3));return s}function d(y){if(typeof y!="function")throw new Error(I(4));if(u)throw new Error(I(5));var A=!0;return c(),o.push(y),function(){if(A){if(u)throw new Error(I(6));A=!1,c();var E=o.indexOf(y);o.splice(E,1),a=null}}}function p(y){if(!ma(y))throw new Error(I(7));if(typeof y.type>"u")throw new Error(I(8));if(u)throw new Error(I(9));try{u=!0,s=i(s,y)}finally{u=!1}for(var A=a=o,S=0;S<A.length;S++){var E=A[S];E()}return y}function m(y){if(typeof y!="function")throw new Error(I(10));i=y,p({type:Ct.REPLACE})}function f(){var y,A=d;return y={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(I(11));function T(){E.next&&E.next(l())}T();var x=A(T);return{unsubscribe:x}}},y[pi]=function(){return this},y}return p({type:Ct.INIT}),n={dispatch:p,subscribe:d,getState:l,replaceReducer:m},n[pi]=f,n}function ya(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Ct.INIT});if(typeof n>"u")throw new Error(I(12));if(typeof r(void 0,{type:Ct.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(I(13))})}function fi(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var s=Object.keys(r),a,o;try{ya(r)}catch(u){o=u}return function(c,l){if(c===void 0&&(c={}),o)throw o;if(0)var d;for(var p=!1,m={},f=0;f<s.length;f++){var y=s[f],A=r[y],S=c[y],E=A(S,l);if(typeof E>"u"){var T=l&&l.type;throw new Error(I(14))}m[y]=E,p=p||E!==S}return p=p||s.length!==Object.keys(c).length,p?m:c}}function De(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function hi(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),s=function(){throw new Error(I(15))},a={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},o=e.map(function(u){return u(a)});return s=De.apply(void 0,o)(i.dispatch),Or(Or({},i),{},{dispatch:s})}}}function mi(t){var e=function(n){var i=n.dispatch,s=n.getState;return function(a){return function(o){return typeof o=="function"?o(i,s,t):a(o)}}};return e}var yi=mi();yi.withExtraArgument=mi;var Rr=yi;var Si=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),ga=function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(l){c=[6,l],i=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Ue=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},va=Object.defineProperty,ba=Object.defineProperties,Aa=Object.getOwnPropertyDescriptors,gi=Object.getOwnPropertySymbols,Sa=Object.prototype.hasOwnProperty,Ea=Object.prototype.propertyIsEnumerable,vi=function(t,e,r){return e in t?va(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},ie=function(t,e){for(var r in e||(e={}))Sa.call(e,r)&&vi(t,r,e[r]);if(gi)for(var n=0,i=gi(e);n<i.length;n++){var r=i[n];Ea.call(e,r)&&vi(t,r,e[r])}return t},Ir=function(t,e){return ba(t,Aa(e))},xa=function(t,e,r){return new Promise(function(n,i){var s=function(u){try{o(r.next(u))}catch(c){i(c)}},a=function(u){try{o(r.throw(u))}catch(c){i(c)}},o=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,a)};o((r=r.apply(t,e)).next())})};var Ca=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?De:De.apply(null,arguments)},xu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Ta(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function se(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var s=e.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return ie(ie({type:t,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}var Oa=(function(t){Si(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Ue([void 0],r[0].concat(this)))):new(e.bind.apply(e,Ue([void 0],r.concat(this))))},e})(Array),wa=(function(t){Si(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Ue([void 0],r[0].concat(this)))):new(e.bind.apply(e,Ue([void 0],r.concat(this))))},e})(Array);function Nr(t){return H(t)?xt(t,function(){}):t}function _a(t){return typeof t=="boolean"}function Ra(){return function(e){return Ia(e)}}function Ia(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,s=t.serializableCheck,a=s===void 0?!0:s,o=t.actionCreatorCheck,u=o===void 0?!0:o,c=new Oa;if(r&&(_a(r)?c.push(Rr):c.push(Rr.withExtraArgument(r.extraArgument))),0){if(i)var l;if(a)var d;if(u)var p}return c}var Pr=!0;function Ei(t){var e=Ra(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,s=r.middleware,a=s===void 0?e():s,o=r.devTools,u=o===void 0?!0:o,c=r.preloadedState,l=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,m;if(typeof i=="function")m=i;else if(Ta(i))m=fi(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var f=a;if(typeof f=="function"&&(f=f(e),!Pr&&!Array.isArray(f)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Pr&&f.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var y=hi.apply(void 0,f),A=De;u&&(A=Ca(ie({trace:!Pr},typeof u=="object"&&u)));var S=new wa(y),E=S;Array.isArray(p)?E=Ue([y],p):typeof p=="function"&&(E=p(S));var T=A.apply(void 0,E);return _r(m,l,T)}function xi(t){var e={},r=[],n,i={addCase:function(s,a){var o=typeof s=="string"?s:s.type;if(!o)throw new Error("`builder.addCase` cannot be called with an empty action type");if(o in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[o]=a,i},addMatcher:function(s,a){return r.push({matcher:s,reducer:a}),i},addDefaultCase:function(s){return n=s,i}};return t(i),[e,r,n]}function Pa(t){return typeof t=="function"}function La(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?xi(e):[e,r,n],s=i[0],a=i[1],o=i[2],u;if(Pa(t))u=function(){return Nr(t())};else{var c=Nr(t);u=function(){return c}}function l(d,p){d===void 0&&(d=u());var m=Ue([s[p.type]],a.filter(function(f){var y=f.matcher;return y(p)}).map(function(f){var y=f.reducer;return y}));return m.filter(function(f){return!!f}).length===0&&(m=[o]),m.reduce(function(f,y){if(y)if(X(f)){var A=f,S=y(A,p);return S===void 0?f:S}else{if(H(f))return xt(f,function(E){return y(E,p)});var S=y(f,p);if(S===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return S}return f},d)}return l.getInitialState=u,l}function Na(t,e){return t+"/"+e}function Ci(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Nr(t.initialState),n=t.reducers||{},i=Object.keys(n),s={},a={},o={};i.forEach(function(l){var d=n[l],p=Na(e,l),m,f;"reducer"in d?(m=d.reducer,f=d.prepare):m=d,s[l]=m,a[p]=m,o[l]=f?se(p,f):se(p)});function u(){var l=typeof t.extraReducers=="function"?xi(t.extraReducers):[t.extraReducers],d=l[0],p=d===void 0?{}:d,m=l[1],f=m===void 0?[]:m,y=l[2],A=y===void 0?void 0:y,S=ie(ie({},p),a);return La(r,function(E){for(var T in S)E.addCase(T,S[T]);for(var x=0,Z=f;x<Z.length;x++){var W=Z[x];E.addMatcher(W.matcher,W.reducer)}A&&E.addDefaultCase(A)})}var c;return{name:e,reducer:function(l,d){return c||(c=u()),c(l,d)},actions:o,caseReducers:s,getInitialState:function(){return c||(c=u()),c.getInitialState()}}}var Ma="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ka=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Ma[Math.random()*64|0];return e},Da=["name","message","stack","code"],Lr=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),bi=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Ua=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Da;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},wu=(function(){function t(e,r,n){var i=se(e+"/fulfilled",function(l,d,p,m){return{payload:l,meta:Ir(ie({},m||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),s=se(e+"/pending",function(l,d,p){return{payload:void 0,meta:Ir(ie({},p||{}),{arg:d,requestId:l,requestStatus:"pending"})}}),a=se(e+"/rejected",function(l,d,p,m,f){return{payload:m,error:(n&&n.serializeError||Ua)(l||"Rejected"),meta:Ir(ie({},f||{}),{arg:p,requestId:d,rejectedWithValue:!!m,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"})}}),o=!1,u=typeof AbortController<"u"?AbortController:(function(){function l(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return l.prototype.abort=function(){},l})();function c(l){return function(d,p,m){var f=n?.idGenerator?n.idGenerator(l):ka(),y=new u,A,S=!1;function E(x){A=x,y.abort()}var T=(function(){return xa(this,null,function(){var x,Z,W,Ve,Yr,Ke,Jr;return ga(this,function(ve){switch(ve.label){case 0:return ve.trys.push([0,4,,5]),Ve=(x=n?.condition)==null?void 0:x.call(n,l,{getState:p,extra:m}),ja(Ve)?[4,Ve]:[3,2];case 1:Ve=ve.sent(),ve.label=2;case 2:if(Ve===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return S=!0,Yr=new Promise(function($,qe){return y.signal.addEventListener("abort",function(){return qe({name:"AbortError",message:A||"Aborted"})})}),d(s(f,l,(Z=n?.getPendingMeta)==null?void 0:Z.call(n,{requestId:f,arg:l},{getState:p,extra:m}))),[4,Promise.race([Yr,Promise.resolve(r(l,{dispatch:d,getState:p,extra:m,requestId:f,signal:y.signal,abort:E,rejectWithValue:function($,qe){return new Lr($,qe)},fulfillWithValue:function($,qe){return new bi($,qe)}})).then(function($){if($ instanceof Lr)throw $;return $ instanceof bi?i($.payload,f,l,$.meta):i($,f,l)})])];case 3:return W=ve.sent(),[3,5];case 4:return Ke=ve.sent(),W=Ke instanceof Lr?a(null,f,l,Ke.payload,Ke.meta):a(Ke,f,l),[3,5];case 5:return Jr=n&&!n.dispatchConditionRejection&&a.match(W)&&W.meta.condition,Jr||d(W),[2,W]}})})})();return Object.assign(T,{abort:E,requestId:f,arg:l,unwrap:function(){return T.then(Fa)}})}}return Object.assign(c,{pending:s,rejected:a,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t})();function Fa(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ja(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ti="listener",Oi="completed",wi="cancelled",_u="task-"+wi,Ru="task-"+Oi,Iu=Ti+"-"+wi,Pu=Ti+"-"+Oi;var Mr="listenerMiddleware";var Lu=se(Mr+"/add"),Nu=se(Mr+"/removeAll"),Mu=se(Mr+"/remove");var Ai,ku=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ai||(Ai=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},$a=function(t){return function(e){setTimeout(e,t)}},Du=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:$a(10);si();var Ba=ht(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),Tt=class extends Ba(Object){};window.ftReduxStores||(window.ftReduxStores={});var _i=class t extends Tt{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,s=window.ftReduxStores[n];if(bt(s))return s;if(i==null)return;let a=Ci({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),o=Ei({reducer:(u,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let l=Je(a.getInitialState());for(let d of c.keeping)l[d]=(u??l)[d];return l}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...c.overwrites};return a.reducer(u,c)}});return window.ftReduxStores[i.name]=new t(a,o,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new mt;let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,a,o)=>{let u=a,c=s[u];return c?(...l)=>{let d=c(...l.map(i));return this.reduxStore.dispatch(d),d}:l=>{this.setState({[u]:i(l)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Ot=class{static format(e,r,n,i,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(e,r,n,i,!!s)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i,s){let a=typeof e=="string"?new Date(e):e,o=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(a),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return s?u:i?`${o} ${u}`:o}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var wt=b(O()),Ha="ft-app-info",Fe=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Fe.eventName="authentication-change";var rt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};rt.eventName="ui-locale-changed";var Va={session:(t,e)=>{(0,wt.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>v.dispatchEvent(new Fe(e.payload)),0))}},v=wt.FtReduxStore.get({name:Ha,reducers:Va,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Ri=b(O()),_t=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},lc=(0,Ri.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(v)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,s;return((s=(i=this.metadataDescriptors.find(o=>o.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?o=>Ot.format(o,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return _t([(0,kr.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),_t([(0,kr.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),_t([dr({store:v.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),_t([dr({store:v.name})],e.prototype,"uiLocale",void 0),e});var Ii;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ii||(Ii={}));var Pi;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Pi||(Pi={}));var Li;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Li||(Li={}));var Ni;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Ni||(Ni={}));var Mi;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Mi||(Mi={}));var ki;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ki||(ki={}));var Di;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Di||(Di={}));var Ui;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Ui||(Ui={}));var Fi;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Fi||(Fi={}));var ji;(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"})(ji||(ji={}));var $i;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})($i||($i={}));var Bi;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Bi||(Bi={}));var Hi;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Hi||(Hi={}));var Vi;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Vi||(Vi={}));var Ki;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Ki||(Ki={}));var qi;(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"})(qi||(qi={}));var zi;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(zi||(zi={}));var Wi;(function(t){t.ASC="ASC",t.DESC="DESC"})(Wi||(Wi={}));var Gi;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Gi||(Gi={}));var Yi;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Yi||(Yi={}));var Ji;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ji||(Ji={}));var Xi;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Xi||(Xi={}));var Qi;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Qi||(Qi={}));var Zi;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Zi||(Zi={}));var es;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(es||(es={}));var ts;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ts||(ts={}));var rs;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(rs||(rs={}));var _;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(_||(_={}));var F;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(F||(F={}));var ns;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(ns||(ns={}));var is;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(is||(is={}));var ss;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(ss||(ss={}));var as;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.OTHER="OTHER"})(as||(as={}));var os;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(os||(os={}));var us;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(us||(us={}));var cs;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(cs||(cs={}));var ls;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(ls||(ls={}));var ds;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(ds||(ds={}));var ps;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(ps||(ps={}));var fs;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(fs||(fs={}));var hs;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(hs||(hs={}));var Ka={[_.PERSONAL_BOOK_SHARE_USER]:[_.PERSONAL_BOOK_USER],[_.HTML_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.PDF_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.KHUB_ADMIN]:[_.CONTENT_PUBLISHER],[_.ADMIN]:[_.KHUB_ADMIN,_.USERS_ADMIN,_.PORTAL_ADMIN,_.BEHAVIOR_DATA_USER],[_.GENERATIVE_AI_EXPORT_USER]:[_.GENERATIVE_AI_USER]};function ms(t,e){return t===e||(Ka[t]??[]).some(r=>ms(r,e))}function ys(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=>ms(n,e))}var Nt=b(O());var Dr=b(O());var fe=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=v.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=v.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var je=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:fe.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):fe.await()}};var M=class extends je{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(s,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([o],[u])=>o.localeCompare(u)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Dr.CacheRegistry,this.cache=e?i.commonCache:new Dr.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Rt=class extends M{async listMySearches(){let{session:e}=v.getState();return ys(e,_.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var It=class extends M{async listMyBookmarks(){let e=v.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Pt=class extends M{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=v.getState().session;return!!e?.sessionAuthenticated}};var Lt=class extends M{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=v.getState().session;return!!e?.sessionAuthenticated}};var qa="ft-user-assets",za={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(F).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:n,asset:i}=e.payload;Fr(t,r,[...Ur(t,r),i]),gs(t,r,1,n),vs(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Fr(t,r,Ur(t,r).map(i=>i.id===n.id?n:i)),vs(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;Fr(t,r,Ur(t,r).filter(s=>s.id!==i)),gs(t,r,-1,n)}},bs={[F.SEARCHES]:"savedSearches",[F.BOOKMARKS]:"bookmarks",[F.BOOKS]:void 0,[F.COLLECTIONS]:void 0},Ur=(t,e)=>{var r;let n=bs[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Fr=(t,e,r)=>{let n=bs[e];n&&(t[n]=r)},gs=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===F.BOOKMARKS&&n)){let s=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},vs=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},L=Nt.FtReduxStore.get({name:qa,reducers:za,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(F).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),jr=class{constructor(e=new Pt,r=new Lt){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=v.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new It,this.savedSearchesService=new Rt,v.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=v.getState();(0,Nt.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),L.actions.clearAssetCount(),L.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),L.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),L.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();L.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();L.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&L.getState().assetCounts.allAsset[e]!==r.count&&L.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&L.getState().assetCounts.bookmarkByMap[e]!==r.count&&L.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(L.getState().assetCounts.bookmarkByMap).length!==0;e===F.BOOKMARKS&&r&&L.actions.clearBookmarkCountByMap(),L.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;L.actions.bookmarks(r)}}},Wa=new jr;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Wa);var $r=class{addCommand(e,r=!1){v.commands.add(e,r)}consumeCommand(e){return v.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new $r;var j=b(O());var As,$e=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Ga=Symbol("clearAfterUnitTest"),Mt=class extends(0,j.withEventBus)(M){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[As]=()=>{this.defaultMessages={},this.cache=new j.CacheRegistry,this.listeners={}},this.currentUiLocale=v.getState().uiLocale,v.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=v.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,j.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let s=e.toLowerCase(),a=this.resolveContext(s);return new j.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},a).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof j.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new $e({loadedContexts:e})),this.dispatchEvent(new $e({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new $e({loadedContexts:[e]})),this.dispatchEvent(new $e({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,j.delay)(0).then(()=>n()).catch(()=>null)))}};As=Ga;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Mt{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Mt{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Be=window.FluidTopicsI18nService,kt=window.FluidTopicsCustomI18nService;var Ss=b(O()),Br=class{highlightHtml(e,r,n){(0,Ss.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Br;var Es=b(O());var Hr=class{isDate(e){var r,n,i,s;return(s=(i=((n=(r=v.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var n,i,s,a;if(e==null)return"";try{return Es.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:v.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(a=r?.onlyTime)!==null&&a!==void 0?a:!1)}catch(o){throw console.error(`Date ${JSON.stringify(e)} is not valid`,o),o}}};window.FluidTopicsDateService=new Hr;var xs=b(O());var nt=class{static get(e,r){var n,i;let s=v.getState(),{lang:a,region:o}=(i=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new xs.SearchPlaceConverter(s.baseUrl,e??20,s.searchInAllLanguagesAllowed,r??`${a}-${o}`)}};var Vr=class{urlToSearchRequest(e){return nt.get().parse(e)}searchRequestToUrl(e){return nt.get().serialize(e)}};window.FluidTopicsUrlService=new Vr;var Q=b(O());var he=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};he.eventName="change";var Kr=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Cs=new Kr;var Dt=class t extends Q.WithEventBus{static build(){return new t(window.history,Cs,()=>window.location,!1)}constructor(e,r,n,i){var s,a;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(a=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&a!==void 0?a:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Q.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new he(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[s,a,o])=>{let u=r(),c={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:typeof o=="string"?o:(o??this.windowLocation()).href};n.apply(i,[c,a,o]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(he.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(he.eventName,e)}currentItem(){return(0,Q.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Q.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Q.deepCopy)(r.find(n=>e(n)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Q.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let i=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,s=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Dt.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var Ts=b(G());var Os=Ts.css`
106
+ `}};J.styles=[xn,Cn,Tn,On,wn,_n,Rn,In,Pn,Ln,Nn];Mn([(0,cr.property)()],J.prototype,"element",void 0);Mn([(0,cr.property)()],J.prototype,"variant",void 0);var Un=b(O());var Dn={"ft-typography":J};(0,Un.customElements)(Dn);var kr=b(B());var Fn=b(B(),1);var lr=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function jn(t,e){return(0,Fn.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Je(t);try{return JSON.parse(r)}catch{return Je(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Xe,...e??{}})}function ra(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!ft(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!ft(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=a=>Object.keys(a).filter(o=>a[o]!=null),s=i(t);if(r=s.length,r!==i(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){let a=s[n];if(!ft(t[a],e[a]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ft(t,e){try{return ra(t,e)}catch{return!1}}function Xe(t,e){return!ft(t,e)}function Je(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ht(t,e){let r=n=>n[t]===!0;return n=>{if(r(n))return n;let i=e(n);return i[t]=!0,i}}var $n=b(B(),1);var dr=t=>{let e=t??{};return(r,n)=>{var i;let s={hasChanged:Xe,attribute:!1,...e};(0,$n.property)(s)(r,n);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(o=>o[n]),store:e.store})}};var mt=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var ce=b(B(),1);var yt=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let a of n)try{await a()}catch(o){i(o);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Hn=b(G(),1);var gt=globalThis,na=gt.ShadowRoot&&(gt.ShadyCSS===void 0||gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Bn=(t,e)=>{if(na)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let n=document.createElement("style"),i=gt.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}};var vt=class extends Hn.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Bn(n,e.elementStyles),n}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(e,r){lr(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function Vn(t,e,...r){var n;let i=t.querySelector(e);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var Le=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Wn,Kn=Symbol("constructorPrototype"),qn=Symbol("constructorName"),Gn=Symbol("exportpartsDebouncer"),zn=Symbol("dynamicDependenciesLoaded"),Pe=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Pe.eventName="exportparts-updated";var K=class extends vt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Wn]=new yt(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Gn].run(()=>{var i,s;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[qn]=this.constructor.name,this[Kn]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[qn]&&Object.setPrototypeOf(this,this[Kn])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[zn]||(r[zn]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Pe.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Pe.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Pe)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=Vn(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,n,i,s,a,o;let u=p=>p!=null&&p.trim().length>0,c=e.filter(u).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let l=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let m=(s=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],f=(o=(a=p.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(A=>A.split(":")[1]))!==null&&o!==void 0?o:[],y=[...m,...f].filter(u).map(A=>A.trim());for(let A of y)l.add(A)}if(l.size===0){this.exportparts=void 0;return}let d=[...l.values()].flatMap(p=>c.map(m=>`${p}:${m}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Wn=Gn;Le([(0,ce.property)()],K.prototype,"exportpartsPrefix",void 0);Le([jn([])],K.prototype,"exportpartsPrefixes",void 0);Le([(0,ce.property)({reflect:!0})],K.prototype,"exportparts",void 0);Le([(0,ce.property)()],K.prototype,"customStylesheet",void 0);Le([(0,ce.property)()],K.prototype,"elementToFocus",void 0);Le([(0,ce.state)()],K.prototype,"useAdoptedStyleSheets",void 0);function bt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Qe=Symbol("internalReduxEventsUnsubscribers"),te=Symbol("internalStoresUnsubscribers"),le=Symbol("internalStores"),ia=ht(Symbol("withRedux"),function(t){var e,r,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(a){super.willUpdate(a),[...this.reduxConstructor.reduxReactiveProperties].some(o=>a.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[le].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[le].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[le].get(a)}addStore(a,o){var u;o=(u=o??a.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(o),this[le].set(o,a),this.subscribeToStore(o,a),this.updateFromStores()}removeStore(a){let o=typeof a=="string"?a:a.name;this.unsubscribeFromStore(o),this[le].delete(o)}setupStores(){this.unsubscribeFromStores(),this[le].forEach((a,o)=>this.subscribeToStore(o,a)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((a,o)=>{let u=this.constructor.getPropertyOptions(o);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:o)){let c=this.getStore(a.store);c&&(a.store?this[te].has(a.store):this[te].size>0)&&(this[o]=a.selector(c.getState(),this))}})}subscribeToStore(a,o){var u;this[te].set(a,o.subscribe(()=>this.updateFromStores())),this[Qe].set(a,[]),bt(o)&&o.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((c,l)=>{if(typeof this[l]=="function"&&(!c.store||o.name===c.store)){let d=p=>this[l](p);o.addEventListener(c.eventName,d),this[Qe].get(a).push(()=>o.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(a)}unsubscribeFromStores(){this[te].forEach((a,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(a){var o;this[te].has(a)&&this[te].get(a)(),this[te].delete(a),(o=this[Qe].get(a))===null||o===void 0||o.forEach(u=>u()),this[Qe].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=te,r=le,n=Qe,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Yn=class extends ia(K){};function U(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,s;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(a){return"'"+a+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function X(t){return!!t&&!!t[C]}function H(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===pa})(t)||Array.isArray(t)||!!t[ri]||!!(!((e=t.constructor)===null||e===void 0)&&e[ri])||Ar(t)||Sr(t))}function de(t,e,r){r===void 0&&(r=!1),ke(t)===0?(r?Object.keys:Me)(t).forEach((function(n){r&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,i){return e(i,n,t)}))}function ke(t){var e=t[C];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ar(t)?2:Sr(t)?3:0}function Ne(t,e){return ke(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function sa(t,e){return ke(t)===2?t.get(e):t[e]}function ni(t,e,r){var n=ke(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function ii(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ar(t){return la&&t instanceof Map}function Sr(t){return da&&t instanceof Set}function re(t){return t.o||t.t}function Er(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=oi(t);delete e[C];for(var r=Me(e),n=0;n<r.length;n++){var i=r[n],s=e[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(e[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function xr(t,e){return e===void 0&&(e=!1),Cr(t)||X(t)||!H(t)||(ke(t)>1&&(t.set=t.add=t.clear=t.delete=aa),Object.freeze(t),e&&de(t,(function(r,n){return xr(n,!0)}),!0)),t}function aa(){U(2)}function Cr(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function q(t){var e=br[t];return e||U(18,t),e}function oa(t,e){br[t]||(br[t]=e)}function yr(){return et}function pr(t,e){e&&(q("Patches"),t.u=[],t.s=[],t.v=e)}function At(t){gr(t),t.p.forEach(ua),t.p=null}function gr(t){t===et&&(et=t.l)}function Jn(t){return et={p:[],l:et,h:t,m:!0,_:0}}function ua(t){var e=t[C];e.i===0||e.i===1?e.j():e.g=!0}function fr(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||q("ES5").S(e,t,n),n?(r[C].P&&(At(e),U(4)),H(t)&&(t=St(e,t),e.l||Et(e,t)),e.u&&q("Patches").M(r[C].t,t,e.u,e.s)):t=St(e,r,[]),At(e),e.u&&e.v(e.u,e.s),t!==ai?t:void 0}function St(t,e,r){if(Cr(e))return e;var n=e[C];if(!n)return de(e,(function(o,u){return Xn(t,n,e,o,u,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return Et(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Er(n.k):n.o,s=i,a=!1;n.i===3&&(s=new Set(i),i.clear(),a=!0),de(s,(function(o,u){return Xn(t,n,i,o,u,r,a)})),Et(t,i,!1),r&&t.u&&q("Patches").N(n,r,t.u,t.s)}return n.o}function Xn(t,e,r,n,i,s,a){if(X(i)){var o=St(t,i,s&&e&&e.i!==3&&!Ne(e.R,n)?s.concat(n):void 0);if(ni(r,n,o),!X(o))return;t.m=!1}else a&&r.add(i);if(H(i)&&!Cr(i)){if(!t.h.D&&t._<1)return;St(t,i),e&&e.A.l||Et(t,i)}}function Et(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&xr(e,r)}function hr(t,e){var r=t[C];return(r?re(r):t)[e]}function Qn(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function ne(t){t.P||(t.P=!0,t.l&&ne(t.l))}function mr(t){t.o||(t.o=Er(t.t))}function vr(t,e,r){var n=Ar(e)?q("MapSet").F(e,r):Sr(e)?q("MapSet").T(e,r):t.O?(function(i,s){var a=Array.isArray(i),o={i:a?1:0,A:s?s.A:yr(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},u=o,c=tt;a&&(u=[o],c=Ze);var l=Proxy.revocable(u,c),d=l.revoke,p=l.proxy;return o.k=p,o.j=d,p})(e,r):q("ES5").J(e,r);return(r?r.A:yr()).p.push(n),n}function ca(t){return X(t)||U(22,t),(function e(r){if(!H(r))return r;var n,i=r[C],s=ke(r);if(i){if(!i.P&&(i.i<4||!q("ES5").K(i)))return i.t;i.I=!0,n=Zn(r,s),i.I=!1}else n=Zn(r,s);return de(n,(function(a,o){i&&sa(i.t,a)===o||ni(n,a,e(o))})),s===3?new Set(n):n})(t)}function Zn(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Er(t)}function si(){function t(a,o){var u=s[a];return u?u.enumerable=o:s[a]=u={configurable:!0,enumerable:o,get:function(){var c=this[C];return tt.get(c,a)},set:function(c){var l=this[C];tt.set(l,a,c)}},u}function e(a){for(var o=a.length-1;o>=0;o--){var u=a[o][C];if(!u.P)switch(u.i){case 5:n(u)&&ne(u);break;case 4:r(u)&&ne(u)}}}function r(a){for(var o=a.t,u=a.k,c=Me(u),l=c.length-1;l>=0;l--){var d=c[l];if(d!==C){var p=o[d];if(p===void 0&&!Ne(o,d))return!0;var m=u[d],f=m&&m[C];if(f?f.t!==p:!ii(m,p))return!0}}var y=!!o[C];return c.length!==Me(o).length+(y?0:1)}function n(a){var o=a.k;if(o.length!==a.t.length)return!0;var u=Object.getOwnPropertyDescriptor(o,o.length-1);if(u&&!u.get)return!0;for(var c=0;c<o.length;c++)if(!o.hasOwnProperty(c))return!0;return!1}function i(a){a.g&&U(3,JSON.stringify(re(a)))}var s={};oa("ES5",{J:function(a,o){var u=Array.isArray(a),c=(function(d,p){if(d){for(var m=Array(p.length),f=0;f<p.length;f++)Object.defineProperty(m,""+f,t(f,!0));return m}var y=oi(p);delete y[C];for(var A=Me(y),S=0;S<A.length;S++){var E=A[S];y[E]=t(E,d||!!y[E].enumerable)}return Object.create(Object.getPrototypeOf(p),y)})(u,a),l={i:u?5:4,A:o?o.A:yr(),P:!1,I:!1,R:{},l:o,t:a,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,C,{value:l,writable:!0}),c},S:function(a,o,u){u?X(o)&&o[C].A===a&&e(a.p):(a.u&&(function c(l){if(l&&typeof l=="object"){var d=l[C];if(d){var p=d.t,m=d.k,f=d.R,y=d.i;if(y===4)de(m,(function(x){x!==C&&(p[x]!==void 0||Ne(p,x)?f[x]||c(m[x]):(f[x]=!0,ne(d)))})),de(p,(function(x){m[x]!==void 0||Ne(m,x)||(f[x]=!1,ne(d))}));else if(y===5){if(n(d)&&(ne(d),f.length=!0),m.length<p.length)for(var A=m.length;A<p.length;A++)f[A]=!1;else for(var S=p.length;S<m.length;S++)f[S]=!0;for(var E=Math.min(m.length,p.length),T=0;T<E;T++)m.hasOwnProperty(T)||(f[T]=!0),f[T]===void 0&&c(m[T])}}}})(a.p[0]),e(a.p))},K:function(a){return a.i===4?r(a):n(a)}})}var ei,et,Tr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",la=typeof Map<"u",da=typeof Set<"u",ti=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ai=Tr?Symbol.for("immer-nothing"):((ei={})["immer-nothing"]=!0,ei),ri=Tr?Symbol.for("immer-draftable"):"__$immer_draftable",C=Tr?Symbol.for("immer-state"):"__$immer_state";var pa=""+Object.prototype.constructor,Me=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,oi=Object.getOwnPropertyDescriptors||function(t){var e={};return Me(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},br={},tt={get:function(t,e){if(e===C)return t;var r=re(t);if(!Ne(r,e))return(function(i,s,a){var o,u=Qn(s,a);return u?"value"in u?u.value:(o=u.get)===null||o===void 0?void 0:o.call(i.k):void 0})(t,r,e);var n=r[e];return t.I||!H(n)?n:n===hr(t.t,e)?(mr(t),t.o[e]=vr(t.A.h,n,t)):n},has:function(t,e){return e in re(t)},ownKeys:function(t){return Reflect.ownKeys(re(t))},set:function(t,e,r){var n=Qn(re(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=hr(re(t),e),s=i?.[C];if(s&&s.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(ii(r,i)&&(r!==void 0||Ne(t.t,e)))return!0;mr(t),ne(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return hr(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,mr(t),ne(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=re(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){U(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){U(12)}},Ze={};de(tt,(function(t,e){Ze[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ze.deleteProperty=function(t,e){return Ze.set.call(this,t,e,void 0)},Ze.set=function(t,e,r){return tt.set.call(this,t[0],e,r,t[0])};var fa=(function(){function t(r){var n=this;this.O=ti,this.D=!0,this.produce=function(i,s,a){if(typeof i=="function"&&typeof s!="function"){var o=s;s=i;var u=n;return function(y){var A=this;y===void 0&&(y=o);for(var S=arguments.length,E=Array(S>1?S-1:0),T=1;T<S;T++)E[T-1]=arguments[T];return u.produce(y,(function(x){var Z;return(Z=s).call.apply(Z,[A,x].concat(E))}))}}var c;if(typeof s!="function"&&U(6),a!==void 0&&typeof a!="function"&&U(7),H(i)){var l=Jn(n),d=vr(n,i,void 0),p=!0;try{c=s(d),p=!1}finally{p?At(l):gr(l)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(y){return pr(l,a),fr(y,l)}),(function(y){throw At(l),y})):(pr(l,a),fr(c,l))}if(!i||typeof i!="object"){if((c=s(i))===void 0&&(c=i),c===ai&&(c=void 0),n.D&&xr(c,!0),a){var m=[],f=[];q("Patches").M(i,c,m,f),a(m,f)}return c}U(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(c){for(var l=arguments.length,d=Array(l>1?l-1:0),p=1;p<l;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,(function(m){return i.apply(void 0,[m].concat(d))}))};var a,o,u=n.produce(i,s,(function(c,l){a=c,o=l}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(c){return[c,a,o]})):[u,a,o]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){H(r)||U(8),X(r)&&(r=ca(r));var n=Jn(this),i=vr(this,r,void 0);return i[C].C=!0,gr(n),i},e.finishDraft=function(r,n){var i=r&&r[C],s=i.A;return pr(s,n),fr(void 0,s)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ti&&U(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var s=n[i];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}i>-1&&(n=n.slice(i+1));var a=q("Patches").$;return X(r)?a(r,n):this.produce(r,(function(o){return a(o,n)}))},t})(),N=new fa,ha=N.produce,eu=N.produceWithPatches.bind(N),tu=N.setAutoFreeze.bind(N),ru=N.setUseProxies.bind(N),nu=N.applyPatches.bind(N),iu=N.createDraft.bind(N),su=N.finishDraft.bind(N),xt=ha;function pe(t){"@babel/helpers - typeof";return pe=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},pe(t)}function ui(t,e){if(pe(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(pe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ci(t){var e=ui(t,"string");return pe(e)=="symbol"?e:e+""}function li(t,e,r){return(e=ci(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function di(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Or(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?di(Object(r),!0).forEach(function(n){li(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):di(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function I(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var pi=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),wr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ct={INIT:"@@redux/INIT"+wr(),REPLACE:"@@redux/REPLACE"+wr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wr()}};function ma(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 _r(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(I(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(I(1));return r(_r)(t,e)}if(typeof t!="function")throw new Error(I(2));var i=t,s=e,a=[],o=a,u=!1;function c(){o===a&&(o=a.slice())}function l(){if(u)throw new Error(I(3));return s}function d(y){if(typeof y!="function")throw new Error(I(4));if(u)throw new Error(I(5));var A=!0;return c(),o.push(y),function(){if(A){if(u)throw new Error(I(6));A=!1,c();var E=o.indexOf(y);o.splice(E,1),a=null}}}function p(y){if(!ma(y))throw new Error(I(7));if(typeof y.type>"u")throw new Error(I(8));if(u)throw new Error(I(9));try{u=!0,s=i(s,y)}finally{u=!1}for(var A=a=o,S=0;S<A.length;S++){var E=A[S];E()}return y}function m(y){if(typeof y!="function")throw new Error(I(10));i=y,p({type:Ct.REPLACE})}function f(){var y,A=d;return y={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(I(11));function T(){E.next&&E.next(l())}T();var x=A(T);return{unsubscribe:x}}},y[pi]=function(){return this},y}return p({type:Ct.INIT}),n={dispatch:p,subscribe:d,getState:l,replaceReducer:m},n[pi]=f,n}function ya(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Ct.INIT});if(typeof n>"u")throw new Error(I(12));if(typeof r(void 0,{type:Ct.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(I(13))})}function fi(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var s=Object.keys(r),a,o;try{ya(r)}catch(u){o=u}return function(c,l){if(c===void 0&&(c={}),o)throw o;if(0)var d;for(var p=!1,m={},f=0;f<s.length;f++){var y=s[f],A=r[y],S=c[y],E=A(S,l);if(typeof E>"u"){var T=l&&l.type;throw new Error(I(14))}m[y]=E,p=p||E!==S}return p=p||s.length!==Object.keys(c).length,p?m:c}}function De(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function hi(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),s=function(){throw new Error(I(15))},a={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},o=e.map(function(u){return u(a)});return s=De.apply(void 0,o)(i.dispatch),Or(Or({},i),{},{dispatch:s})}}}function mi(t){var e=function(n){var i=n.dispatch,s=n.getState;return function(a){return function(o){return typeof o=="function"?o(i,s,t):a(o)}}};return e}var yi=mi();yi.withExtraArgument=mi;var Rr=yi;var Si=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),ga=function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(l){c=[6,l],i=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Ue=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},va=Object.defineProperty,ba=Object.defineProperties,Aa=Object.getOwnPropertyDescriptors,gi=Object.getOwnPropertySymbols,Sa=Object.prototype.hasOwnProperty,Ea=Object.prototype.propertyIsEnumerable,vi=function(t,e,r){return e in t?va(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},ie=function(t,e){for(var r in e||(e={}))Sa.call(e,r)&&vi(t,r,e[r]);if(gi)for(var n=0,i=gi(e);n<i.length;n++){var r=i[n];Ea.call(e,r)&&vi(t,r,e[r])}return t},Ir=function(t,e){return ba(t,Aa(e))},xa=function(t,e,r){return new Promise(function(n,i){var s=function(u){try{o(r.next(u))}catch(c){i(c)}},a=function(u){try{o(r.throw(u))}catch(c){i(c)}},o=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,a)};o((r=r.apply(t,e)).next())})};var Ca=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?De:De.apply(null,arguments)},xu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Ta(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function se(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var s=e.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return ie(ie({type:t,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}var Oa=(function(t){Si(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Ue([void 0],r[0].concat(this)))):new(e.bind.apply(e,Ue([void 0],r.concat(this))))},e})(Array),wa=(function(t){Si(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Ue([void 0],r[0].concat(this)))):new(e.bind.apply(e,Ue([void 0],r.concat(this))))},e})(Array);function Nr(t){return H(t)?xt(t,function(){}):t}function _a(t){return typeof t=="boolean"}function Ra(){return function(e){return Ia(e)}}function Ia(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,s=t.serializableCheck,a=s===void 0?!0:s,o=t.actionCreatorCheck,u=o===void 0?!0:o,c=new Oa;if(r&&(_a(r)?c.push(Rr):c.push(Rr.withExtraArgument(r.extraArgument))),0){if(i)var l;if(a)var d;if(u)var p}return c}var Pr=!0;function Ei(t){var e=Ra(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,s=r.middleware,a=s===void 0?e():s,o=r.devTools,u=o===void 0?!0:o,c=r.preloadedState,l=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,m;if(typeof i=="function")m=i;else if(Ta(i))m=fi(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var f=a;if(typeof f=="function"&&(f=f(e),!Pr&&!Array.isArray(f)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Pr&&f.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var y=hi.apply(void 0,f),A=De;u&&(A=Ca(ie({trace:!Pr},typeof u=="object"&&u)));var S=new wa(y),E=S;Array.isArray(p)?E=Ue([y],p):typeof p=="function"&&(E=p(S));var T=A.apply(void 0,E);return _r(m,l,T)}function xi(t){var e={},r=[],n,i={addCase:function(s,a){var o=typeof s=="string"?s:s.type;if(!o)throw new Error("`builder.addCase` cannot be called with an empty action type");if(o in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[o]=a,i},addMatcher:function(s,a){return r.push({matcher:s,reducer:a}),i},addDefaultCase:function(s){return n=s,i}};return t(i),[e,r,n]}function Pa(t){return typeof t=="function"}function La(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?xi(e):[e,r,n],s=i[0],a=i[1],o=i[2],u;if(Pa(t))u=function(){return Nr(t())};else{var c=Nr(t);u=function(){return c}}function l(d,p){d===void 0&&(d=u());var m=Ue([s[p.type]],a.filter(function(f){var y=f.matcher;return y(p)}).map(function(f){var y=f.reducer;return y}));return m.filter(function(f){return!!f}).length===0&&(m=[o]),m.reduce(function(f,y){if(y)if(X(f)){var A=f,S=y(A,p);return S===void 0?f:S}else{if(H(f))return xt(f,function(E){return y(E,p)});var S=y(f,p);if(S===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return S}return f},d)}return l.getInitialState=u,l}function Na(t,e){return t+"/"+e}function Ci(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Nr(t.initialState),n=t.reducers||{},i=Object.keys(n),s={},a={},o={};i.forEach(function(l){var d=n[l],p=Na(e,l),m,f;"reducer"in d?(m=d.reducer,f=d.prepare):m=d,s[l]=m,a[p]=m,o[l]=f?se(p,f):se(p)});function u(){var l=typeof t.extraReducers=="function"?xi(t.extraReducers):[t.extraReducers],d=l[0],p=d===void 0?{}:d,m=l[1],f=m===void 0?[]:m,y=l[2],A=y===void 0?void 0:y,S=ie(ie({},p),a);return La(r,function(E){for(var T in S)E.addCase(T,S[T]);for(var x=0,Z=f;x<Z.length;x++){var W=Z[x];E.addMatcher(W.matcher,W.reducer)}A&&E.addDefaultCase(A)})}var c;return{name:e,reducer:function(l,d){return c||(c=u()),c(l,d)},actions:o,caseReducers:s,getInitialState:function(){return c||(c=u()),c.getInitialState()}}}var Ma="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ka=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Ma[Math.random()*64|0];return e},Da=["name","message","stack","code"],Lr=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),bi=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Ua=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Da;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},wu=(function(){function t(e,r,n){var i=se(e+"/fulfilled",function(l,d,p,m){return{payload:l,meta:Ir(ie({},m||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),s=se(e+"/pending",function(l,d,p){return{payload:void 0,meta:Ir(ie({},p||{}),{arg:d,requestId:l,requestStatus:"pending"})}}),a=se(e+"/rejected",function(l,d,p,m,f){return{payload:m,error:(n&&n.serializeError||Ua)(l||"Rejected"),meta:Ir(ie({},f||{}),{arg:p,requestId:d,rejectedWithValue:!!m,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"})}}),o=!1,u=typeof AbortController<"u"?AbortController:(function(){function l(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return l.prototype.abort=function(){},l})();function c(l){return function(d,p,m){var f=n?.idGenerator?n.idGenerator(l):ka(),y=new u,A,S=!1;function E(x){A=x,y.abort()}var T=(function(){return xa(this,null,function(){var x,Z,W,Ve,Yr,Ke,Jr;return ga(this,function(ve){switch(ve.label){case 0:return ve.trys.push([0,4,,5]),Ve=(x=n?.condition)==null?void 0:x.call(n,l,{getState:p,extra:m}),ja(Ve)?[4,Ve]:[3,2];case 1:Ve=ve.sent(),ve.label=2;case 2:if(Ve===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return S=!0,Yr=new Promise(function($,qe){return y.signal.addEventListener("abort",function(){return qe({name:"AbortError",message:A||"Aborted"})})}),d(s(f,l,(Z=n?.getPendingMeta)==null?void 0:Z.call(n,{requestId:f,arg:l},{getState:p,extra:m}))),[4,Promise.race([Yr,Promise.resolve(r(l,{dispatch:d,getState:p,extra:m,requestId:f,signal:y.signal,abort:E,rejectWithValue:function($,qe){return new Lr($,qe)},fulfillWithValue:function($,qe){return new bi($,qe)}})).then(function($){if($ instanceof Lr)throw $;return $ instanceof bi?i($.payload,f,l,$.meta):i($,f,l)})])];case 3:return W=ve.sent(),[3,5];case 4:return Ke=ve.sent(),W=Ke instanceof Lr?a(null,f,l,Ke.payload,Ke.meta):a(Ke,f,l),[3,5];case 5:return Jr=n&&!n.dispatchConditionRejection&&a.match(W)&&W.meta.condition,Jr||d(W),[2,W]}})})})();return Object.assign(T,{abort:E,requestId:f,arg:l,unwrap:function(){return T.then(Fa)}})}}return Object.assign(c,{pending:s,rejected:a,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t})();function Fa(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ja(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ti="listener",Oi="completed",wi="cancelled",_u="task-"+wi,Ru="task-"+Oi,Iu=Ti+"-"+wi,Pu=Ti+"-"+Oi;var Mr="listenerMiddleware";var Lu=se(Mr+"/add"),Nu=se(Mr+"/removeAll"),Mu=se(Mr+"/remove");var Ai,ku=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ai||(Ai=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},$a=function(t){return function(e){setTimeout(e,t)}},Du=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:$a(10);si();var Ba=ht(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),Tt=class extends Ba(Object){};window.ftReduxStores||(window.ftReduxStores={});var _i=class t extends Tt{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,s=window.ftReduxStores[n];if(bt(s))return s;if(i==null)return;let a=Ci({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),o=Ei({reducer:(u,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let l=Je(a.getInitialState());for(let d of c.keeping)l[d]=(u??l)[d];return l}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...c.overwrites};return a.reducer(u,c)}});return window.ftReduxStores[i.name]=new t(a,o,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new mt;let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,a,o)=>{let u=a,c=s[u];return c?(...l)=>{let d=c(...l.map(i));return this.reduxStore.dispatch(d),d}:l=>{this.setState({[u]:i(l)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Ot=class{static format(e,r,n,i,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(e,r,n,i,!!s)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i,s){let a=typeof e=="string"?new Date(e):e,o=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(a),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return s?u:i?`${o} ${u}`:o}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var wt=b(O()),Ha="ft-app-info",Fe=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Fe.eventName="authentication-change";var rt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};rt.eventName="ui-locale-changed";var Va={session:(t,e)=>{(0,wt.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>v.dispatchEvent(new Fe(e.payload)),0))}},v=wt.FtReduxStore.get({name:Ha,reducers:Va,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Ri=b(O()),_t=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},lc=(0,Ri.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(v)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,s;return((s=(i=this.metadataDescriptors.find(o=>o.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?o=>Ot.format(o,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return _t([(0,kr.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),_t([(0,kr.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),_t([dr({store:v.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),_t([dr({store:v.name})],e.prototype,"uiLocale",void 0),e});var Ii;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ii||(Ii={}));var Pi;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Pi||(Pi={}));var Li;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Li||(Li={}));var Ni;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Ni||(Ni={}));var Mi;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Mi||(Mi={}));var ki;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ki||(ki={}));var Di;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Di||(Di={}));var Ui;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Ui||(Ui={}));var Fi;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Fi||(Fi={}));var ji;(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"})(ji||(ji={}));var $i;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})($i||($i={}));var Bi;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Bi||(Bi={}));var Hi;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Hi||(Hi={}));var Vi;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Vi||(Vi={}));var Ki;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Ki||(Ki={}));var qi;(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"})(qi||(qi={}));var zi;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(zi||(zi={}));var Wi;(function(t){t.ASC="ASC",t.DESC="DESC"})(Wi||(Wi={}));var Gi;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Gi||(Gi={}));var Yi;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Yi||(Yi={}));var Ji;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ji||(Ji={}));var Xi;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Xi||(Xi={}));var Qi;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Qi||(Qi={}));var Zi;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Zi||(Zi={}));var es;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(es||(es={}));var ts;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ts||(ts={}));var rs;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(rs||(rs={}));var _;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(_||(_={}));var F;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(F||(F={}));var ns;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(ns||(ns={}));var is;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(is||(is={}));var ss;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(ss||(ss={}));var as;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(as||(as={}));var os;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(os||(os={}));var us;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(us||(us={}));var cs;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(cs||(cs={}));var ls;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(ls||(ls={}));var ds;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(ds||(ds={}));var ps;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(ps||(ps={}));var fs;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(fs||(fs={}));var hs;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(hs||(hs={}));var Ka={[_.PERSONAL_BOOK_SHARE_USER]:[_.PERSONAL_BOOK_USER],[_.HTML_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.PDF_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.KHUB_ADMIN]:[_.CONTENT_PUBLISHER],[_.ADMIN]:[_.KHUB_ADMIN,_.USERS_ADMIN,_.PORTAL_ADMIN,_.BEHAVIOR_DATA_USER],[_.GENERATIVE_AI_EXPORT_USER]:[_.GENERATIVE_AI_USER]};function ms(t,e){return t===e||(Ka[t]??[]).some(r=>ms(r,e))}function ys(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=>ms(n,e))}var Nt=b(O());var Dr=b(O());var fe=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=v.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=v.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var je=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:fe.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):fe.await()}};var M=class extends je{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(s,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([o],[u])=>o.localeCompare(u)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Dr.CacheRegistry,this.cache=e?i.commonCache:new Dr.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Rt=class extends M{async listMySearches(){let{session:e}=v.getState();return ys(e,_.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var It=class extends M{async listMyBookmarks(){let e=v.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Pt=class extends M{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=v.getState().session;return!!e?.sessionAuthenticated}};var Lt=class extends M{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=v.getState().session;return!!e?.sessionAuthenticated}};var qa="ft-user-assets",za={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(F).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:n,asset:i}=e.payload;Fr(t,r,[...Ur(t,r),i]),gs(t,r,1,n),vs(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Fr(t,r,Ur(t,r).map(i=>i.id===n.id?n:i)),vs(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;Fr(t,r,Ur(t,r).filter(s=>s.id!==i)),gs(t,r,-1,n)}},bs={[F.SEARCHES]:"savedSearches",[F.BOOKMARKS]:"bookmarks",[F.BOOKS]:void 0,[F.COLLECTIONS]:void 0},Ur=(t,e)=>{var r;let n=bs[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Fr=(t,e,r)=>{let n=bs[e];n&&(t[n]=r)},gs=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===F.BOOKMARKS&&n)){let s=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},vs=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},L=Nt.FtReduxStore.get({name:qa,reducers:za,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(F).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),jr=class{constructor(e=new Pt,r=new Lt){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=v.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new It,this.savedSearchesService=new Rt,v.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=v.getState();(0,Nt.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),L.actions.clearAssetCount(),L.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),L.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),L.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();L.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();L.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&L.getState().assetCounts.allAsset[e]!==r.count&&L.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&L.getState().assetCounts.bookmarkByMap[e]!==r.count&&L.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(L.getState().assetCounts.bookmarkByMap).length!==0;e===F.BOOKMARKS&&r&&L.actions.clearBookmarkCountByMap(),L.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;L.actions.bookmarks(r)}}},Wa=new jr;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Wa);var $r=class{addCommand(e,r=!1){v.commands.add(e,r)}consumeCommand(e){return v.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new $r;var j=b(O());var As,$e=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Ga=Symbol("clearAfterUnitTest"),Mt=class extends(0,j.withEventBus)(M){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[As]=()=>{this.defaultMessages={},this.cache=new j.CacheRegistry,this.listeners={}},this.currentUiLocale=v.getState().uiLocale,v.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=v.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,j.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let s=e.toLowerCase(),a=this.resolveContext(s);return new j.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},a).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof j.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new $e({loadedContexts:e})),this.dispatchEvent(new $e({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new $e({loadedContexts:[e]})),this.dispatchEvent(new $e({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,j.delay)(0).then(()=>n()).catch(()=>null)))}};As=Ga;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Mt{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Mt{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Be=window.FluidTopicsI18nService,kt=window.FluidTopicsCustomI18nService;var Ss=b(O()),Br=class{highlightHtml(e,r,n){(0,Ss.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Br;var Es=b(O());var Hr=class{isDate(e){var r,n,i,s;return(s=(i=((n=(r=v.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var n,i,s,a;if(e==null)return"";try{return Es.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:v.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(a=r?.onlyTime)!==null&&a!==void 0?a:!1)}catch(o){throw console.error(`Date ${JSON.stringify(e)} is not valid`,o),o}}};window.FluidTopicsDateService=new Hr;var xs=b(O());var nt=class{static get(e,r){var n,i;let s=v.getState(),{lang:a,region:o}=(i=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new xs.SearchPlaceConverter(s.baseUrl,e??20,s.searchInAllLanguagesAllowed,r??`${a}-${o}`)}};var Vr=class{urlToSearchRequest(e){return nt.get().parse(e)}searchRequestToUrl(e){return nt.get().serialize(e)}};window.FluidTopicsUrlService=new Vr;var Q=b(O());var he=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};he.eventName="change";var Kr=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Cs=new Kr;var Dt=class t extends Q.WithEventBus{static build(){return new t(window.history,Cs,()=>window.location,!1)}constructor(e,r,n,i){var s,a;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(a=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&a!==void 0?a:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Q.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new he(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[s,a,o])=>{let u=r(),c={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:typeof o=="string"?o:(o??this.windowLocation()).href};n.apply(i,[c,a,o]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(he.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(he.eventName,e)}currentItem(){return(0,Q.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Q.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Q.deepCopy)(r.find(n=>e(n)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Q.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let i=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,s=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Dt.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var Ts=b(G());var Os=Ts.css`
107
107
  `;var Rs=b(G()),k=b(B()),ge=b(O());var me=b(O());function ws(t,e){let{authenticationRequired:r,session:n}=v.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var Ut=class extends je{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var qr=class t extends me.FtStateManager{static build(e){return new t(v,e)}constructor(e,r){super(),this.store=e,this.cache=new me.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new Ut,this.cleanSessionDebouncer=new me.Debouncer,this.reloadDebouncer=new me.Debouncer(500),this.apiProvider=r??(()=>fe.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Fe.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>ws(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){var r,n,i,s,a;this.localesConfiguration=e,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((r=this.localesConfiguration.availableUiLocales)!==null&&r!==void 0?r:[]),this.store.actions.searchInAllLanguagesAllowed((n=this.localesConfiguration.allLanguagesAllowed)!==null&&n!==void 0?n:!1),this.store.actions.searchLanguageSetsUiLanguage((i=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&i!==void 0?i:!1),this.store.actions.uiLanguageSetsSearchLanguage((s=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&s!==void 0?s:!1),this.store.actions.uiLanguageSetsReaderLanguage((a=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&a!==void 0?a:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new rt(r)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},_s=qr.build();var ye=class extends Event{constructor(e,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var it=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:n}=r;for(let{elementRef:i,callbackRef:s}of n){let a=i.deref(),o=s.deref();a===void 0||o===void 0||a.dispatchEvent(new ye(e.context,a,o,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],n=e.callback,i=this.pendingContextRequests.get(e.context);i===void 0&&this.pendingContextRequests.set(e.context,i={callbacks:new WeakMap,requests:[]});let s=i.callbacks.get(r);s===void 0&&i.callbacks.set(r,s=new WeakSet),s.has(n)||(s.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var P=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},w=class extends ge.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=_s,this.contextRoot=new it}render(){return Rs.html`
108
108
  <slot></slot>
109
109
  `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Be.addContext(n)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};w.elementDefinitions={};w.styles=Os;P([(0,k.property)()],w.prototype,"baseUrl",void 0);P([(0,k.property)()],w.prototype,"apiIntegrationIdentifier",void 0);P([(0,k.property)()],w.prototype,"apiIntegrationAppVersion",void 0);P([(0,k.property)()],w.prototype,"uiLocale",void 0);P([(0,ge.jsonProperty)(null)],w.prototype,"availableUiLocales",void 0);P([(0,ge.jsonProperty)(null)],w.prototype,"metadataConfiguration",void 0);P([(0,k.property)({type:Boolean})],w.prototype,"editorMode",void 0);P([(0,k.property)({type:Boolean})],w.prototype,"noCustom",void 0);P([(0,k.property)({type:Boolean})],w.prototype,"openExternalDocumentInNewTab",void 0);P([(0,k.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],w.prototype,"noCustomComponent",void 0);P([(0,k.property)({type:Boolean})],w.prototype,"withManualResources",void 0);P([(0,k.property)({type:Boolean})],w.prototype,"navigatorOnline",void 0);P([(0,k.property)({type:Boolean})],w.prototype,"forcedOffline",void 0);P([(0,k.property)({type:Boolean})],w.prototype,"authenticationRequired",void 0);P([(0,ge.jsonProperty)([])],w.prototype,"messageContexts",void 0);P([(0,ge.jsonProperty)(void 0)],w.prototype,"session",void 0);var Ps=b(O());var Is={"ft-app-context":w};(0,Ps.customElements)(Is);var Ft=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?kt:Be}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let s=i;return a=>({context:this.name,key:s,custom:this.custom,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...s)=>this.service.resolveMessage(this.name,i,...s)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(n,i)=>()=>i}),this.attributes=new Proxy({},{get:(n,i)=>()=>({context:this.name,key:i,message:this.service.resolveRawMessage(this.name,i)})})}};var He=b(O());var Ms=b(B());var zr=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,n]=e.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Ls=new zr;var Xa=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Qa=Symbol("i18nAttributes"),Za=Symbol("i18nListAttributes"),ks=Symbol("i18nProperties"),jt=Symbol("i18nContexts"),st=Symbol("i18nUnsubs"),Bt=(0,He.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?kt:Be}i18n(s){let{context:a,key:o,message:u}=s,{custom:c,args:l,argsProvider:d}=s;if(a&&o){this.hasI18nContext(a)||this.addI18nContext(a,void 0,c);let p=l??(d?d(this):[]);return this.getI18nService(c).resolveMessage(a,o,...p)}return u}async awaitI18n(s){let{context:a,custom:o}=s;return a&&await this.getI18nService(o).prepareContext(a),this.i18n(s)}customI18n(s,a){if(Ls.isI18nKey(s)){let[o,u]=s.split(".");return this.i18n({custom:!0,context:o,key:u,...a})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((a,o,u)=>s.has(o)||typeof a.argsProvider=="function"),this.updateI18nProperties(a=>typeof a.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((a,o,u)=>{var c;return((c=u?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(a=>a.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var a,o;let u=this,c=(l,d,p)=>p?.context&&p.key&&s(l,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...l})}:p;(a=this[Qa])===null||a===void 0||a.forEach((l,d)=>u[d]=c(l,d,u[d])),(o=this[Za])===null||o===void 0||o.forEach((l,d)=>{var p;return u[d]=(p=u[d])===null||p===void 0?void 0:p.map(m=>c(l,d,m))})}updateI18nProperties(s){var a;(a=this[ks])===null||a===void 0||a.forEach((o,u)=>{s(o,u)&&(this[u]=this.i18n(o))})}addI18nMessages(s,a,o){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,a,o)}addI18nContext(s,a,o){let u=(typeof s=="string"?s:s.name).toLowerCase();o=typeof s=="string"?o:s.custom,this[jt].set(u,{isCustomContext:o}),this[st].has(u)||this[st].set(u,this.getI18nService(o).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(o).prepareContext(u,a)}hasI18nContext(s){return this[jt].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[jt].forEach((s,a)=>this.addI18nContext(a,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[st].forEach(s=>s()),this[st].clear()}}return e=jt,r=st,Xa([(0,Ms.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Ns=class extends Bt(He.FtLitElement){},$t=class extends Bt(He.FtLitElementRedux){};var Ds=b(G());var Us=Ds.css`
@@ -44,7 +44,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
44
44
  input::-webkit-search-results-decoration {
45
45
  display: none;
46
46
  }
47
- `;var ys={};var Pn={};N(Pn,{ParametrizedLabelResolver:()=>yr});var yr=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 ra={};N(ra,{FtCommandQueue:()=>br,FtLitElementRedux:()=>Te,FtReduxStore:()=>it,FtStateManager:()=>Er,ReduxWatcher:()=>ro,clearAllStores:()=>ff,isFtReduxStore:()=>At,redux:()=>Ie,reduxEventListener:()=>Iu,reduxReactive:()=>Ru,watch:()=>pf,withRedux:()=>bs});var Ru=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},Ie=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:Ze,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})}},Iu=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var br=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 At(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var xr=Symbol("internalReduxEventsUnsubscribers"),Fe=Symbol("internalStoresUnsubscribers"),ot=Symbol("internalStores"),bs=G(Symbol("withRedux"),function(t){var e,o,n;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[ot].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ot].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[ot].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[ot].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[ot].delete(l)}setupStores(){this.unsubscribeFromStores(),this[ot].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let f=this.getStore(s.store);f&&(s.store?this[Fe].has(s.store):this[Fe].size>0)&&(this[l]=s.selector(f.getState(),this))}})}subscribeToStore(s,l){var d;this[Fe].set(s,l.subscribe(()=>this.updateFromStores())),this[xr].set(s,[]),At(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,h)=>{if(typeof this[h]=="function"&&(!f.store||l.name===f.store)){let p=m=>this[h](m);l.addEventListener(f.eventName,p),this[xr].get(s).push(()=>l.removeEventListener(f.eventName,p))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Fe].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Fe].has(s)&&this[Fe].get(s)(),this[Fe].delete(s),(l=this[xr].get(s))===null||l===void 0||l.forEach(d=>d()),this[xr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Fe,o=ot,n=xr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Te=class extends bs(j){};function ce(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 Le(t){return!!t&&!!t[U]}function he(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)===Du})(t)||Array.isArray(t)||!!t[ws]||!!(!((e=t.constructor)===null||e===void 0)&&e[ws])||Hn(t)||zn(t))}function nt(t,e,o){o===void 0&&(o=!1),Tt(t)===0?(o?Object.keys:It)(t).forEach((function(n){o&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,a){return e(a,n,t)}))}function Tt(t){var e=t[U];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Hn(t)?2:zn(t)?3:0}function Rt(t,e){return Tt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Tu(t,e){return Tt(t)===2?t.get(e):t[e]}function As(t,e,o){var n=Tt(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Rs(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Hn(t){return Nu&&t instanceof Map}function zn(t){return Mu&&t instanceof Set}function Ue(t){return t.o||t.t}function Wn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ls(t);delete e[U];for(var o=It(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 Gn(t,e){return e===void 0&&(e=!1),jn(t)||Le(t)||!he(t)||(Tt(t)>1&&(t.set=t.add=t.clear=t.delete=Lu),Object.freeze(t),e&&nt(t,(function(o,n){return Gn(n,!0)}),!0)),t}function Lu(){ce(2)}function jn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ce(t){var e=$n[t];return e||ce(18,t),e}function _u(t,e){$n[t]||($n[t]=e)}function Fn(){return Sr}function kn(t,e){e&&(Ce("Patches"),t.u=[],t.s=[],t.v=e)}function Jr(t){Un(t),t.p.forEach(Pu),t.p=null}function Un(t){t===Sr&&(Sr=t.l)}function xs(t){return Sr={p:[],l:Sr,h:t,m:!0,_:0}}function Pu(t){var e=t[U];e.i===0||e.i===1?e.j():e.g=!0}function Nn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Ce("ES5").S(e,t,n),n?(o[U].P&&(Jr(e),ce(4)),he(t)&&(t=Xr(e,t),e.l||Qr(e,t)),e.u&&Ce("Patches").M(o[U].t,t,e.u,e.s)):t=Xr(e,o,[]),Jr(e),e.u&&e.v(e.u,e.s),t!==Ts?t:void 0}function Xr(t,e,o){if(jn(e))return e;var n=e[U];if(!n)return nt(e,(function(l,d){return vs(t,n,e,l,d,o)}),!0),e;if(n.A!==t)return e;if(!n.P)return Qr(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Wn(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),nt(i,(function(l,d){return vs(t,n,a,l,d,o,s)})),Qr(t,a,!1),o&&t.u&&Ce("Patches").N(n,o,t.u,t.s)}return n.o}function vs(t,e,o,n,a,i,s){if(Le(a)){var l=Xr(t,a,i&&e&&e.i!==3&&!Rt(e.R,n)?i.concat(n):void 0);if(As(o,n,l),!Le(l))return;t.m=!1}else s&&o.add(a);if(he(a)&&!jn(a)){if(!t.h.D&&t._<1)return;Xr(t,a),e&&e.A.l||Qr(t,a)}}function Qr(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Gn(e,o)}function Mn(t,e){var o=t[U];return(o?Ue(o):t)[e]}function Ss(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 Be(t){t.P||(t.P=!0,t.l&&Be(t.l))}function Dn(t){t.o||(t.o=Wn(t.t))}function Bn(t,e,o){var n=Hn(e)?Ce("MapSet").F(e,o):zn(e)?Ce("MapSet").T(e,o):t.O?(function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Fn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,f=Cr;s&&(d=[l],f=vr);var h=Proxy.revocable(d,f),p=h.revoke,m=h.proxy;return l.k=m,l.j=p,m})(e,o):Ce("ES5").J(e,o);return(o?o.A:Fn()).p.push(n),n}function ku(t){return Le(t)||ce(22,t),(function e(o){if(!he(o))return o;var n,a=o[U],i=Tt(o);if(a){if(!a.P&&(a.i<4||!Ce("ES5").K(a)))return a.t;a.I=!0,n=Cs(o,i),a.I=!1}else n=Cs(o,i);return nt(n,(function(s,l){a&&Tu(a.t,s)===l||As(n,s,e(l))})),i===3?new Set(n):n})(t)}function Cs(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Wn(t)}function Is(){function t(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var f=this[U];return Cr.get(f,s)},set:function(f){var h=this[U];Cr.set(h,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][U];if(!d.P)switch(d.i){case 5:n(d)&&Be(d);break;case 4:o(d)&&Be(d)}}}function o(s){for(var l=s.t,d=s.k,f=It(d),h=f.length-1;h>=0;h--){var p=f[h];if(p!==U){var m=l[p];if(m===void 0&&!Rt(l,p))return!0;var y=d[p],g=y&&y[U];if(g?g.t!==m:!Rs(y,m))return!0}}var v=!!l[U];return f.length!==It(l).length+(v?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 f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function a(s){s.g&&ce(3,JSON.stringify(Ue(s)))}var i={};_u("ES5",{J:function(s,l){var d=Array.isArray(s),f=(function(p,m){if(p){for(var y=Array(m.length),g=0;g<m.length;g++)Object.defineProperty(y,""+g,t(g,!0));return y}var v=Ls(m);delete v[U];for(var C=It(v),E=0;E<C.length;E++){var O=C[E];v[O]=t(O,p||!!v[O].enumerable)}return Object.create(Object.getPrototypeOf(m),v)})(d,s),h={i:d?5:4,A:l?l.A:Fn(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,U,{value:h,writable:!0}),f},S:function(s,l,d){d?Le(l)&&l[U].A===s&&e(s.p):(s.u&&(function f(h){if(h&&typeof h=="object"){var p=h[U];if(p){var m=p.t,y=p.k,g=p.R,v=p.i;if(v===4)nt(y,(function(b){b!==U&&(m[b]!==void 0||Rt(m,b)?g[b]||f(y[b]):(g[b]=!0,Be(p)))})),nt(m,(function(b){y[b]!==void 0||Rt(y,b)||(g[b]=!1,Be(p))}));else if(v===5){if(n(p)&&(Be(p),g.length=!0),y.length<m.length)for(var C=y.length;C<m.length;C++)g[C]=!1;else for(var E=m.length;E<y.length;E++)g[E]=!0;for(var O=Math.min(y.length,m.length),x=0;x<O;x++)y.hasOwnProperty(x)||(g[x]=!0),g[x]===void 0&&f(y[x])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Es,Sr,Vn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Nu=typeof Map<"u",Mu=typeof Set<"u",Os=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ts=Vn?Symbol.for("immer-nothing"):((Es={})["immer-nothing"]=!0,Es),ws=Vn?Symbol.for("immer-draftable"):"__$immer_draftable",U=Vn?Symbol.for("immer-state"):"__$immer_state";var Du=""+Object.prototype.constructor,It=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ls=Object.getOwnPropertyDescriptors||function(t){var e={};return It(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},$n={},Cr={get:function(t,e){if(e===U)return t;var o=Ue(t);if(!Rt(o,e))return(function(a,i,s){var l,d=Ss(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||!he(n)?n:n===Mn(t.t,e)?(Dn(t),t.o[e]=Bn(t.A.h,n,t)):n},has:function(t,e){return e in Ue(t)},ownKeys:function(t){return Reflect.ownKeys(Ue(t))},set:function(t,e,o){var n=Ss(Ue(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Mn(Ue(t),e),i=a?.[U];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Rs(o,a)&&(o!==void 0||Rt(t.t,e)))return!0;Dn(t),Be(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 Mn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Dn(t),Be(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Ue(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ce(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ce(12)}},vr={};nt(Cr,(function(t,e){vr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),vr.deleteProperty=function(t,e){return vr.set.call(this,t,e,void 0)},vr.set=function(t,e,o){return Cr.set.call(this,t[0],e,o,t[0])};var Fu=(function(){function t(o){var n=this;this.O=Os,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(v){var C=this;v===void 0&&(v=l);for(var E=arguments.length,O=Array(E>1?E-1:0),x=1;x<E;x++)O[x-1]=arguments[x];return d.produce(v,(function(b){var S;return(S=i).call.apply(S,[C,b].concat(O))}))}}var f;if(typeof i!="function"&&ce(6),s!==void 0&&typeof s!="function"&&ce(7),he(a)){var h=xs(n),p=Bn(n,a,void 0),m=!0;try{f=i(p),m=!1}finally{m?Jr(h):Un(h)}return typeof Promise<"u"&&f instanceof Promise?f.then((function(v){return kn(h,s),Nn(v,h)}),(function(v){throw Jr(h),v})):(kn(h,s),Nn(f,h))}if(!a||typeof a!="object"){if((f=i(a))===void 0&&(f=a),f===Ts&&(f=void 0),n.D&&Gn(f,!0),s){var y=[],g=[];Ce("Patches").M(a,f,y,g),s(y,g)}return f}ce(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(f){for(var h=arguments.length,p=Array(h>1?h-1:0),m=1;m<h;m++)p[m-1]=arguments[m];return n.produceWithPatches(f,(function(y){return a.apply(void 0,[y].concat(p))}))};var s,l,d=n.produce(a,i,(function(f,h){s=f,l=h}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(f){return[f,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){he(o)||ce(8),Le(o)&&(o=ku(o));var n=xs(this),a=Bn(this,o,void 0);return a[U].C=!0,Un(n),a},e.finishDraft=function(o,n){var a=o&&o[U],i=a.A;return kn(i,n),Nn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Os&&ce(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=Ce("Patches").$;return Le(o)?s(o,n):this.produce(o,(function(l){return s(l,n)}))},t})(),re=new Fu,Uu=re.produce,kb=re.produceWithPatches.bind(re),Nb=re.setAutoFreeze.bind(re),Mb=re.setUseProxies.bind(re),Db=re.applyPatches.bind(re),Fb=re.createDraft.bind(re),Ub=re.finishDraft.bind(re),eo=Uu;function at(t){"@babel/helpers - typeof";return at=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},at(t)}function _s(t,e){if(at(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(at(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ps(t){var e=_s(t,"string");return at(e)=="symbol"?e:e+""}function ks(t,e,o){return(e=Ps(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ns(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 Kn(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Ns(Object(o),!0).forEach(function(n){ks(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ns(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Z(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 Ms=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Zn=function(){return Math.random().toString(36).substring(7).split("").join(".")},to={INIT:"@@redux/INIT"+Zn(),REPLACE:"@@redux/REPLACE"+Zn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Zn()}};function Bu(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 qn(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Z(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Z(1));return o(qn)(t,e)}if(typeof t!="function")throw new Error(Z(2));var a=t,i=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Z(3));return i}function p(v){if(typeof v!="function")throw new Error(Z(4));if(d)throw new Error(Z(5));var C=!0;return f(),l.push(v),function(){if(C){if(d)throw new Error(Z(6));C=!1,f();var O=l.indexOf(v);l.splice(O,1),s=null}}}function m(v){if(!Bu(v))throw new Error(Z(7));if(typeof v.type>"u")throw new Error(Z(8));if(d)throw new Error(Z(9));try{d=!0,i=a(i,v)}finally{d=!1}for(var C=s=l,E=0;E<C.length;E++){var O=C[E];O()}return v}function y(v){if(typeof v!="function")throw new Error(Z(10));a=v,m({type:to.REPLACE})}function g(){var v,C=p;return v={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(Z(11));function x(){O.next&&O.next(h())}x();var b=C(x);return{unsubscribe:b}}},v[Ms]=function(){return this},v}return m({type:to.INIT}),n={dispatch:m,subscribe:p,getState:h,replaceReducer:y},n[Ms]=g,n}function $u(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:to.INIT});if(typeof n>"u")throw new Error(Z(12));if(typeof o(void 0,{type:to.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Z(13))})}function Ds(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{$u(o)}catch(d){l=d}return function(f,h){if(f===void 0&&(f={}),l)throw l;if(0)var p;for(var m=!1,y={},g=0;g<i.length;g++){var v=i[g],C=o[v],E=f[v],O=C(E,h);if(typeof O>"u"){var x=h&&h.type;throw new Error(Z(14))}y[v]=O,m=m||O!==E}return m=m||i.length!==Object.keys(f).length,m?y:f}}function Lt(){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 Fs(){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(Z(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=Lt.apply(void 0,l)(a.dispatch),Kn(Kn({},a),{},{dispatch:i})}}}function Us(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 Bs=Us();Bs.withExtraArgument=Us;var Yn=Bs;var Gs=(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)}})(),Hu=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(f){return function(h){return d([f,h])}}function d(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,a=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){o.label=f[1];break}if(f[0]===6&&o.label<i[1]){o.label=i[1],i=f;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(f);break}i[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(h){f=[6,h],a=0}finally{n=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},_t=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},zu=Object.defineProperty,Wu=Object.defineProperties,Gu=Object.getOwnPropertyDescriptors,$s=Object.getOwnPropertySymbols,ju=Object.prototype.hasOwnProperty,Vu=Object.prototype.propertyIsEnumerable,Hs=function(t,e,o){return e in t?zu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},$e=function(t,e){for(var o in e||(e={}))ju.call(e,o)&&Hs(t,o,e[o]);if($s)for(var n=0,a=$s(e);n<a.length;n++){var o=a[n];Vu.call(e,o)&&Hs(t,o,e[o])}return t},Jn=function(t,e){return Wu(t,Gu(e))},Ku=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(f){a(f)}},s=function(d){try{l(o.throw(d))}catch(f){a(f)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(t,e)).next())})};var Zu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Lt:Lt.apply(null,arguments)},rx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function qu(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}function He(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 $e($e({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}var Yu=(function(t){Gs(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,_t([void 0],o[0].concat(this)))):new(e.bind.apply(e,_t([void 0],o.concat(this))))},e})(Array),Ju=(function(t){Gs(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,_t([void 0],o[0].concat(this)))):new(e.bind.apply(e,_t([void 0],o.concat(this))))},e})(Array);function ea(t){return he(t)?eo(t,function(){}):t}function Xu(t){return typeof t=="boolean"}function Qu(){return function(e){return ef(e)}}function ef(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=t.actionCreatorCheck,d=l===void 0?!0:l,f=new Yu;if(o&&(Xu(o)?f.push(Yn):f.push(Yn.withExtraArgument(o.extraArgument))),0){if(a)var h;if(s)var p;if(d)var m}return f}var Xn=!0;function js(t){var e=Qu(),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,f=o.preloadedState,h=f===void 0?void 0:f,p=o.enhancers,m=p===void 0?void 0:p,y;if(typeof a=="function")y=a;else if(qu(a))y=Ds(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 g=s;if(typeof g=="function"&&(g=g(e),!Xn&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Xn&&g.some(function(b){return typeof b!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Fs.apply(void 0,g),C=Lt;d&&(C=Zu($e({trace:!Xn},typeof d=="object"&&d)));var E=new Ju(v),O=E;Array.isArray(m)?O=_t([v],m):typeof m=="function"&&(O=m(E));var x=C.apply(void 0,O);return qn(y,h,x)}function Vs(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in e)throw new Error("`builder.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 tf(t){return typeof t=="function"}function rf(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Vs(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(tf(t))d=function(){return ea(t())};else{var f=ea(t);d=function(){return f}}function h(p,m){p===void 0&&(p=d());var y=_t([i[m.type]],s.filter(function(g){var v=g.matcher;return v(m)}).map(function(g){var v=g.reducer;return v}));return y.filter(function(g){return!!g}).length===0&&(y=[l]),y.reduce(function(g,v){if(v)if(Le(g)){var C=g,E=v(C,m);return E===void 0?g:E}else{if(he(g))return eo(g,function(O){return v(O,m)});var E=v(g,m);if(E===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return g},p)}return h.getInitialState=d,h}function of(t,e){return t+"/"+e}function Ks(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:ea(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var p=n[h],m=of(e,h),y,g;"reducer"in p?(y=p.reducer,g=p.prepare):y=p,i[h]=y,s[m]=y,l[h]=g?He(m,g):He(m)});function d(){var h=typeof t.extraReducers=="function"?Vs(t.extraReducers):[t.extraReducers],p=h[0],m=p===void 0?{}:p,y=h[1],g=y===void 0?[]:y,v=h[2],C=v===void 0?void 0:v,E=$e($e({},m),s);return rf(o,function(O){for(var x in E)O.addCase(x,E[x]);for(var b=0,S=g;b<S.length;b++){var w=S[b];O.addMatcher(w.matcher,w.reducer)}C&&O.addDefaultCase(C)})}var f;return{name:e,reducer:function(h,p){return f||(f=d()),f(h,p)},actions:l,caseReducers:i,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}var nf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",af=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=nf[Math.random()*64|0];return e},sf=["name","message","stack","code"],Qn=(function(){function t(e,o){this.payload=e,this.meta=o}return t})(),zs=(function(){function t(e,o){this.payload=e,this.meta=o}return t})(),cf=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=sf;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},ix=(function(){function t(e,o,n){var a=He(e+"/fulfilled",function(h,p,m,y){return{payload:h,meta:Jn($e({},y||{}),{arg:m,requestId:p,requestStatus:"fulfilled"})}}),i=He(e+"/pending",function(h,p,m){return{payload:void 0,meta:Jn($e({},m||{}),{arg:p,requestId:h,requestStatus:"pending"})}}),s=He(e+"/rejected",function(h,p,m,y,g){return{payload:y,error:(n&&n.serializeError||cf)(h||"Rejected"),meta:Jn($e({},g||{}),{arg:m,requestId:p,rejectedWithValue:!!y,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 f(h){return function(p,m,y){var g=n?.idGenerator?n.idGenerator(h):af(),v=new d,C,E=!1;function O(b){C=b,v.abort()}var x=(function(){return Ku(this,null,function(){var b,S,w,_,$,D,R;return Hu(this,function(T){switch(T.label){case 0:return T.trys.push([0,4,,5]),_=(b=n?.condition)==null?void 0:b.call(n,h,{getState:m,extra:y}),df(_)?[4,_]:[3,2];case 1:_=T.sent(),T.label=2;case 2:if(_===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,$=new Promise(function(M,z){return v.signal.addEventListener("abort",function(){return z({name:"AbortError",message:C||"Aborted"})})}),p(i(g,h,(S=n?.getPendingMeta)==null?void 0:S.call(n,{requestId:g,arg:h},{getState:m,extra:y}))),[4,Promise.race([$,Promise.resolve(o(h,{dispatch:p,getState:m,extra:y,requestId:g,signal:v.signal,abort:O,rejectWithValue:function(M,z){return new Qn(M,z)},fulfillWithValue:function(M,z){return new zs(M,z)}})).then(function(M){if(M instanceof Qn)throw M;return M instanceof zs?a(M.payload,g,h,M.meta):a(M,g,h)})])];case 3:return w=T.sent(),[3,5];case 4:return D=T.sent(),w=D instanceof Qn?s(null,g,h,D.payload,D.meta):s(D,g,h),[3,5];case 5:return R=n&&!n.dispatchConditionRejection&&s.match(w)&&w.meta.condition,R||p(w),[2,w]}})})})();return Object.assign(x,{abort:O,requestId:g,arg:h,unwrap:function(){return x.then(lf)}})}}return Object.assign(f,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t})();function lf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function df(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Zs="listener",qs="completed",Ys="cancelled",sx="task-"+Ys,cx="task-"+qs,lx=Zs+"-"+Ys,dx=Zs+"-"+qs;var ta="listenerMiddleware";var ux=He(ta+"/add"),fx=He(ta+"/removeAll"),px=He(ta+"/remove");var Ws,hx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ws||(Ws=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},uf=function(t){return function(e){setTimeout(e,t)}},mx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:uf(10);Is();window.ftReduxStores||(window.ftReduxStores={});var it=class t extends Ae{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(At(i))return i;if(a==null)return;let s=Ks({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=js({reducer:(d,f)=>{if(f.type==="CLEAR_FT_REDUX_STORE"){let h=ue(s.getInitialState());for(let p of f.keeping)h[p]=(d??h)[p];return h}else if(typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...f.overwrites};return s.reducer(d,f)}});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 br;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,f=i[d];return f?(...h)=>{let p=f(...h.map(a));return this.reduxStore.dispatch(p),p}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function ff(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))At(e)&&e.clear()}var ro=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);Ze(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 pf(t,e,o){return new ro(t,e,o).watch()}var Er=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e).size==1&&this.onNewNeededRequest(n)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var aa={};N(aa,{scrollHelper:()=>hf});var oa,oo=new Map,na=class{lock(e,o){if(o){let n=oo.get(o);if(n==null||n===e)return oo.set(o,e),o}}release(e,o){o&&oo.get(o)===e&&oo.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of Go(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)&&!["contents"].includes(getComputedStyle(e).display)}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=qe(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=(oa=window.FluidTopicsScrollHelper)!==null&&oa!==void 0?oa:new na;var hf=window.FluidTopicsScrollHelper;var sa={};N(sa,{SearchPlaceConverter:()=>Nt,SearchPlaceQueryParams:()=>P,isSearchPlaceQueryParams:()=>Uc,serializeRequest:()=>yf});var Js;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Js||(Js={}));var Xs;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Xs||(Xs={}));var Qs;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Qs||(Qs={}));var ec;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(ec||(ec={}));var tc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(tc||(tc={}));var rc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(rc||(rc={}));var oc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(oc||(oc={}));var nc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(nc||(nc={}));var ac;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(ac||(ac={}));var ic;(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"})(ic||(ic={}));var sc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(sc||(sc={}));var cc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(cc||(cc={}));var lc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(lc||(lc={}));var dc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(dc||(dc={}));var uc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(uc||(uc={}));var fc;(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"})(fc||(fc={}));var Pt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Pt||(Pt={}));var pc;(function(t){t.ASC="ASC",t.DESC="DESC"})(pc||(pc={}));var hc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(hc||(hc={}));var ia;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ia||(ia={}));var Cc=t=>Object.keys(ia).includes(t);var mc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(mc||(mc={}));var gc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(gc||(gc={}));var yc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(yc||(yc={}));var kt;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(kt||(kt={}));var Ec=t=>Object.keys(kt).includes(t);var bc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(bc||(bc={}));var xc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(xc||(xc={}));var vc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(vc||(vc={}));var H;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(H||(H={}));var le;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(le||(le={}));var Sc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Sc||(Sc={}));var Oc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Oc||(Oc={}));var wc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(wc||(wc={}));var Ac;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.OTHER="OTHER"})(Ac||(Ac={}));var Rc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Rc||(Rc={}));var Ic;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ic||(Ic={}));var Tc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Tc||(Tc={}));var Lc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Lc||(Lc={}));var _c;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(_c||(_c={}));var Pc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Pc||(Pc={}));var kc;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(kc||(kc={}));var Nc;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Nc||(Nc={}));var mf={[H.PERSONAL_BOOK_SHARE_USER]:[H.PERSONAL_BOOK_USER],[H.HTML_EXPORT_USER]:[H.PERSONAL_BOOK_USER],[H.PDF_EXPORT_USER]:[H.PERSONAL_BOOK_USER],[H.KHUB_ADMIN]:[H.CONTENT_PUBLISHER],[H.ADMIN]:[H.KHUB_ADMIN,H.USERS_ADMIN,H.PORTAL_ADMIN,H.BEHAVIOR_DATA_USER],[H.GENERATIVE_AI_EXPORT_USER]:[H.GENERATIVE_AI_USER]};function Mc(t,e){return t===e||(mf[t]??[]).some(o=>Mc(o,e))}function Dc(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=>Mc(n,e))}function gf(t){return`"${t}"`}function Fc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function yf(t,e){return new Nt(t).serialize(e)}var P;(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",t.KEYWORD_MATCH="keyword-match"})(P||(P={}));var bf=new Set(Object.values(P));function Uc(t){return bf.has(t)}var Nt=class{constructor(e,o=20,n=!1,a="en-US"){this.baseUrl=e,this.defaultPerPage=o,this.allLanguagesAllowed=n,this.defaultContentLocale=a,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,f,h,p,m,y;let g=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&g.append(P.LOCALE,e.contentLocale):g.append(P.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&g.append(P.QUERY,e.query);let v=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(b=>b.valueFilter&&!b.valueFilter.negative))!==null&&i!==void 0?i:[];if(v.length>0){let b=v.map(S=>{var w,_;let $=((_=(w=S.valueFilter)===null||w===void 0?void 0:w.values)!==null&&_!==void 0?_:[]).map(D=>this.escapeFilters(D)).map(D=>gf(Fc(D))).join("_");return`${S.key}~${$}`}).join("*");g.append(P.VALUE_FILTERS,b)}let C=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(b=>b.dateFilter))!==null&&l!==void 0?l:[];if(C.length>0){let b=C.map(S=>{var w;return`${S.key}~${(w=S.dateFilter)===null||w===void 0?void 0:w.type.toLowerCase()}`}).join("*");g.append(P.DATE_FILTERS,b)}let E=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(b=>b.rangeFilter))!==null&&f!==void 0?f:[];if(E.length>0){let b=E.map(S=>{var w,_;return`${S.key}~${(w=S.rangeFilter)===null||w===void 0?void 0:w.from}_${(_=S.rangeFilter)===null||_===void 0?void 0:_.to}`}).join("*");g.append(P.RANGE_FILTERS,b)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(P.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(P.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(P.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((m=(p=e.paging)===null||p===void 0?void 0:p.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&g.append(P.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(P.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let O=(y=e.otherQueryParams)!==null&&y!==void 0?y:{};for(let b in O)g.append(b,O[b]);let x=new Array;return g.forEach((b,S)=>{x.push(this.encodeQueryString(S)+"="+this.encodeQueryString(b))}),encodeURI(x.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}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;try{e=decodeURI(e).replace(/%23/g,"#")}catch(E){console.warn("Could not decode search request query params, fallback on raw value",E)}let d=new URLSearchParams(e),f=d.get(P.LOCALE)==="all"?void 0:d.get(P.LOCALE),h=((o=d.get(P.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),p=(n=d.get(P.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(a=d.get(P.SCOPE))!==null&&a!==void 0?a:"default",y=+((i=d.get(P.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),g=d.get(P.KEYWORD_MATCH),v=g?g.toUpperCase()===Pt.MANDATORY?Pt.MANDATORY:Pt.OPTIONAL:void 0,C={};for(let E of d.keys())Uc(E)||(C[E]=d.get(E));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(P.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:Cc(h)?h:"EVERYWHERE",sortId:p,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:qe(1,isNaN(y)?this.defaultPerPage:y,1e3)},keywordMatch:v,otherQueryParams:C}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(P.FILTERS)&&(d=this.parseValueFilters((o=e.get(P.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(P.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(P.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(P.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(P.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(P.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(Fc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:kt[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.replaceAll(a,o);return e}parseLegacyPeriodFilter(e){if(Ec(e))return[{key:"ft:lastEdition",dateFilter:{type:kt[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}static clearSearchParamsInUrl(e){let o=new URL(e);return[P.LOCALE,P.FILTERS,P.VALUE_FILTERS,P.DATE_FILTERS,P.RANGE_FILTERS].forEach(a=>{o.searchParams.delete(a)}),o.toString()}static updateLocaleParamInUrl(e,o){let n=new URL(e);return n.searchParams.delete(P.LOCALE),o!==void 0&&n.searchParams.append(P.LOCALE,o),n.toString()}};var la={};N(la,{toFtFormComponent:()=>xf});var ca=Symbol("elementInternals"),xf=G(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[ca].form}constructor(...n){super(n),this[ca]=this.attachInternals()}setFormValue(n){this[ca].setFormValue(n)}}return e});var da={};N(da,{DateFormatter:()=>st});var st=class{static format(e,o,n,a,i){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,a,!!i)):this.getIntlDateTime(e,o,n,a,!!i)}static getMomentDateFormat(e,o,n){return n?"LT":e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,a,i){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(s);return i?d:a?`${l} ${d}`:l}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var fa={};N(fa,{ALL_KEYS_VALUE:()=>ua,SameWindowStorageEvent:()=>Mt});var ua="__all__",Mt=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==ua}};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 Mt(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 Mt(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new Mt(ua))}});var ha={};N(ha,{FocusMainContentEvent:()=>pa});var pa=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Bc={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function vf(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Sf(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",vf);document.addEventListener("click",Sf);var $c=k`
47
+ `;var ys={};var Pn={};N(Pn,{ParametrizedLabelResolver:()=>yr});var yr=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 ra={};N(ra,{FtCommandQueue:()=>br,FtLitElementRedux:()=>Te,FtReduxStore:()=>it,FtStateManager:()=>Er,ReduxWatcher:()=>ro,clearAllStores:()=>ff,isFtReduxStore:()=>At,redux:()=>Ie,reduxEventListener:()=>Iu,reduxReactive:()=>Ru,watch:()=>pf,withRedux:()=>bs});var Ru=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},Ie=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:Ze,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})}},Iu=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var br=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 At(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var xr=Symbol("internalReduxEventsUnsubscribers"),Fe=Symbol("internalStoresUnsubscribers"),ot=Symbol("internalStores"),bs=G(Symbol("withRedux"),function(t){var e,o,n;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[ot].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ot].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[ot].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[ot].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[ot].delete(l)}setupStores(){this.unsubscribeFromStores(),this[ot].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let f=this.getStore(s.store);f&&(s.store?this[Fe].has(s.store):this[Fe].size>0)&&(this[l]=s.selector(f.getState(),this))}})}subscribeToStore(s,l){var d;this[Fe].set(s,l.subscribe(()=>this.updateFromStores())),this[xr].set(s,[]),At(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,h)=>{if(typeof this[h]=="function"&&(!f.store||l.name===f.store)){let p=m=>this[h](m);l.addEventListener(f.eventName,p),this[xr].get(s).push(()=>l.removeEventListener(f.eventName,p))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Fe].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Fe].has(s)&&this[Fe].get(s)(),this[Fe].delete(s),(l=this[xr].get(s))===null||l===void 0||l.forEach(d=>d()),this[xr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Fe,o=ot,n=xr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Te=class extends bs(j){};function ce(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 Le(t){return!!t&&!!t[U]}function he(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)===Du})(t)||Array.isArray(t)||!!t[ws]||!!(!((e=t.constructor)===null||e===void 0)&&e[ws])||Hn(t)||zn(t))}function nt(t,e,o){o===void 0&&(o=!1),Tt(t)===0?(o?Object.keys:It)(t).forEach((function(n){o&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,a){return e(a,n,t)}))}function Tt(t){var e=t[U];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Hn(t)?2:zn(t)?3:0}function Rt(t,e){return Tt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Tu(t,e){return Tt(t)===2?t.get(e):t[e]}function As(t,e,o){var n=Tt(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Rs(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Hn(t){return Nu&&t instanceof Map}function zn(t){return Mu&&t instanceof Set}function Ue(t){return t.o||t.t}function Wn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ls(t);delete e[U];for(var o=It(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 Gn(t,e){return e===void 0&&(e=!1),jn(t)||Le(t)||!he(t)||(Tt(t)>1&&(t.set=t.add=t.clear=t.delete=Lu),Object.freeze(t),e&&nt(t,(function(o,n){return Gn(n,!0)}),!0)),t}function Lu(){ce(2)}function jn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ce(t){var e=$n[t];return e||ce(18,t),e}function _u(t,e){$n[t]||($n[t]=e)}function Fn(){return Sr}function kn(t,e){e&&(Ce("Patches"),t.u=[],t.s=[],t.v=e)}function Jr(t){Un(t),t.p.forEach(Pu),t.p=null}function Un(t){t===Sr&&(Sr=t.l)}function xs(t){return Sr={p:[],l:Sr,h:t,m:!0,_:0}}function Pu(t){var e=t[U];e.i===0||e.i===1?e.j():e.g=!0}function Nn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Ce("ES5").S(e,t,n),n?(o[U].P&&(Jr(e),ce(4)),he(t)&&(t=Xr(e,t),e.l||Qr(e,t)),e.u&&Ce("Patches").M(o[U].t,t,e.u,e.s)):t=Xr(e,o,[]),Jr(e),e.u&&e.v(e.u,e.s),t!==Ts?t:void 0}function Xr(t,e,o){if(jn(e))return e;var n=e[U];if(!n)return nt(e,(function(l,d){return vs(t,n,e,l,d,o)}),!0),e;if(n.A!==t)return e;if(!n.P)return Qr(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Wn(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),nt(i,(function(l,d){return vs(t,n,a,l,d,o,s)})),Qr(t,a,!1),o&&t.u&&Ce("Patches").N(n,o,t.u,t.s)}return n.o}function vs(t,e,o,n,a,i,s){if(Le(a)){var l=Xr(t,a,i&&e&&e.i!==3&&!Rt(e.R,n)?i.concat(n):void 0);if(As(o,n,l),!Le(l))return;t.m=!1}else s&&o.add(a);if(he(a)&&!jn(a)){if(!t.h.D&&t._<1)return;Xr(t,a),e&&e.A.l||Qr(t,a)}}function Qr(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Gn(e,o)}function Mn(t,e){var o=t[U];return(o?Ue(o):t)[e]}function Ss(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 Be(t){t.P||(t.P=!0,t.l&&Be(t.l))}function Dn(t){t.o||(t.o=Wn(t.t))}function Bn(t,e,o){var n=Hn(e)?Ce("MapSet").F(e,o):zn(e)?Ce("MapSet").T(e,o):t.O?(function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Fn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,f=Cr;s&&(d=[l],f=vr);var h=Proxy.revocable(d,f),p=h.revoke,m=h.proxy;return l.k=m,l.j=p,m})(e,o):Ce("ES5").J(e,o);return(o?o.A:Fn()).p.push(n),n}function ku(t){return Le(t)||ce(22,t),(function e(o){if(!he(o))return o;var n,a=o[U],i=Tt(o);if(a){if(!a.P&&(a.i<4||!Ce("ES5").K(a)))return a.t;a.I=!0,n=Cs(o,i),a.I=!1}else n=Cs(o,i);return nt(n,(function(s,l){a&&Tu(a.t,s)===l||As(n,s,e(l))})),i===3?new Set(n):n})(t)}function Cs(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Wn(t)}function Is(){function t(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var f=this[U];return Cr.get(f,s)},set:function(f){var h=this[U];Cr.set(h,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][U];if(!d.P)switch(d.i){case 5:n(d)&&Be(d);break;case 4:o(d)&&Be(d)}}}function o(s){for(var l=s.t,d=s.k,f=It(d),h=f.length-1;h>=0;h--){var p=f[h];if(p!==U){var m=l[p];if(m===void 0&&!Rt(l,p))return!0;var y=d[p],g=y&&y[U];if(g?g.t!==m:!Rs(y,m))return!0}}var v=!!l[U];return f.length!==It(l).length+(v?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 f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function a(s){s.g&&ce(3,JSON.stringify(Ue(s)))}var i={};_u("ES5",{J:function(s,l){var d=Array.isArray(s),f=(function(p,m){if(p){for(var y=Array(m.length),g=0;g<m.length;g++)Object.defineProperty(y,""+g,t(g,!0));return y}var v=Ls(m);delete v[U];for(var C=It(v),E=0;E<C.length;E++){var O=C[E];v[O]=t(O,p||!!v[O].enumerable)}return Object.create(Object.getPrototypeOf(m),v)})(d,s),h={i:d?5:4,A:l?l.A:Fn(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,U,{value:h,writable:!0}),f},S:function(s,l,d){d?Le(l)&&l[U].A===s&&e(s.p):(s.u&&(function f(h){if(h&&typeof h=="object"){var p=h[U];if(p){var m=p.t,y=p.k,g=p.R,v=p.i;if(v===4)nt(y,(function(b){b!==U&&(m[b]!==void 0||Rt(m,b)?g[b]||f(y[b]):(g[b]=!0,Be(p)))})),nt(m,(function(b){y[b]!==void 0||Rt(y,b)||(g[b]=!1,Be(p))}));else if(v===5){if(n(p)&&(Be(p),g.length=!0),y.length<m.length)for(var C=y.length;C<m.length;C++)g[C]=!1;else for(var E=m.length;E<y.length;E++)g[E]=!0;for(var O=Math.min(y.length,m.length),x=0;x<O;x++)y.hasOwnProperty(x)||(g[x]=!0),g[x]===void 0&&f(y[x])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Es,Sr,Vn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Nu=typeof Map<"u",Mu=typeof Set<"u",Os=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ts=Vn?Symbol.for("immer-nothing"):((Es={})["immer-nothing"]=!0,Es),ws=Vn?Symbol.for("immer-draftable"):"__$immer_draftable",U=Vn?Symbol.for("immer-state"):"__$immer_state";var Du=""+Object.prototype.constructor,It=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ls=Object.getOwnPropertyDescriptors||function(t){var e={};return It(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},$n={},Cr={get:function(t,e){if(e===U)return t;var o=Ue(t);if(!Rt(o,e))return(function(a,i,s){var l,d=Ss(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||!he(n)?n:n===Mn(t.t,e)?(Dn(t),t.o[e]=Bn(t.A.h,n,t)):n},has:function(t,e){return e in Ue(t)},ownKeys:function(t){return Reflect.ownKeys(Ue(t))},set:function(t,e,o){var n=Ss(Ue(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Mn(Ue(t),e),i=a?.[U];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Rs(o,a)&&(o!==void 0||Rt(t.t,e)))return!0;Dn(t),Be(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 Mn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Dn(t),Be(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Ue(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ce(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ce(12)}},vr={};nt(Cr,(function(t,e){vr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),vr.deleteProperty=function(t,e){return vr.set.call(this,t,e,void 0)},vr.set=function(t,e,o){return Cr.set.call(this,t[0],e,o,t[0])};var Fu=(function(){function t(o){var n=this;this.O=Os,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(v){var C=this;v===void 0&&(v=l);for(var E=arguments.length,O=Array(E>1?E-1:0),x=1;x<E;x++)O[x-1]=arguments[x];return d.produce(v,(function(b){var S;return(S=i).call.apply(S,[C,b].concat(O))}))}}var f;if(typeof i!="function"&&ce(6),s!==void 0&&typeof s!="function"&&ce(7),he(a)){var h=xs(n),p=Bn(n,a,void 0),m=!0;try{f=i(p),m=!1}finally{m?Jr(h):Un(h)}return typeof Promise<"u"&&f instanceof Promise?f.then((function(v){return kn(h,s),Nn(v,h)}),(function(v){throw Jr(h),v})):(kn(h,s),Nn(f,h))}if(!a||typeof a!="object"){if((f=i(a))===void 0&&(f=a),f===Ts&&(f=void 0),n.D&&Gn(f,!0),s){var y=[],g=[];Ce("Patches").M(a,f,y,g),s(y,g)}return f}ce(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(f){for(var h=arguments.length,p=Array(h>1?h-1:0),m=1;m<h;m++)p[m-1]=arguments[m];return n.produceWithPatches(f,(function(y){return a.apply(void 0,[y].concat(p))}))};var s,l,d=n.produce(a,i,(function(f,h){s=f,l=h}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(f){return[f,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){he(o)||ce(8),Le(o)&&(o=ku(o));var n=xs(this),a=Bn(this,o,void 0);return a[U].C=!0,Un(n),a},e.finishDraft=function(o,n){var a=o&&o[U],i=a.A;return kn(i,n),Nn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Os&&ce(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=Ce("Patches").$;return Le(o)?s(o,n):this.produce(o,(function(l){return s(l,n)}))},t})(),re=new Fu,Uu=re.produce,kb=re.produceWithPatches.bind(re),Nb=re.setAutoFreeze.bind(re),Mb=re.setUseProxies.bind(re),Db=re.applyPatches.bind(re),Fb=re.createDraft.bind(re),Ub=re.finishDraft.bind(re),eo=Uu;function at(t){"@babel/helpers - typeof";return at=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},at(t)}function _s(t,e){if(at(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(at(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ps(t){var e=_s(t,"string");return at(e)=="symbol"?e:e+""}function ks(t,e,o){return(e=Ps(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ns(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 Kn(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Ns(Object(o),!0).forEach(function(n){ks(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ns(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Z(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 Ms=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Zn=function(){return Math.random().toString(36).substring(7).split("").join(".")},to={INIT:"@@redux/INIT"+Zn(),REPLACE:"@@redux/REPLACE"+Zn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Zn()}};function Bu(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 qn(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Z(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Z(1));return o(qn)(t,e)}if(typeof t!="function")throw new Error(Z(2));var a=t,i=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Z(3));return i}function p(v){if(typeof v!="function")throw new Error(Z(4));if(d)throw new Error(Z(5));var C=!0;return f(),l.push(v),function(){if(C){if(d)throw new Error(Z(6));C=!1,f();var O=l.indexOf(v);l.splice(O,1),s=null}}}function m(v){if(!Bu(v))throw new Error(Z(7));if(typeof v.type>"u")throw new Error(Z(8));if(d)throw new Error(Z(9));try{d=!0,i=a(i,v)}finally{d=!1}for(var C=s=l,E=0;E<C.length;E++){var O=C[E];O()}return v}function y(v){if(typeof v!="function")throw new Error(Z(10));a=v,m({type:to.REPLACE})}function g(){var v,C=p;return v={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(Z(11));function x(){O.next&&O.next(h())}x();var b=C(x);return{unsubscribe:b}}},v[Ms]=function(){return this},v}return m({type:to.INIT}),n={dispatch:m,subscribe:p,getState:h,replaceReducer:y},n[Ms]=g,n}function $u(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:to.INIT});if(typeof n>"u")throw new Error(Z(12));if(typeof o(void 0,{type:to.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Z(13))})}function Ds(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{$u(o)}catch(d){l=d}return function(f,h){if(f===void 0&&(f={}),l)throw l;if(0)var p;for(var m=!1,y={},g=0;g<i.length;g++){var v=i[g],C=o[v],E=f[v],O=C(E,h);if(typeof O>"u"){var x=h&&h.type;throw new Error(Z(14))}y[v]=O,m=m||O!==E}return m=m||i.length!==Object.keys(f).length,m?y:f}}function Lt(){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 Fs(){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(Z(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=Lt.apply(void 0,l)(a.dispatch),Kn(Kn({},a),{},{dispatch:i})}}}function Us(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 Bs=Us();Bs.withExtraArgument=Us;var Yn=Bs;var Gs=(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)}})(),Hu=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(f){return function(h){return d([f,h])}}function d(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,a=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){o.label=f[1];break}if(f[0]===6&&o.label<i[1]){o.label=i[1],i=f;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(f);break}i[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(h){f=[6,h],a=0}finally{n=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},_t=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},zu=Object.defineProperty,Wu=Object.defineProperties,Gu=Object.getOwnPropertyDescriptors,$s=Object.getOwnPropertySymbols,ju=Object.prototype.hasOwnProperty,Vu=Object.prototype.propertyIsEnumerable,Hs=function(t,e,o){return e in t?zu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},$e=function(t,e){for(var o in e||(e={}))ju.call(e,o)&&Hs(t,o,e[o]);if($s)for(var n=0,a=$s(e);n<a.length;n++){var o=a[n];Vu.call(e,o)&&Hs(t,o,e[o])}return t},Jn=function(t,e){return Wu(t,Gu(e))},Ku=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(f){a(f)}},s=function(d){try{l(o.throw(d))}catch(f){a(f)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(t,e)).next())})};var Zu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Lt:Lt.apply(null,arguments)},rx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function qu(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}function He(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 $e($e({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}var Yu=(function(t){Gs(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,_t([void 0],o[0].concat(this)))):new(e.bind.apply(e,_t([void 0],o.concat(this))))},e})(Array),Ju=(function(t){Gs(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,_t([void 0],o[0].concat(this)))):new(e.bind.apply(e,_t([void 0],o.concat(this))))},e})(Array);function ea(t){return he(t)?eo(t,function(){}):t}function Xu(t){return typeof t=="boolean"}function Qu(){return function(e){return ef(e)}}function ef(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=t.actionCreatorCheck,d=l===void 0?!0:l,f=new Yu;if(o&&(Xu(o)?f.push(Yn):f.push(Yn.withExtraArgument(o.extraArgument))),0){if(a)var h;if(s)var p;if(d)var m}return f}var Xn=!0;function js(t){var e=Qu(),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,f=o.preloadedState,h=f===void 0?void 0:f,p=o.enhancers,m=p===void 0?void 0:p,y;if(typeof a=="function")y=a;else if(qu(a))y=Ds(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 g=s;if(typeof g=="function"&&(g=g(e),!Xn&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Xn&&g.some(function(b){return typeof b!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Fs.apply(void 0,g),C=Lt;d&&(C=Zu($e({trace:!Xn},typeof d=="object"&&d)));var E=new Ju(v),O=E;Array.isArray(m)?O=_t([v],m):typeof m=="function"&&(O=m(E));var x=C.apply(void 0,O);return qn(y,h,x)}function Vs(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in e)throw new Error("`builder.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 tf(t){return typeof t=="function"}function rf(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Vs(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(tf(t))d=function(){return ea(t())};else{var f=ea(t);d=function(){return f}}function h(p,m){p===void 0&&(p=d());var y=_t([i[m.type]],s.filter(function(g){var v=g.matcher;return v(m)}).map(function(g){var v=g.reducer;return v}));return y.filter(function(g){return!!g}).length===0&&(y=[l]),y.reduce(function(g,v){if(v)if(Le(g)){var C=g,E=v(C,m);return E===void 0?g:E}else{if(he(g))return eo(g,function(O){return v(O,m)});var E=v(g,m);if(E===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return g},p)}return h.getInitialState=d,h}function of(t,e){return t+"/"+e}function Ks(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:ea(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var p=n[h],m=of(e,h),y,g;"reducer"in p?(y=p.reducer,g=p.prepare):y=p,i[h]=y,s[m]=y,l[h]=g?He(m,g):He(m)});function d(){var h=typeof t.extraReducers=="function"?Vs(t.extraReducers):[t.extraReducers],p=h[0],m=p===void 0?{}:p,y=h[1],g=y===void 0?[]:y,v=h[2],C=v===void 0?void 0:v,E=$e($e({},m),s);return rf(o,function(O){for(var x in E)O.addCase(x,E[x]);for(var b=0,S=g;b<S.length;b++){var w=S[b];O.addMatcher(w.matcher,w.reducer)}C&&O.addDefaultCase(C)})}var f;return{name:e,reducer:function(h,p){return f||(f=d()),f(h,p)},actions:l,caseReducers:i,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}var nf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",af=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=nf[Math.random()*64|0];return e},sf=["name","message","stack","code"],Qn=(function(){function t(e,o){this.payload=e,this.meta=o}return t})(),zs=(function(){function t(e,o){this.payload=e,this.meta=o}return t})(),cf=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=sf;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},ix=(function(){function t(e,o,n){var a=He(e+"/fulfilled",function(h,p,m,y){return{payload:h,meta:Jn($e({},y||{}),{arg:m,requestId:p,requestStatus:"fulfilled"})}}),i=He(e+"/pending",function(h,p,m){return{payload:void 0,meta:Jn($e({},m||{}),{arg:p,requestId:h,requestStatus:"pending"})}}),s=He(e+"/rejected",function(h,p,m,y,g){return{payload:y,error:(n&&n.serializeError||cf)(h||"Rejected"),meta:Jn($e({},g||{}),{arg:m,requestId:p,rejectedWithValue:!!y,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 f(h){return function(p,m,y){var g=n?.idGenerator?n.idGenerator(h):af(),v=new d,C,E=!1;function O(b){C=b,v.abort()}var x=(function(){return Ku(this,null,function(){var b,S,w,_,$,D,R;return Hu(this,function(T){switch(T.label){case 0:return T.trys.push([0,4,,5]),_=(b=n?.condition)==null?void 0:b.call(n,h,{getState:m,extra:y}),df(_)?[4,_]:[3,2];case 1:_=T.sent(),T.label=2;case 2:if(_===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,$=new Promise(function(M,z){return v.signal.addEventListener("abort",function(){return z({name:"AbortError",message:C||"Aborted"})})}),p(i(g,h,(S=n?.getPendingMeta)==null?void 0:S.call(n,{requestId:g,arg:h},{getState:m,extra:y}))),[4,Promise.race([$,Promise.resolve(o(h,{dispatch:p,getState:m,extra:y,requestId:g,signal:v.signal,abort:O,rejectWithValue:function(M,z){return new Qn(M,z)},fulfillWithValue:function(M,z){return new zs(M,z)}})).then(function(M){if(M instanceof Qn)throw M;return M instanceof zs?a(M.payload,g,h,M.meta):a(M,g,h)})])];case 3:return w=T.sent(),[3,5];case 4:return D=T.sent(),w=D instanceof Qn?s(null,g,h,D.payload,D.meta):s(D,g,h),[3,5];case 5:return R=n&&!n.dispatchConditionRejection&&s.match(w)&&w.meta.condition,R||p(w),[2,w]}})})})();return Object.assign(x,{abort:O,requestId:g,arg:h,unwrap:function(){return x.then(lf)}})}}return Object.assign(f,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t})();function lf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function df(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Zs="listener",qs="completed",Ys="cancelled",sx="task-"+Ys,cx="task-"+qs,lx=Zs+"-"+Ys,dx=Zs+"-"+qs;var ta="listenerMiddleware";var ux=He(ta+"/add"),fx=He(ta+"/removeAll"),px=He(ta+"/remove");var Ws,hx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ws||(Ws=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},uf=function(t){return function(e){setTimeout(e,t)}},mx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:uf(10);Is();window.ftReduxStores||(window.ftReduxStores={});var it=class t extends Ae{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(At(i))return i;if(a==null)return;let s=Ks({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=js({reducer:(d,f)=>{if(f.type==="CLEAR_FT_REDUX_STORE"){let h=ue(s.getInitialState());for(let p of f.keeping)h[p]=(d??h)[p];return h}else if(typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...f.overwrites};return s.reducer(d,f)}});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 br;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,f=i[d];return f?(...h)=>{let p=f(...h.map(a));return this.reduxStore.dispatch(p),p}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function ff(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))At(e)&&e.clear()}var ro=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);Ze(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 pf(t,e,o){return new ro(t,e,o).watch()}var Er=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e).size==1&&this.onNewNeededRequest(n)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var aa={};N(aa,{scrollHelper:()=>hf});var oa,oo=new Map,na=class{lock(e,o){if(o){let n=oo.get(o);if(n==null||n===e)return oo.set(o,e),o}}release(e,o){o&&oo.get(o)===e&&oo.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of Go(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)&&!["contents"].includes(getComputedStyle(e).display)}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=qe(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=(oa=window.FluidTopicsScrollHelper)!==null&&oa!==void 0?oa:new na;var hf=window.FluidTopicsScrollHelper;var sa={};N(sa,{SearchPlaceConverter:()=>Nt,SearchPlaceQueryParams:()=>P,isSearchPlaceQueryParams:()=>Uc,serializeRequest:()=>yf});var Js;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Js||(Js={}));var Xs;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Xs||(Xs={}));var Qs;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Qs||(Qs={}));var ec;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(ec||(ec={}));var tc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(tc||(tc={}));var rc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(rc||(rc={}));var oc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(oc||(oc={}));var nc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(nc||(nc={}));var ac;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(ac||(ac={}));var ic;(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"})(ic||(ic={}));var sc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(sc||(sc={}));var cc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(cc||(cc={}));var lc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(lc||(lc={}));var dc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(dc||(dc={}));var uc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(uc||(uc={}));var fc;(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"})(fc||(fc={}));var Pt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Pt||(Pt={}));var pc;(function(t){t.ASC="ASC",t.DESC="DESC"})(pc||(pc={}));var hc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(hc||(hc={}));var ia;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ia||(ia={}));var Cc=t=>Object.keys(ia).includes(t);var mc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(mc||(mc={}));var gc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(gc||(gc={}));var yc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(yc||(yc={}));var kt;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(kt||(kt={}));var Ec=t=>Object.keys(kt).includes(t);var bc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(bc||(bc={}));var xc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(xc||(xc={}));var vc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(vc||(vc={}));var H;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(H||(H={}));var le;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(le||(le={}));var Sc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Sc||(Sc={}));var Oc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Oc||(Oc={}));var wc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(wc||(wc={}));var Ac;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Ac||(Ac={}));var Rc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Rc||(Rc={}));var Ic;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ic||(Ic={}));var Tc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Tc||(Tc={}));var Lc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Lc||(Lc={}));var _c;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(_c||(_c={}));var Pc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Pc||(Pc={}));var kc;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(kc||(kc={}));var Nc;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Nc||(Nc={}));var mf={[H.PERSONAL_BOOK_SHARE_USER]:[H.PERSONAL_BOOK_USER],[H.HTML_EXPORT_USER]:[H.PERSONAL_BOOK_USER],[H.PDF_EXPORT_USER]:[H.PERSONAL_BOOK_USER],[H.KHUB_ADMIN]:[H.CONTENT_PUBLISHER],[H.ADMIN]:[H.KHUB_ADMIN,H.USERS_ADMIN,H.PORTAL_ADMIN,H.BEHAVIOR_DATA_USER],[H.GENERATIVE_AI_EXPORT_USER]:[H.GENERATIVE_AI_USER]};function Mc(t,e){return t===e||(mf[t]??[]).some(o=>Mc(o,e))}function Dc(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=>Mc(n,e))}function gf(t){return`"${t}"`}function Fc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function yf(t,e){return new Nt(t).serialize(e)}var P;(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",t.KEYWORD_MATCH="keyword-match"})(P||(P={}));var bf=new Set(Object.values(P));function Uc(t){return bf.has(t)}var Nt=class{constructor(e,o=20,n=!1,a="en-US"){this.baseUrl=e,this.defaultPerPage=o,this.allLanguagesAllowed=n,this.defaultContentLocale=a,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,f,h,p,m,y;let g=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&g.append(P.LOCALE,e.contentLocale):g.append(P.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&g.append(P.QUERY,e.query);let v=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(b=>b.valueFilter&&!b.valueFilter.negative))!==null&&i!==void 0?i:[];if(v.length>0){let b=v.map(S=>{var w,_;let $=((_=(w=S.valueFilter)===null||w===void 0?void 0:w.values)!==null&&_!==void 0?_:[]).map(D=>this.escapeFilters(D)).map(D=>gf(Fc(D))).join("_");return`${S.key}~${$}`}).join("*");g.append(P.VALUE_FILTERS,b)}let C=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(b=>b.dateFilter))!==null&&l!==void 0?l:[];if(C.length>0){let b=C.map(S=>{var w;return`${S.key}~${(w=S.dateFilter)===null||w===void 0?void 0:w.type.toLowerCase()}`}).join("*");g.append(P.DATE_FILTERS,b)}let E=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(b=>b.rangeFilter))!==null&&f!==void 0?f:[];if(E.length>0){let b=E.map(S=>{var w,_;return`${S.key}~${(w=S.rangeFilter)===null||w===void 0?void 0:w.from}_${(_=S.rangeFilter)===null||_===void 0?void 0:_.to}`}).join("*");g.append(P.RANGE_FILTERS,b)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(P.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(P.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(P.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((m=(p=e.paging)===null||p===void 0?void 0:p.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&g.append(P.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(P.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let O=(y=e.otherQueryParams)!==null&&y!==void 0?y:{};for(let b in O)g.append(b,O[b]);let x=new Array;return g.forEach((b,S)=>{x.push(this.encodeQueryString(S)+"="+this.encodeQueryString(b))}),encodeURI(x.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}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;try{e=decodeURI(e).replace(/%23/g,"#")}catch(E){console.warn("Could not decode search request query params, fallback on raw value",E)}let d=new URLSearchParams(e),f=d.get(P.LOCALE)==="all"?void 0:d.get(P.LOCALE),h=((o=d.get(P.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),p=(n=d.get(P.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(a=d.get(P.SCOPE))!==null&&a!==void 0?a:"default",y=+((i=d.get(P.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),g=d.get(P.KEYWORD_MATCH),v=g?g.toUpperCase()===Pt.MANDATORY?Pt.MANDATORY:Pt.OPTIONAL:void 0,C={};for(let E of d.keys())Uc(E)||(C[E]=d.get(E));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(P.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:Cc(h)?h:"EVERYWHERE",sortId:p,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:qe(1,isNaN(y)?this.defaultPerPage:y,1e3)},keywordMatch:v,otherQueryParams:C}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(P.FILTERS)&&(d=this.parseValueFilters((o=e.get(P.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(P.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(P.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(P.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(P.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(P.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(Fc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:kt[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.replaceAll(a,o);return e}parseLegacyPeriodFilter(e){if(Ec(e))return[{key:"ft:lastEdition",dateFilter:{type:kt[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}static clearSearchParamsInUrl(e){let o=new URL(e);return[P.LOCALE,P.FILTERS,P.VALUE_FILTERS,P.DATE_FILTERS,P.RANGE_FILTERS].forEach(a=>{o.searchParams.delete(a)}),o.toString()}static updateLocaleParamInUrl(e,o){let n=new URL(e);return n.searchParams.delete(P.LOCALE),o!==void 0&&n.searchParams.append(P.LOCALE,o),n.toString()}};var la={};N(la,{toFtFormComponent:()=>xf});var ca=Symbol("elementInternals"),xf=G(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[ca].form}constructor(...n){super(n),this[ca]=this.attachInternals()}setFormValue(n){this[ca].setFormValue(n)}}return e});var da={};N(da,{DateFormatter:()=>st});var st=class{static format(e,o,n,a,i){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,a,!!i)):this.getIntlDateTime(e,o,n,a,!!i)}static getMomentDateFormat(e,o,n){return n?"LT":e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,a,i){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(s);return i?d:a?`${l} ${d}`:l}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var fa={};N(fa,{ALL_KEYS_VALUE:()=>ua,SameWindowStorageEvent:()=>Mt});var ua="__all__",Mt=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==ua}};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 Mt(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 Mt(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new Mt(ua))}});var ha={};N(ha,{FocusMainContentEvent:()=>pa});var pa=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Bc={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function vf(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Sf(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",vf);document.addEventListener("click",Sf);var $c=k`
48
48
  .sr-only {
49
49
  position:absolute;
50
50
  left:-10000px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-page-title",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "Displays the previous/current/next page title",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,10 +19,10 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-reader-context": "2.1.4",
23
- "@fluid-topics/ft-typography": "2.1.4",
24
- "@fluid-topics/ft-wc-utils": "2.1.4",
22
+ "@fluid-topics/ft-reader-context": "2.1.6",
23
+ "@fluid-topics/ft-typography": "2.1.6",
24
+ "@fluid-topics/ft-wc-utils": "2.1.6",
25
25
  "lit": "3.1.0"
26
26
  },
27
- "gitHead": "ae3c3a818dc16962d6026a12b9f45060e8833184"
27
+ "gitHead": "70ba8e6b58f0f1c74a92965f3b7dbf3db605698e"
28
28
  }