@fluid-topics/ft-reader-saved-bookmarks 2.2.6 → 2.2.7
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.
|
@@ -44,7 +44,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
44
44
|
input::-webkit-search-results-decoration {
|
|
45
45
|
display: none;
|
|
46
46
|
}
|
|
47
|
-
`;var rc={};var xi={};D(xi,{ParametrizedLabelResolver:()=>Lr});var Lr=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Fi={};D(Fi,{FtCommandQueue:()=>kr,FtLitElementRedux:()=>Fe,FtReduxStore:()=>ht,FtStateManager:()=>Fr,ReduxWatcher:()=>Do,clearAllStores:()=>Ef,isFtReduxStore:()=>Zt,redux:()=>Ne,reduxEventListener:()=>wp,reduxReactive:()=>Ap,watch:()=>Cf,withRedux:()=>oc});var Ap=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},Ne=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:Me,attribute:!1,...e};E(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(l=>l[n]),store:e.store})}},wp=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var kr=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function Zt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Nr=Symbol("internalReduxEventsUnsubscribers"),Ze=Symbol("internalStoresUnsubscribers"),pt=Symbol("internalStores"),oc=Z(Symbol("withRedux"),function(t){var e,o,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[pt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[pt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[pt].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[pt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[pt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[pt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[Ze].has(s.store):this[Ze].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[Ze].set(s,l.subscribe(()=>this.updateFromStores())),this[Nr].set(s,[]),Zt(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[h](m);l.addEventListener(p.eventName,f),this[Nr].get(s).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Ze].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Ze].has(s)&&this[Ze].get(s)(),this[Ze].delete(s),(l=this[Nr].get(s))===null||l===void 0||l.forEach(d=>d()),this[Nr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Ze,o=pt,n=Nr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Fe=class extends oc(V){};function J(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 _p=typeof Symbol=="function"&&Symbol.observable||"@@observable",nc=_p,vi=()=>Math.random().toString(36).substring(7).split("").join("."),Rp={INIT:`@@redux/INIT${vi()}`,REPLACE:`@@redux/REPLACE${vi()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${vi()}`},yo=Rp;function go(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 Si(t,e,o){if(typeof t!="function")throw new Error(J(2));if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(J(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(J(1));return o(Si)(t,e)}let n=t,i=e,a=new Map,s=a,l=0,d=!1;function p(){s===a&&(s=new Map,a.forEach((S,A)=>{s.set(A,S)}))}function h(){if(d)throw new Error(J(3));return i}function f(S){if(typeof S!="function")throw new Error(J(4));if(d)throw new Error(J(5));let A=!0;p();let M=l++;return s.set(M,S),function(){if(A){if(d)throw new Error(J(6));A=!1,p(),s.delete(M),a=null}}}function m(S){if(!go(S))throw new Error(J(7));if(typeof S.type>"u")throw new Error(J(8));if(typeof S.type!="string")throw new Error(J(17));if(d)throw new Error(J(9));try{d=!0,i=n(i,S)}finally{d=!1}return(a=s).forEach(M=>{M()}),S}function b(S){if(typeof S!="function")throw new Error(J(10));n=S,m({type:yo.REPLACE})}function v(){let S=f;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(J(11));function M(){let g=A;g.next&&g.next(h())}return M(),{unsubscribe:S(M)}},[nc](){return this}}}return m({type:yo.INIT}),{dispatch:m,subscribe:f,getState:h,replaceReducer:b,[nc]:v}}function Tp(t){Object.keys(t).forEach(e=>{let o=t[e];if(typeof o(void 0,{type:yo.INIT})>"u")throw new Error(J(12));if(typeof o(void 0,{type:yo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(J(13))})}function ic(t){let e=Object.keys(t),o={};for(let s=0;s<e.length;s++){let l=e[s];typeof t[l]=="function"&&(o[l]=t[l])}let n=Object.keys(o),i,a;try{Tp(o)}catch(s){a=s}return function(l={},d){if(a)throw a;let p=!1,h={};for(let f=0;f<n.length;f++){let m=n[f],b=o[m],v=l[m],O=b(v,d);if(typeof O>"u"){let S=d&&d.type;throw new Error(J(14))}h[m]=O,p=p||O!==v}return p=p||n.length!==Object.keys(l).length,p?h:l}}function Ir(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,o)=>(...n)=>e(o(...n)))}function ac(...t){return e=>(o,n)=>{let i=e(o,n),a=()=>{throw new Error(J(15))},s={getState:i.getState,dispatch:(d,...p)=>a(d,...p)},l=t.map(d=>d(s));return a=Ir(...l)(i.dispatch),{...i,dispatch:a}}}function sc(t){return go(t)&&"type"in t&&typeof t.type=="string"}var yc=Symbol.for("immer-nothing"),cc=Symbol.for("immer-draftable"),ee=Symbol.for("immer-state");function Se(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var ce=Object,Yt=ce.getPrototypeOf,So="constructor",_o="prototype",Ai="configurable",Eo="enumerable",xo="writable",Pr="value",Ie=t=>!!t&&!!t[ee];function le(t){return t?gc(t)||To(t)||!!t[cc]||!!t[So]?.[cc]||Lo(t)||ko(t):!1}var Lp=ce[_o][So].toString(),lc=new WeakMap;function gc(t){if(!t||!Ii(t))return!1;let e=Yt(t);if(e===null||e===ce[_o])return!0;let o=ce.hasOwnProperty.call(e,So)&&e[So];if(o===Object)return!0;if(!qt(o))return!1;let n=lc.get(o);return n===void 0&&(n=Function.toString.call(o),lc.set(o,n)),n===Lp}function Ro(t,e,o=!0){Ur(t)===0?(o?Reflect.ownKeys(t):ce.keys(t)).forEach(i=>{e(i,t[i],t)}):t.forEach((n,i)=>e(i,n,t))}function Ur(t){let e=t[ee];return e?e.type_:To(t)?1:Lo(t)?2:ko(t)?3:0}var Ei=(t,e,o=Ur(t))=>o===2?t.has(e):ce[_o].hasOwnProperty.call(t,e),wi=(t,e,o=Ur(t))=>o===2?t.get(e):t[e],Co=(t,e,o,n=Ur(t))=>{n===2?t.set(e,o):n===3?t.add(o):t[e]=o};function kp(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var To=Array.isArray,Lo=t=>t instanceof Map,ko=t=>t instanceof Set,Ii=t=>typeof t=="object",qt=t=>typeof t=="function",Ci=t=>typeof t=="boolean";function Np(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var $e=t=>t.copy_||t.base_;var Pi=t=>t.modified_?t.copy_:t.base_;function _i(t,e){if(Lo(t))return new Map(t);if(ko(t))return new Set(t);if(To(t))return Array[_o].slice.call(t);let o=gc(t);if(e===!0||e==="class_only"&&!o){let n=ce.getOwnPropertyDescriptors(t);delete n[ee];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){let s=i[a],l=n[s];l[xo]===!1&&(l[xo]=!0,l[Ai]=!0),(l.get||l.set)&&(n[s]={[Ai]:!0,[xo]:!0,[Eo]:l[Eo],[Pr]:t[s]})}return ce.create(Yt(t),n)}else{let n=Yt(t);if(n!==null&&o)return{...t};let i=ce.create(n);return ce.assign(i,t)}}function Mi(t,e=!1){return No(t)||Ie(t)||!le(t)||(Ur(t)>1&&ce.defineProperties(t,{set:bo,add:bo,clear:bo,delete:bo}),ce.freeze(t),e&&Ro(t,(o,n)=>{Mi(n,!0)},!1)),t}function Ip(){Se(2)}var bo={[Pr]:Ip};function No(t){return t===null||!Ii(t)?!0:ce.isFrozen(t)}var Oo="MapSet",Ri="Patches",dc="ArrayMethods",bc={};function ft(t){let e=bc[t];return e||Se(0,t),e}var uc=t=>!!bc[t];var Mr,xc=()=>Mr,Pp=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:uc(Oo)?ft(Oo):void 0,arrayMethodsPlugin_:uc(dc)?ft(dc):void 0});function pc(t,e){e&&(t.patchPlugin_=ft(Ri),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Ti(t){Li(t),t.drafts_.forEach(Mp),t.drafts_=null}function Li(t){t===Mr&&(Mr=t.parent_)}var fc=t=>Mr=Pp(Mr,t);function Mp(t){let e=t[ee];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function hc(t,e){e.unfinalizedDrafts_=e.drafts_.length;let o=e.drafts_[0];if(t!==void 0&&t!==o){o[ee].modified_&&(Ti(e),Se(4)),le(t)&&(t=mc(e,t));let{patchPlugin_:i}=e;i&&i.generateReplacementPatches_(o[ee].base_,t,e)}else t=mc(e,o);return Dp(e,t,!0),Ti(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==yc?t:void 0}function mc(t,e){if(No(e))return e;let o=e[ee];if(!o)return Ao(e,t.handledSet_,t);if(!Io(o,t))return e;if(!o.modified_)return o.base_;if(!o.finalized_){let{callbacks_:n}=o;if(n)for(;n.length>0;)n.pop()(t);Ec(o,t)}return o.copy_}function Dp(t,e,o=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Mi(e,o)}function vc(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Io=(t,e)=>t.scope_===e,Up=[];function Sc(t,e,o,n){let i=$e(t),a=t.type_;if(n!==void 0&&wi(i,n,a)===e){Co(i,n,o,a);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;Ro(i,(d,p)=>{if(Ie(p)){let h=l.get(p)||[];h.push(d),l.set(p,h)}})}let s=t.draftLocations_.get(e)??Up;for(let l of s)Co(i,l,o,a)}function Bp(t,e,o){t.callbacks_.push(function(i){let a=e;if(!a||!Io(a,i))return;i.mapSetPlugin_?.fixSetContents(a);let s=Pi(a);Sc(t,a.draft_??a,s,o),Ec(a,i)})}function Ec(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 i=n.getPath(t);i&&n.generatePatches_(t,i,e)}vc(t)}}function Fp(t,e,o){let{scope_:n}=t;if(Ie(o)){let i=o[ee];Io(i,n)&&i.callbacks_.push(function(){vo(t);let s=Pi(i);Sc(t,o,s,e)})}else le(o)&&t.callbacks_.push(function(){let a=$e(t);t.type_===3?a.has(o)&&Ao(o,n.handledSet_,n):wi(a,e,t.type_)===o&&n.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Ao(wi(t.copy_,e,t.type_),n.handledSet_,n)})}function Ao(t,e,o){return!o.immer_.autoFreeze_&&o.unfinalizedDrafts_<1||Ie(t)||e.has(t)||!le(t)||No(t)||(e.add(t),Ro(t,(n,i)=>{if(Ie(i)){let a=i[ee];if(Io(a,o)){let s=Pi(a);Co(t,n,s,t.type_),vc(a)}}else le(i)&&Ao(i,e,o)})),t}function $p(t,e){let o=To(t),n={type_:o?1:0,scope_:e?e.scope_:xc(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,a=wo;o&&(i=[n],a=Dr);let{revoke:s,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=s,[l,n]}var wo={get(t,e){if(e===ee)return t;let o=t.scope_.arrayMethodsPlugin_,n=t.type_===1&&typeof e=="string";if(n&&o?.isArrayOperationMethod(e))return o.createMethodInterceptor(t,e);let i=$e(t);if(!Ei(i,e,t.type_))return zp(t,i,e);let a=i[e];if(t.finalized_||!le(a)||n&&t.operationMethod&&o?.isMutatingArrayMethod(t.operationMethod)&&Np(e))return a;if(a===Oi(t.base_,e)||Hp(t,e,a)){vo(t);let s=t.type_===1?+e:e,l=Ni(t.scope_,a,t,s);return t.copy_[s]=l}return a},has(t,e){return e in $e(t)},ownKeys(t){return Reflect.ownKeys($e(t))},set(t,e,o){let n=Cc($e(t),e);if(n?.set)return n.set.call(t.draft_,o),!0;if(!t.modified_){let i=Oi($e(t),e),a=i?.[ee];if(a&&a.base_===o)return t.copy_[e]=o,t.assigned_.set(e,!1),!0;if(kp(o,i)&&(o!==void 0||Ei(t.base_,e,t.type_)))return!0;vo(t),ki(t)}return t.copy_[e]===o&&(o!==void 0||Ei(t.copy_,e,t.type_))||Number.isNaN(o)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=o,t.assigned_.set(e,!0),Fp(t,e,o)),!0},deleteProperty(t,e){return vo(t),Oi(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ki(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let o=$e(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{[xo]:!0,[Ai]:t.type_!==1||e!=="length",[Eo]:n[Eo],[Pr]:o[e]}},defineProperty(){Se(11)},getPrototypeOf(t){return Yt(t.base_)},setPrototypeOf(){Se(12)}},Dr={};for(let t in wo){let e=wo[t];Dr[t]=function(){let o=arguments;return o[0]=o[0][0],e.apply(this,o)}}Dr.deleteProperty=function(t,e){return Dr.set.call(this,t,e,void 0)};Dr.set=function(t,e,o){return wo.set.call(this,t[0],e,o,t[0])};function Oi(t,e){let o=t[ee];return(o?$e(o):t)[e]}function Hp(t,e,o){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!le(o)||o[ee]?!1:t.baseRefs_.has(o)}function zp(t,e,o){let n=Cc(e,o);return n?Pr in n?n[Pr]:n.get?.call(t.draft_):void 0}function Cc(t,e){if(!(e in t))return;let o=Yt(t);for(;o;){let n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Yt(o)}}function ki(t){t.modified_||(t.modified_=!0,t.parent_&&ki(t.parent_))}function vo(t){t.copy_||(t.assigned_=new Map,t.copy_=_i(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Wp=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,o,n)=>{if(qt(e)&&!qt(o)){let a=o;o=e;let s=this;return function(d=a,...p){return s.produce(d,h=>o.call(this,h,...p))}}qt(o)||Se(6),n!==void 0&&!qt(n)&&Se(7);let i;if(le(e)){let a=fc(this),s=Ni(a,e,void 0),l=!0;try{i=o(s),l=!1}finally{l?Ti(a):Li(a)}return pc(a,n),hc(i,a)}else if(!e||!Ii(e)){if(i=o(e),i===void 0&&(i=e),i===yc&&(i=void 0),this.autoFreeze_&&Mi(i,!0),n){let a=[],s=[];ft(Ri).generateReplacementPatches_(e,i,{patches_:a,inversePatches_:s}),n(a,s)}return i}else Se(1,e)},this.produceWithPatches=(e,o)=>{if(qt(e))return(s,...l)=>this.produceWithPatches(s,d=>e(d,...l));let n,i;return[this.produce(e,o,(s,l)=>{n=s,i=l}),n,i]},Ci(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Ci(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Ci(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){le(t)||Se(8),Ie(t)&&(t=Oc(t));let e=fc(this),o=Ni(e,t,void 0);return o[ee].isManual_=!0,Li(e),o}finishDraft(t,e){let o=t&&t[ee];(!o||!o.isManual_)&&Se(9);let{scope_:n}=o;return pc(n,e),hc(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 o;for(o=e.length-1;o>=0;o--){let i=e[o];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}o>-1&&(e=e.slice(o+1));let n=ft(Ri).applyPatches_;return Ie(t)?n(t,e):this.produce(t,i=>n(i,e))}};function Ni(t,e,o,n){let[i,a]=Lo(e)?ft(Oo).proxyMap_(e,o):ko(e)?ft(Oo).proxySet_(e,o):$p(e,o);return(o?.scope_??xc()).drafts_.push(i),a.callbacks_=o?.callbacks_??[],a.key_=n,o&&n!==void 0?Bp(o,a,n):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:p}=d;a.modified_&&p&&p.generatePatches_(a,[],d)}),i}function Oc(t){return Ie(t)||Se(10,t),Ac(t)}function Ac(t){if(!le(t)||No(t))return t;let e=t[ee],o,n=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,o=_i(t,e.scope_.immer_.useStrictShallowCopy_),n=e.scope_.immer_.shouldUseStrictIteration()}else o=_i(t,!0);return Ro(o,(i,a)=>{Co(o,i,Ac(a))},n),e&&(e.finalized_=!1),o}var Gp=globalThis.Iterator,Xx=typeof Gp?.from=="function";var Vp=new Wp,Di=Vp.produce;function wc(t){return({dispatch:o,getState:n})=>i=>a=>typeof a=="function"?a(o,n,t):i(a)}var _c=wc(),Rc=wc;var jp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ir:Ir.apply(null,arguments)},n0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Kp=t=>t&&typeof t.match=="function";function qe(t,e){function o(...n){if(e){let i=e(...n);if(!i)throw new Error(He(0));return{type:t,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:t,payload:n[0]}}return o.toString=()=>`${t}`,o.type=t,o.match=n=>sc(n)&&n.type===t,o}var Ic=class Br extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Br.prototype)}static get[Symbol.species](){return Br}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Br(...e[0].concat(this)):new Br(...e.concat(this))}};function Tc(t){return le(t)?Di(t,()=>{}):t}function Po(t,e,o){return t.has(e)?t.get(e):t.set(e,o(e)).get(e)}function Zp(t){return typeof t=="boolean"}var qp=()=>function(e){let{thunk:o=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{},s=new Ic;return o&&(Zp(o)?s.push(_c):s.push(Rc(o.extraArgument))),s},Yp="RTK_autoBatch";var Lc=t=>e=>{setTimeout(e,t)},Xp=(t,e)=>o=>{let n=!1,i=()=>{n||(n=!0,cancelAnimationFrame(a),clearTimeout(s),o())},a=t(i),s=setTimeout(i,e)},Jp=(t={type:"raf"})=>e=>(...o)=>{let n=e(...o),i=!0,a=!1,s=!1,l=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Xp(window.requestAnimationFrame,100):Lc(10):t.type==="callback"?t.queueNotification:Lc(t.timeout),p=()=>{s=!1,a&&(a=!1,l.forEach(h=>h()))};return Object.assign({},n,{subscribe(h){let f=()=>i&&h(),m=n.subscribe(f);return l.add(h),()=>{m(),l.delete(h)}},dispatch(h){try{return i=!h?.meta?.[Yp],a=!i,a&&(s||(s=!0,d(p))),n.dispatch(h)}finally{i=!0}}})},Qp=t=>function(o){let{autoBatch:n=!0}=o??{},i=new Ic(t);return n&&i.push(Jp(typeof n=="object"?n:void 0)),i};function Pc(t){let e=qp(),{reducer:o=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=t||{},d;if(typeof o=="function")d=o;else if(go(o))d=ic(o);else throw new Error(He(1));let p;typeof n=="function"?p=n(e):p=e();let h=Ir;i&&(h=jp({trace:!1,...typeof i=="object"&&i}));let f=ac(...p),m=Qp(f),b=typeof l=="function"?l(m):m(),v=h(...b);return Si(d,s,v)}function Mc(t){let e={},o=[],n,i={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error(He(28));if(l in e)throw new Error(He(29));return e[l]=s,i},addAsyncThunk(a,s){return s.pending&&(e[a.pending.type]=s.pending),s.rejected&&(e[a.rejected.type]=s.rejected),s.fulfilled&&(e[a.fulfilled.type]=s.fulfilled),s.settled&&o.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase(a){return n=a,i}};return t(i),[e,o,n]}function ef(t){return typeof t=="function"}function tf(t,e){let[o,n,i]=Mc(e),a;if(ef(t))a=()=>Tc(t());else{let l=Tc(t);a=()=>l}function s(l=a(),d){let p=[o[d.type],...n.filter(({matcher:h})=>h(d)).map(({reducer:h})=>h)];return p.filter(h=>!!h).length===0&&(p=[i]),p.reduce((h,f)=>{if(f)if(Ie(h)){let b=f(h,d);return b===void 0?h:b}else{if(le(h))return Di(h,m=>f(m,d));{let m=f(h,d);if(m===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return h},l)}return s.getInitialState=a,s}var rf=(t,e)=>Kp(t)?t.match(e):t(e);function of(...t){return e=>t.some(o=>rf(o,e))}var nf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",af=(t=21)=>{let e="",o=t;for(;o--;)e+=nf[Math.random()*64|0];return e},sf=["name","message","stack","code"],Ui=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},kc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},cf=t=>{if(typeof t=="object"&&t!==null){let e={};for(let o of sf)typeof t[o]=="string"&&(e[o]=t[o]);return e}return{message:String(t)}},Nc="External signal was aborted",lf=(()=>{function t(e,o,n){let i=qe(e+"/fulfilled",(d,p,h,f)=>({payload:d,meta:{...f||{},arg:h,requestId:p,requestStatus:"fulfilled"}})),a=qe(e+"/pending",(d,p,h)=>({payload:void 0,meta:{...h||{},arg:p,requestId:d,requestStatus:"pending"}})),s=qe(e+"/rejected",(d,p,h,f,m)=>({payload:f,error:(n&&n.serializeError||cf)(d||"Rejected"),meta:{...m||{},arg:h,requestId:p,rejectedWithValue:!!f,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:p}={}){return(h,f,m)=>{let b=n?.idGenerator?n.idGenerator(d):af(),v=new AbortController,O,S;function A(y){S=y,v.abort()}p&&(p.aborted?A(Nc):p.addEventListener("abort",()=>A(Nc),{once:!0}));let M=(async function(){let y;try{let x=n?.condition?.(d,{getState:f,extra:m});if(uf(x)&&(x=await x),x===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let T=new Promise((L,R)=>{O=()=>{R({name:"AbortError",message:S||"Aborted"})},v.signal.addEventListener("abort",O,{once:!0})});h(a(b,d,n?.getPendingMeta?.({requestId:b,arg:d},{getState:f,extra:m}))),y=await Promise.race([T,Promise.resolve(o(d,{dispatch:h,getState:f,extra:m,requestId:b,signal:v.signal,abort:A,rejectWithValue:((L,R)=>new Ui(L,R)),fulfillWithValue:((L,R)=>new kc(L,R))})).then(L=>{if(L instanceof Ui)throw L;return L instanceof kc?i(L.payload,b,d,L.meta):i(L,b,d)})])}catch(x){y=x instanceof Ui?s(null,b,d,x.payload,x.meta):s(x,b,d)}finally{O&&v.signal.removeEventListener("abort",O)}return n&&!n.dispatchConditionRejection&&s.match(y)&&y.meta.condition||h(y),y})();return Object.assign(M,{abort:A,requestId:b,arg:d,unwrap(){return M.then(df)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:i,settled:of(s,i),typePrefix:e})}return t.withTypes=()=>t,t})();function df(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function uf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Dc=Symbol.for("rtk-slice-createasyncthunk"),a0={[Dc]:lf};function pf(t,e){return`${t}/${e}`}function ff({creators:t}={}){let e=t?.asyncThunk?.[Dc];return function(n){let{name:i,reducerPath:a=i}=n;if(!i)throw new Error(He(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(mf()):n.reducers)||{},l=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(y,g){let x=typeof y=="string"?y:y.type;if(!x)throw new Error(He(12));if(x in d.sliceCaseReducersByType)throw new Error(He(13));return d.sliceCaseReducersByType[x]=g,p},addMatcher(y,g){return d.sliceMatchers.push({matcher:y,reducer:g}),p},exposeAction(y,g){return d.actionCreators[y]=g,p},exposeCaseReducer(y,g){return d.sliceCaseReducersByName[y]=g,p}};l.forEach(y=>{let g=s[y],x={reducerName:y,type:pf(i,y),createNotation:typeof n.reducers=="function"};gf(g)?xf(x,g,p,e):yf(x,g,p)});function h(){let[y={},g=[],x=void 0]=typeof n.extraReducers=="function"?Mc(n.extraReducers):[n.extraReducers],T={...y,...d.sliceCaseReducersByType};return tf(n.initialState,L=>{for(let R in T)L.addCase(R,T[R]);for(let R of d.sliceMatchers)L.addMatcher(R.matcher,R.reducer);for(let R of g)L.addMatcher(R.matcher,R.reducer);x&&L.addDefaultCase(x)})}let f=y=>y,m=new Map,b=new WeakMap,v;function O(y,g){return v||(v=h()),v(y,g)}function S(){return v||(v=h()),v.getInitialState()}function A(y,g=!1){function x(L){let R=L[y];return typeof R>"u"&&g&&(R=Po(b,x,S)),R}function T(L=f){let R=Po(m,g,()=>new WeakMap);return Po(R,L,()=>{let U={};for(let[_,N]of Object.entries(n.selectors??{}))U[_]=hf(N,L,()=>Po(b,L,S),g);return U})}return{reducerPath:y,getSelectors:T,get selectors(){return T(x)},selectSlice:x}}let M={name:i,reducer:O,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:S,...A(a),injectInto(y,{reducerPath:g,...x}={}){let T=g??a;return y.inject({reducerPath:T,reducer:O},x),{...M,...A(T,!0)}}};return M}}function hf(t,e,o,n){function i(a,...s){let l=e(a);return typeof l>"u"&&n&&(l=o()),t(l,...s)}return i.unwrapped=t,i}var Uc=ff();function mf(){function t(e,o){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...o}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...o){return e(...o)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,o){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:o}},asyncThunk:t}}function yf({type:t,reducerName:e,createNotation:o},n,i){let a,s;if("reducer"in n){if(o&&!bf(n))throw new Error(He(17));a=n.reducer,s=n.prepare}else a=n;i.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?qe(t,s):qe(t))}function gf(t){return t._reducerDefinitionType==="asyncThunk"}function bf(t){return t._reducerDefinitionType==="reducerWithPrepare"}function xf({type:t,reducerName:e},o,n,i){if(!i)throw new Error(He(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:d,settled:p,options:h}=o,f=i(t,a,h);n.exposeAction(e,f),s&&n.addCase(f.fulfilled,s),l&&n.addCase(f.pending,l),d&&n.addCase(f.rejected,d),p&&n.addMatcher(f.settled,p),n.exposeCaseReducer(e,{fulfilled:s||Mo,pending:l||Mo,rejected:d||Mo,settled:p||Mo})}function Mo(){}var Bc="listener",Fc="completed",$c="cancelled",s0=`task-${$c}`,c0=`task-${Fc}`,l0=`${Bc}-${$c}`,d0=`${Bc}-${Fc}`;var{assign:Hc}=Object;var Bi="listenerMiddleware";var vf=Hc(qe(`${Bi}/add`),{withTypes:()=>vf}),u0=qe(`${Bi}/removeAll`),Sf=Hc(qe(`${Bi}/remove`),{withTypes:()=>Sf});function He(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. `}window.ftReduxStores||(window.ftReduxStores={});var ht=class t extends De{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Zt(a))return a;if(i==null)return;let s=Uc({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=Pc({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let h=be(s.getInitialState());for(let f of p.keeping)h[f]=(d??h)[f];return h}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new kr,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...h)=>{let f=p(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{let f=d,m=this.getState()[f];te(m,h)||this.setState({[f]:i(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};function Ef(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Zt(e)&&e.clear()}var Do=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);Me(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Cf(t,e,o){return new Do(t,e,o).watch()}var Fr=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e).size==1&&this.onNewNeededRequest(n)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var zi={};D(zi,{scrollHelper:()=>Of});var $i,Uo=new Map,Hi=class{lock(e,o){if(o){let n=Uo.get(o);if(n==null||n===e)return Uo.set(o,e),o}}release(e,o){o&&Uo.get(o)===e&&Uo.delete(o)}findFirstScrollableParent(e){var o;let n,i;for(let a of kn(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(o=n??i)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,i;let a=0;for(;o&&o.offsetParent!==e.offsetParent;)a+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return a+((i=o?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=nt(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=($i=window.FluidTopicsScrollHelper)!==null&&$i!==void 0?$i:new Hi;var Of=window.FluidTopicsScrollHelper;var Gi={};D(Gi,{SearchPlaceConverter:()=>Qt,SearchPlaceQueryParams:()=>I,isSearchPlaceQueryParams:()=>Ll,serializeRequest:()=>Tf});var Af=t=>typeof t=="object"&&t!=null;var wf=t=>typeof t=="number",Bo=t=>typeof t=="string",fl=t=>Af(t)&&Bo(t.endpoint)&&Bo(t.method)&&Bo(t.statusText)&&Bo(t.body)&&wf(t.status),zc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(zc||(zc={}));var Wc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Wc||(Wc={}));var Gc;(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"})(Gc||(Gc={}));var Vc;(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"})(Vc||(Vc={}));var jc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(jc||(jc={}));var Kc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Kc||(Kc={}));var Zc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Zc||(Zc={}));var qc;(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"})(qc||(qc={}));var Yc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Yc||(Yc={}));var Xc;(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"})(Xc||(Xc={}));var Jc;(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"})(Jc||(Jc={}));var Qc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Qc||(Qc={}));var el;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(el||(el={}));var tl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(tl||(tl={}));var rl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(rl||(rl={}));var ol;(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"})(ol||(ol={}));var Xt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Xt||(Xt={}));var nl;(function(t){t.ASC="ASC",t.DESC="DESC"})(nl||(nl={}));var il;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(il||(il={}));var Wi;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Wi||(Wi={}));var hl=t=>Object.keys(Wi).includes(t);var al;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(al||(al={}));var sl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(sl||(sl={}));var cl;(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"})(cl||(cl={}));var Jt;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Jt||(Jt={}));var ml=t=>Object.keys(Jt).includes(t);var ll;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ll||(ll={}));var dl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(dl||(dl={}));var ul;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ul||(ul={}));var j;(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"})(j||(j={}));var he;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(he||(he={}));var pl;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(pl||(pl={}));var yl;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(yl||(yl={}));var gl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(gl||(gl={}));var bl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(bl||(bl={}));var xl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(xl||(xl={}));var vl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(vl||(vl={}));var Sl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Sl||(Sl={}));var El;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(El||(El={}));var Cl;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Cl||(Cl={}));var Ol;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Ol||(Ol={}));var Al;(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"})(Al||(Al={}));var wl;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(wl||(wl={}));var _f={[j.PERSONAL_BOOK_SHARE_USER]:[j.PERSONAL_BOOK_USER],[j.HTML_EXPORT_USER]:[j.PERSONAL_BOOK_USER],[j.PDF_EXPORT_USER]:[j.PERSONAL_BOOK_USER],[j.KHUB_ADMIN]:[j.CONTENT_PUBLISHER],[j.ADMIN]:[j.KHUB_ADMIN,j.USERS_ADMIN,j.PORTAL_ADMIN,j.BEHAVIOR_DATA_USER],[j.GENERATIVE_AI_EXPORT_USER]:[j.GENERATIVE_AI_USER]};function _l(t,e){return t===e||(_f[t]??[]).some(o=>_l(o,e))}function Rl(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=>_l(n,e))}function Rf(t){return`"${t}"`}function Tl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Tf(t,e){return new Qt(t).serialize(e)}var I;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.NEGATIVE_VALUE_FILTERS="negative-value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(I||(I={}));var Lf=new Set(Object.values(I));function Ll(t){return Lf.has(t)}var Qt=class{constructor(e,o=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=o,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,l,d,p,h,f,m,b,v,O;let S=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&S.append(I.LOCALE,e.contentLocale):S.append(I.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&S.append(I.QUERY,e.query);let A=R=>{var U,_;let N=((_=(U=R.valueFilter)===null||U===void 0?void 0:U.values)!==null&&_!==void 0?_:[]).map(H=>this.escapeFilters(H)).map(H=>Rf(Tl(H))).join("_");return`${R.key}~${N}`},M=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(R=>R.valueFilter&&!R.valueFilter.negative))!==null&&a!==void 0?a:[];M.length>0&&S.append(I.VALUE_FILTERS,M.map(A).join("*"));let y=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(R=>R.valueFilter&&R.valueFilter.negative))!==null&&l!==void 0?l:[];y.length>0&&S.append(I.NEGATIVE_VALUE_FILTERS,y.map(A).join("*"));let g=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(R=>R.dateFilter))!==null&&p!==void 0?p:[];if(g.length>0){let R=g.map(U=>{var _;return`${U.key}~${(_=U.dateFilter)===null||_===void 0?void 0:_.type.toLowerCase()}`}).join("*");S.append(I.DATE_FILTERS,R)}let x=(f=(h=e.metadataFilters)===null||h===void 0?void 0:h.filter(R=>R.rangeFilter))!==null&&f!==void 0?f:[];if(x.length>0){let R=x.map(U=>{var _,N;return`${U.key}~${(_=U.rangeFilter)===null||_===void 0?void 0:_.from}_${(N=U.rangeFilter)===null||N===void 0?void 0:N.to}`}).join("*");S.append(I.RANGE_FILTERS,R)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&S.append(I.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&S.append(I.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&S.append(I.SORT,e.sortId),!((m=e.paging)===null||m===void 0)&&m.perPage&&((v=(b=e.paging)===null||b===void 0?void 0:b.perPage)!==null&&v!==void 0?v:this.defaultPerPage)!=this.defaultPerPage&&S.append(I.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&S.append(I.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let T=(O=e.otherQueryParams)!==null&&O!==void 0?O:{};for(let R in T)S.append(R,T[R]);let L=new Array;return S.forEach((R,U)=>{L.push(this.encodeQueryString(U)+"="+this.encodeQueryString(R))}),encodeURI(L.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(A){console.warn("Could not decode search request query params, fallback on raw value",A)}let d=new URLSearchParams(e),p=d.get(I.LOCALE)==="all"?void 0:d.get(I.LOCALE),h=((o=d.get(I.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(I.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(i=d.get(I.SCOPE))!==null&&i!==void 0?i:"default",b=+((a=d.get(I.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),v=d.get(I.KEYWORD_MATCH),O=v?v.toUpperCase()===Xt.MANDATORY?Xt.MANDATORY:Xt.OPTIONAL:void 0,S={};for(let A of d.keys())Ll(A)||(S[A]=d.get(A));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(I.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:hl(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:nt(1,isNaN(b)?this.defaultPerPage:b,1e3)},keywordMatch:O,otherQueryParams:S}}parseCompatFilters(e){var o,n,i,a,s,l,d;let p=[];return e.has(I.FILTERS)&&(p=this.parseValueFilters((o=e.get(I.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(I.PERIOD))!==null&&n!==void 0&&n&&(p=[...p,...this.parseLegacyPeriodFilter(((i=e.get(I.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...p,...this.parseValueFilters((a=e.get(I.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseValueFilters((s=e.get(I.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(I.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(I.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e,o=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(n=>({key:n[0],valueFilter:{values:n[1].split("_").map(Tl).map(i=>this.unescapeFilterValue(i)),negative:o}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:Jt[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(i,o);return e}parseLegacyPeriodFilter(e){if(ml(e))return[{key:"ft:lastEdition",dateFilter:{type:Jt[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}static clearSearchParamsInUrl(e){let o=new URL(e);return[I.LOCALE,I.FILTERS,I.VALUE_FILTERS,I.NEGATIVE_VALUE_FILTERS,I.DATE_FILTERS,I.RANGE_FILTERS].forEach(i=>{o.searchParams.delete(i)}),o.toString()}static updateLocaleParamInUrl(e,o){let n=new URL(e);return n.searchParams.delete(I.LOCALE),o!==void 0&&n.searchParams.append(I.LOCALE,o),n.toString()}};var ji={};D(ji,{toFtFormComponent:()=>kf});var Vi=Symbol("elementInternals"),kf=Z(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Vi].form}constructor(...n){super(n),this[Vi]=this.attachInternals()}setFormValue(n){this[Vi].setFormValue(n)}}return e});var Ki={};D(Ki,{DateFormatter:()=>mt});var mt=class{static format(e,o,n,i,a){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,i,!!a)):this.getIntlDateTime(e,o,n,i,!!a)}static getMomentDateFormat(e,o,n){return n?"LT":e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,i,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(s);return a?d:i?`${l} ${d}`:l}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var qi={};D(qi,{ALL_KEYS_VALUE:()=>Zi,SameWindowStorageEvent:()=>er});var Zi="__all__",er=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Zi}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new er(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new er(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new er(Zi))}});var Xi={};D(Xi,{FocusMainContentEvent:()=>Yi});var Yi=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var kl={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Nf(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function If(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Nf);document.addEventListener("click",If);var Fo=k`
|
|
47
|
+
`;var rc={};var xi={};D(xi,{ParametrizedLabelResolver:()=>Lr});var Lr=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Fi={};D(Fi,{FtCommandQueue:()=>kr,FtLitElementRedux:()=>Fe,FtReduxStore:()=>ht,FtStateManager:()=>Fr,ReduxWatcher:()=>Do,clearAllStores:()=>Ef,isFtReduxStore:()=>Zt,redux:()=>Ne,reduxEventListener:()=>wp,reduxReactive:()=>Ap,watch:()=>Cf,withRedux:()=>oc});var Ap=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},Ne=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:Me,attribute:!1,...e};E(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(l=>l[n]),store:e.store})}},wp=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var kr=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function Zt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Nr=Symbol("internalReduxEventsUnsubscribers"),Ze=Symbol("internalStoresUnsubscribers"),pt=Symbol("internalStores"),oc=Z(Symbol("withRedux"),function(t){var e,o,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[pt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[pt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[pt].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[pt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[pt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[pt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[Ze].has(s.store):this[Ze].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[Ze].set(s,l.subscribe(()=>this.updateFromStores())),this[Nr].set(s,[]),Zt(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[h](m);l.addEventListener(p.eventName,f),this[Nr].get(s).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Ze].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Ze].has(s)&&this[Ze].get(s)(),this[Ze].delete(s),(l=this[Nr].get(s))===null||l===void 0||l.forEach(d=>d()),this[Nr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Ze,o=pt,n=Nr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Fe=class extends oc(V){};function J(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 _p=typeof Symbol=="function"&&Symbol.observable||"@@observable",nc=_p,vi=()=>Math.random().toString(36).substring(7).split("").join("."),Rp={INIT:`@@redux/INIT${vi()}`,REPLACE:`@@redux/REPLACE${vi()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${vi()}`},yo=Rp;function go(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 Si(t,e,o){if(typeof t!="function")throw new Error(J(2));if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(J(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(J(1));return o(Si)(t,e)}let n=t,i=e,a=new Map,s=a,l=0,d=!1;function p(){s===a&&(s=new Map,a.forEach((S,A)=>{s.set(A,S)}))}function h(){if(d)throw new Error(J(3));return i}function f(S){if(typeof S!="function")throw new Error(J(4));if(d)throw new Error(J(5));let A=!0;p();let M=l++;return s.set(M,S),function(){if(A){if(d)throw new Error(J(6));A=!1,p(),s.delete(M),a=null}}}function m(S){if(!go(S))throw new Error(J(7));if(typeof S.type>"u")throw new Error(J(8));if(typeof S.type!="string")throw new Error(J(17));if(d)throw new Error(J(9));try{d=!0,i=n(i,S)}finally{d=!1}return(a=s).forEach(M=>{M()}),S}function b(S){if(typeof S!="function")throw new Error(J(10));n=S,m({type:yo.REPLACE})}function v(){let S=f;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(J(11));function M(){let g=A;g.next&&g.next(h())}return M(),{unsubscribe:S(M)}},[nc](){return this}}}return m({type:yo.INIT}),{dispatch:m,subscribe:f,getState:h,replaceReducer:b,[nc]:v}}function Tp(t){Object.keys(t).forEach(e=>{let o=t[e];if(typeof o(void 0,{type:yo.INIT})>"u")throw new Error(J(12));if(typeof o(void 0,{type:yo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(J(13))})}function ic(t){let e=Object.keys(t),o={};for(let s=0;s<e.length;s++){let l=e[s];typeof t[l]=="function"&&(o[l]=t[l])}let n=Object.keys(o),i,a;try{Tp(o)}catch(s){a=s}return function(l={},d){if(a)throw a;let p=!1,h={};for(let f=0;f<n.length;f++){let m=n[f],b=o[m],v=l[m],O=b(v,d);if(typeof O>"u"){let S=d&&d.type;throw new Error(J(14))}h[m]=O,p=p||O!==v}return p=p||n.length!==Object.keys(l).length,p?h:l}}function Ir(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,o)=>(...n)=>e(o(...n)))}function ac(...t){return e=>(o,n)=>{let i=e(o,n),a=()=>{throw new Error(J(15))},s={getState:i.getState,dispatch:(d,...p)=>a(d,...p)},l=t.map(d=>d(s));return a=Ir(...l)(i.dispatch),{...i,dispatch:a}}}function sc(t){return go(t)&&"type"in t&&typeof t.type=="string"}var yc=Symbol.for("immer-nothing"),cc=Symbol.for("immer-draftable"),ee=Symbol.for("immer-state");function Se(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var ce=Object,Yt=ce.getPrototypeOf,So="constructor",_o="prototype",Ai="configurable",Eo="enumerable",xo="writable",Pr="value",Ie=t=>!!t&&!!t[ee];function le(t){return t?gc(t)||To(t)||!!t[cc]||!!t[So]?.[cc]||Lo(t)||ko(t):!1}var Lp=ce[_o][So].toString(),lc=new WeakMap;function gc(t){if(!t||!Ii(t))return!1;let e=Yt(t);if(e===null||e===ce[_o])return!0;let o=ce.hasOwnProperty.call(e,So)&&e[So];if(o===Object)return!0;if(!qt(o))return!1;let n=lc.get(o);return n===void 0&&(n=Function.toString.call(o),lc.set(o,n)),n===Lp}function Ro(t,e,o=!0){Ur(t)===0?(o?Reflect.ownKeys(t):ce.keys(t)).forEach(i=>{e(i,t[i],t)}):t.forEach((n,i)=>e(i,n,t))}function Ur(t){let e=t[ee];return e?e.type_:To(t)?1:Lo(t)?2:ko(t)?3:0}var Ei=(t,e,o=Ur(t))=>o===2?t.has(e):ce[_o].hasOwnProperty.call(t,e),wi=(t,e,o=Ur(t))=>o===2?t.get(e):t[e],Co=(t,e,o,n=Ur(t))=>{n===2?t.set(e,o):n===3?t.add(o):t[e]=o};function kp(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var To=Array.isArray,Lo=t=>t instanceof Map,ko=t=>t instanceof Set,Ii=t=>typeof t=="object",qt=t=>typeof t=="function",Ci=t=>typeof t=="boolean";function Np(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var $e=t=>t.copy_||t.base_;var Pi=t=>t.modified_?t.copy_:t.base_;function _i(t,e){if(Lo(t))return new Map(t);if(ko(t))return new Set(t);if(To(t))return Array[_o].slice.call(t);let o=gc(t);if(e===!0||e==="class_only"&&!o){let n=ce.getOwnPropertyDescriptors(t);delete n[ee];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){let s=i[a],l=n[s];l[xo]===!1&&(l[xo]=!0,l[Ai]=!0),(l.get||l.set)&&(n[s]={[Ai]:!0,[xo]:!0,[Eo]:l[Eo],[Pr]:t[s]})}return ce.create(Yt(t),n)}else{let n=Yt(t);if(n!==null&&o)return{...t};let i=ce.create(n);return ce.assign(i,t)}}function Mi(t,e=!1){return No(t)||Ie(t)||!le(t)||(Ur(t)>1&&ce.defineProperties(t,{set:bo,add:bo,clear:bo,delete:bo}),ce.freeze(t),e&&Ro(t,(o,n)=>{Mi(n,!0)},!1)),t}function Ip(){Se(2)}var bo={[Pr]:Ip};function No(t){return t===null||!Ii(t)?!0:ce.isFrozen(t)}var Oo="MapSet",Ri="Patches",dc="ArrayMethods",bc={};function ft(t){let e=bc[t];return e||Se(0,t),e}var uc=t=>!!bc[t];var Mr,xc=()=>Mr,Pp=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:uc(Oo)?ft(Oo):void 0,arrayMethodsPlugin_:uc(dc)?ft(dc):void 0});function pc(t,e){e&&(t.patchPlugin_=ft(Ri),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Ti(t){Li(t),t.drafts_.forEach(Mp),t.drafts_=null}function Li(t){t===Mr&&(Mr=t.parent_)}var fc=t=>Mr=Pp(Mr,t);function Mp(t){let e=t[ee];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function hc(t,e){e.unfinalizedDrafts_=e.drafts_.length;let o=e.drafts_[0];if(t!==void 0&&t!==o){o[ee].modified_&&(Ti(e),Se(4)),le(t)&&(t=mc(e,t));let{patchPlugin_:i}=e;i&&i.generateReplacementPatches_(o[ee].base_,t,e)}else t=mc(e,o);return Dp(e,t,!0),Ti(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==yc?t:void 0}function mc(t,e){if(No(e))return e;let o=e[ee];if(!o)return Ao(e,t.handledSet_,t);if(!Io(o,t))return e;if(!o.modified_)return o.base_;if(!o.finalized_){let{callbacks_:n}=o;if(n)for(;n.length>0;)n.pop()(t);Ec(o,t)}return o.copy_}function Dp(t,e,o=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Mi(e,o)}function vc(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Io=(t,e)=>t.scope_===e,Up=[];function Sc(t,e,o,n){let i=$e(t),a=t.type_;if(n!==void 0&&wi(i,n,a)===e){Co(i,n,o,a);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;Ro(i,(d,p)=>{if(Ie(p)){let h=l.get(p)||[];h.push(d),l.set(p,h)}})}let s=t.draftLocations_.get(e)??Up;for(let l of s)Co(i,l,o,a)}function Bp(t,e,o){t.callbacks_.push(function(i){let a=e;if(!a||!Io(a,i))return;i.mapSetPlugin_?.fixSetContents(a);let s=Pi(a);Sc(t,a.draft_??a,s,o),Ec(a,i)})}function Ec(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 i=n.getPath(t);i&&n.generatePatches_(t,i,e)}vc(t)}}function Fp(t,e,o){let{scope_:n}=t;if(Ie(o)){let i=o[ee];Io(i,n)&&i.callbacks_.push(function(){vo(t);let s=Pi(i);Sc(t,o,s,e)})}else le(o)&&t.callbacks_.push(function(){let a=$e(t);t.type_===3?a.has(o)&&Ao(o,n.handledSet_,n):wi(a,e,t.type_)===o&&n.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Ao(wi(t.copy_,e,t.type_),n.handledSet_,n)})}function Ao(t,e,o){return!o.immer_.autoFreeze_&&o.unfinalizedDrafts_<1||Ie(t)||e.has(t)||!le(t)||No(t)||(e.add(t),Ro(t,(n,i)=>{if(Ie(i)){let a=i[ee];if(Io(a,o)){let s=Pi(a);Co(t,n,s,t.type_),vc(a)}}else le(i)&&Ao(i,e,o)})),t}function $p(t,e){let o=To(t),n={type_:o?1:0,scope_:e?e.scope_:xc(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,a=wo;o&&(i=[n],a=Dr);let{revoke:s,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=s,[l,n]}var wo={get(t,e){if(e===ee)return t;let o=t.scope_.arrayMethodsPlugin_,n=t.type_===1&&typeof e=="string";if(n&&o?.isArrayOperationMethod(e))return o.createMethodInterceptor(t,e);let i=$e(t);if(!Ei(i,e,t.type_))return zp(t,i,e);let a=i[e];if(t.finalized_||!le(a)||n&&t.operationMethod&&o?.isMutatingArrayMethod(t.operationMethod)&&Np(e))return a;if(a===Oi(t.base_,e)||Hp(t,e,a)){vo(t);let s=t.type_===1?+e:e,l=Ni(t.scope_,a,t,s);return t.copy_[s]=l}return a},has(t,e){return e in $e(t)},ownKeys(t){return Reflect.ownKeys($e(t))},set(t,e,o){let n=Cc($e(t),e);if(n?.set)return n.set.call(t.draft_,o),!0;if(!t.modified_){let i=Oi($e(t),e),a=i?.[ee];if(a&&a.base_===o)return t.copy_[e]=o,t.assigned_.set(e,!1),!0;if(kp(o,i)&&(o!==void 0||Ei(t.base_,e,t.type_)))return!0;vo(t),ki(t)}return t.copy_[e]===o&&(o!==void 0||Ei(t.copy_,e,t.type_))||Number.isNaN(o)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=o,t.assigned_.set(e,!0),Fp(t,e,o)),!0},deleteProperty(t,e){return vo(t),Oi(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ki(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let o=$e(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{[xo]:!0,[Ai]:t.type_!==1||e!=="length",[Eo]:n[Eo],[Pr]:o[e]}},defineProperty(){Se(11)},getPrototypeOf(t){return Yt(t.base_)},setPrototypeOf(){Se(12)}},Dr={};for(let t in wo){let e=wo[t];Dr[t]=function(){let o=arguments;return o[0]=o[0][0],e.apply(this,o)}}Dr.deleteProperty=function(t,e){return Dr.set.call(this,t,e,void 0)};Dr.set=function(t,e,o){return wo.set.call(this,t[0],e,o,t[0])};function Oi(t,e){let o=t[ee];return(o?$e(o):t)[e]}function Hp(t,e,o){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!le(o)||o[ee]?!1:t.baseRefs_.has(o)}function zp(t,e,o){let n=Cc(e,o);return n?Pr in n?n[Pr]:n.get?.call(t.draft_):void 0}function Cc(t,e){if(!(e in t))return;let o=Yt(t);for(;o;){let n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Yt(o)}}function ki(t){t.modified_||(t.modified_=!0,t.parent_&&ki(t.parent_))}function vo(t){t.copy_||(t.assigned_=new Map,t.copy_=_i(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Wp=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,o,n)=>{if(qt(e)&&!qt(o)){let a=o;o=e;let s=this;return function(d=a,...p){return s.produce(d,h=>o.call(this,h,...p))}}qt(o)||Se(6),n!==void 0&&!qt(n)&&Se(7);let i;if(le(e)){let a=fc(this),s=Ni(a,e,void 0),l=!0;try{i=o(s),l=!1}finally{l?Ti(a):Li(a)}return pc(a,n),hc(i,a)}else if(!e||!Ii(e)){if(i=o(e),i===void 0&&(i=e),i===yc&&(i=void 0),this.autoFreeze_&&Mi(i,!0),n){let a=[],s=[];ft(Ri).generateReplacementPatches_(e,i,{patches_:a,inversePatches_:s}),n(a,s)}return i}else Se(1,e)},this.produceWithPatches=(e,o)=>{if(qt(e))return(s,...l)=>this.produceWithPatches(s,d=>e(d,...l));let n,i;return[this.produce(e,o,(s,l)=>{n=s,i=l}),n,i]},Ci(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Ci(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Ci(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){le(t)||Se(8),Ie(t)&&(t=Oc(t));let e=fc(this),o=Ni(e,t,void 0);return o[ee].isManual_=!0,Li(e),o}finishDraft(t,e){let o=t&&t[ee];(!o||!o.isManual_)&&Se(9);let{scope_:n}=o;return pc(n,e),hc(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 o;for(o=e.length-1;o>=0;o--){let i=e[o];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}o>-1&&(e=e.slice(o+1));let n=ft(Ri).applyPatches_;return Ie(t)?n(t,e):this.produce(t,i=>n(i,e))}};function Ni(t,e,o,n){let[i,a]=Lo(e)?ft(Oo).proxyMap_(e,o):ko(e)?ft(Oo).proxySet_(e,o):$p(e,o);return(o?.scope_??xc()).drafts_.push(i),a.callbacks_=o?.callbacks_??[],a.key_=n,o&&n!==void 0?Bp(o,a,n):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:p}=d;a.modified_&&p&&p.generatePatches_(a,[],d)}),i}function Oc(t){return Ie(t)||Se(10,t),Ac(t)}function Ac(t){if(!le(t)||No(t))return t;let e=t[ee],o,n=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,o=_i(t,e.scope_.immer_.useStrictShallowCopy_),n=e.scope_.immer_.shouldUseStrictIteration()}else o=_i(t,!0);return Ro(o,(i,a)=>{Co(o,i,Ac(a))},n),e&&(e.finalized_=!1),o}var Gp=globalThis.Iterator,Xx=typeof Gp?.from=="function";var Vp=new Wp,Di=Vp.produce;function wc(t){return({dispatch:o,getState:n})=>i=>a=>typeof a=="function"?a(o,n,t):i(a)}var _c=wc(),Rc=wc;var jp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ir:Ir.apply(null,arguments)},nv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Kp=t=>t&&typeof t.match=="function";function qe(t,e){function o(...n){if(e){let i=e(...n);if(!i)throw new Error(He(0));return{type:t,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:t,payload:n[0]}}return o.toString=()=>`${t}`,o.type=t,o.match=n=>sc(n)&&n.type===t,o}var Ic=class Br extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Br.prototype)}static get[Symbol.species](){return Br}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Br(...e[0].concat(this)):new Br(...e.concat(this))}};function Tc(t){return le(t)?Di(t,()=>{}):t}function Po(t,e,o){return t.has(e)?t.get(e):t.set(e,o(e)).get(e)}function Zp(t){return typeof t=="boolean"}var qp=()=>function(e){let{thunk:o=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{},s=new Ic;return o&&(Zp(o)?s.push(_c):s.push(Rc(o.extraArgument))),s},Yp="RTK_autoBatch";var Lc=t=>e=>{setTimeout(e,t)},Xp=(t,e)=>o=>{let n=!1,i=()=>{n||(n=!0,cancelAnimationFrame(a),clearTimeout(s),o())},a=t(i),s=setTimeout(i,e)},Jp=(t={type:"raf"})=>e=>(...o)=>{let n=e(...o),i=!0,a=!1,s=!1,l=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Xp(window.requestAnimationFrame,100):Lc(10):t.type==="callback"?t.queueNotification:Lc(t.timeout),p=()=>{s=!1,a&&(a=!1,l.forEach(h=>h()))};return Object.assign({},n,{subscribe(h){let f=()=>i&&h(),m=n.subscribe(f);return l.add(h),()=>{m(),l.delete(h)}},dispatch(h){try{return i=!h?.meta?.[Yp],a=!i,a&&(s||(s=!0,d(p))),n.dispatch(h)}finally{i=!0}}})},Qp=t=>function(o){let{autoBatch:n=!0}=o??{},i=new Ic(t);return n&&i.push(Jp(typeof n=="object"?n:void 0)),i};function Pc(t){let e=qp(),{reducer:o=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=t||{},d;if(typeof o=="function")d=o;else if(go(o))d=ic(o);else throw new Error(He(1));let p;typeof n=="function"?p=n(e):p=e();let h=Ir;i&&(h=jp({trace:!1,...typeof i=="object"&&i}));let f=ac(...p),m=Qp(f),b=typeof l=="function"?l(m):m(),v=h(...b);return Si(d,s,v)}function Mc(t){let e={},o=[],n,i={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error(He(28));if(l in e)throw new Error(He(29));return e[l]=s,i},addAsyncThunk(a,s){return s.pending&&(e[a.pending.type]=s.pending),s.rejected&&(e[a.rejected.type]=s.rejected),s.fulfilled&&(e[a.fulfilled.type]=s.fulfilled),s.settled&&o.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase(a){return n=a,i}};return t(i),[e,o,n]}function ef(t){return typeof t=="function"}function tf(t,e){let[o,n,i]=Mc(e),a;if(ef(t))a=()=>Tc(t());else{let l=Tc(t);a=()=>l}function s(l=a(),d){let p=[o[d.type],...n.filter(({matcher:h})=>h(d)).map(({reducer:h})=>h)];return p.filter(h=>!!h).length===0&&(p=[i]),p.reduce((h,f)=>{if(f)if(Ie(h)){let b=f(h,d);return b===void 0?h:b}else{if(le(h))return Di(h,m=>f(m,d));{let m=f(h,d);if(m===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return h},l)}return s.getInitialState=a,s}var rf=(t,e)=>Kp(t)?t.match(e):t(e);function of(...t){return e=>t.some(o=>rf(o,e))}var nf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",af=(t=21)=>{let e="",o=t;for(;o--;)e+=nf[Math.random()*64|0];return e},sf=["name","message","stack","code"],Ui=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},kc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},cf=t=>{if(typeof t=="object"&&t!==null){let e={};for(let o of sf)typeof t[o]=="string"&&(e[o]=t[o]);return e}return{message:String(t)}},Nc="External signal was aborted",lf=(()=>{function t(e,o,n){let i=qe(e+"/fulfilled",(d,p,h,f)=>({payload:d,meta:{...f||{},arg:h,requestId:p,requestStatus:"fulfilled"}})),a=qe(e+"/pending",(d,p,h)=>({payload:void 0,meta:{...h||{},arg:p,requestId:d,requestStatus:"pending"}})),s=qe(e+"/rejected",(d,p,h,f,m)=>({payload:f,error:(n&&n.serializeError||cf)(d||"Rejected"),meta:{...m||{},arg:h,requestId:p,rejectedWithValue:!!f,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:p}={}){return(h,f,m)=>{let b=n?.idGenerator?n.idGenerator(d):af(),v=new AbortController,O,S;function A(y){S=y,v.abort()}p&&(p.aborted?A(Nc):p.addEventListener("abort",()=>A(Nc),{once:!0}));let M=(async function(){let y;try{let x=n?.condition?.(d,{getState:f,extra:m});if(uf(x)&&(x=await x),x===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let T=new Promise((L,R)=>{O=()=>{R({name:"AbortError",message:S||"Aborted"})},v.signal.addEventListener("abort",O,{once:!0})});h(a(b,d,n?.getPendingMeta?.({requestId:b,arg:d},{getState:f,extra:m}))),y=await Promise.race([T,Promise.resolve(o(d,{dispatch:h,getState:f,extra:m,requestId:b,signal:v.signal,abort:A,rejectWithValue:((L,R)=>new Ui(L,R)),fulfillWithValue:((L,R)=>new kc(L,R))})).then(L=>{if(L instanceof Ui)throw L;return L instanceof kc?i(L.payload,b,d,L.meta):i(L,b,d)})])}catch(x){y=x instanceof Ui?s(null,b,d,x.payload,x.meta):s(x,b,d)}finally{O&&v.signal.removeEventListener("abort",O)}return n&&!n.dispatchConditionRejection&&s.match(y)&&y.meta.condition||h(y),y})();return Object.assign(M,{abort:A,requestId:b,arg:d,unwrap(){return M.then(df)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:i,settled:of(s,i),typePrefix:e})}return t.withTypes=()=>t,t})();function df(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function uf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Dc=Symbol.for("rtk-slice-createasyncthunk"),av={[Dc]:lf};function pf(t,e){return`${t}/${e}`}function ff({creators:t}={}){let e=t?.asyncThunk?.[Dc];return function(n){let{name:i,reducerPath:a=i}=n;if(!i)throw new Error(He(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(mf()):n.reducers)||{},l=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(y,g){let x=typeof y=="string"?y:y.type;if(!x)throw new Error(He(12));if(x in d.sliceCaseReducersByType)throw new Error(He(13));return d.sliceCaseReducersByType[x]=g,p},addMatcher(y,g){return d.sliceMatchers.push({matcher:y,reducer:g}),p},exposeAction(y,g){return d.actionCreators[y]=g,p},exposeCaseReducer(y,g){return d.sliceCaseReducersByName[y]=g,p}};l.forEach(y=>{let g=s[y],x={reducerName:y,type:pf(i,y),createNotation:typeof n.reducers=="function"};gf(g)?xf(x,g,p,e):yf(x,g,p)});function h(){let[y={},g=[],x=void 0]=typeof n.extraReducers=="function"?Mc(n.extraReducers):[n.extraReducers],T={...y,...d.sliceCaseReducersByType};return tf(n.initialState,L=>{for(let R in T)L.addCase(R,T[R]);for(let R of d.sliceMatchers)L.addMatcher(R.matcher,R.reducer);for(let R of g)L.addMatcher(R.matcher,R.reducer);x&&L.addDefaultCase(x)})}let f=y=>y,m=new Map,b=new WeakMap,v;function O(y,g){return v||(v=h()),v(y,g)}function S(){return v||(v=h()),v.getInitialState()}function A(y,g=!1){function x(L){let R=L[y];return typeof R>"u"&&g&&(R=Po(b,x,S)),R}function T(L=f){let R=Po(m,g,()=>new WeakMap);return Po(R,L,()=>{let U={};for(let[_,N]of Object.entries(n.selectors??{}))U[_]=hf(N,L,()=>Po(b,L,S),g);return U})}return{reducerPath:y,getSelectors:T,get selectors(){return T(x)},selectSlice:x}}let M={name:i,reducer:O,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:S,...A(a),injectInto(y,{reducerPath:g,...x}={}){let T=g??a;return y.inject({reducerPath:T,reducer:O},x),{...M,...A(T,!0)}}};return M}}function hf(t,e,o,n){function i(a,...s){let l=e(a);return typeof l>"u"&&n&&(l=o()),t(l,...s)}return i.unwrapped=t,i}var Uc=ff();function mf(){function t(e,o){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...o}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...o){return e(...o)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,o){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:o}},asyncThunk:t}}function yf({type:t,reducerName:e,createNotation:o},n,i){let a,s;if("reducer"in n){if(o&&!bf(n))throw new Error(He(17));a=n.reducer,s=n.prepare}else a=n;i.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?qe(t,s):qe(t))}function gf(t){return t._reducerDefinitionType==="asyncThunk"}function bf(t){return t._reducerDefinitionType==="reducerWithPrepare"}function xf({type:t,reducerName:e},o,n,i){if(!i)throw new Error(He(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:d,settled:p,options:h}=o,f=i(t,a,h);n.exposeAction(e,f),s&&n.addCase(f.fulfilled,s),l&&n.addCase(f.pending,l),d&&n.addCase(f.rejected,d),p&&n.addMatcher(f.settled,p),n.exposeCaseReducer(e,{fulfilled:s||Mo,pending:l||Mo,rejected:d||Mo,settled:p||Mo})}function Mo(){}var Bc="listener",Fc="completed",$c="cancelled",sv=`task-${$c}`,cv=`task-${Fc}`,lv=`${Bc}-${$c}`,dv=`${Bc}-${Fc}`;var{assign:Hc}=Object;var Bi="listenerMiddleware";var vf=Hc(qe(`${Bi}/add`),{withTypes:()=>vf}),uv=qe(`${Bi}/removeAll`),Sf=Hc(qe(`${Bi}/remove`),{withTypes:()=>Sf});function He(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. `}window.ftReduxStores||(window.ftReduxStores={});var ht=class t extends De{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Zt(a))return a;if(i==null)return;let s=Uc({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=Pc({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let h=be(s.getInitialState());for(let f of p.keeping)h[f]=(d??h)[f];return h}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new kr,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...h)=>{let f=p(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{let f=d,m=this.getState()[f];te(m,h)||this.setState({[f]:i(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};function Ef(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Zt(e)&&e.clear()}var Do=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);Me(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Cf(t,e,o){return new Do(t,e,o).watch()}var Fr=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e).size==1&&this.onNewNeededRequest(n)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var zi={};D(zi,{scrollHelper:()=>Of});var $i,Uo=new Map,Hi=class{lock(e,o){if(o){let n=Uo.get(o);if(n==null||n===e)return Uo.set(o,e),o}}release(e,o){o&&Uo.get(o)===e&&Uo.delete(o)}findFirstScrollableParent(e){var o;let n,i;for(let a of kn(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(o=n??i)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,i;let a=0;for(;o&&o.offsetParent!==e.offsetParent;)a+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return a+((i=o?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=nt(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=($i=window.FluidTopicsScrollHelper)!==null&&$i!==void 0?$i:new Hi;var Of=window.FluidTopicsScrollHelper;var Gi={};D(Gi,{SearchPlaceConverter:()=>Qt,SearchPlaceQueryParams:()=>I,isSearchPlaceQueryParams:()=>Ll,serializeRequest:()=>Tf});var Af=t=>typeof t=="object"&&t!=null;var wf=t=>typeof t=="number",Bo=t=>typeof t=="string",fl=t=>Af(t)&&Bo(t.endpoint)&&Bo(t.method)&&Bo(t.statusText)&&Bo(t.body)&&wf(t.status),zc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(zc||(zc={}));var Wc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Wc||(Wc={}));var Gc;(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"})(Gc||(Gc={}));var Vc;(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"})(Vc||(Vc={}));var jc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(jc||(jc={}));var Kc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Kc||(Kc={}));var Zc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Zc||(Zc={}));var qc;(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"})(qc||(qc={}));var Yc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Yc||(Yc={}));var Xc;(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"})(Xc||(Xc={}));var Jc;(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"})(Jc||(Jc={}));var Qc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Qc||(Qc={}));var el;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(el||(el={}));var tl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(tl||(tl={}));var rl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(rl||(rl={}));var ol;(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"})(ol||(ol={}));var Xt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Xt||(Xt={}));var nl;(function(t){t.ASC="ASC",t.DESC="DESC"})(nl||(nl={}));var il;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(il||(il={}));var Wi;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Wi||(Wi={}));var hl=t=>Object.keys(Wi).includes(t);var al;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(al||(al={}));var sl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(sl||(sl={}));var cl;(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"})(cl||(cl={}));var Jt;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Jt||(Jt={}));var ml=t=>Object.keys(Jt).includes(t);var ll;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ll||(ll={}));var dl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(dl||(dl={}));var ul;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ul||(ul={}));var j;(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"})(j||(j={}));var he;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(he||(he={}));var pl;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(pl||(pl={}));var yl;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(yl||(yl={}));var gl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(gl||(gl={}));var bl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(bl||(bl={}));var xl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(xl||(xl={}));var vl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(vl||(vl={}));var Sl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Sl||(Sl={}));var El;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(El||(El={}));var Cl;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Cl||(Cl={}));var Ol;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Ol||(Ol={}));var Al;(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"})(Al||(Al={}));var wl;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(wl||(wl={}));var _f={[j.PERSONAL_BOOK_SHARE_USER]:[j.PERSONAL_BOOK_USER],[j.HTML_EXPORT_USER]:[j.PERSONAL_BOOK_USER],[j.PDF_EXPORT_USER]:[j.PERSONAL_BOOK_USER],[j.KHUB_ADMIN]:[j.CONTENT_PUBLISHER],[j.ADMIN]:[j.KHUB_ADMIN,j.USERS_ADMIN,j.PORTAL_ADMIN,j.BEHAVIOR_DATA_USER],[j.GENERATIVE_AI_EXPORT_USER]:[j.GENERATIVE_AI_USER]};function _l(t,e){return t===e||(_f[t]??[]).some(o=>_l(o,e))}function Rl(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=>_l(n,e))}function Rf(t){return`"${t}"`}function Tl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Tf(t,e){return new Qt(t).serialize(e)}var I;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.NEGATIVE_VALUE_FILTERS="negative-value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(I||(I={}));var Lf=new Set(Object.values(I));function Ll(t){return Lf.has(t)}var Qt=class{constructor(e,o=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=o,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,l,d,p,h,f,m,b,v,O;let S=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&S.append(I.LOCALE,e.contentLocale):S.append(I.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&S.append(I.QUERY,e.query);let A=R=>{var U,_;let N=((_=(U=R.valueFilter)===null||U===void 0?void 0:U.values)!==null&&_!==void 0?_:[]).map(H=>this.escapeFilters(H)).map(H=>Rf(Tl(H))).join("_");return`${R.key}~${N}`},M=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(R=>R.valueFilter&&!R.valueFilter.negative))!==null&&a!==void 0?a:[];M.length>0&&S.append(I.VALUE_FILTERS,M.map(A).join("*"));let y=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(R=>R.valueFilter&&R.valueFilter.negative))!==null&&l!==void 0?l:[];y.length>0&&S.append(I.NEGATIVE_VALUE_FILTERS,y.map(A).join("*"));let g=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(R=>R.dateFilter))!==null&&p!==void 0?p:[];if(g.length>0){let R=g.map(U=>{var _;return`${U.key}~${(_=U.dateFilter)===null||_===void 0?void 0:_.type.toLowerCase()}`}).join("*");S.append(I.DATE_FILTERS,R)}let x=(f=(h=e.metadataFilters)===null||h===void 0?void 0:h.filter(R=>R.rangeFilter))!==null&&f!==void 0?f:[];if(x.length>0){let R=x.map(U=>{var _,N;return`${U.key}~${(_=U.rangeFilter)===null||_===void 0?void 0:_.from}_${(N=U.rangeFilter)===null||N===void 0?void 0:N.to}`}).join("*");S.append(I.RANGE_FILTERS,R)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&S.append(I.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&S.append(I.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&S.append(I.SORT,e.sortId),!((m=e.paging)===null||m===void 0)&&m.perPage&&((v=(b=e.paging)===null||b===void 0?void 0:b.perPage)!==null&&v!==void 0?v:this.defaultPerPage)!=this.defaultPerPage&&S.append(I.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&S.append(I.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let T=(O=e.otherQueryParams)!==null&&O!==void 0?O:{};for(let R in T)S.append(R,T[R]);let L=new Array;return S.forEach((R,U)=>{L.push(this.encodeQueryString(U)+"="+this.encodeQueryString(R))}),encodeURI(L.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(A){console.warn("Could not decode search request query params, fallback on raw value",A)}let d=new URLSearchParams(e),p=d.get(I.LOCALE)==="all"?void 0:d.get(I.LOCALE),h=((o=d.get(I.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(I.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(i=d.get(I.SCOPE))!==null&&i!==void 0?i:"default",b=+((a=d.get(I.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),v=d.get(I.KEYWORD_MATCH),O=v?v.toUpperCase()===Xt.MANDATORY?Xt.MANDATORY:Xt.OPTIONAL:void 0,S={};for(let A of d.keys())Ll(A)||(S[A]=d.get(A));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(I.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:hl(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:nt(1,isNaN(b)?this.defaultPerPage:b,1e3)},keywordMatch:O,otherQueryParams:S}}parseCompatFilters(e){var o,n,i,a,s,l,d;let p=[];return e.has(I.FILTERS)&&(p=this.parseValueFilters((o=e.get(I.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(I.PERIOD))!==null&&n!==void 0&&n&&(p=[...p,...this.parseLegacyPeriodFilter(((i=e.get(I.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...p,...this.parseValueFilters((a=e.get(I.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseValueFilters((s=e.get(I.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(I.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(I.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e,o=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(n=>({key:n[0],valueFilter:{values:n[1].split("_").map(Tl).map(i=>this.unescapeFilterValue(i)),negative:o}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:Jt[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(i,o);return e}parseLegacyPeriodFilter(e){if(ml(e))return[{key:"ft:lastEdition",dateFilter:{type:Jt[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}static clearSearchParamsInUrl(e){let o=new URL(e);return[I.LOCALE,I.FILTERS,I.VALUE_FILTERS,I.NEGATIVE_VALUE_FILTERS,I.DATE_FILTERS,I.RANGE_FILTERS].forEach(i=>{o.searchParams.delete(i)}),o.toString()}static updateLocaleParamInUrl(e,o){let n=new URL(e);return n.searchParams.delete(I.LOCALE),o!==void 0&&n.searchParams.append(I.LOCALE,o),n.toString()}};var ji={};D(ji,{toFtFormComponent:()=>kf});var Vi=Symbol("elementInternals"),kf=Z(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Vi].form}constructor(...n){super(n),this[Vi]=this.attachInternals()}setFormValue(n){this[Vi].setFormValue(n)}}return e});var Ki={};D(Ki,{DateFormatter:()=>mt});var mt=class{static format(e,o,n,i,a){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,i,!!a)):this.getIntlDateTime(e,o,n,i,!!a)}static getMomentDateFormat(e,o,n){return n?"LT":e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,i,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(s);return a?d:i?`${l} ${d}`:l}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var qi={};D(qi,{ALL_KEYS_VALUE:()=>Zi,SameWindowStorageEvent:()=>er});var Zi="__all__",er=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Zi}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new er(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new er(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new er(Zi))}});var Xi={};D(Xi,{FocusMainContentEvent:()=>Yi});var Yi=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var kl={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Nf(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function If(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Nf);document.addEventListener("click",If);var Fo=k`
|
|
48
48
|
.sr-only {
|
|
49
49
|
position:absolute;
|
|
50
50
|
left:-10000px;
|
|
@@ -68,7 +68,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
68
68
|
width:auto;
|
|
69
69
|
height:auto;
|
|
70
70
|
}
|
|
71
|
-
`;var Ji={};D(Ji,{withAriaNotification:()=>Mf});var Pf={checkVisibility:!0},Mf=Z(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={...Pf,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new xr({type:"aria",message:n})))},20)}}return e});var Qi={};D(Qi,{withConditionalVisibility:()=>Df});var Nl=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};function Df(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(n,i){if(n){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=i,this.shadowRoot.append(a)}}hideIfNecessary(){let n=!(this.forceVisible||this.isVisible);this.calculateStyles(n,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(n){super.willUpdate(n),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(i=>i.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return Nl([E({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),Nl([F()],e.prototype,"isVisible",void 0),e}var ta={};D(ta,{FormController:()=>ea});function Uf(t){let e={};for(let o of Object.keys(t))e[o]=t[o].initial;return e}var ea=class{constructor(e,o){this.host=e,this.config=o,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=Uf(o),this.data={...this.initial}}hostDisconnected(){this.submitting=!1}get values(){return this.data}get fields(){return Object.keys(this.config)}get isSubmitting(){return this.submitting}get inError(){return this.errors.size>0}value(e){return this.data[e]}hasError(e){return this.errors.has(e)}errorFor(e){return this.errors.get(e)}setValue(e,o){if(this.data[e]===o)return;let n={...this.data};n[e]=o,this.data=n,this.checkValidity()}bind(e){return o=>this.setValue(e,o.detail)}setInitialValues(e){this.initial={...e},this.reset()}reset(){this.data={...this.initial},this.errors.clear(),this.submitting=!1,this.host.requestUpdate()}validateField(e,o){var n,i;let a=(i=(n=this.config[e]).validator)===null||i===void 0?void 0:i.call(n,this.value(e),this.data,o);a!==void 0&&this.errors.set(e,a)}checkValidity(e){return this.errors.clear(),this.fields.forEach(o=>{this.validateField(o,e)}),this.host.requestUpdate(),!this.inError}get firstFieldSelectorInError(){for(let e of this.fields){let o=this.config[e].selector;if(this.errors.has(e)&&o!==void 0)return o}}focusFirstFieldInError(){let e=this.firstFieldSelectorInError;if(e===void 0)return;let o=this.host.renderRoot.querySelector(e);o instanceof HTMLElement&&o.focus()}async submit(e){var o,n,i;if(!this.submitting){this.submitting=!0,this.host.requestUpdate();try{if(!this.checkValidity()){this.focusFirstFieldInError(),(o=e.onInvalid)===null||o===void 0||o.call(e);return}e.onSuccess(await e.request(this.data))}catch(a){let s=fl(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(n=e.onInvalid)===null||n===void 0||n.call(e);return}(i=e.onFailure)===null||i===void 0||i.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};function ra(t,e){return e.map(o=>o(t)).filter(o=>o!==!0).map(o=>o)}function $o(t,e,o){return t?e(t):o?.(t)}var Q=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},yt;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(yt||(yt={}));var gt;(function(t){t.default="default",t.warning="warning",t.error="error"})(gt||(gt={}));var oa=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},
|
|
71
|
+
`;var Ji={};D(Ji,{withAriaNotification:()=>Mf});var Pf={checkVisibility:!0},Mf=Z(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={...Pf,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new xr({type:"aria",message:n})))},20)}}return e});var Qi={};D(Qi,{withConditionalVisibility:()=>Df});var Nl=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};function Df(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(n,i){if(n){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=i,this.shadowRoot.append(a)}}hideIfNecessary(){let n=!(this.forceVisible||this.isVisible);this.calculateStyles(n,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(n){super.willUpdate(n),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(i=>i.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return Nl([E({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),Nl([F()],e.prototype,"isVisible",void 0),e}var ta={};D(ta,{FormController:()=>ea});function Uf(t){let e={};for(let o of Object.keys(t))e[o]=t[o].initial;return e}var ea=class{constructor(e,o){this.host=e,this.config=o,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=Uf(o),this.data={...this.initial}}hostDisconnected(){this.submitting=!1}get values(){return this.data}get fields(){return Object.keys(this.config)}get isSubmitting(){return this.submitting}get inError(){return this.errors.size>0}value(e){return this.data[e]}hasError(e){return this.errors.has(e)}errorFor(e){return this.errors.get(e)}setValue(e,o){if(this.data[e]===o)return;let n={...this.data};n[e]=o,this.data=n,this.checkValidity()}bind(e){return o=>this.setValue(e,o.detail)}setInitialValues(e){this.initial={...e},this.reset()}reset(){this.data={...this.initial},this.errors.clear(),this.submitting=!1,this.host.requestUpdate()}validateField(e,o){var n,i;let a=(i=(n=this.config[e]).validator)===null||i===void 0?void 0:i.call(n,this.value(e),this.data,o);a!==void 0&&this.errors.set(e,a)}checkValidity(e){return this.errors.clear(),this.fields.forEach(o=>{this.validateField(o,e)}),this.host.requestUpdate(),!this.inError}get firstFieldSelectorInError(){for(let e of this.fields){let o=this.config[e].selector;if(this.errors.has(e)&&o!==void 0)return o}}focusFirstFieldInError(){let e=this.firstFieldSelectorInError;if(e===void 0)return;let o=this.host.renderRoot.querySelector(e);o instanceof HTMLElement&&o.focus()}async submit(e){var o,n,i;if(!this.submitting){this.submitting=!0,this.host.requestUpdate();try{if(!this.checkValidity()){this.focusFirstFieldInError(),(o=e.onInvalid)===null||o===void 0||o.call(e);return}e.onSuccess(await e.request(this.data))}catch(a){let s=fl(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(n=e.onInvalid)===null||n===void 0||n.call(e);return}(i=e.onFailure)===null||i===void 0||i.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};function ra(t,e){return e.map(o=>o(t)).filter(o=>o!==!0).map(o=>o)}function $o(t,e,o){return t?e(t):o?.(t)}var Q=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},yt;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(yt||(yt={}));var gt;(function(t){t.default="default",t.warning="warning",t.error="error"})(gt||(gt={}));var oa=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},h0=Z(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=yt.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=gt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===yt.blur||this.validateOn===yt.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==gt.default&&this.validateOn===yt.blurWithStatusResolutionOnInput||this.validateOn===yt.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=ra(this.value,[...this.errorRules,...this.additionalErrorRules]),this.warningMessages=ra(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new oa(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return z`
|
|
72
72
|
<ul aria-live="polite" id="${this.messagesForScreenReaderElementId}"
|
|
73
73
|
style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;list-style:none;">
|
|
74
74
|
${Bt(this.errorMessages,n=>z`
|
|
@@ -81,7 +81,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
81
81
|
<li>${this.helperText}</li>
|
|
82
82
|
`)}
|
|
83
83
|
</ul>
|
|
84
|
-
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?gt.error:this.warningMessages.length?gt.warning:gt.default}}return Q([E()],e.prototype,"warningRules",void 0),Q([E()],e.prototype,"errorRules",void 0),Q([E()],e.prototype,"validateOn",void 0),Q([E({type:Boolean})],e.prototype,"validateAtRender",void 0),Q([E()],e.prototype,"label",void 0),Q([E({type:Boolean})],e.prototype,"hideLabel",void 0),Q([E()],e.prototype,"name",void 0),Q([E({type:Boolean})],e.prototype,"disabled",void 0),Q([E()],e.prototype,"helperText",void 0),Q([E()],e.prototype,"forceStatus",void 0),Q([E({reflect:!0})],e.prototype,"value",void 0),Q([F()],e.prototype,"errorMessages",void 0),Q([F()],e.prototype,"warningMessages",void 0),Q([F()],e.prototype,"status",void 0),Q([F()],e.prototype,"focused",void 0),Q([F()],e.prototype,"additionalWarningRules",void 0),Q([F()],e.prototype,"additionalErrorRules",void 0),e});var $r=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),$r(n,e);return!0},Ho=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},Il=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),$f(e)}};function Bf(t){this._$AN!==void 0?(Ho(this),this._$AM=t,Il(this)):this._$AM=t}function Ff(t,e=!1,o=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=o;a<n.length;a++)$r(n[a],!1),Ho(n[a]);else n!=null&&($r(n,!1),Ho(n));else $r(this,t)}var $f=t=>{t.type==_e.CHILD&&(t._$AP??=Ff,t._$AQ??=Bf)},tr=class extends fe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),Il(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&($r(this,e),Ho(this))}setValue(e){if(Va(this._$Ct))this._$Ct._$AI(e,this);else{let o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};var na=class extends tr{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async o=>{if(!this.element||!o.relatedTarget)return;let n=o.relatedTarget;this.isInsideElement(n,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async o=>{if(!this.element||!o.relatedTarget)return;let n=o.relatedTarget;this.isInsideElement(n,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return K}update(e){return this.part=e,this.ensureFocusTrap(e.element),K}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var o,n;this.isElementTrappable(e)&&(((o=this.firstTrap)===null||o===void 0?void 0:o.parentElement)===e&&((n=this.lastTrap)===null||n===void 0?void 0:n.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,o,n,i;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(o=this.lastTrap)===null||o===void 0||o.removeEventListener("focus",this.onLastTrapFocus),(n=this.firstTrap)===null||n===void 0||n.remove(),(i=this.lastTrap)===null||i===void 0||i.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let o=this.getChildren(e);for(let n=0;n<o.length;n++){let i=o[n];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusFirstDescendant(i)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let o=this.getChildren(e);for(let n=o.length-1;n>=0;n--){let i=o[n];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusLastDescendant(i)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof pe&&await e.updateComplete}isInsideElement(e,o){for(let n=e;n;n=n.parentNode){if(n===o)return!0;n instanceof ShadowRoot?n=n.host:n.assignedSlot&&(n=n.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},
|
|
84
|
+
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?gt.error:this.warningMessages.length?gt.warning:gt.default}}return Q([E()],e.prototype,"warningRules",void 0),Q([E()],e.prototype,"errorRules",void 0),Q([E()],e.prototype,"validateOn",void 0),Q([E({type:Boolean})],e.prototype,"validateAtRender",void 0),Q([E()],e.prototype,"label",void 0),Q([E({type:Boolean})],e.prototype,"hideLabel",void 0),Q([E()],e.prototype,"name",void 0),Q([E({type:Boolean})],e.prototype,"disabled",void 0),Q([E()],e.prototype,"helperText",void 0),Q([E()],e.prototype,"forceStatus",void 0),Q([E({reflect:!0})],e.prototype,"value",void 0),Q([F()],e.prototype,"errorMessages",void 0),Q([F()],e.prototype,"warningMessages",void 0),Q([F()],e.prototype,"status",void 0),Q([F()],e.prototype,"focused",void 0),Q([F()],e.prototype,"additionalWarningRules",void 0),Q([F()],e.prototype,"additionalErrorRules",void 0),e});var $r=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),$r(n,e);return!0},Ho=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},Il=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),$f(e)}};function Bf(t){this._$AN!==void 0?(Ho(this),this._$AM=t,Il(this)):this._$AM=t}function Ff(t,e=!1,o=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=o;a<n.length;a++)$r(n[a],!1),Ho(n[a]);else n!=null&&($r(n,!1),Ho(n));else $r(this,t)}var $f=t=>{t.type==_e.CHILD&&(t._$AP??=Ff,t._$AQ??=Bf)},tr=class extends fe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),Il(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&($r(this,e),Ho(this))}setValue(e){if(Va(this._$Ct))this._$Ct._$AI(e,this);else{let o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};var na=class extends tr{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async o=>{if(!this.element||!o.relatedTarget)return;let n=o.relatedTarget;this.isInsideElement(n,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async o=>{if(!this.element||!o.relatedTarget)return;let n=o.relatedTarget;this.isInsideElement(n,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return K}update(e){return this.part=e,this.ensureFocusTrap(e.element),K}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var o,n;this.isElementTrappable(e)&&(((o=this.firstTrap)===null||o===void 0?void 0:o.parentElement)===e&&((n=this.lastTrap)===null||n===void 0?void 0:n.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,o,n,i;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(o=this.lastTrap)===null||o===void 0||o.removeEventListener("focus",this.onLastTrapFocus),(n=this.firstTrap)===null||n===void 0||n.remove(),(i=this.lastTrap)===null||i===void 0||i.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let o=this.getChildren(e);for(let n=0;n<o.length;n++){let i=o[n];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusFirstDescendant(i)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let o=this.getChildren(e);for(let n=o.length-1;n>=0;n--){let i=o[n];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusLastDescendant(i)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof pe&&await e.updateComplete}isInsideElement(e,o){for(let n=e;n;n=n.parentNode){if(n===o)return!0;n instanceof ShadowRoot?n=n.host:n.assignedSlot&&(n=n.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},N0=ae(na);var Pl;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(Pl||(Pl={}));var Hf={sm:640,md:768,lg:1024,xl:1280},ia=class extends tr{constructor(e){super(e),this.size=0,this.onResize=()=>{let o=window.innerWidth;this.size!==o&&(this.size=o,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[o,n,i]){return this.lastArgs=[o,n,i],this.render(o,n,i)}render(e,o,n){let i=this.resolveThreshold(e),a=n??(()=>B);return this.size>i?o():a()}resolveThreshold(e){return typeof e=="number"?e:Hf[e]}},D0=ae(ia);var aa,sa,ca,la,zf=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ca=(sa=(aa=window.safari)===null||aa===void 0?void 0:aa.pushNotification)===null||sa===void 0?void 0:sa.toString())!==null&&ca!==void 0?ca:"")==="[object SafariRemoteNotification]",Wf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(la=window.ftGlobals)!==null&&la!==void 0?la:{lit:bn,litDecorators:vn,litRepeat:Sn,litClassMap:En,litStyleMap:Cn,litUnsafeHTML:An,wcUtils:{...wn,...Dn,...Rn,...Hn,...Ki,...zn,...Tn,...jn,...Mn,...ai,...Xi,...kl,...zi,...si,...Vn,...fi,...ji,...ui,...Ji,...Qi,...ec,...Nn,...yi,...Kn,...bi,...Fo,...rc,...xi,...Fi,...qi,...ci,...di,...Gi,...Bn,...ta,isSafari:zf,isTouchScreen:Wf,setVariable:$t}};var ze={containerGap:r.create("--ft-reader-saved-bookmarks-container-gap","","SIZE","16px"),containerPadding:r.create("--ft-reader-saved-bookmarks-container-padding","","SIZE","16px"),itemPadding:r.create("--ft-reader-saved-bookmarks-item-padding","","SIZE","12px"),itemBorderWidth:r.create("--ft-reader-saved-bookmarks-item-border-width","","SIZE","1px"),itemBorderColor:r.extend("--ft-reader-saved-bookmarks-item-border-color","",W.colorPrimary),itemBorderRadius:r.extend("--ft-reader-saved-bookmarks-item-border-radius","",W.borderRadiusS),itemBackgroundColor:r.extend("--ft-reader-saved-bookmarks-item-background-color","",W.colorSurface),itemLinkColor:r.extend("--ft-reader-saved-bookmarks-item-background-color","",W.colorOnSurface)},Ml=k`
|
|
85
85
|
[part="container"] {
|
|
86
86
|
display: flex;
|
|
87
87
|
flex-direction: column;
|
|
@@ -118,7 +118,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
118
118
|
text-decoration: line-through;
|
|
119
119
|
color: ${ze.itemBorderColor};
|
|
120
120
|
}
|
|
121
|
-
`;var Dl;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found"})(Dl||(Dl={}));var Ul;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ul||(Ul={}));var Gf=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ua=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},da=Symbol("registerInterval"),Vf=Z(Symbol("toFtReaderComponent"),function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[da]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[da]):this.dispatchEvent(new ua)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=da,Gf([F()],o.prototype,"stateManager",void 0),o}),zo=class extends Vf(Fe){};var Fl=Symbol.for(""),jf=t=>{if(t?.r===Fl)return t?._$litStatic$},pa=t=>({_$litStatic$:t,r:Fl});var Bl=new Map,fa=t=>(e,...o)=>{let n=o.length,i,a,s=[],l=[],d,p=0,h=!1;for(;p<n;){for(d=e[p];p<n&&(a=o[p],(i=jf(a))!==void 0);)d+=i+e[++p],h=!0;p!==n&&l.push(a),s.push(d),p++}if(p===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=Bl.get(f))===void 0&&(s.raw=s,Bl.set(f,e=s)),o=l}return t(e,...o)},ha=fa(z),
|
|
121
|
+
`;var Dl;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found"})(Dl||(Dl={}));var Ul;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ul||(Ul={}));var Gf=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ua=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},da=Symbol("registerInterval"),Vf=Z(Symbol("toFtReaderComponent"),function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[da]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[da]):this.dispatchEvent(new ua)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=da,Gf([F()],o.prototype,"stateManager",void 0),o}),zo=class extends Vf(Fe){};var Fl=Symbol.for(""),jf=t=>{if(t?.r===Fl)return t?._$litStatic$},pa=t=>({_$litStatic$:t,r:Fl});var Bl=new Map,fa=t=>(e,...o)=>{let n=o.length,i,a,s=[],l=[],d,p=0,h=!1;for(;p<n;){for(d=e[p];p<n&&(a=o[p],(i=jf(a))!==void 0);)d+=i+e[++p],h=!0;p!==n&&l.push(a),s.push(d),p++}if(p===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=Bl.get(f))===void 0&&(s.raw=s,Bl.set(f,e=s)),o=l}return t(e,...o)},ha=fa(z),WS=fa(fn),GS=fa(hn);var Ye;(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"})(Ye||(Ye={}));var $l=r.extend("--ft-typography-font-family","",W.titleFont),We=r.extend("--ft-typography-font-family","",W.contentFont),w={fontFamily:We,fontSize:r.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:r.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:r.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:r.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:r.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:r.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},bt={fontFamily:r.extend("--ft-typography-title-font-family","",$l),fontSize:r.extend("--ft-typography-title-font-size","",w.fontSize,"20px"),fontWeight:r.extend("--ft-typography-title-font-weight","",w.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-letter-spacing","",w.letterSpacing,"0.15px"),lineHeight:r.extend("--ft-typography-title-line-height","",w.lineHeight,"1.2"),textTransform:r.extend("--ft-typography-title-text-transform","",w.textTransform,"inherit"),textDecoration:r.extend("--ft-typography-title-text-decoration","",w.textDecoration,"inherit")},xt={fontFamily:r.extend("--ft-typography-title-dense-font-family","",$l),fontSize:r.extend("--ft-typography-title-dense-font-size","",w.fontSize,"14px"),fontWeight:r.extend("--ft-typography-title-dense-font-weight","",w.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-dense-letter-spacing","",w.letterSpacing,"0.105px"),lineHeight:r.extend("--ft-typography-title-dense-line-height","",w.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-title-dense-text-transform","",w.textTransform,"inherit"),textDecoration:r.extend("--ft-typography-title-dense-text-decoration","",w.textDecoration,"inherit")},vt={fontFamily:r.extend("--ft-typography-subtitle1-font-family","",We),fontSize:r.extend("--ft-typography-subtitle1-font-size","",w.fontSize,"16px"),fontWeight:r.extend("--ft-typography-subtitle1-font-weight","",w.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-subtitle1-letter-spacing","",w.letterSpacing,"0.144px"),lineHeight:r.extend("--ft-typography-subtitle1-line-height","",w.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-subtitle1-text-transform","",w.textTransform,"inherit"),textDecoration:r.extend("--ft-typography-subtitle1-text-decoration","",w.textDecoration,"inherit")},St={fontFamily:r.extend("--ft-typography-subtitle2-font-family","",We),fontSize:r.extend("--ft-typography-subtitle2-font-size","",w.fontSize,"14px"),fontWeight:r.extend("--ft-typography-subtitle2-font-weight","",w.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-subtitle2-letter-spacing","",w.letterSpacing,"0.098px"),lineHeight:r.extend("--ft-typography-subtitle2-line-height","",w.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-subtitle2-text-transform","",w.textTransform,"inherit"),textDecoration:r.extend("--ft-typography-subtitle2-text-decoration","",w.textDecoration,"inherit")},Et={fontFamily:r.extend("--ft-typography-body1-font-family","",We),fontSize:r.extend("--ft-typography-body1-font-size","",w.fontSize,"16px"),fontWeight:r.extend("--ft-typography-body1-font-weight","",w.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body1-letter-spacing","",w.letterSpacing,"0.496px"),lineHeight:r.extend("--ft-typography-body1-line-height","",w.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-body1-text-transform","",w.textTransform,"inherit"),textDecoration:r.extend("--ft-typography-body1-text-decoration","",w.textDecoration,"inherit")},Ct={fontFamily:r.extend("--ft-typography-body2-font-family","",We),fontSize:r.extend("--ft-typography-body2-font-size","",w.fontSize,"14px"),fontWeight:r.extend("--ft-typography-body2-font-weight","",w.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body2-letter-spacing","",w.letterSpacing,"0.252px"),lineHeight:r.extend("--ft-typography-body2-line-height","",w.lineHeight,"1.4"),textTransform:r.extend("--ft-typography-body2-text-transform","",w.textTransform,"inherit"),textDecoration:r.extend("--ft-typography-body2-text-decoration","",w.textDecoration,"inherit")},Ot={fontFamily:r.extend("--ft-typography-caption-font-family","",We),fontSize:r.extend("--ft-typography-caption-font-size","",w.fontSize,"12px"),fontWeight:r.extend("--ft-typography-caption-font-weight","",w.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-caption-letter-spacing","",w.letterSpacing,"0.396px"),lineHeight:r.extend("--ft-typography-caption-line-height","",w.lineHeight,"1.33"),textTransform:r.extend("--ft-typography-caption-text-transform","",w.textTransform,"inherit"),textDecoration:r.extend("--ft-typography-caption-text-decoration","",w.textDecoration,"inherit")},At={fontFamily:r.extend("--ft-typography-breadcrumb-font-family","",We),fontSize:r.extend("--ft-typography-breadcrumb-font-size","",w.fontSize,"10px"),fontWeight:r.extend("--ft-typography-breadcrumb-font-weight","",w.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-breadcrumb-letter-spacing","",w.letterSpacing,"0.33px"),lineHeight:r.extend("--ft-typography-breadcrumb-line-height","",w.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-breadcrumb-text-transform","",w.textTransform,"inherit"),textDecoration:r.extend("--ft-typography-breadcrumb-text-decoration","",w.textDecoration,"inherit")},wt={fontFamily:r.extend("--ft-typography-overline-font-family","",We),fontSize:r.extend("--ft-typography-overline-font-size","",w.fontSize,"10px"),fontWeight:r.extend("--ft-typography-overline-font-weight","",w.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-overline-letter-spacing","",w.letterSpacing,"1.5px"),lineHeight:r.extend("--ft-typography-overline-line-height","",w.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-overline-text-transform","",w.textTransform,"uppercase"),textDecoration:r.extend("--ft-typography-overline-text-decoration","",w.textDecoration,"inherit")},_t={fontFamily:r.extend("--ft-typography-button-font-family","",We),fontSize:r.extend("--ft-typography-button-font-size","",w.fontSize,"14px"),fontWeight:r.extend("--ft-typography-button-font-weight","",w.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-button-letter-spacing","",w.letterSpacing,"1.246px"),lineHeight:r.extend("--ft-typography-button-line-height","",w.lineHeight,"1.15"),textTransform:r.extend("--ft-typography-button-text-transform","",w.textTransform,"uppercase"),textDecoration:r.extend("--ft-typography-button-text-decoration","",w.textDecoration,"inherit")},Hl=k`
|
|
122
122
|
.ft-typography--title {
|
|
123
123
|
font-family: ${bt.fontFamily};
|
|
124
124
|
font-size: ${bt.fontSize};
|
|
@@ -402,12 +402,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
402
402
|
.ft-icon--material {
|
|
403
403
|
font-family: ${Ge.materialFontFamily}, "Material Icons", sans-serif;
|
|
404
404
|
}
|
|
405
|
-
`,gi];var Xe;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Xe||(Xe={}));var or;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(or||(or={}));var C;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(C||(C={}));var
|
|
405
|
+
`,gi];var Xe;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Xe||(Xe={}));var or;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(or||(or={}));var C;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(C||(C={}));var uC=new Map([...["abw"].map(t=>[t,C.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,C.AUDIO]),...["avi"].map(t=>[t,C.AVI]),...["chm","xhs"].map(t=>[t,C.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,C.CODE]),...["csv"].map(t=>[t,C.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,C.DITA]),...["epub"].map(t=>[t,C.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,C.EXCEL]),...["flac"].map(t=>[t,C.FLAC]),...["gif"].map(t=>[t,C.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,C.GZIP]),...["html","htm","xhtml"].map(t=>[t,C.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,C.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,C.JPEG]),...["json"].map(t=>[t,C.JSON]),...["m4a","m4p"].map(t=>[t,C.M4A]),...["mov","qt"].map(t=>[t,C.MOV]),...["mp3"].map(t=>[t,C.MP3]),...["mp4","m4v"].map(t=>[t,C.MP4]),...["ogg","oga"].map(t=>[t,C.OGG]),...["pdf","ps"].map(t=>[t,C.PDF]),...["png"].map(t=>[t,C.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,C.POWERPOINT]),...["rar"].map(t=>[t,C.RAR]),...["stp"].map(t=>[t,C.STP]),...["txt","rtf","md","mdown"].map(t=>[t,C.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,C.VIDEO]),...["wav"].map(t=>[t,C.WAV]),...["wma"].map(t=>[t,C.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,C.WORD]),...["xml","xsl","rdf"].map(t=>[t,C.XML]),...["yaml","yml","x-yaml"].map(t=>[t,C.YAML]),...["zip"].map(t=>[t,C.ZIP])]);var pC={[C.ABW]:"#91ABC6",[C.AUDIO]:"#1795E3",[C.AVI]:"#E63324",[C.CHM]:"#71C3EB",[C.CODE]:"#71C3EB",[C.CSV]:"#1F7345",[C.DITA]:"#71C3EB",[C.EPUB]:"#85B926",[C.EXCEL]:"#1F7345",[C.FLAC]:"#1795E3",[C.GIF]:"#59B031",[C.GZIP]:"#F8AB36",[C.HTML]:"#71C3EB",[C.IMAGE]:"#59B031",[C.JPEG]:"#59B031",[C.JSON]:"#71C3EB",[C.M4A]:"#1795E3",[C.MOV]:"#E63324",[C.MP3]:"#1795E3",[C.MP4]:"#E63324",[C.OGG]:"#1795E3",[C.PDF]:"#E44948",[C.PNG]:"#59B031",[C.POWERPOINT]:"#B54A2B",[C.RAR]:"#F8AB36",[C.STP]:"#3764B1",[C.TEXT]:"#3162AB",[C.UNKNOWN]:"#999999",[C.VIDEO]:"#E63324",[C.WAV]:"#1795E3",[C.WMA]:"#1795E3",[C.WORD]:"#3162AB",[C.XML]:"#71C3EB",[C.YAML]:"#71C3EB",[C.ZIP]:"#F8AB36"};var zr=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ue=class extends V{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=B}render(){let e=this.variant&&Object.values(Xe).includes(this.variant)?this.variant:Xe.fluid_topics,o=e!==Xe.material||!!this.value;return z`
|
|
406
406
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
407
407
|
${On(this.resolvedIcon)}
|
|
408
408
|
<slot ?hidden=${o}></slot>
|
|
409
409
|
</i>
|
|
410
|
-
`}getTextContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let n=this.value||this.getTextContent();switch(this.variant){case Xe.file_format:this.resolvedIcon=(e=C[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case Xe.material:this.resolvedIcon=this.value||B;break;default:this.resolvedIcon=(o=or[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ue.elementDefinitions={};ue.styles=dd;zr([E()],ue.prototype,"variant",void 0);zr([E()],ue.prototype,"value",void 0);zr([E({reflect:!0,attribute:"aria-hidden"})],ue.prototype,"ariaHidden",void 0);zr([F()],ue.prototype,"resolvedIcon",void 0);zr([we("slot")],ue.prototype,"slottedContent",void 0);var ud={"ft-icon":ue};re(ud);var Ko=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},MC=Z(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(P)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>mt.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ko([E({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ko([E({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ko([Ne({store:P.name,selector:o=>{var n,i;return(i=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Ko([Ne({store:P.name})],e.prototype,"uiLocale",void 0),e});var ba=class{addCommand(e,o=!1){P.commands.add(e,o)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ba;var pd,nr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Jf=Symbol("clearAfterUnitTest"),Zo=class extends co(de){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[pd]=()=>{this.defaultMessages={},this.cache=new Re,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};te(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Lr((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(i){!(i instanceof ot)&&o&&console.error(i)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new nr({loadedContexts:e})),this.dispatchEvent(new nr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new nr({loadedContexts:[e]})),this.dispatchEvent(new nr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>so(0).then(()=>n()).catch(()=>null)))}};pd=Jf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Zo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Zo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ir=window.FluidTopicsI18nService,qo=window.FluidTopicsCustomI18nService;var xa=class{highlightHtml(e,o,n){mi(e,o,n)}};window.FluidTopicsHighlightHtmlService=new xa;var va=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=P.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a,s;if(e==null)return"";try{return mt.format(e,(n=o?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1,(s=o?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new va;var Wr=class{static get(e,o){var n,i,a,s;let l=P.getState(),{lang:d,region:p}=(a=(i=(n=l.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Qt(l.baseUrl,e??20,(s=l.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,o??`${d}-${p}`)}};var Sa=class{urlToSearchRequest(e){return Wr.get().parse(e)}searchRequestToUrl(e){return Wr.get().serialize(e)}};window.FluidTopicsUrlService=new Sa;var kt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};kt.eventName="before-location-change";var Nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Nt.eventName="change";var Ea=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},fd=new Ea;var Yo=class t extends De{static build(){return new t(window.history,fd,()=>window.location,!1)}constructor(e,o,n,i){var a,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,o=!1){let n=o&&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),te(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Nt(this.currentItem())),0)}installProxies(){let e=o=>(n,i,[a,s,l])=>{let d=new kt(new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin));this.dispatchEvent(d);let p=o(),h={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:d.detail.nextLocation.href};n.apply(i,[h,s,h.href]),this.setCurrentState(h,!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 o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(e){this.addEventListener(kt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(kt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Nt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Nt.eventName,e)}currentItem(){return be(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 be(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let o=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return be(o.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 be(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 o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let i=o??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Yo.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 hd=k`
|
|
410
|
+
`}getTextContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let n=this.value||this.getTextContent();switch(this.variant){case Xe.file_format:this.resolvedIcon=(e=C[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case Xe.material:this.resolvedIcon=this.value||B;break;default:this.resolvedIcon=(o=or[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ue.elementDefinitions={};ue.styles=dd;zr([E()],ue.prototype,"variant",void 0);zr([E()],ue.prototype,"value",void 0);zr([E({reflect:!0,attribute:"aria-hidden"})],ue.prototype,"ariaHidden",void 0);zr([F()],ue.prototype,"resolvedIcon",void 0);zr([we("slot")],ue.prototype,"slottedContent",void 0);var ud={"ft-icon":ue};re(ud);var Ko=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},UC=Z(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(P)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>mt.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ko([E({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ko([E({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ko([Ne({store:P.name,selector:o=>{var n,i;return(i=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Ko([Ne({store:P.name})],e.prototype,"uiLocale",void 0),e});var ba=class{addCommand(e,o=!1){P.commands.add(e,o)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ba;var pd,nr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Jf=Symbol("clearAfterUnitTest"),Zo=class extends co(de){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[pd]=()=>{this.defaultMessages={},this.cache=new Re,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};te(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Lr((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(i){!(i instanceof ot)&&o&&console.error(i)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new nr({loadedContexts:e})),this.dispatchEvent(new nr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new nr({loadedContexts:[e]})),this.dispatchEvent(new nr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>so(0).then(()=>n()).catch(()=>null)))}};pd=Jf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Zo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Zo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ir=window.FluidTopicsI18nService,qo=window.FluidTopicsCustomI18nService;var xa=class{highlightHtml(e,o,n){mi(e,o,n)}};window.FluidTopicsHighlightHtmlService=new xa;var va=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=P.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a,s;if(e==null)return"";try{return mt.format(e,(n=o?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1,(s=o?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new va;var Wr=class{static get(e,o){var n,i,a,s;let l=P.getState(),{lang:d,region:p}=(a=(i=(n=l.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Qt(l.baseUrl,e??20,(s=l.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,o??`${d}-${p}`)}};var Sa=class{urlToSearchRequest(e){return Wr.get().parse(e)}searchRequestToUrl(e){return Wr.get().serialize(e)}};window.FluidTopicsUrlService=new Sa;var kt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};kt.eventName="before-location-change";var Nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Nt.eventName="change";var Ea=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},fd=new Ea;var Yo=class t extends De{static build(){return new t(window.history,fd,()=>window.location,!1)}constructor(e,o,n,i){var a,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,o=!1){let n=o&&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),te(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Nt(this.currentItem())),0)}installProxies(){let e=o=>(n,i,[a,s,l])=>{let d=new kt(new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin));this.dispatchEvent(d);let p=o(),h={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:d.detail.nextLocation.href};n.apply(i,[h,s,h.href]),this.setCurrentState(h,!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 o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(e){this.addEventListener(kt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(kt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Nt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Nt.eventName,e)}currentItem(){return be(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 be(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let o=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return be(o.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 be(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 o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let i=o??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Yo.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 hd=k`
|
|
411
411
|
`;function md(t,e){let{authenticationRequired:o,session:n}=P.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var Xo=class extends rr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Ca=class t extends Fr{static build(e){return new t(P,e)}constructor(e,o){super(),this.store=e,this.cache=new Re,this.withManualResources=!0,this.userLocaleService=new Xo,this.cleanSessionDebouncer=new oe,this.reloadConfiguration=()=>{var n;(n=this.cache)===null||n===void 0||n.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new oe(500),this.apiProvider=o??(()=>Tt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Rt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Rt.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 o=await this.apiProvider().getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},o.idleTimeoutInMillis),o});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 o=await this.cache.get("availableContentLocales",()=>md(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=o.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,o){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:o}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Hr(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)}},yd=Ca.build();var It=class extends Event{constructor(e,o,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=o,this.callback=n,this.subscribe=i??!1}};var Gr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let o=this.pendingContextRequests.get(e.context);if(o===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:n}=o;for(let{elementRef:i,callbackRef:a}of n){let s=i.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new It(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let o=e.contextTarget??e.composedPath()[0],n=e.callback,i=this.pendingContextRequests.get(e.context);i===void 0&&this.pendingContextRequests.set(e.context,i={callbacks:new WeakMap,requests:[]});let a=i.callbacks.get(o);a===void 0&&i.callbacks.set(o,a=new WeakSet),a.has(n)||(a.add(n),i.requests.push({elementRef:new WeakRef(o),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 X=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},$=class extends Fe{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=yd,this.contextRoot=new Gr}render(){return z`
|
|
412
412
|
<slot></slot>
|
|
413
413
|
`}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 o;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=>ir.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")&&((o=this.stateManager)===null||o===void 0||o.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};$.elementDefinitions={};$.styles=hd;X([E()],$.prototype,"baseUrl",void 0);X([E()],$.prototype,"tenantId",void 0);X([E()],$.prototype,"apiIntegrationIdentifier",void 0);X([E()],$.prototype,"apiIntegrationAppVersion",void 0);X([E()],$.prototype,"uiLocale",void 0);X([se(null)],$.prototype,"availableUiLocales",void 0);X([se(null)],$.prototype,"metadataConfiguration",void 0);X([E({type:Boolean})],$.prototype,"editorMode",void 0);X([E({type:Boolean})],$.prototype,"noCustom",void 0);X([E({type:Boolean})],$.prototype,"openExternalDocumentInNewTab",void 0);X([E({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],$.prototype,"noCustomComponent",void 0);X([E({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],$.prototype,"noCustomCode",void 0);X([E({type:Boolean})],$.prototype,"withManualResources",void 0);X([E({type:Boolean})],$.prototype,"navigatorOnline",void 0);X([E({type:Boolean})],$.prototype,"forcedOffline",void 0);X([E({type:Boolean})],$.prototype,"authenticationRequired",void 0);X([se([])],$.prototype,"messageContexts",void 0);X([se(void 0)],$.prototype,"session",void 0);var gd={"ft-app-context":$};re(gd);var Jo=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?qo:ir}constructor(e,o=!1){this.name=e,this.custom=o,this.properties=new Proxy({},{get:(n,i)=>{let a=i;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...a)=>this.service.resolveMessage(this.name,i,...a)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(n,i)=>()=>i}),this.attributes=new Proxy({},{get:(n,i)=>()=>({context:this.name,key:i,message:this.service.resolveRawMessage(this.name,i)})})}};var Oa=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[o,n]=e.split(".");return{context:o,key:n,custom:o!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},ar=new Oa;var th=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},jr=Symbol("i18nAttributes"),bd=Symbol("i18nListAttributes"),xd=Symbol("i18nProperties"),Qo=Symbol("i18nContexts"),Vr=Symbol("i18nUnsubs"),rn=Z(Symbol("withI18n"),function(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?qo:ir}i18n(a){let{context:s,key:l,message:d}=a,{custom:p,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let m=h??(f?f(this):[]);return this.getI18nService(p).resolveMessage(s,l,...m)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(ar.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,p=(h,f,m)=>m?.context&&m.key&&a(h,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...h})}:m;(s=this[jr])===null||s===void 0||s.forEach((h,f)=>d[f]=p(h,f,d[f])),(l=this[bd])===null||l===void 0||l.forEach((h,f)=>{var m;return d[f]=(m=d[f])===null||m===void 0?void 0:m.map(b=>p(h,f,b))})}updateI18nProperties(a){var s;(s=this[xd])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[Qo].set(d,{isCustomContext:l}),this[Vr].has(d)||this[Vr].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[Qo].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Qo].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Vr].forEach(a=>a()),this[Vr].clear()}}return e=Qo,o=Vr,th([E({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),en=class extends rn(V){},tn=class extends rn(Fe){};var vd=k`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-saved-bookmarks",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.7",
|
|
4
4
|
"description": "Display the list of saved bookmarks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-wc-utils": "2.2.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "2.2.7",
|
|
23
23
|
"lit": "3.3.3"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@fluid-topics/ft-wc-test-utils": "2.2.
|
|
26
|
+
"@fluid-topics/ft-wc-test-utils": "2.2.7"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "dff67505fe1e41bc42e0bdfafc7060ca40f8dc9d"
|
|
29
29
|
}
|