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