@fluid-topics/ft-reader-toc 2.2.20 → 2.2.24
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.
- package/build/ft-reader-toc.light.js +51 -58
- package/build/ft-reader-toc.min.js +135 -135
- package/build/ft-reader-toc.styles.d.ts +13 -13
- package/package.json +16 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var ed=Object.create;var co=Object.defineProperty;var td=Object.getOwnPropertyDescriptor;var rd=Object.getOwnPropertyNames;var nd=Object.getPrototypeOf,id=Object.prototype.hasOwnProperty;var Ut=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var od=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of rd(t))!id.call(e,i)&&i!==r&&co(e,i,{get:()=>t[i],enumerable:!(n=td(t,i))||n.enumerable});return e};var f=(e,t,r)=>(r=e!=null?ed(nd(e)):{},od(t||!e||!e.__esModule?co(r,"default",{value:e,enumerable:!0}):r,e));var E=Ut((Wu,uo)=>{uo.exports=ftGlobals.wcUtils});var I=Ut((Ku,po)=>{po.exports=ftGlobals.lit});var ei=Ut((Yu,fo)=>{fo.exports=ftGlobals.litStyleMap});var X=Ut((lp,No)=>{No.exports=ftGlobals.litDecorators});var bt=Ut((_p,Xo)=>{Xo.exports=ftGlobals.litClassMap});var oc=Ut((lx,ic)=>{ic.exports=ftGlobals.litUnsafeHTML});var Zc=f(E());var Ue=f(I());function*Bt(e,t){if(e!==void 0){let r=0;for(let n of e)yield t(n,r++)}}var Mc=f(ei());var ai=globalThis,ho=e=>e,Hr=ai.trustedTypes,mo=Hr?Hr.createPolicy("lit-html",{createHTML:e=>e}):void 0,Eo="$lit$",Qe=`lit$${Math.random().toFixed(9).slice(2)}$`,Ao="?"+Qe,sd=`<${Ao}>`,ut=document,Vr=()=>ut.createComment(""),lr=e=>e===null||typeof e!="object"&&typeof e!="function",li=Array.isArray,ad=e=>li(e)||typeof e?.[Symbol.iterator]=="function",ti=`[
|
|
2
2
|
\f\r]`,ar=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yo=/-->/g,go=/>/g,ct=RegExp(`>|${ti}(?:([^\\s"'>=/]+)(${ti}*=${ti}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),xo=/'/g,vo=/"/g,So=/^(?:script|style|textarea|title)$/i,ci=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),_o=ci(1),Co=ci(2),wo=ci(3),cr=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),bo=new WeakMap,ut=dt.createTreeWalker(dt,129);function To(e,t){if(!li(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return mo!==void 0?mo.createHTML(t):t}var uu=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=ar;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===ar?u[1]==="!--"?s=yo:u[1]!==void 0?s=go:u[2]!==void 0?(So.test(u[2])&&(i=RegExp("</"+u[2],"g")),s=ct):u[3]!==void 0&&(s=ct):s===ct?u[0]===">"?(s=i??ar,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?ct:u[3]==='"'?vo:xo):s===vo||s===xo?s=ct:s===yo||s===go?s=ar:(s=ct,i=void 0);let y=s===ct&&e[a+1].startsWith("/>")?" ":"";o+=s===ar?l+lu:d>=0?(n.push(c),l.slice(0,d)+Eo+l.slice(d)+Qe+y):l+Qe+(d===-2?a:y)}return[To(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},ur=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,a=t.length-1,l=this.parts,[c,u]=uu(t,r);if(this.el=e.createElement(c,n),ut.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=ut.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(Eo)){let p=u[s++],y=i.getAttribute(d).split(Qe),v=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:v[2],strings:y,ctor:v[1]==="."?ni:v[1]==="?"?ii:v[1]==="@"?oi:Ht}),i.removeAttribute(d)}else d.startsWith(Qe)&&(l.push({type:6,index:o}),i.removeAttribute(d));if(So.test(i.tagName)){let d=i.textContent.split(Qe),p=d.length-1;if(p>0){i.textContent=Hr?Hr.emptyScript:"";for(let y=0;y<p;y++)i.append(d[y],Vr()),ut.nextNode(),l.push({type:2,index:++o});i.append(d[p],Vr())}}}else if(i.nodeType===8)if(i.data===Ao)l.push({type:2,index:o});else{let d=-1;for(;(d=i.data.indexOf(Qe,d+1))!==-1;)l.push({type:7,index:o}),d+=Qe.length-1}o++}}static createElement(t,r){let n=dt.createElement("template");return n.innerHTML=t,n}};function Ft(e,t,r=e,n){if(t===cr)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=lr(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=Ft(e,i._$AS(e,t.values),i,n)),t}var ri=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??dt).importNode(r,!0);ut.currentNode=i;let o=ut.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new zr(o,o.nextSibling,this,t):l.type===1?c=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(c=new si(o,this,t)),this._$AV.push(c),l=n[++a]}s!==l?.index&&(o=ut.nextNode(),s++)}return ut.currentNode=dt,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},zr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Ft(this,t,r),lr(t)?t===K||t==null||t===""?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==cr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):cu(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==K&&lr(this._$AH)?this._$AA.nextSibling.data=t:this.T(dt.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=ur.createElement(To(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new ri(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=bo.get(t.strings);return r===void 0&&bo.set(t.strings,r=new ur(t)),r}k(t){li(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of t)i===r.length?r.push(n=new e(this.O(Vr()),this.O(Vr()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=ho(t).nextSibling;ho(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Ht=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,o){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=K}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=Ft(this,t,r,0),s=!lr(t)||t!==this._$AH&&t!==cr,s&&(this._$AH=t);else{let a=t,l,c;for(t=o[0],l=0;l<o.length-1;l++)c=Ft(this,a[n+l],r,l),c===cr&&(c=this._$AH[l]),s||=!lr(c)||c!==this._$AH[l],c===K?t=K:t!==K&&(t+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!i&&this.j(t)}j(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ni=class extends Ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===K?void 0:t}},ii=class extends Ht{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==K)}},oi=class extends Ht{constructor(t,r,n,i,o){super(t,r,n,i,o),this.type=5}_$AI(t,r=this){if((t=Ft(this,t,r,0)??K)===cr)return;let n=this._$AH,i=t===K&&n!==K||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==K&&(n===K||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},si=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Ft(this,t)}};var du=ai.litHtmlPolyfillSupport;du?.(ur,zr),(ai.litHtmlVersions??=[]).push("3.3.3");var Te=e=>e??K;var Ro=Symbol.for(""),pu=e=>{if(e?.r===Ro)return e?._$litStatic$},ui=e=>({_$litStatic$:e,r:Ro});var Oo=new Map,di=e=>(t,...r)=>{let n=r.length,i,o,s=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=t[c];c<n&&(o=r[c],(i=pu(o))!==void 0);)l+=i+t[++c],u=!0;c!==n&&a.push(o),s.push(l),c++}if(c===n&&s.push(t[n]),u){let d=s.join("$$lit$$");(t=Oo.get(d))===void 0&&(s.raw=s,Oo.set(d,t=s)),r=a}return e(t,...r)},pi=di(_o),sp=di(Co),ap=di(wo);var fi=f(X()),jo=f(E());var Be;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(Be||(Be={}));var be=f(I()),h=f(E()),Lo=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Ke=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),g={fontFamily:Ke,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},pt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Lo),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",g.textDecoration,"inherit")},ft={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Lo),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",g.textDecoration,"inherit")},ht={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",g.textDecoration,"inherit")},mt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",g.textDecoration,"inherit")},yt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",g.textDecoration,"inherit")},he={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",g.textDecoration,"inherit")},gt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",g.textDecoration,"inherit")},xt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",g.textDecoration,"inherit")},vt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",g.textDecoration,"inherit")},Oe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",g.textDecoration,"inherit")},Po=be.css`
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),xo=/'/g,vo=/"/g,So=/^(?:script|style|textarea|title)$/i,ci=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),_o=ci(1),Co=ci(2),wo=ci(3),cr=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),bo=new WeakMap,dt=ut.createTreeWalker(ut,129);function To(e,t){if(!li(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return mo!==void 0?mo.createHTML(t):t}var ld=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=ar;for(let a=0;a<r;a++){let l=e[a],c,d,u=-1,p=0;for(;p<l.length&&(s.lastIndex=p,d=s.exec(l),d!==null);)p=s.lastIndex,s===ar?d[1]==="!--"?s=yo:d[1]!==void 0?s=go:d[2]!==void 0?(So.test(d[2])&&(i=RegExp("</"+d[2],"g")),s=ct):d[3]!==void 0&&(s=ct):s===ct?d[0]===">"?(s=i??ar,u=-1):d[1]===void 0?u=-2:(u=s.lastIndex-d[2].length,c=d[1],s=d[3]===void 0?ct:d[3]==='"'?vo:xo):s===vo||s===xo?s=ct:s===yo||s===go?s=ar:(s=ct,i=void 0);let y=s===ct&&e[a+1].startsWith("/>")?" ":"";o+=s===ar?l+sd:u>=0?(n.push(c),l.slice(0,u)+Eo+l.slice(u)+Qe+y):l+Qe+(u===-2?a:y)}return[To(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},dr=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,a=t.length-1,l=this.parts,[c,d]=ld(t,r);if(this.el=e.createElement(c,n),dt.currentNode=this.el.content,r===2||r===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(i=dt.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let u of i.getAttributeNames())if(u.endsWith(Eo)){let p=d[s++],y=i.getAttribute(u).split(Qe),v=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:v[2],strings:y,ctor:v[1]==="."?ni:v[1]==="?"?ii:v[1]==="@"?oi:Ht}),i.removeAttribute(u)}else u.startsWith(Qe)&&(l.push({type:6,index:o}),i.removeAttribute(u));if(So.test(i.tagName)){let u=i.textContent.split(Qe),p=u.length-1;if(p>0){i.textContent=Hr?Hr.emptyScript:"";for(let y=0;y<p;y++)i.append(u[y],Vr()),dt.nextNode(),l.push({type:2,index:++o});i.append(u[p],Vr())}}}else if(i.nodeType===8)if(i.data===Ao)l.push({type:2,index:o});else{let u=-1;for(;(u=i.data.indexOf(Qe,u+1))!==-1;)l.push({type:7,index:o}),u+=Qe.length-1}o++}}static createElement(t,r){let n=ut.createElement("template");return n.innerHTML=t,n}};function Ft(e,t,r=e,n){if(t===cr)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=lr(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=Ft(e,i._$AS(e,t.values),i,n)),t}var ri=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??ut).importNode(r,!0);dt.currentNode=i;let o=dt.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new zr(o,o.nextSibling,this,t):l.type===1?c=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(c=new si(o,this,t)),this._$AV.push(c),l=n[++a]}s!==l?.index&&(o=dt.nextNode(),s++)}return dt.currentNode=ut,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},zr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Ft(this,t,r),lr(t)?t===K||t==null||t===""?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==cr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ad(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==K&&lr(this._$AH)?this._$AA.nextSibling.data=t:this.T(ut.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=dr.createElement(To(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new ri(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=bo.get(t.strings);return r===void 0&&bo.set(t.strings,r=new dr(t)),r}k(t){li(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of t)i===r.length?r.push(n=new e(this.O(Vr()),this.O(Vr()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=ho(t).nextSibling;ho(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Ht=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,o){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=K}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=Ft(this,t,r,0),s=!lr(t)||t!==this._$AH&&t!==cr,s&&(this._$AH=t);else{let a=t,l,c;for(t=o[0],l=0;l<o.length-1;l++)c=Ft(this,a[n+l],r,l),c===cr&&(c=this._$AH[l]),s||=!lr(c)||c!==this._$AH[l],c===K?t=K:t!==K&&(t+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!i&&this.j(t)}j(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ni=class extends Ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===K?void 0:t}},ii=class extends Ht{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==K)}},oi=class extends Ht{constructor(t,r,n,i,o){super(t,r,n,i,o),this.type=5}_$AI(t,r=this){if((t=Ft(this,t,r,0)??K)===cr)return;let n=this._$AH,i=t===K&&n!==K||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==K&&(n===K||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},si=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Ft(this,t)}};var cd=ai.litHtmlPolyfillSupport;cd?.(dr,zr),(ai.litHtmlVersions??=[]).push("3.3.3");var Te=e=>e??K;var Ro=Symbol.for(""),dd=e=>{if(e?.r===Ro)return e?._$litStatic$},di=e=>({_$litStatic$:e,r:Ro});var Oo=new Map,ui=e=>(t,...r)=>{let n=r.length,i,o,s=[],a=[],l,c=0,d=!1;for(;c<n;){for(l=t[c];c<n&&(o=r[c],(i=dd(o))!==void 0);)l+=i+t[++c],d=!0;c!==n&&a.push(o),s.push(l),c++}if(c===n&&s.push(t[n]),d){let u=s.join("$$lit$$");(t=Oo.get(u))===void 0&&(s.raw=s,Oo.set(u,t=s)),r=a}return e(t,...r)},pi=ui(_o),np=ui(Co),ip=ui(wo);var fi=f(X()),jo=f(E());var Be;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(Be||(Be={}));var be=f(I()),h=f(E()),Lo=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Ke=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),g={fontFamily:Ke,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},pt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Lo),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",g.textDecoration,"inherit")},ft={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Lo),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",g.textDecoration,"inherit")},ht={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",g.textDecoration,"inherit")},mt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",g.textDecoration,"inherit")},yt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",g.textDecoration,"inherit")},he={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",g.textDecoration,"inherit")},gt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",g.textDecoration,"inherit")},xt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",g.textDecoration,"inherit")},vt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",g.textDecoration,"inherit")},Oe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ke),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",g.textDecoration,"inherit")},Po=be.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
5
|
font-family: ${pt.fontFamily};
|
|
6
6
|
font-size: ${pt.fontSize};
|
|
@@ -106,11 +106,11 @@
|
|
|
106
106
|
vertical-align: inherit;
|
|
107
107
|
}
|
|
108
108
|
`;var zo=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},J=class extends jo.FtLitElement{constructor(){super(...arguments),this.variant=Be.body1}render(){return this.element?pi`
|
|
109
|
-
<${
|
|
109
|
+
<${di(this.element)}
|
|
110
110
|
part="text"
|
|
111
111
|
class="ft-typography ft-typography--${this.variant}">
|
|
112
112
|
<slot></slot>
|
|
113
|
-
</${
|
|
113
|
+
</${di(this.element)}>
|
|
114
114
|
`:pi`
|
|
115
115
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
116
116
|
`}};J.styles=[Po,ko,Io,Do,Mo,$o,Uo,Bo,Fo,Ho,Vo];zo([(0,fi.property)()],J.prototype,"element",void 0);zo([(0,fi.property)()],J.prototype,"variant",void 0);var Ko=f(E());var Wo={"ft-typography":J};(0,Ko.customElements)(Wo);var jr=f(E()),Go=f(I()),hi={outlineColor:jr.FtCssVariableFactory.extend("--ft-reader-internal-link-outline-color","",jr.designSystemVariables.colorPrimary)},qo=Go.css`
|
|
@@ -126,13 +126,13 @@
|
|
|
126
126
|
text-decoration: none;
|
|
127
127
|
color: inherit;
|
|
128
128
|
}
|
|
129
|
-
`;var Qo=f(I()),Gr=f(X()),es=f(bt());var Wr=f(E()),Jo=f(X());var Yo;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change",e.requestedTopicNotFound="requested-topic-not-found",e.requestedTopicFiltered="requested-topic-filtered"})(Yo||(Yo={}));var Zo;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Zo||(Zo={}));var
|
|
129
|
+
`;var Qo=f(I()),Gr=f(X()),es=f(bt());var Wr=f(E()),Jo=f(X());var Yo;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change",e.requestedTopicNotFound="requested-topic-not-found",e.requestedTopicFiltered="requested-topic-filtered"})(Yo||(Yo={}));var Zo;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Zo||(Zo={}));var ud=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},yi=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},mi=Symbol("registerInterval"),pd=(0,Wr.applyMixinOnce)(Symbol("toFtReaderComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=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[mi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[mi]):this.dispatchEvent(new yi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=mi,ud([(0,Jo.state)()],r.prototype,"stateManager",void 0),r}),Vt=class extends pd(Wr.FtLitElementRedux){};var ts=f(E()),Kr=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Re=class extends Vt{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let r=(0,es.classMap)({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return Qo.html`
|
|
130
130
|
<a class="${r}"
|
|
131
131
|
href="${(t=this.service)===null||t===void 0?void 0:t.getLinkWithFilter(this.tocId,this.pageNumber,this.section)}"
|
|
132
132
|
@click=${n=>this.onLinkClick(n)}>
|
|
133
133
|
<slot></slot>
|
|
134
134
|
</a>
|
|
135
|
-
`}onLinkClick(t){var r;!t.ctrlKey&&!t.metaKey&&(t.stopPropagation(),t.preventDefault(),performance.mark(`fluid_topics__reader_link_click__${this.tocId}`),(r=this.stateManager)===null||r===void 0||r.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}};Re.styles=qo;Kr([(0,Gr.property)()],Re.prototype,"tocId",void 0);Kr([(0,Gr.property)()],Re.prototype,"section",void 0);Kr([(0,ts.numberProperty)()],Re.prototype,"pageNumber",void 0);Kr([(0,Gr.property)({type:Boolean})],Re.prototype,"removeStyle",void 0);var ns=f(E());var rs={"ft-reader-internal-link":Re};(0,ns.customElements)(rs);var je=f(E());var
|
|
135
|
+
`}onLinkClick(t){var r;!t.ctrlKey&&!t.metaKey&&(t.stopPropagation(),t.preventDefault(),performance.mark(`fluid_topics__reader_link_click__${this.tocId}`),(r=this.stateManager)===null||r===void 0||r.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}};Re.styles=qo;Kr([(0,Gr.property)()],Re.prototype,"tocId",void 0);Kr([(0,Gr.property)()],Re.prototype,"section",void 0);Kr([(0,ts.numberProperty)()],Re.prototype,"pageNumber",void 0);Kr([(0,Gr.property)({type:Boolean})],Re.prototype,"removeStyle",void 0);var ns=f(E());var rs={"ft-reader-internal-link":Re};(0,ns.customElements)(rs);var je=f(E());var us=f(I()),Q=f(X()),ps=f(bt()),ur=f(E());var cs=f(I()),G=f(E()),is=G.FtCssVariableFactory.extend("--ft-ripple-color","",G.designSystemVariables.colorContent),ie={color:is,backgroundColor:G.FtCssVariableFactory.extend("--ft-ripple-background-color","",is),opacityContentOnSurfacePressed:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:G.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},os=G.FtCssVariableFactory.extend("--ft-ripple-color","",G.designSystemVariables.colorPrimary),ss={color:os,backgroundColor:G.FtCssVariableFactory.extend("--ft-ripple-background-color","",os)},as=G.FtCssVariableFactory.extend("--ft-ripple-color","",G.designSystemVariables.colorSecondary),ls={color:as,backgroundColor:G.FtCssVariableFactory.extend("--ft-ripple-background-color","",as)},ds=cs.css`
|
|
136
136
|
:host {
|
|
137
137
|
display: contents;
|
|
138
138
|
}
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
opacity: ${ie.opacityContentOnSurfacePressed};
|
|
245
245
|
transform: translate(-50%, -50%) scale(1);
|
|
246
246
|
}
|
|
247
|
-
`;var
|
|
247
|
+
`;var de=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},U=class extends ur.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new ur.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new ur.Debouncer(10),this.moveRipple=t=>{var r,n;let{x:i,y:o}=this.getCoordinates(t),s=(n=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return us.html`
|
|
248
248
|
<style>
|
|
249
249
|
.ft-ripple .ft-ripple--effect {
|
|
250
250
|
left: ${this.originX}px;
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
<div class="ft-ripple--background"></div>
|
|
256
256
|
<div class="ft-ripple--effect"></div>
|
|
257
257
|
</div>
|
|
258
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",n,s),t.addEventListener("touchstart",i,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",o,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",n,s),t.removeEventListener("touchstart",i,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",o,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,n=t,i,o;return r.x!=null?{x:i,y:o}=r:n.touches!=null&&(i=n.touches[0].clientX,o=n.touches[0].clientY),{x:i,y:o}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};U.elementDefinitions={};U.styles=
|
|
258
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",n,s),t.addEventListener("touchstart",i,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",o,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",n,s),t.removeEventListener("touchstart",i,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",o,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,n=t,i,o;return r.x!=null?{x:i,y:o}=r:n.touches!=null&&(i=n.touches[0].clientX,o=n.touches[0].clientY),{x:i,y:o}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};U.elementDefinitions={};U.styles=ds;de([(0,Q.property)({type:Boolean})],U.prototype,"primary",void 0);de([(0,Q.property)({type:Boolean})],U.prototype,"secondary",void 0);de([(0,Q.property)({type:Boolean})],U.prototype,"unbounded",void 0);de([(0,Q.property)({type:Boolean})],U.prototype,"activated",void 0);de([(0,Q.property)({type:Boolean})],U.prototype,"selected",void 0);de([(0,Q.property)({type:Boolean})],U.prototype,"disabled",void 0);de([(0,Q.state)()],U.prototype,"hovered",void 0);de([(0,Q.state)()],U.prototype,"focused",void 0);de([(0,Q.state)()],U.prototype,"pressed",void 0);de([(0,Q.state)()],U.prototype,"rippling",void 0);de([(0,Q.state)()],U.prototype,"originX",void 0);de([(0,Q.state)()],U.prototype,"originY",void 0);de([(0,Q.query)(".ft-ripple")],U.prototype,"ripple",void 0);de([(0,Q.query)(".ft-ripple--effect")],U.prototype,"rippleEffect",void 0);var hs=f(E());var fs={"ft-ripple":U};(0,hs.customElements)(fs);var Ql=f(I()),Ce=f(X()),_e=f(E());var ms=f(I()),et=f(E()),pr={distance:et.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:et.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:et.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:et.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",et.designSystemVariables.borderRadiusS),maxWidth:et.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},ys=ms.css`
|
|
259
259
|
.ft-tooltip--container {
|
|
260
260
|
display: block;
|
|
261
261
|
}
|
|
@@ -286,15 +286,15 @@
|
|
|
286
286
|
position: relative;
|
|
287
287
|
word-break: break-word;
|
|
288
288
|
}
|
|
289
|
-
`;var xs=["top","right","bottom","left"],gs=["start","end"],xi=xs.reduce((e,t)=>e.concat(t,t+"-"+gs[0],t+"-"+gs[1]),[]),fr=Math.min,tt=Math.max,hr=Math.round;var Fe=e=>({x:e,y:e}),mu={left:"right",right:"left",bottom:"top",top:"bottom"};function vs(e,t,r){return tt(e,fr(t,r))}function qr(e,t){return typeof e=="function"?e(t):e}function mr(e){return e.split("-")[0]}function rt(e){return e.split("-")[1]}function vi(e){return e==="x"?"y":"x"}function bi(e){return e==="y"?"height":"width"}function Xr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Ei(e){return vi(Xr(e))}function bs(e,t,r){r===void 0&&(r=!1);let n=rt(e),i=Ei(e),o=bi(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=gi(s)),[s,gi(s)]}function Es(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function gi(e){let t=mr(e);return mu[t]+e.slice(t.length)}function yu(e){var t,r,n,i;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(i=e.left)!=null?i:0}}function As(e){return typeof e!="number"?yu(e):{top:e,right:e,bottom:e,left:e}}function Et(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Ss(e,t,r){let{reference:n,floating:i}=e,o=Xr(t),s=Ei(t),a=bi(s),l=mr(t),c=o==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2,y;switch(l){case"top":y={x:u,y:n.y-i.height};break;case"bottom":y={x:u,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:d};break;case"left":y={x:n.x-i.width,y:d};break;default:y={x:n.x,y:n.y}}let v=rt(t);return v&&(y[s]+=p*(v==="end"?1:-1)*(r&&c?-1:1)),y}async function _s(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=qr(t,e),v=As(y),x=a[p?d==="floating"?"reference":"floating":d],S=Et(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(x)))==null||r?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),k=d==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),w=await(o.isElement==null?void 0:o.isElement(b))&&await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1},R=Et(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:k,offsetParent:b,strategy:l}):k);return{top:(S.top-R.top+v.top)/w.y,bottom:(R.bottom-S.bottom+v.bottom)/w.y,left:(S.left-R.left+v.left)/w.x,right:(R.right-S.right+v.right)/w.x}}var gu=50,Cs=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:_s},l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ss(c,n,l),p=n,y=0,v={};for(let A=0;A<o.length;A++){let x=o[A];if(!x)continue;let{name:S,fn:k}=x,{x:b,y:w,data:R,reset:j}=await k({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:v,rects:c,platform:a,elements:{reference:e,floating:t}});u=b??u,d=w??d,v[S]={...v[S],...R},j&&y<gu&&(y++,typeof j=="object"&&(j.placement&&(p=j.placement),j.rects&&(c=j.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):j.rects),{x:u,y:d}=Ss(c,p,l)),A=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:v}};function xu(e,t,r){return(e?[...r.filter(i=>rt(i)===e),...r.filter(i=>rt(i)!==e)]:r.filter(i=>mr(i)===i)).filter(i=>e?rt(i)===e||(t?Es(i)!==i:!1):!0)}var ws=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=xi,autoAlignment:y=!0,...v}=qr(e,t),A=d!==void 0||p===xi?xu(d||null,y,p):p,x=((r=s.autoPlacement)==null?void 0:r.index)||0,S=A[x];if(S==null)return{};if(a!==S)return{reset:{placement:A[0]}};let k=await l.detectOverflow(t,v),b=bs(S,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),w=[k[mr(S)],k[b[0]],k[b[1]]],R=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:S,overflows:w}],j=A[x+1];if(j)return{data:{index:x+1,overflows:R},reset:{placement:j}};let B=R.map(ve=>{let lt=rt(ve.placement);return[ve.placement,lt&&u?ve.overflows.slice(0,2).reduce((eu,tu)=>eu+tu,0):ve.overflows[0],ve.overflows]}).sort((ve,lt)=>ve[1]-lt[1]),sr=((i=B.filter(ve=>ve[2].slice(0,rt(ve[0])?2:3).every(lt=>lt<=0))[0])==null?void 0:i[0])||B[0][0];return sr!==a?{data:{index:x+1,overflows:R},reset:{placement:sr}}:{}}}};var Ts=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:k=>{let{x:b,y:w}=k;return{x:b,y:w}}},...c}=qr(e,t),u={x:r,y:n},d=await o.detectOverflow(t,c),p=Xr(i),y=vi(p),v=u[y],A=u[p],x=(k,b)=>vs(b+d[k==="y"?"top":"left"],b,b-d[k==="y"?"bottom":"right"]);s&&(v=x(y,v)),a&&(A=x(p,A));let S=l.fn({...t,[y]:v,[p]:A});return{...S,data:{x:S.x-r,y:S.y-n,enabled:{[y]:s,[p]:a}}}}}};function Zr(){return typeof window<"u"}function St(e){return Rs(e)?(e.nodeName||"").toLowerCase():"#document"}function de(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ge(e){var t;return(t=(Rs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Rs(e){return Zr()?e instanceof Node||e instanceof de(e).Node:!1}function Ne(e){return Zr()?e instanceof Element||e instanceof de(e).Element:!1}function qe(e){return Zr()?e instanceof HTMLElement||e instanceof de(e).HTMLElement:!1}function Os(e){return!Zr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof de(e).ShadowRoot}function yr(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=Le(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function Ns(e){return/^(table|td|th)$/.test(St(e))}function gr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var vu=/transform|translate|scale|rotate|perspective|filter/,bu=/paint|layout|strict|content/,At=e=>!!e&&e!=="none",Ai;function zt(e){let t=Ne(e)?Le(e):e;return At(t.transform)||At(t.translate)||At(t.scale)||At(t.rotate)||At(t.perspective)||!Jr()&&(At(t.backdropFilter)||At(t.filter))||vu.test(t.willChange||"")||bu.test(t.contain||"")}function Ls(e){let t=nt(e);for(;qe(t)&&!jt(t);){if(zt(t))return t;if(gr(t))return null;t=nt(t)}return null}function Jr(){return Ai==null&&(Ai=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ai}function jt(e){return/^(html|body|#document)$/.test(St(e))}function Le(e){return de(e).getComputedStyle(e)}function xr(e){return Ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nt(e){if(St(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Os(e)&&e.host||Ge(e);return Os(t)?t.host:t}function Ps(e){let t=nt(e);return jt(t)?(e.ownerDocument||e).body:qe(t)&&yr(t)?t:Ps(t)}function Yr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=Ps(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=de(i);if(o){let a=Qr(s);return t.concat(s,s.visualViewport||[],yr(i)?i:[],a&&r?Yr(a):[])}else return t.concat(i,Yr(i,[],r))}function Qr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ds(e){let t=Le(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=qe(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=hr(r)!==o||hr(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function Ms(e){return Ne(e)?e:e.contextElement}function Wt(e){let t=Ms(e);if(!qe(t))return Fe(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=Ds(t),s=(o?hr(r.width):r.width)/n,a=(o?hr(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Eu=Fe(0);function $s(e){let t=de(e);return!Jr()||!t.visualViewport?Eu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Au(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===de(e)}function vr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=Ms(e),s=Fe(1);t&&(n?Ne(n)&&(s=Wt(n)):s=Wt(e));let a=Au(o,r,n)?$s(o):Fe(0),l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o&&n){let p=de(o),y=Ne(n)?de(n):n,v=p,A=Qr(v);for(;A&&y!==v;){let x=Wt(A),S=A.getBoundingClientRect(),k=Le(A),b=S.left+(A.clientLeft+parseFloat(k.paddingLeft))*x.x,w=S.top+(A.clientTop+parseFloat(k.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=b,c+=w,v=de(A),A=Qr(v)}}return Et({width:u,height:d,x:l,y:c})}function en(e,t){let r=xr(e).scrollLeft;return t?t.left+r:vr(Ge(e)).left+r}function Us(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-en(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function Su(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o=i==="fixed",s=Ge(n),a=t?gr(t.floating):!1;if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=Fe(1),u=Fe(0),d=qe(n);if((d||!o)&&((St(n)!=="body"||yr(s))&&(l=xr(n)),d)){let y=vr(n);c=Wt(n),u.x=y.x+n.clientLeft,u.y=y.y+n.clientTop}let p=s&&!d&&!o?Us(s,l):Fe(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function _u(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Cu(e){let t=xr(e),r=e.ownerDocument.body,n=tt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=tt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),o=-t.scrollLeft+en(e),s=-t.scrollTop;return Le(r).direction==="rtl"&&(o+=tt(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:o,y:s}}var wu=25;function Tu(e,t,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=de(e),o=Ge(e),s=i.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!Jr()||t==="fixed";n?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(en(o)<=0){let p=o.ownerDocument,y=p.body,v=getComputedStyle(y),A=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(o.clientWidth-y.clientWidth-A),S=getComputedStyle(o).scrollbarGutter==="stable both-edges"?x/2:x;S<=wu&&(a-=S)}return{width:a,height:l,x:c,y:u}}function Ou(e,t){let r=vr(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=Wt(e),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=n*o.y;return{width:s,height:a,x:l,y:c}}function ks(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=Tu(e,r,t);else if(t==="document")n=Cu(Ge(e));else if(Ne(t))n=Ou(t,r);else{let i=$s(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Et(n)}function Ru(e,t){let r=t.get(e);if(r)return r;let n=Yr(e,[],!1).filter(a=>Ne(a)&&St(a)!=="body"),i=null,o=Le(e).position==="fixed",s=o?nt(e):e;for(;Ne(s)&&!jt(s);){let a=Le(s),l=zt(s),c=i?i.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(d=>d!==s):i=a,s=nt(s)}return t.set(e,n),n}function Nu(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?gr(t)?[]:Ru(t,this._c):[].concat(r),n],a=ks(t,s[0],i),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let y=ks(t,s[p],i);l=tt(y.top,l),c=fr(y.right,c),u=fr(y.bottom,u),d=tt(y.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function Lu(e){let{width:t,height:r}=Ds(e);return{width:t,height:r}}function Pu(e,t,r){let n=qe(t),i=Ge(t),o=r==="fixed",s=vr(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=Fe(0);if((n||!o)&&((St(t)!=="body"||yr(i))&&(a=xr(t)),n)){let p=vr(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!n&&i&&(l.x=en(i));let c=i&&!n&&!o?Us(i,a):Fe(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function Si(e){return Le(e).position==="static"}function Is(e,t){if(!qe(e)||Le(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ge(e)===r&&(r=r.ownerDocument.body),r}function Bs(e,t){let r=de(e);if(gr(e))return r;if(!qe(e)){let i=nt(e);for(;i&&!jt(i);){if(Ne(i)&&!Si(i))return i;i=nt(i)}return r}let n=Is(e,t);for(;n&&Ns(n)&&Si(n);)n=Is(n,t);return n&&jt(n)&&Si(n)&&!zt(n)?r:n||Ls(e)||r}var ku=async function(e){let t=this.getOffsetParent||Bs,r=this.getDimensions,n=await r(e.floating);return{reference:Pu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Iu(e){return Le(e).direction==="rtl"}var tn={convertOffsetParentRelativeRectToViewportRelativeRect:Su,getDocumentElement:Ge,getClippingRect:Nu,getOffsetParent:Bs,getElementRects:ku,getClientRects:_u,getDimensions:Lu,getScale:Wt,isElement:Ne,isRTL:Iu};var Fs=ws,Hs=Ts;var Vs=(e,t,r)=>{let n=new Map,i=r??{},o={...tn,...i.platform,_c:n};return Cs(e,t,{...i,platform:o})};function zs(e){return Du(e)}function _i(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Du(e){for(let t=e;t;t=_i(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=_i(e);t;t=_i(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||zt(r)||t.tagName==="BODY"))return t}return null}async function js(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},Vs(e,t,{strategy:n.strategy,platform:{...tn,getOffsetParent:i=>tn.getOffsetParent(i,zs)},middleware:[Hs({crossAxis:!0}),Fs({allowedPlacements:[n.placement]})]})}var tr=f(E());var Ki=f(X());var Ws=f(X(),1);var Ci=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},Mu=e=>({fromAttribute:t=>{if(t==null)return br(e);try{return JSON.parse(t)}catch{return br(e)}},toAttribute:t=>JSON.stringify(t)});function Ks(e,t){return(0,Ws.property)({type:Object,converter:Mu(e),hasChanged:Er,...t??{}})}function $u(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Kt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Kt(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=s=>Object.keys(s).filter(a=>s[a]!=null),o=i(e);if(r=o.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){let s=o[n];if(!Kt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Kt(e,t){try{return $u(e,t)}catch{return!1}}function Er(e,t){return!Kt(e,t)}function br(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function rn(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let i=t(n);return i[e]=!0,i}}var Gs=f(X(),1);var wi=e=>{let t=e??{};return(r,n)=>{var i;let o={hasChanged:Er,attribute:!1,...t};(0,Gs.property)(o)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:(a=>a[n]),store:t.store})}};var nn=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var _t=f(X(),1);var on=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of n)try{await s()}catch(a){i(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Xs=f(I(),1);var sn=globalThis,Uu=sn.ShadowRoot&&(sn.ShadyCSS===void 0||sn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var qs=(e,t)=>{if(Uu)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=sn.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var an=class extends Xs.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return qs(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){Ci(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Ys(e,t,...r){var n;let i=e.querySelector(t);for(let o of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(o);return i}var qt=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},ea,Zs=Symbol("constructorPrototype"),Js=Symbol("constructorName"),ta=Symbol("exportpartsDebouncer"),Qs=Symbol("dynamicDependenciesLoaded"),Gt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Gt.eventName="exportparts-updated";var He=class extends an{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ea]=new on(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[ta].run(()=>{var i,o;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Js]=this.constructor.name,this[Zs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Js]&&Object.setPrototypeOf(this,this[Zs])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Qs]||(r[Qs]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Gt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Gt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Gt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let o=[...i??[],n];r=Ys(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(t){var r,n,i,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let y=(s=(n=p.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&s!==void 0?s:[],v=(a=(i=p.getAttribute("exportparts"))===null||i===void 0?void 0:i.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],A=[...y,...v].filter(l).map(x=>x.trim());for(let x of A)u.add(x)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(y=>`${p}:${y}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};ea=ta;qt([(0,_t.property)()],He.prototype,"exportpartsPrefix",void 0);qt([Ks([])],He.prototype,"exportpartsPrefixes",void 0);qt([(0,_t.property)({reflect:!0})],He.prototype,"exportparts",void 0);qt([(0,_t.property)()],He.prototype,"customStylesheet",void 0);qt([(0,_t.property)()],He.prototype,"elementToFocus",void 0);qt([(0,_t.state)()],He.prototype,"useAdoptedStyleSheets",void 0);function ln(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Ar=Symbol("internalReduxEventsUnsubscribers"),it=Symbol("internalStoresUnsubscribers"),Ct=Symbol("internalStores"),Bu=rn(Symbol("withRedux"),function(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Ct].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ct].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ct].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ct].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Ct].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ct].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[it].has(s.store):this[it].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[it].set(s,a.subscribe(()=>this.updateFromStores())),this[Ar].set(s,[]),ln(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[Ar].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[it].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[it].has(s)&&this[it].get(s)(),this[it].delete(s),(a=this[Ar].get(s))===null||a===void 0||a.forEach(l=>l()),this[Ar].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=it,r=Ct,n=Ar,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),ra=class extends Bu(He){};function ee(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Fu=typeof Symbol=="function"&&Symbol.observable||"@@observable",na=Fu,Ti=()=>Math.random().toString(36).substring(7).split("").join("."),Hu={INIT:`@@redux/INIT${Ti()}`,REPLACE:`@@redux/REPLACE${Ti()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ti()}`},cn=Hu;function un(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Oi(e,t,r){if(typeof e!="function")throw new Error(ee(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ee(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ee(1));return r(Oi)(e,t)}let n=e,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((x,S)=>{s.set(S,x)}))}function u(){if(l)throw new Error(ee(3));return i}function d(x){if(typeof x!="function")throw new Error(ee(4));if(l)throw new Error(ee(5));let S=!0;c();let k=a++;return s.set(k,x),function(){if(S){if(l)throw new Error(ee(6));S=!1,c(),s.delete(k),o=null}}}function p(x){if(!un(x))throw new Error(ee(7));if(typeof x.type>"u")throw new Error(ee(8));if(typeof x.type!="string")throw new Error(ee(17));if(l)throw new Error(ee(9));try{l=!0,i=n(i,x)}finally{l=!1}return(o=s).forEach(k=>{k()}),x}function y(x){if(typeof x!="function")throw new Error(ee(10));n=x,p({type:cn.REPLACE})}function v(){let x=d;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(ee(11));function k(){let w=S;w.next&&w.next(u())}return k(),{unsubscribe:x(k)}},[na](){return this}}}return p({type:cn.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:y,[na]:v}}function Vu(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:cn.INIT})>"u")throw new Error(ee(12));if(typeof r(void 0,{type:cn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ee(13))})}function ia(e){let t=Object.keys(e),r={};for(let s=0;s<t.length;s++){let a=t[s];typeof e[a]=="function"&&(r[a]=e[a])}let n=Object.keys(r),i,o;try{Vu(r)}catch(s){o=s}return function(a={},l){if(o)throw o;let c=!1,u={};for(let d=0;d<n.length;d++){let p=n[d],y=r[p],v=a[p],A=y(v,l);if(typeof A>"u"){let x=l&&l.type;throw new Error(ee(14))}u[p]=A,c=c||A!==v}return c=c||n.length!==Object.keys(a).length,c?u:a}}function Sr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function oa(...e){return t=>(r,n)=>{let i=t(r,n),o=()=>{throw new Error(ee(15))},s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=Sr(...a)(i.dispatch),{...i,dispatch:o}}}function sa(e){return un(e)&&"type"in e&&typeof e.type=="string"}var ma=Symbol.for("immer-nothing"),aa=Symbol.for("immer-draftable"),ne=Symbol.for("immer-state");function Pe(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var me=Object,Yt=me.getPrototypeOf,hn="constructor",bn="prototype",Pi="configurable",mn="enumerable",pn="writable",_r="value",Ve=e=>!!e&&!!e[ne];function ye(e){return e?ya(e)||An(e)||!!e[aa]||!!e[hn]?.[aa]||Sn(e)||_n(e):!1}var zu=me[bn][hn].toString(),la=new WeakMap;function ya(e){if(!e||!Fi(e))return!1;let t=Yt(e);if(t===null||t===me[bn])return!0;let r=me.hasOwnProperty.call(t,hn)&&t[hn];if(r===Object)return!0;if(!Xt(r))return!1;let n=la.get(r);return n===void 0&&(n=Function.toString.call(r),la.set(r,n)),n===zu}function En(e,t,r=!0){Tr(e)===0?(r?Reflect.ownKeys(e):me.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Tr(e){let t=e[ne];return t?t.type_:An(e)?1:Sn(e)?2:_n(e)?3:0}var Ri=(e,t,r=Tr(e))=>r===2?e.has(t):me[bn].hasOwnProperty.call(e,t),ki=(e,t,r=Tr(e))=>r===2?e.get(t):e[t],yn=(e,t,r,n=Tr(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function ju(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var An=Array.isArray,Sn=e=>e instanceof Map,_n=e=>e instanceof Set,Fi=e=>typeof e=="object",Xt=e=>typeof e=="function",Ni=e=>typeof e=="boolean";function Wu(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Xe=e=>e.copy_||e.base_;var Hi=e=>e.modified_?e.copy_:e.base_;function Ii(e,t){if(Sn(e))return new Map(e);if(_n(e))return new Set(e);if(An(e))return Array[bn].slice.call(e);let r=ya(e);if(t===!0||t==="class_only"&&!r){let n=me.getOwnPropertyDescriptors(e);delete n[ne];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){let s=i[o],a=n[s];a[pn]===!1&&(a[pn]=!0,a[Pi]=!0),(a.get||a.set)&&(n[s]={[Pi]:!0,[pn]:!0,[mn]:a[mn],[_r]:e[s]})}return me.create(Yt(e),n)}else{let n=Yt(e);if(n!==null&&r)return{...e};let i=me.create(n);return me.assign(i,e)}}function Vi(e,t=!1){return Cn(e)||Ve(e)||!ye(e)||(Tr(e)>1&&me.defineProperties(e,{set:dn,add:dn,clear:dn,delete:dn}),me.freeze(e),t&&En(e,(r,n)=>{Vi(n,!0)},!1)),e}function Ku(){Pe(2)}var dn={[_r]:Ku};function Cn(e){return e===null||!Fi(e)?!0:me.isFrozen(e)}var gn="MapSet",Di="Patches",ca="ArrayMethods",ga={};function wt(e){let t=ga[e];return t||Pe(0,e),t}var ua=e=>!!ga[e];var Cr,xa=()=>Cr,Gu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ua(gn)?wt(gn):void 0,arrayMethodsPlugin_:ua(ca)?wt(ca):void 0});function da(e,t){t&&(e.patchPlugin_=wt(Di),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Mi(e){$i(e),e.drafts_.forEach(qu),e.drafts_=null}function $i(e){e===Cr&&(Cr=e.parent_)}var pa=e=>Cr=Gu(Cr,e);function qu(e){let t=e[ne];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function fa(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[ne].modified_&&(Mi(t),Pe(4)),ye(e)&&(e=ha(t,e));let{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[ne].base_,e,t)}else e=ha(t,r);return Xu(t,e,!0),Mi(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ma?e:void 0}function ha(e,t){if(Cn(t))return t;let r=t[ne];if(!r)return xn(t,e.handledSet_,e);if(!wn(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Ea(r,e)}return r.copy_}function Xu(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Vi(t,r)}function va(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var wn=(e,t)=>e.scope_===t,Yu=[];function ba(e,t,r,n){let i=Xe(e),o=e.type_;if(n!==void 0&&ki(i,n,o)===t){yn(i,n,r,o);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;En(i,(l,c)=>{if(Ve(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let s=e.draftLocations_.get(t)??Yu;for(let a of s)yn(i,a,r,o)}function Zu(e,t,r){e.callbacks_.push(function(i){let o=t;if(!o||!wn(o,i))return;i.mapSetPlugin_?.fixSetContents(o);let s=Hi(o);ba(e,o.draft_??o,s,r),Ea(o,i)})}function Ea(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let i=n.getPath(e);i&&n.generatePatches_(e,i,t)}va(e)}}function Ju(e,t,r){let{scope_:n}=e;if(Ve(r)){let i=r[ne];wn(i,n)&&i.callbacks_.push(function(){fn(e);let s=Hi(i);ba(e,r,s,t)})}else ye(r)&&e.callbacks_.push(function(){let o=Xe(e);e.type_===3?o.has(r)&&xn(r,n.handledSet_,n):ki(o,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&xn(ki(e.copy_,t,e.type_),n.handledSet_,n)})}function xn(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Ve(e)||t.has(e)||!ye(e)||Cn(e)||(t.add(e),En(e,(n,i)=>{if(Ve(i)){let o=i[ne];if(wn(o,r)){let s=Hi(o);yn(e,n,s,e.type_),va(o)}}else ye(i)&&xn(i,t,r)})),e}function Qu(e,t){let r=An(e),n={type_:r?1:0,scope_:t?t.scope_:xa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,o=vn;r&&(i=[n],o=wr);let{revoke:s,proxy:a}=Proxy.revocable(i,o);return n.draft_=a,n.revoke_=s,[a,n]}var vn={get(e,t){if(t===ne)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let i=Xe(e);if(!Ri(i,t,e.type_))return td(e,i,t);let o=i[t];if(e.finalized_||!ye(o)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Wu(t))return o;if(o===Li(e.base_,t)||ed(e,t,o)){fn(e);let s=e.type_===1?+t:t,a=Bi(e.scope_,o,e,s);return e.copy_[s]=a}return o},has(e,t){return t in Xe(e)},ownKeys(e){return Reflect.ownKeys(Xe(e))},set(e,t,r){let n=Aa(Xe(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let i=Li(Xe(e),t),o=i?.[ne];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(ju(r,i)&&(r!==void 0||Ri(e.base_,t,e.type_)))return!0;fn(e),Ui(e)}return e.copy_[t]===r&&(r!==void 0||Ri(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Ju(e,t,r)),!0},deleteProperty(e,t){return fn(e),Li(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ui(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Xe(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[pn]:!0,[Pi]:e.type_!==1||t!=="length",[mn]:n[mn],[_r]:r[t]}},defineProperty(){Pe(11)},getPrototypeOf(e){return Yt(e.base_)},setPrototypeOf(){Pe(12)}},wr={};for(let e in vn){let t=vn[e];wr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}wr.deleteProperty=function(e,t){return wr.set.call(this,e,t,void 0)};wr.set=function(e,t,r){return vn.set.call(this,e[0],t,r,e[0])};function Li(e,t){let r=e[ne];return(r?Xe(r):e)[t]}function ed(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!ye(r)||r[ne]?!1:e.baseRefs_.has(r)}function td(e,t,r){let n=Aa(t,r);return n?_r in n?n[_r]:n.get?.call(e.draft_):void 0}function Aa(e,t){if(!(t in e))return;let r=Yt(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Yt(r)}}function Ui(e){e.modified_||(e.modified_=!0,e.parent_&&Ui(e.parent_))}function fn(e){e.copy_||(e.assigned_=new Map,e.copy_=Ii(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var rd=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Xt(t)&&!Xt(r)){let o=r;r=t;let s=this;return function(l=o,...c){return s.produce(l,u=>r.call(this,u,...c))}}Xt(r)||Pe(6),n!==void 0&&!Xt(n)&&Pe(7);let i;if(ye(t)){let o=pa(this),s=Bi(o,t,void 0),a=!0;try{i=r(s),a=!1}finally{a?Mi(o):$i(o)}return da(o,n),fa(i,o)}else if(!t||!Fi(t)){if(i=r(t),i===void 0&&(i=t),i===ma&&(i=void 0),this.autoFreeze_&&Vi(i,!0),n){let o=[],s=[];wt(Di).generateReplacementPatches_(t,i,{patches_:o,inversePatches_:s}),n(o,s)}return i}else Pe(1,t)},this.produceWithPatches=(t,r)=>{if(Xt(t))return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let n,i;return[this.produce(t,r,(s,a)=>{n=s,i=a}),n,i]},Ni(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ni(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ni(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){ye(e)||Pe(8),Ve(e)&&(e=Sa(e));let t=pa(this),r=Bi(t,e,void 0);return r[ne].isManual_=!0,$i(t),r}finishDraft(e,t){let r=e&&e[ne];(!r||!r.isManual_)&&Pe(9);let{scope_:n}=r;return da(n,t),fa(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));let n=wt(Di).applyPatches_;return Ve(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Bi(e,t,r,n){let[i,o]=Sn(t)?wt(gn).proxyMap_(t,r):_n(t)?wt(gn).proxySet_(t,r):Qu(t,r);return(r?.scope_??xa()).drafts_.push(i),o.callbacks_=r?.callbacks_??[],o.key_=n,r&&n!==void 0?Zu(r,o,n):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),i}function Sa(e){return Ve(e)||Pe(10,e),_a(e)}function _a(e){if(!ye(e)||Cn(e))return e;let t=e[ne],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Ii(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Ii(e,!0);return En(r,(i,o)=>{yn(r,i,_a(o))},n),t&&(t.finalized_=!1),r}var nd=globalThis.Iterator,Jf=typeof nd?.from=="function";var id=new rd,zi=id.produce;function Ca(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var wa=Ca(),Ta=Ca;var od=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Sr:Sr.apply(null,arguments)},oh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},sd=e=>e&&typeof e.match=="function";function ot(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Ye(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>sa(n)&&n.type===e,r}var Pa=class Or extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Or.prototype)}static get[Symbol.species](){return Or}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Or(...t[0].concat(this)):new Or(...t.concat(this))}};function Oa(e){return ye(e)?zi(e,()=>{}):e}function Tn(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function ad(e){return typeof e=="boolean"}var ld=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{},s=new Pa;return r&&(ad(r)?s.push(wa):s.push(Ta(r.extraArgument))),s},cd="RTK_autoBatch";var Ra=e=>t=>{setTimeout(t,e)},ud=(e,t)=>r=>{let n=!1,i=()=>{n||(n=!0,cancelAnimationFrame(o),clearTimeout(s),r())},o=e(i),s=setTimeout(i,t)},dd=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,o=!1,s=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?ud(window.requestAnimationFrame,100):Ra(10):e.type==="callback"?e.queueNotification:Ra(e.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let d=()=>i&&u(),p=n.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return i=!u?.meta?.[cd],o=!i,o&&(s||(s=!0,l(c))),n.dispatch(u)}finally{i=!0}}})},pd=e=>function(r){let{autoBatch:n=!0}=r??{},i=new Pa(e);return n&&i.push(dd(typeof n=="object"?n:void 0)),i};function ka(e){let t=ld(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(un(r))l=ia(r);else throw new Error(Ye(1));let c;typeof n=="function"?c=n(t):c=t();let u=Sr;i&&(u=od({trace:!1,...typeof i=="object"&&i}));let d=oa(...c),p=pd(d),y=typeof a=="function"?a(p):p(),v=u(...y);return Oi(l,s,v)}function Ia(e){let t={},r=[],n,i={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(Ye(28));if(a in t)throw new Error(Ye(29));return t[a]=s,i},addAsyncThunk(o,s){return s.pending&&(t[o.pending.type]=s.pending),s.rejected&&(t[o.rejected.type]=s.rejected),s.fulfilled&&(t[o.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:o.settled,reducer:s.settled}),i},addMatcher(o,s){return r.push({matcher:o,reducer:s}),i},addDefaultCase(o){return n=o,i}};return e(i),[t,r,n]}function fd(e){return typeof e=="function"}function hd(e,t){let[r,n,i]=Ia(t),o;if(fd(e))o=()=>Oa(e());else{let a=Oa(e);o=()=>a}function s(a=o(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,d)=>{if(d)if(Ve(u)){let y=d(u,l);return y===void 0?u:y}else{if(ye(u))return zi(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},a)}return s.getInitialState=o,s}var md=(e,t)=>sd(e)?e.match(t):e(t);function yd(...e){return t=>e.some(r=>md(r,t))}var gd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",xd=(e=21)=>{let t="",r=e;for(;r--;)t+=gd[Math.random()*64|0];return t},vd=["name","message","stack","code"],ji=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Na=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},bd=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of vd)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},La="External signal was aborted",Ed=(()=>{function e(t,r,n){let i=ot(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=ot(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=ot(t+"/rejected",(l,c,u,d,p)=>({payload:d,error:(n&&n.serializeError||bd)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let y=n?.idGenerator?n.idGenerator(l):xd(),v=new AbortController,A,x;function S(b){x=b,v.abort()}c&&(c.aborted?S(La):c.addEventListener("abort",()=>S(La),{once:!0}));let k=(async function(){let b;try{let R=n?.condition?.(l,{getState:d,extra:p});if(Sd(R)&&(R=await R),R===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let j=new Promise((B,W)=>{A=()=>{W({name:"AbortError",message:x||"Aborted"})},v.signal.addEventListener("abort",A,{once:!0})});u(o(y,l,n?.getPendingMeta?.({requestId:y,arg:l},{getState:d,extra:p}))),b=await Promise.race([j,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:y,signal:v.signal,abort:S,rejectWithValue:((B,W)=>new ji(B,W)),fulfillWithValue:((B,W)=>new Na(B,W))})).then(B=>{if(B instanceof ji)throw B;return B instanceof Na?i(B.payload,y,l,B.meta):i(B,y,l)})])}catch(R){b=R instanceof ji?s(null,y,l,R.payload,R.meta):s(R,y,l)}finally{A&&v.signal.removeEventListener("abort",A)}return n&&!n.dispatchConditionRejection&&s.match(b)&&b.meta.condition||u(b),b})();return Object.assign(k,{abort:S,requestId:y,arg:l,unwrap(){return k.then(Ad)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:i,settled:yd(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Ad(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Sd(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Da=Symbol.for("rtk-slice-createasyncthunk"),ah={[Da]:Ed};function _d(e,t){return`${e}/${t}`}function Cd({creators:e}={}){let t=e?.asyncThunk?.[Da];return function(n){let{name:i,reducerPath:o=i}=n;if(!i)throw new Error(Ye(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(Td()):n.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,w){let R=typeof b=="string"?b:b.type;if(!R)throw new Error(Ye(12));if(R in l.sliceCaseReducersByType)throw new Error(Ye(13));return l.sliceCaseReducersByType[R]=w,c},addMatcher(b,w){return l.sliceMatchers.push({matcher:b,reducer:w}),c},exposeAction(b,w){return l.actionCreators[b]=w,c},exposeCaseReducer(b,w){return l.sliceCaseReducersByName[b]=w,c}};a.forEach(b=>{let w=s[b],R={reducerName:b,type:_d(i,b),createNotation:typeof n.reducers=="function"};Rd(w)?Ld(R,w,c,t):Od(R,w,c)});function u(){let[b={},w=[],R=void 0]=typeof n.extraReducers=="function"?Ia(n.extraReducers):[n.extraReducers],j={...b,...l.sliceCaseReducersByType};return hd(n.initialState,B=>{for(let W in j)B.addCase(W,j[W]);for(let W of l.sliceMatchers)B.addMatcher(W.matcher,W.reducer);for(let W of w)B.addMatcher(W.matcher,W.reducer);R&&B.addDefaultCase(R)})}let d=b=>b,p=new Map,y=new WeakMap,v;function A(b,w){return v||(v=u()),v(b,w)}function x(){return v||(v=u()),v.getInitialState()}function S(b,w=!1){function R(B){let W=B[b];return typeof W>"u"&&w&&(W=Tn(y,R,x)),W}function j(B=d){let W=Tn(p,w,()=>new WeakMap);return Tn(W,B,()=>{let sr={};for(let[ve,lt]of Object.entries(n.selectors??{}))sr[ve]=wd(lt,B,()=>Tn(y,B,x),w);return sr})}return{reducerPath:b,getSelectors:j,get selectors(){return j(R)},selectSlice:R}}let k={name:i,reducer:A,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...S(o),injectInto(b,{reducerPath:w,...R}={}){let j=w??o;return b.inject({reducerPath:j,reducer:A},R),{...k,...S(j,!0)}}};return k}}function wd(e,t,r,n){function i(o,...s){let a=t(o);return typeof a>"u"&&n&&(a=r()),e(a,...s)}return i.unwrapped=e,i}var Ma=Cd();function Td(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Od({type:e,reducerName:t,createNotation:r},n,i){let o,s;if("reducer"in n){if(r&&!Nd(n))throw new Error(Ye(17));o=n.reducer,s=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?ot(e,s):ot(e))}function Rd(e){return e._reducerDefinitionType==="asyncThunk"}function Nd(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Ld({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Ye(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=r,d=i(e,o,u);n.exposeAction(t,d),s&&n.addCase(d.fulfilled,s),a&&n.addCase(d.pending,a),l&&n.addCase(d.rejected,l),c&&n.addMatcher(d.settled,c),n.exposeCaseReducer(t,{fulfilled:s||On,pending:a||On,rejected:l||On,settled:c||On})}function On(){}var $a="listener",Ua="completed",Ba="cancelled",lh=`task-${Ba}`,ch=`task-${Ua}`,uh=`${$a}-${Ba}`,dh=`${$a}-${Ua}`;var{assign:Fa}=Object;var Wi="listenerMiddleware";var Pd=Fa(ot(`${Wi}/add`),{withTypes:()=>Pd}),ph=ot(`${Wi}/removeAll`),kd=Fa(ot(`${Wi}/remove`),{withTypes:()=>kd});function Ye(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Id=rn(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),Rn=class extends Id(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ha=class e extends Rn{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,o=window.ftReduxStores[n];if(ln(o))return o;if(i==null)return;let s=Ma({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=ka({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=br(s.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[i.name]=new e(s,a,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new nn,this.injectInto=(o,s)=>this.reduxSlice.injectInto(o,s),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let i=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(i));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Kt(p,u)||this.setState({[d]:i(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Nn=class{static format(t,r,n,i,o){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,i,!!o)):this.getIntlDateTime(t,r,n,i,!!o)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,i,o){let s=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:i?`${a} ${l}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Ln=f(E()),Dd="ft-app-info",Tt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Tt.eventName="authentication-change";var Rr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Rr.eventName="ui-locale-changed";var Md={session:(e,t)=>{(0,Ln.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>_.dispatchEvent(new Tt(t.payload)),0))}},_=Ln.FtReduxStore.get({name:Dd,reducers:Md,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Va=f(E()),Pn=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Vh=(0,Va.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(_)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,o;return((o=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1)?a=>Nn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Pn([(0,Ki.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Pn([(0,Ki.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Pn([wi({store:_.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),Pn([wi({store:_.name})],t.prototype,"uiLocale",void 0),t});var za;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(za||(za={}));var ja;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(ja||(ja={}));var Wa;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Wa||(Wa={}));var Ka;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Ka||(Ka={}));var Ga;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ga||(Ga={}));var qa;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(qa||(qa={}));var Xa;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Xa||(Xa={}));var Ya;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Ya||(Ya={}));var Za;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Za||(Za={}));var Ja;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Ja||(Ja={}));var Qa;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Qa||(Qa={}));var el;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(el||(el={}));var tl;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(tl||(tl={}));var rl;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(rl||(rl={}));var nl;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(nl||(nl={}));var il;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(il||(il={}));var ol;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(ol||(ol={}));var sl;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(sl||(sl={}));var al;(function(e){e.ASC="ASC",e.DESC="DESC"})(al||(al={}));var ll;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(ll||(ll={}));var cl;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(cl||(cl={}));var ul;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(ul||(ul={}));var dl;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(dl||(dl={}));var pl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(pl||(pl={}));var fl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(fl||(fl={}));var hl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(hl||(hl={}));var ml;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ml||(ml={}));var yl;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(yl||(yl={}));var q;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(q||(q={}));var Ee;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Ee||(Ee={}));var gl;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(gl||(gl={}));var xl;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(xl||(xl={}));var vl;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(vl||(vl={}));var bl;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(bl||(bl={}));var El;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(El||(El={}));var Al;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Al||(Al={}));var Sl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Sl||(Sl={}));var _l;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(_l||(_l={}));var Cl;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Cl||(Cl={}));var wl;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(wl||(wl={}));var Tl;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Tl||(Tl={}));var Ol;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Ol||(Ol={}));var $d={[q.PERSONAL_BOOK_SHARE_USER]:[q.PERSONAL_BOOK_USER],[q.HTML_EXPORT_USER]:[q.PERSONAL_BOOK_USER],[q.PDF_EXPORT_USER]:[q.PERSONAL_BOOK_USER],[q.KHUB_ADMIN]:[q.CONTENT_PUBLISHER],[q.ADMIN]:[q.KHUB_ADMIN,q.USERS_ADMIN,q.PORTAL_ADMIN,q.BEHAVIOR_DATA_USER],[q.GENERATIVE_AI_EXPORT_USER]:[q.GENERATIVE_AI_USER]};function Rl(e,t){return e===t||($d[e]??[]).some(r=>Rl(r,t))}function Gi(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Rl(n,t))}function Nl(e,...t){return e==null?!1:t.some(r=>Gi(e,r))}var $n=f(E());var qi=f(E());var Ot=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=_.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=_.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Zt=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Ot.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ot.await()}};var ge=class extends Zt{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new qi.CacheRegistry,this.cache=t?i.commonCache:new qi.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var kn=class extends ge{async listMySearches(){let{session:t}=_.getState();return Gi(t,q.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var In=class extends ge{async listMyBookmarks(){let t=_.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Dn=class extends ge{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=_.getState().session;return!!t?.sessionAuthenticated}};var Mn=class extends ge{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=_.getState().session;return!!t?.sessionAuthenticated}};var Ud="ft-user-assets",Bd={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(Ee).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:i}=t.payload;Yi(e,r,[...Xi(e,r),i]),Ll(e,r,1,n),Pl(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Yi(e,r,Xi(e,r).map(i=>i.id===n.id?n:i)),Pl(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;Yi(e,r,Xi(e,r).filter(o=>o.id!==i)),Ll(e,r,-1,n)}},kl={[Ee.SEARCHES]:"savedSearches",[Ee.BOOKMARKS]:"bookmarks",[Ee.BOOKS]:void 0,[Ee.COLLECTIONS]:void 0},Xi=(e,t)=>{var r;let n=kl[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Yi=(e,t,r)=>{let n=kl[t];n&&(e[n]=r)},Ll=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===Ee.BOOKMARKS&&n)){let o=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,o+r)}},Pl=(e,t)=>{let r=e.assetLabels.map(i=>i.title),n=t.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));e.assetLabels.push(...n)},oe=$n.FtReduxStore.get({name:Ud,reducers:Bd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ee).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Zi=class{constructor(t=new Dn,r=new Mn){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new In,this.savedSearchesService=new kn,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=_.getState();(0,$n.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),oe.actions.clearAssetCount(),oe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),oe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),oe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();oe.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();oe.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&oe.getState().assetCounts.allAsset[t]!==r.count&&oe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&oe.getState().assetCounts.bookmarkByMap[t]!==r.count&&oe.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(oe.getState().assetCounts.bookmarkByMap).length!==0;t===Ee.BOOKMARKS&&r&&oe.actions.clearBookmarkCountByMap(),oe.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;oe.actions.bookmarks(r)}}},Fd=new Zi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Fd);var Ji=class{addCommand(t,r=!1){_.commands.add(t,r)}consumeCommand(t){return _.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Ji;var Ae=f(E());var Il,Jt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Hd=Symbol("clearAfterUnitTest"),Un=class extends(0,Ae.withEventBus)(ge){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Il]=()=>{this.defaultMessages={},this.cache=new Ae.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=_.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,Ae.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let o=t.toLowerCase(),s=this.resolveContext(o);return new Ae.ParametrizedLabelResolver((i=this.defaultMessages[o])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof Ae.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Jt({loadedContexts:t})),this.dispatchEvent(new Jt({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Jt({loadedContexts:[t]})),this.dispatchEvent(new Jt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Ae.delay)(0).then(()=>n()).catch(()=>null)))}};Il=Hd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Un{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Un{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Qt=window.FluidTopicsI18nService,Bn=window.FluidTopicsCustomI18nService;var Dl=f(E()),Qi=class{highlightHtml(t,r,n){(0,Dl.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Qi;var Ml=f(E());var eo=class{isDate(t){var r,n,i,o;return(o=(n=((i=(r=_.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===t))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1}format(t,r){var n,i,o,s;if(t==null)return"";try{return Ml.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new eo;var $l=f(E());var Nr=class{static get(t,r){var n,i,o,s;let a=_.getState(),{lang:l,region:c}=(s=(i=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new $l.SearchPlaceConverter(a.baseUrl,t??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${c}`)}};var to=class{urlToSearchRequest(t){return Nr.get().parse(t)}searchRequestToUrl(t){return Nr.get().serialize(t)}};window.FluidTopicsUrlService=new to;var Ze=f(E());var Rt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};Rt.eventName="before-location-change";var Nt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Nt.eventName="change";var ro=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Ul=new ro;var Fn=class e extends Ze.WithEventBus{static build(){return new e(window.history,Ul,()=>window.location,!1)}constructor(t,r,n,i){var o,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(o=t.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Ze.deepEqual)(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 t=r=>(n,i,[o,s,a])=>{let l=new Rt(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...o,index:c,href:l.detail.nextLocation.href};n.apply(i,[u,s,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(t){this.addEventListener(Rt.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(Rt.eventName,t)}addHistoryChangeListener(t){this.addEventListener(Nt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Nt.eventName,t)}currentItem(){return(0,Ze.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Ze.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Ze.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Ze.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,o=t+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,n);)this.hasState(o)&&(i=o),o++;return i}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,o=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return o==null||o!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Fn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var Bl=f(I());var Fl=Bl.css`
|
|
290
|
-
`;var
|
|
289
|
+
`;var xs=["top","right","bottom","left"],gs=["start","end"],xi=xs.reduce((e,t)=>e.concat(t,t+"-"+gs[0],t+"-"+gs[1]),[]),fr=Math.min,tt=Math.max,hr=Math.round;var Fe=e=>({x:e,y:e}),fd={left:"right",right:"left",bottom:"top",top:"bottom"};function vs(e,t,r){return tt(e,fr(t,r))}function qr(e,t){return typeof e=="function"?e(t):e}function mr(e){return e.split("-")[0]}function rt(e){return e.split("-")[1]}function vi(e){return e==="x"?"y":"x"}function bi(e){return e==="y"?"height":"width"}function Xr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Ei(e){return vi(Xr(e))}function bs(e,t,r){r===void 0&&(r=!1);let n=rt(e),i=Ei(e),o=bi(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=gi(s)),[s,gi(s)]}function Es(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function gi(e){let t=mr(e);return fd[t]+e.slice(t.length)}function hd(e){var t,r,n,i;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(i=e.left)!=null?i:0}}function As(e){return typeof e!="number"?hd(e):{top:e,right:e,bottom:e,left:e}}function Et(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Ss(e,t,r){let{reference:n,floating:i}=e,o=Xr(t),s=Ei(t),a=bi(s),l=mr(t),c=o==="y",d=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2,y;switch(l){case"top":y={x:d,y:n.y-i.height};break;case"bottom":y={x:d,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:u};break;case"left":y={x:n.x-i.width,y:u};break;default:y={x:n.x,y:n.y}}let v=rt(t);return v&&(y[s]+=p*(v==="end"?1:-1)*(r&&c?-1:1)),y}async function _s(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:y=0}=qr(t,e),v=As(y),x=a[p?u==="floating"?"reference":"floating":u],S=Et(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(x)))==null||r?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),k=u==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),w=await(o.isElement==null?void 0:o.isElement(b))&&await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1},R=Et(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:k,offsetParent:b,strategy:l}):k);return{top:(S.top-R.top+v.top)/w.y,bottom:(R.bottom-S.bottom+v.bottom)/w.y,left:(S.left-R.left+v.left)/w.x,right:(R.right-S.right+v.right)/w.x}}var md=50,Cs=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:_s},l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=Ss(c,n,l),p=n,y=0,v={};for(let A=0;A<o.length;A++){let x=o[A];if(!x)continue;let{name:S,fn:k}=x,{x:b,y:w,data:R,reset:j}=await k({x:d,y:u,initialPlacement:n,placement:p,strategy:i,middlewareData:v,rects:c,platform:a,elements:{reference:e,floating:t}});d=b??d,u=w??u,v[S]={...v[S],...R},j&&y<md&&(y++,typeof j=="object"&&(j.placement&&(p=j.placement),j.rects&&(c=j.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):j.rects),{x:d,y:u}=Ss(c,p,l)),A=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:v}};function yd(e,t,r){return(e?[...r.filter(i=>rt(i)===e),...r.filter(i=>rt(i)!==e)]:r.filter(i=>mr(i)===i)).filter(i=>e?rt(i)===e||(t?Es(i)!==i:!1):!0)}var ws=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=t,{crossAxis:d=!1,alignment:u,allowedPlacements:p=xi,autoAlignment:y=!0,...v}=qr(e,t),A=u!==void 0||p===xi?yd(u||null,y,p):p,x=((r=s.autoPlacement)==null?void 0:r.index)||0,S=A[x];if(S==null)return{};if(a!==S)return{reset:{placement:A[0]}};let k=await l.detectOverflow(t,v),b=bs(S,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),w=[k[mr(S)],k[b[0]],k[b[1]]],R=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:S,overflows:w}],j=A[x+1];if(j)return{data:{index:x+1,overflows:R},reset:{placement:j}};let B=R.map(ve=>{let lt=rt(ve.placement);return[ve.placement,lt&&d?ve.overflows.slice(0,2).reduce((Jc,Qc)=>Jc+Qc,0):ve.overflows[0],ve.overflows]}).sort((ve,lt)=>ve[1]-lt[1]),sr=((i=B.filter(ve=>ve[2].slice(0,rt(ve[0])?2:3).every(lt=>lt<=0))[0])==null?void 0:i[0])||B[0][0];return sr!==a?{data:{index:x+1,overflows:R},reset:{placement:sr}}:{}}}};var Ts=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:k=>{let{x:b,y:w}=k;return{x:b,y:w}}},...c}=qr(e,t),d={x:r,y:n},u=await o.detectOverflow(t,c),p=Xr(i),y=vi(p),v=d[y],A=d[p],x=(k,b)=>vs(b+u[k==="y"?"top":"left"],b,b-u[k==="y"?"bottom":"right"]);s&&(v=x(y,v)),a&&(A=x(p,A));let S=l.fn({...t,[y]:v,[p]:A});return{...S,data:{x:S.x-r,y:S.y-n,enabled:{[y]:s,[p]:a}}}}}};function Zr(){return typeof window<"u"}function St(e){return Rs(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ge(e){var t;return(t=(Rs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Rs(e){return Zr()?e instanceof Node||e instanceof ue(e).Node:!1}function Ne(e){return Zr()?e instanceof Element||e instanceof ue(e).Element:!1}function qe(e){return Zr()?e instanceof HTMLElement||e instanceof ue(e).HTMLElement:!1}function Os(e){return!Zr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}function yr(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=Le(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function Ns(e){return/^(table|td|th)$/.test(St(e))}function gr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var gd=/transform|translate|scale|rotate|perspective|filter/,xd=/paint|layout|strict|content/,At=e=>!!e&&e!=="none",Ai;function zt(e){let t=Ne(e)?Le(e):e;return At(t.transform)||At(t.translate)||At(t.scale)||At(t.rotate)||At(t.perspective)||!Jr()&&(At(t.backdropFilter)||At(t.filter))||gd.test(t.willChange||"")||xd.test(t.contain||"")}function Ls(e){let t=nt(e);for(;qe(t)&&!jt(t);){if(zt(t))return t;if(gr(t))return null;t=nt(t)}return null}function Jr(){return Ai==null&&(Ai=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ai}function jt(e){return/^(html|body|#document)$/.test(St(e))}function Le(e){return ue(e).getComputedStyle(e)}function xr(e){return Ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nt(e){if(St(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Os(e)&&e.host||Ge(e);return Os(t)?t.host:t}function Ps(e){let t=nt(e);return jt(t)?(e.ownerDocument||e).body:qe(t)&&yr(t)?t:Ps(t)}function Yr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=Ps(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=ue(i);if(o){let a=Qr(s);return t.concat(s,s.visualViewport||[],yr(i)?i:[],a&&r?Yr(a):[])}else return t.concat(i,Yr(i,[],r))}function Qr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ds(e){let t=Le(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=qe(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=hr(r)!==o||hr(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function Ms(e){return Ne(e)?e:e.contextElement}function Wt(e){let t=Ms(e);if(!qe(t))return Fe(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=Ds(t),s=(o?hr(r.width):r.width)/n,a=(o?hr(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var vd=Fe(0);function $s(e){let t=ue(e);return!Jr()||!t.visualViewport?vd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bd(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===ue(e)}function vr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=Ms(e),s=Fe(1);t&&(n?Ne(n)&&(s=Wt(n)):s=Wt(e));let a=bd(o,r,n)?$s(o):Fe(0),l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,d=i.width/s.x,u=i.height/s.y;if(o&&n){let p=ue(o),y=Ne(n)?ue(n):n,v=p,A=Qr(v);for(;A&&y!==v;){let x=Wt(A),S=A.getBoundingClientRect(),k=Le(A),b=S.left+(A.clientLeft+parseFloat(k.paddingLeft))*x.x,w=S.top+(A.clientTop+parseFloat(k.paddingTop))*x.y;l*=x.x,c*=x.y,d*=x.x,u*=x.y,l+=b,c+=w,v=ue(A),A=Qr(v)}}return Et({width:d,height:u,x:l,y:c})}function en(e,t){let r=xr(e).scrollLeft;return t?t.left+r:vr(Ge(e)).left+r}function Us(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-en(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function Ed(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o=i==="fixed",s=Ge(n),a=t?gr(t.floating):!1;if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=Fe(1),d=Fe(0),u=qe(n);if((u||!o)&&((St(n)!=="body"||yr(s))&&(l=xr(n)),u)){let y=vr(n);c=Wt(n),d.x=y.x+n.clientLeft,d.y=y.y+n.clientTop}let p=s&&!u&&!o?Us(s,l):Fe(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:r.y*c.y-l.scrollTop*c.y+d.y+p.y}}function Ad(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Sd(e){let t=xr(e),r=e.ownerDocument.body,n=tt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=tt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),o=-t.scrollLeft+en(e),s=-t.scrollTop;return Le(r).direction==="rtl"&&(o+=tt(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:o,y:s}}var _d=25;function Cd(e,t,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=ue(e),o=Ge(e),s=i.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,d=0;if(s){let p=!Jr()||t==="fixed";n?p||(c=-s.offsetLeft,d=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,d=s.offsetTop))}if(en(o)<=0){let p=o.ownerDocument,y=p.body,v=getComputedStyle(y),A=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(o.clientWidth-y.clientWidth-A),S=getComputedStyle(o).scrollbarGutter==="stable both-edges"?x/2:x;S<=_d&&(a-=S)}return{width:a,height:l,x:c,y:d}}function wd(e,t){let r=vr(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=Wt(e),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=n*o.y;return{width:s,height:a,x:l,y:c}}function ks(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=Cd(e,r,t);else if(t==="document")n=Sd(Ge(e));else if(Ne(t))n=wd(t,r);else{let i=$s(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Et(n)}function Td(e,t){let r=t.get(e);if(r)return r;let n=Yr(e,[],!1).filter(a=>Ne(a)&&St(a)!=="body"),i=null,o=Le(e).position==="fixed",s=o?nt(e):e;for(;Ne(s)&&!jt(s);){let a=Le(s),l=zt(s),c=i?i.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(u=>u!==s):i=a,s=nt(s)}return t.set(e,n),n}function Od(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?gr(t)?[]:Td(t,this._c):[].concat(r),n],a=ks(t,s[0],i),l=a.top,c=a.right,d=a.bottom,u=a.left;for(let p=1;p<s.length;p++){let y=ks(t,s[p],i);l=tt(y.top,l),c=fr(y.right,c),d=fr(y.bottom,d),u=tt(y.left,u)}return{width:c-u,height:d-l,x:u,y:l}}function Rd(e){let{width:t,height:r}=Ds(e);return{width:t,height:r}}function Nd(e,t,r){let n=qe(t),i=Ge(t),o=r==="fixed",s=vr(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=Fe(0);if((n||!o)&&((St(t)!=="body"||yr(i))&&(a=xr(t)),n)){let p=vr(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!n&&i&&(l.x=en(i));let c=i&&!n&&!o?Us(i,a):Fe(0),d=s.left+a.scrollLeft-l.x-c.x,u=s.top+a.scrollTop-l.y-c.y;return{x:d,y:u,width:s.width,height:s.height}}function Si(e){return Le(e).position==="static"}function Is(e,t){if(!qe(e)||Le(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ge(e)===r&&(r=r.ownerDocument.body),r}function Bs(e,t){let r=ue(e);if(gr(e))return r;if(!qe(e)){let i=nt(e);for(;i&&!jt(i);){if(Ne(i)&&!Si(i))return i;i=nt(i)}return r}let n=Is(e,t);for(;n&&Ns(n)&&Si(n);)n=Is(n,t);return n&&jt(n)&&Si(n)&&!zt(n)?r:n||Ls(e)||r}var Ld=async function(e){let t=this.getOffsetParent||Bs,r=this.getDimensions,n=await r(e.floating);return{reference:Nd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Pd(e){return Le(e).direction==="rtl"}var tn={convertOffsetParentRelativeRectToViewportRelativeRect:Ed,getDocumentElement:Ge,getClippingRect:Od,getOffsetParent:Bs,getElementRects:Ld,getClientRects:Ad,getDimensions:Rd,getScale:Wt,isElement:Ne,isRTL:Pd};var Fs=ws,Hs=Ts;var Vs=(e,t,r)=>{let n=new Map,i=r??{},o={...tn,...i.platform,_c:n};return Cs(e,t,{...i,platform:o})};function zs(e){return kd(e)}function _i(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function kd(e){for(let t=e;t;t=_i(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=_i(e);t;t=_i(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||zt(r)||t.tagName==="BODY"))return t}return null}async function js(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},Vs(e,t,{strategy:n.strategy,platform:{...tn,getOffsetParent:i=>tn.getOffsetParent(i,zs)},middleware:[Hs({crossAxis:!0}),Fs({allowedPlacements:[n.placement]})]})}var tr=f(E());var Ki=f(X());var Ws=f(X(),1);var Ci=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},Id=e=>({fromAttribute:t=>{if(t==null)return br(e);try{return JSON.parse(t)}catch{return br(e)}},toAttribute:t=>JSON.stringify(t)});function Ks(e,t){return(0,Ws.property)({type:Object,converter:Id(e),hasChanged:Er,...t??{}})}function Dd(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Kt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Kt(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=s=>Object.keys(s).filter(a=>s[a]!=null),o=i(e);if(r=o.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){let s=o[n];if(!Kt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Kt(e,t){try{return Dd(e,t)}catch{return!1}}function Er(e,t){return!Kt(e,t)}function br(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function rn(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let i=t(n);return i[e]=!0,i}}var Gs=f(X(),1);var wi=e=>{let t=e??{};return(r,n)=>{var i;let o={hasChanged:Er,attribute:!1,...t};(0,Gs.property)(o)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:(a=>a[n]),store:t.store})}};var nn=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var _t=f(X(),1);var on=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of n)try{await s()}catch(a){i(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var an=f(I(),1);var sn=class extends an.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return(0,an.adoptStyles)(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){Ci(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function qs(e,t,...r){var n;let i=e.querySelector(t);for(let o of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(o);return i}var qt=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Js,Xs=Symbol("constructorPrototype"),Ys=Symbol("constructorName"),Qs=Symbol("exportpartsDebouncer"),Zs=Symbol("dynamicDependenciesLoaded"),Gt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Gt.eventName="exportparts-updated";var He=class extends sn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Js]=new on(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Qs].run(()=>{var i,o;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ys]=this.constructor.name,this[Xs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ys]&&Object.setPrototypeOf(this,this[Xs])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Zs]||(r[Zs]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Gt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Gt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Gt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let o=[...i??[],n];r=qs(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(t){var r,n,i,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let d=new Set;for(let p of(o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let y=(s=(n=p.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&s!==void 0?s:[],v=(a=(i=p.getAttribute("exportparts"))===null||i===void 0?void 0:i.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],A=[...y,...v].filter(l).map(x=>x.trim());for(let x of A)d.add(x)}if(d.size===0){this.exportparts=void 0;return}let u=[...d.values()].flatMap(p=>c.map(y=>`${p}:${y}--${p}`));this.exportparts=[...this.part,...u].join(", ")}};Js=Qs;qt([(0,_t.property)()],He.prototype,"exportpartsPrefix",void 0);qt([Ks([])],He.prototype,"exportpartsPrefixes",void 0);qt([(0,_t.property)({reflect:!0})],He.prototype,"exportparts",void 0);qt([(0,_t.property)()],He.prototype,"customStylesheet",void 0);qt([(0,_t.property)()],He.prototype,"elementToFocus",void 0);qt([(0,_t.state)()],He.prototype,"useAdoptedStyleSheets",void 0);function ln(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Ar=Symbol("internalReduxEventsUnsubscribers"),it=Symbol("internalStoresUnsubscribers"),Ct=Symbol("internalStores"),Md=rn(Symbol("withRedux"),function(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Ct].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ct].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ct].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ct].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Ct].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ct].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[it].has(s.store):this[it].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[it].set(s,a.subscribe(()=>this.updateFromStores())),this[Ar].set(s,[]),ln(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,d)=>{if(typeof this[d]=="function"&&(!c.store||a.name===c.store)){let u=p=>this[d](p);a.addEventListener(c.eventName,u),this[Ar].get(s).push(()=>a.removeEventListener(c.eventName,u))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[it].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[it].has(s)&&this[it].get(s)(),this[it].delete(s),(a=this[Ar].get(s))===null||a===void 0||a.forEach(l=>l()),this[Ar].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=it,r=Ct,n=Ar,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),ea=class extends Md(He){};function ee(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var $d=typeof Symbol=="function"&&Symbol.observable||"@@observable",ta=$d,Ti=()=>Math.random().toString(36).substring(7).split("").join("."),Ud={INIT:`@@redux/INIT${Ti()}`,REPLACE:`@@redux/REPLACE${Ti()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ti()}`},cn=Ud;function dn(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Oi(e,t,r){if(typeof e!="function")throw new Error(ee(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ee(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ee(1));return r(Oi)(e,t)}let n=e,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((x,S)=>{s.set(S,x)}))}function d(){if(l)throw new Error(ee(3));return i}function u(x){if(typeof x!="function")throw new Error(ee(4));if(l)throw new Error(ee(5));let S=!0;c();let k=a++;return s.set(k,x),function(){if(S){if(l)throw new Error(ee(6));S=!1,c(),s.delete(k),o=null}}}function p(x){if(!dn(x))throw new Error(ee(7));if(typeof x.type>"u")throw new Error(ee(8));if(typeof x.type!="string")throw new Error(ee(17));if(l)throw new Error(ee(9));try{l=!0,i=n(i,x)}finally{l=!1}return(o=s).forEach(k=>{k()}),x}function y(x){if(typeof x!="function")throw new Error(ee(10));n=x,p({type:cn.REPLACE})}function v(){let x=u;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(ee(11));function k(){let w=S;w.next&&w.next(d())}return k(),{unsubscribe:x(k)}},[ta](){return this}}}return p({type:cn.INIT}),{dispatch:p,subscribe:u,getState:d,replaceReducer:y,[ta]:v}}function Bd(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:cn.INIT})>"u")throw new Error(ee(12));if(typeof r(void 0,{type:cn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ee(13))})}function ra(e){let t=Object.keys(e),r={};for(let s=0;s<t.length;s++){let a=t[s];typeof e[a]=="function"&&(r[a]=e[a])}let n=Object.keys(r),i,o;try{Bd(r)}catch(s){o=s}return function(a={},l){if(o)throw o;let c=!1,d={};for(let u=0;u<n.length;u++){let p=n[u],y=r[p],v=a[p],A=y(v,l);if(typeof A>"u"){let x=l&&l.type;throw new Error(ee(14))}d[p]=A,c=c||A!==v}return c=c||n.length!==Object.keys(a).length,c?d:a}}function Sr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function na(...e){return t=>(r,n)=>{let i=t(r,n),o=()=>{throw new Error(ee(15))},s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=Sr(...a)(i.dispatch),{...i,dispatch:o}}}function ia(e){return dn(e)&&"type"in e&&typeof e.type=="string"}var fa=Symbol.for("immer-nothing"),oa=Symbol.for("immer-draftable"),ne=Symbol.for("immer-state");function Pe(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var me=Object,Yt=me.getPrototypeOf,hn="constructor",bn="prototype",Pi="configurable",mn="enumerable",pn="writable",_r="value",Ve=e=>!!e&&!!e[ne];function ye(e){return e?ha(e)||An(e)||!!e[oa]||!!e[hn]?.[oa]||Sn(e)||_n(e):!1}var Fd=me[bn][hn].toString(),sa=new WeakMap;function ha(e){if(!e||!Fi(e))return!1;let t=Yt(e);if(t===null||t===me[bn])return!0;let r=me.hasOwnProperty.call(t,hn)&&t[hn];if(r===Object)return!0;if(!Xt(r))return!1;let n=sa.get(r);return n===void 0&&(n=Function.toString.call(r),sa.set(r,n)),n===Fd}function En(e,t,r=!0){Tr(e)===0?(r?Reflect.ownKeys(e):me.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Tr(e){let t=e[ne];return t?t.type_:An(e)?1:Sn(e)?2:_n(e)?3:0}var Ri=(e,t,r=Tr(e))=>r===2?e.has(t):me[bn].hasOwnProperty.call(e,t),ki=(e,t,r=Tr(e))=>r===2?e.get(t):e[t],yn=(e,t,r,n=Tr(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function Hd(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var An=Array.isArray,Sn=e=>e instanceof Map,_n=e=>e instanceof Set,Fi=e=>typeof e=="object",Xt=e=>typeof e=="function",Ni=e=>typeof e=="boolean";function Vd(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Xe=e=>e.copy_||e.base_;var Hi=e=>e.modified_?e.copy_:e.base_;function Ii(e,t){if(Sn(e))return new Map(e);if(_n(e))return new Set(e);if(An(e))return Array[bn].slice.call(e);let r=ha(e);if(t===!0||t==="class_only"&&!r){let n=me.getOwnPropertyDescriptors(e);delete n[ne];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){let s=i[o],a=n[s];a[pn]===!1&&(a[pn]=!0,a[Pi]=!0),(a.get||a.set)&&(n[s]={[Pi]:!0,[pn]:!0,[mn]:a[mn],[_r]:e[s]})}return me.create(Yt(e),n)}else{let n=Yt(e);if(n!==null&&r)return{...e};let i=me.create(n);return me.assign(i,e)}}function Vi(e,t=!1){return Cn(e)||Ve(e)||!ye(e)||(Tr(e)>1&&me.defineProperties(e,{set:un,add:un,clear:un,delete:un}),me.freeze(e),t&&En(e,(r,n)=>{Vi(n,!0)},!1)),e}function zd(){Pe(2)}var un={[_r]:zd};function Cn(e){return e===null||!Fi(e)?!0:me.isFrozen(e)}var gn="MapSet",Di="Patches",aa="ArrayMethods",ma={};function wt(e){let t=ma[e];return t||Pe(0,e),t}var la=e=>!!ma[e];var Cr,ya=()=>Cr,jd=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:la(gn)?wt(gn):void 0,arrayMethodsPlugin_:la(aa)?wt(aa):void 0});function ca(e,t){t&&(e.patchPlugin_=wt(Di),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Mi(e){$i(e),e.drafts_.forEach(Wd),e.drafts_=null}function $i(e){e===Cr&&(Cr=e.parent_)}var da=e=>Cr=jd(Cr,e);function Wd(e){let t=e[ne];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ua(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[ne].modified_&&(Mi(t),Pe(4)),ye(e)&&(e=pa(t,e));let{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[ne].base_,e,t)}else e=pa(t,r);return Kd(t,e,!0),Mi(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==fa?e:void 0}function pa(e,t){if(Cn(t))return t;let r=t[ne];if(!r)return xn(t,e.handledSet_,e);if(!wn(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);va(r,e)}return r.copy_}function Kd(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Vi(t,r)}function ga(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var wn=(e,t)=>e.scope_===t,Gd=[];function xa(e,t,r,n){let i=Xe(e),o=e.type_;if(n!==void 0&&ki(i,n,o)===t){yn(i,n,r,o);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;En(i,(l,c)=>{if(Ve(c)){let d=a.get(c)||[];d.push(l),a.set(c,d)}})}let s=e.draftLocations_.get(t)??Gd;for(let a of s)yn(i,a,r,o)}function qd(e,t,r){e.callbacks_.push(function(i){let o=t;if(!o||!wn(o,i))return;i.mapSetPlugin_?.fixSetContents(o);let s=Hi(o);xa(e,o.draft_??o,s,r),va(o,i)})}function va(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let i=n.getPath(e);i&&n.generatePatches_(e,i,t)}ga(e)}}function Xd(e,t,r){let{scope_:n}=e;if(Ve(r)){let i=r[ne];wn(i,n)&&i.callbacks_.push(function(){fn(e);let s=Hi(i);xa(e,r,s,t)})}else ye(r)&&e.callbacks_.push(function(){let o=Xe(e);e.type_===3?o.has(r)&&xn(r,n.handledSet_,n):ki(o,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&xn(ki(e.copy_,t,e.type_),n.handledSet_,n)})}function xn(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Ve(e)||t.has(e)||!ye(e)||Cn(e)||(t.add(e),En(e,(n,i)=>{if(Ve(i)){let o=i[ne];if(wn(o,r)){let s=Hi(o);yn(e,n,s,e.type_),ga(o)}}else ye(i)&&xn(i,t,r)})),e}function Yd(e,t){let r=An(e),n={type_:r?1:0,scope_:t?t.scope_:ya(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,o=vn;r&&(i=[n],o=wr);let{revoke:s,proxy:a}=Proxy.revocable(i,o);return n.draft_=a,n.revoke_=s,[a,n]}var vn={get(e,t){if(t===ne)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let i=Xe(e);if(!Ri(i,t,e.type_))return Jd(e,i,t);let o=i[t];if(e.finalized_||!ye(o)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Vd(t))return o;if(o===Li(e.base_,t)||Zd(e,t,o)){fn(e);let s=e.type_===1?+t:t,a=Bi(e.scope_,o,e,s);return e.copy_[s]=a}return o},has(e,t){return t in Xe(e)},ownKeys(e){return Reflect.ownKeys(Xe(e))},set(e,t,r){let n=ba(Xe(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let i=Li(Xe(e),t),o=i?.[ne];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(Hd(r,i)&&(r!==void 0||Ri(e.base_,t,e.type_)))return!0;fn(e),Ui(e)}return e.copy_[t]===r&&(r!==void 0||Ri(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Xd(e,t,r)),!0},deleteProperty(e,t){return fn(e),Li(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ui(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Xe(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[pn]:!0,[Pi]:e.type_!==1||t!=="length",[mn]:n[mn],[_r]:r[t]}},defineProperty(){Pe(11)},getPrototypeOf(e){return Yt(e.base_)},setPrototypeOf(){Pe(12)}},wr={};for(let e in vn){let t=vn[e];wr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}wr.deleteProperty=function(e,t){return wr.set.call(this,e,t,void 0)};wr.set=function(e,t,r){return vn.set.call(this,e[0],t,r,e[0])};function Li(e,t){let r=e[ne];return(r?Xe(r):e)[t]}function Zd(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!ye(r)||r[ne]?!1:e.baseRefs_.has(r)}function Jd(e,t,r){let n=ba(t,r);return n?_r in n?n[_r]:n.get?.call(e.draft_):void 0}function ba(e,t){if(!(t in e))return;let r=Yt(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Yt(r)}}function Ui(e){e.modified_||(e.modified_=!0,e.parent_&&Ui(e.parent_))}function fn(e){e.copy_||(e.assigned_=new Map,e.copy_=Ii(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Qd=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Xt(t)&&!Xt(r)){let o=r;r=t;let s=this;return function(l=o,...c){return s.produce(l,d=>r.call(this,d,...c))}}Xt(r)||Pe(6),n!==void 0&&!Xt(n)&&Pe(7);let i;if(ye(t)){let o=da(this),s=Bi(o,t,void 0),a=!0;try{i=r(s),a=!1}finally{a?Mi(o):$i(o)}return ca(o,n),ua(i,o)}else if(!t||!Fi(t)){if(i=r(t),i===void 0&&(i=t),i===fa&&(i=void 0),this.autoFreeze_&&Vi(i,!0),n){let o=[],s=[];wt(Di).generateReplacementPatches_(t,i,{patches_:o,inversePatches_:s}),n(o,s)}return i}else Pe(1,t)},this.produceWithPatches=(t,r)=>{if(Xt(t))return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let n,i;return[this.produce(t,r,(s,a)=>{n=s,i=a}),n,i]},Ni(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ni(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ni(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){ye(e)||Pe(8),Ve(e)&&(e=Ea(e));let t=da(this),r=Bi(t,e,void 0);return r[ne].isManual_=!0,$i(t),r}finishDraft(e,t){let r=e&&e[ne];(!r||!r.isManual_)&&Pe(9);let{scope_:n}=r;return ca(n,t),ua(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));let n=wt(Di).applyPatches_;return Ve(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Bi(e,t,r,n){let[i,o]=Sn(t)?wt(gn).proxyMap_(t,r):_n(t)?wt(gn).proxySet_(t,r):Yd(t,r);return(r?.scope_??ya()).drafts_.push(i),o.callbacks_=r?.callbacks_??[],o.key_=n,r&&n!==void 0?qd(r,o,n):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),i}function Ea(e){return Ve(e)||Pe(10,e),Aa(e)}function Aa(e){if(!ye(e)||Cn(e))return e;let t=e[ne],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Ii(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Ii(e,!0);return En(r,(i,o)=>{yn(r,i,Aa(o))},n),t&&(t.finalized_=!1),r}var eu=globalThis.Iterator,Gf=typeof eu?.from=="function";var tu=new Qd,zi=tu.produce;function Sa(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var _a=Sa(),Ca=Sa;var ru=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Sr:Sr.apply(null,arguments)},eh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},nu=e=>e&&typeof e.match=="function";function ot(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Ye(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>ia(n)&&n.type===e,r}var Na=class Or extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Or.prototype)}static get[Symbol.species](){return Or}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Or(...t[0].concat(this)):new Or(...t.concat(this))}};function wa(e){return ye(e)?zi(e,()=>{}):e}function Tn(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function iu(e){return typeof e=="boolean"}var ou=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{},s=new Na;return r&&(iu(r)?s.push(_a):s.push(Ca(r.extraArgument))),s},su="RTK_autoBatch";var Ta=e=>t=>{setTimeout(t,e)},au=(e,t)=>r=>{let n=!1,i=()=>{n||(n=!0,cancelAnimationFrame(o),clearTimeout(s),r())},o=e(i),s=setTimeout(i,t)},lu=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,o=!1,s=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?au(window.requestAnimationFrame,100):Ta(10):e.type==="callback"?e.queueNotification:Ta(e.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(d=>d()))};return Object.assign({},n,{subscribe(d){let u=()=>i&&d(),p=n.subscribe(u);return a.add(d),()=>{p(),a.delete(d)}},dispatch(d){try{return i=!d?.meta?.[su],o=!i,o&&(s||(s=!0,l(c))),n.dispatch(d)}finally{i=!0}}})},cu=e=>function(r){let{autoBatch:n=!0}=r??{},i=new Na(e);return n&&i.push(lu(typeof n=="object"?n:void 0)),i};function La(e){let t=ou(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(dn(r))l=ra(r);else throw new Error(Ye(1));let c;typeof n=="function"?c=n(t):c=t();let d=Sr;i&&(d=ru({trace:!1,...typeof i=="object"&&i}));let u=na(...c),p=cu(u),y=typeof a=="function"?a(p):p(),v=d(...y);return Oi(l,s,v)}function Pa(e){let t={},r=[],n,i={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(Ye(28));if(a in t)throw new Error(Ye(29));return t[a]=s,i},addAsyncThunk(o,s){return s.pending&&(t[o.pending.type]=s.pending),s.rejected&&(t[o.rejected.type]=s.rejected),s.fulfilled&&(t[o.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:o.settled,reducer:s.settled}),i},addMatcher(o,s){return r.push({matcher:o,reducer:s}),i},addDefaultCase(o){return n=o,i}};return e(i),[t,r,n]}function du(e){return typeof e=="function"}function uu(e,t){let[r,n,i]=Pa(t),o;if(du(e))o=()=>wa(e());else{let a=wa(e);o=()=>a}function s(a=o(),l){let c=[r[l.type],...n.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return c.filter(d=>!!d).length===0&&(c=[i]),c.reduce((d,u)=>{if(u)if(Ve(d)){let y=u(d,l);return y===void 0?d:y}else{if(ye(d))return zi(d,p=>u(p,l));{let p=u(d,l);if(p===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return d},a)}return s.getInitialState=o,s}var pu=(e,t)=>nu(e)?e.match(t):e(t);function fu(...e){return t=>e.some(r=>pu(r,t))}var hu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",mu=(e=21)=>{let t="",r=e;for(;r--;)t+=hu[Math.random()*64|0];return t},yu=["name","message","stack","code"],ji=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Oa=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},gu=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of yu)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Ra="External signal was aborted",xu=(()=>{function e(t,r,n){let i=ot(t+"/fulfilled",(l,c,d,u)=>({payload:l,meta:{...u||{},arg:d,requestId:c,requestStatus:"fulfilled"}})),o=ot(t+"/pending",(l,c,d)=>({payload:void 0,meta:{...d||{},arg:c,requestId:l,requestStatus:"pending"}})),s=ot(t+"/rejected",(l,c,d,u,p)=>({payload:u,error:(n&&n.serializeError||gu)(l||"Rejected"),meta:{...p||{},arg:d,requestId:c,rejectedWithValue:!!u,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(d,u,p)=>{let y=n?.idGenerator?n.idGenerator(l):mu(),v=new AbortController,A,x;function S(b){x=b,v.abort()}c&&(c.aborted?S(Ra):c.addEventListener("abort",()=>S(Ra),{once:!0}));let k=(async function(){let b;try{let R=n?.condition?.(l,{getState:u,extra:p});if(bu(R)&&(R=await R),R===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let j=new Promise((B,W)=>{A=()=>{W({name:"AbortError",message:x||"Aborted"})},v.signal.addEventListener("abort",A,{once:!0})});d(o(y,l,n?.getPendingMeta?.({requestId:y,arg:l},{getState:u,extra:p}))),b=await Promise.race([j,Promise.resolve(r(l,{dispatch:d,getState:u,extra:p,requestId:y,signal:v.signal,abort:S,rejectWithValue:((B,W)=>new ji(B,W)),fulfillWithValue:((B,W)=>new Oa(B,W))})).then(B=>{if(B instanceof ji)throw B;return B instanceof Oa?i(B.payload,y,l,B.meta):i(B,y,l)})])}catch(R){b=R instanceof ji?s(null,y,l,R.payload,R.meta):s(R,y,l)}finally{A&&v.signal.removeEventListener("abort",A)}return n&&!n.dispatchConditionRejection&&s.match(b)&&b.meta.condition||d(b),b})();return Object.assign(k,{abort:S,requestId:y,arg:l,unwrap(){return k.then(vu)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:i,settled:fu(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function vu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function bu(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ka=Symbol.for("rtk-slice-createasyncthunk"),rh={[ka]:xu};function Eu(e,t){return`${e}/${t}`}function Au({creators:e}={}){let t=e?.asyncThunk?.[ka];return function(n){let{name:i,reducerPath:o=i}=n;if(!i)throw new Error(Ye(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(_u()):n.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,w){let R=typeof b=="string"?b:b.type;if(!R)throw new Error(Ye(12));if(R in l.sliceCaseReducersByType)throw new Error(Ye(13));return l.sliceCaseReducersByType[R]=w,c},addMatcher(b,w){return l.sliceMatchers.push({matcher:b,reducer:w}),c},exposeAction(b,w){return l.actionCreators[b]=w,c},exposeCaseReducer(b,w){return l.sliceCaseReducersByName[b]=w,c}};a.forEach(b=>{let w=s[b],R={reducerName:b,type:Eu(i,b),createNotation:typeof n.reducers=="function"};wu(w)?Ou(R,w,c,t):Cu(R,w,c)});function d(){let[b={},w=[],R=void 0]=typeof n.extraReducers=="function"?Pa(n.extraReducers):[n.extraReducers],j={...b,...l.sliceCaseReducersByType};return uu(n.initialState,B=>{for(let W in j)B.addCase(W,j[W]);for(let W of l.sliceMatchers)B.addMatcher(W.matcher,W.reducer);for(let W of w)B.addMatcher(W.matcher,W.reducer);R&&B.addDefaultCase(R)})}let u=b=>b,p=new Map,y=new WeakMap,v;function A(b,w){return v||(v=d()),v(b,w)}function x(){return v||(v=d()),v.getInitialState()}function S(b,w=!1){function R(B){let W=B[b];return typeof W>"u"&&w&&(W=Tn(y,R,x)),W}function j(B=u){let W=Tn(p,w,()=>new WeakMap);return Tn(W,B,()=>{let sr={};for(let[ve,lt]of Object.entries(n.selectors??{}))sr[ve]=Su(lt,B,()=>Tn(y,B,x),w);return sr})}return{reducerPath:b,getSelectors:j,get selectors(){return j(R)},selectSlice:R}}let k={name:i,reducer:A,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...S(o),injectInto(b,{reducerPath:w,...R}={}){let j=w??o;return b.inject({reducerPath:j,reducer:A},R),{...k,...S(j,!0)}}};return k}}function Su(e,t,r,n){function i(o,...s){let a=t(o);return typeof a>"u"&&n&&(a=r()),e(a,...s)}return i.unwrapped=e,i}var Ia=Au();function _u(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Cu({type:e,reducerName:t,createNotation:r},n,i){let o,s;if("reducer"in n){if(r&&!Tu(n))throw new Error(Ye(17));o=n.reducer,s=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?ot(e,s):ot(e))}function wu(e){return e._reducerDefinitionType==="asyncThunk"}function Tu(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Ou({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Ye(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:d}=r,u=i(e,o,d);n.exposeAction(t,u),s&&n.addCase(u.fulfilled,s),a&&n.addCase(u.pending,a),l&&n.addCase(u.rejected,l),c&&n.addMatcher(u.settled,c),n.exposeCaseReducer(t,{fulfilled:s||On,pending:a||On,rejected:l||On,settled:c||On})}function On(){}var Da="listener",Ma="completed",$a="cancelled",nh=`task-${$a}`,ih=`task-${Ma}`,oh=`${Da}-${$a}`,sh=`${Da}-${Ma}`;var{assign:Ua}=Object;var Wi="listenerMiddleware";var Ru=Ua(ot(`${Wi}/add`),{withTypes:()=>Ru}),ah=ot(`${Wi}/removeAll`),Nu=Ua(ot(`${Wi}/remove`),{withTypes:()=>Nu});function Ye(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Lu=rn(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),Rn=class extends Lu(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ba=class e extends Rn{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,o=window.ftReduxStores[n];if(ln(o))return o;if(i==null)return;let s=Ia({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=La({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let d=br(s.getInitialState());for(let u of c.keeping)d[u]=(l??d)[u];return d}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[i.name]=new e(s,a,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new nn,this.injectInto=(o,s)=>this.reduxSlice.injectInto(o,s),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let i=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...d)=>{let u=c(...d.map(i));return this.reduxStore.dispatch(u),u}:d=>{let u=l,p=this.getState()[u];Kt(p,d)||this.setState({[u]:i(d)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Nn=class{static format(t,r,n,i,o){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,i,!!o)):this.getIntlDateTime(t,r,n,i,!!o)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,i,o){let s=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:i?`${a} ${l}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Ln=f(E()),Pu="ft-app-info",Tt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Tt.eventName="authentication-change";var Rr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Rr.eventName="ui-locale-changed";var ku={session:(e,t)=>{(0,Ln.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>_.dispatchEvent(new Tt(t.payload)),0))}},_=Ln.FtReduxStore.get({name:Pu,reducers:ku,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Fa=f(E()),Pn=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},$h=(0,Fa.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(_)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,o;return((o=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1)?a=>Nn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Pn([(0,Ki.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Pn([(0,Ki.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Pn([wi({store:_.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),Pn([wi({store:_.name})],t.prototype,"uiLocale",void 0),t});var Ha;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Ha||(Ha={}));var Va;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Va||(Va={}));var za;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(za||(za={}));var ja;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(ja||(ja={}));var Wa;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Wa||(Wa={}));var Ka;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ka||(Ka={}));var Ga;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Ga||(Ga={}));var qa;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(qa||(qa={}));var Xa;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Xa||(Xa={}));var Ya;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Ya||(Ya={}));var Za;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Za||(Za={}));var Ja;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(Ja||(Ja={}));var Qa;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Qa||(Qa={}));var el;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(el||(el={}));var tl;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(tl||(tl={}));var rl;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(rl||(rl={}));var nl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(nl||(nl={}));var il;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(il||(il={}));var ol;(function(e){e.ASC="ASC",e.DESC="DESC"})(ol||(ol={}));var sl;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(sl||(sl={}));var al;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(al||(al={}));var ll;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(ll||(ll={}));var cl;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(cl||(cl={}));var dl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(dl||(dl={}));var ul;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ul||(ul={}));var pl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(pl||(pl={}));var fl;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(fl||(fl={}));var hl;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(hl||(hl={}));var q;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(q||(q={}));var Ee;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Ee||(Ee={}));var ml;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(ml||(ml={}));var yl;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(yl||(yl={}));var gl;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(gl||(gl={}));var xl;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(xl||(xl={}));var vl;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(vl||(vl={}));var bl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(bl||(bl={}));var El;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(El||(El={}));var Al;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Al||(Al={}));var Sl;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Sl||(Sl={}));var _l;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(_l||(_l={}));var Cl;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Cl||(Cl={}));var wl;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(wl||(wl={}));var Iu={[q.PERSONAL_BOOK_SHARE_USER]:[q.PERSONAL_BOOK_USER],[q.HTML_EXPORT_USER]:[q.PERSONAL_BOOK_USER],[q.PDF_EXPORT_USER]:[q.PERSONAL_BOOK_USER],[q.KHUB_ADMIN]:[q.CONTENT_PUBLISHER],[q.ADMIN]:[q.KHUB_ADMIN,q.USERS_ADMIN,q.PORTAL_ADMIN,q.BEHAVIOR_DATA_USER],[q.GENERATIVE_AI_EXPORT_USER]:[q.GENERATIVE_AI_USER]};function Tl(e,t){return e===t||(Iu[e]??[]).some(r=>Tl(r,t))}function Gi(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Tl(n,t))}function Ol(e,...t){return e==null?!1:t.some(r=>Gi(e,r))}var $n=f(E());var qi=f(E());var Ot=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=_.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=_.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Zt=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Ot.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ot.await()}};var ge=class extends Zt{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new qi.CacheRegistry,this.cache=t?i.commonCache:new qi.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var kn=class extends ge{async listMySearches(){let{session:t}=_.getState();return Gi(t,q.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var In=class extends ge{async listMyBookmarks(){let t=_.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Dn=class extends ge{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=_.getState().session;return!!t?.sessionAuthenticated}};var Mn=class extends ge{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=_.getState().session;return!!t?.sessionAuthenticated}};var Du="ft-user-assets",Mu={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(Ee).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:i}=t.payload;Yi(e,r,[...Xi(e,r),i]),Rl(e,r,1,n),Nl(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Yi(e,r,Xi(e,r).map(i=>i.id===n.id?n:i)),Nl(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;Yi(e,r,Xi(e,r).filter(o=>o.id!==i)),Rl(e,r,-1,n)}},Ll={[Ee.SEARCHES]:"savedSearches",[Ee.BOOKMARKS]:"bookmarks",[Ee.BOOKS]:void 0,[Ee.COLLECTIONS]:void 0},Xi=(e,t)=>{var r;let n=Ll[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Yi=(e,t,r)=>{let n=Ll[t];n&&(e[n]=r)},Rl=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===Ee.BOOKMARKS&&n)){let o=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,o+r)}},Nl=(e,t)=>{let r=e.assetLabels.map(i=>i.title),n=t.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));e.assetLabels.push(...n)},oe=$n.FtReduxStore.get({name:Du,reducers:Mu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ee).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Zi=class{constructor(t=new Dn,r=new Mn){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new In,this.savedSearchesService=new kn,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=_.getState();(0,$n.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),oe.actions.clearAssetCount(),oe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),oe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),oe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();oe.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();oe.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&oe.getState().assetCounts.allAsset[t]!==r.count&&oe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&oe.getState().assetCounts.bookmarkByMap[t]!==r.count&&oe.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(oe.getState().assetCounts.bookmarkByMap).length!==0;t===Ee.BOOKMARKS&&r&&oe.actions.clearBookmarkCountByMap(),oe.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;oe.actions.bookmarks(r)}}},$u=new Zi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=$u);var Ji=class{addCommand(t,r=!1){_.commands.add(t,r)}consumeCommand(t){return _.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Ji;var Ae=f(E());var Pl,Jt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Uu=Symbol("clearAfterUnitTest"),Un=class extends(0,Ae.withEventBus)(ge){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Pl]=()=>{this.defaultMessages={},this.cache=new Ae.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=_.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,Ae.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let o=t.toLowerCase(),s=this.resolveContext(o);return new Ae.ParametrizedLabelResolver((i=this.defaultMessages[o])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof Ae.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Jt({loadedContexts:t})),this.dispatchEvent(new Jt({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Jt({loadedContexts:[t]})),this.dispatchEvent(new Jt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Ae.delay)(0).then(()=>n()).catch(()=>null)))}};Pl=Uu;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Un{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Un{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Qt=window.FluidTopicsI18nService,Bn=window.FluidTopicsCustomI18nService;var kl=f(E()),Qi=class{highlightHtml(t,r,n){(0,kl.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Qi;var Il=f(E());var eo=class{isDate(t){var r,n,i,o;return(o=(n=((i=(r=_.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===t))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1}format(t,r){var n,i,o,s;if(t==null)return"";try{return Il.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new eo;var Dl=f(E());var Nr=class{static get(t,r){var n,i,o,s;let a=_.getState(),{lang:l,region:c}=(s=(i=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new Dl.SearchPlaceConverter(a.baseUrl,t??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${c}`)}};var to=class{urlToSearchRequest(t){return Nr.get().parse(t)}searchRequestToUrl(t){return Nr.get().serialize(t)}};window.FluidTopicsUrlService=new to;var Ze=f(E());var Rt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};Rt.eventName="before-location-change";var Nt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Nt.eventName="change";var ro=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Ml=new ro;var Fn=class e extends Ze.WithEventBus{static build(){return new e(window.history,Ml,()=>window.location,!1)}constructor(t,r,n,i){var o,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(o=t.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Ze.deepEqual)(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 t=r=>(n,i,[o,s,a])=>{let l=new Rt(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=r(),d={...c===this.currentIndex?this.currentState:void 0,...o,index:c,href:l.detail.nextLocation.href};n.apply(i,[d,s,d.href]),this.setCurrentState(d,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(t){this.addEventListener(Rt.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(Rt.eventName,t)}addHistoryChangeListener(t){this.addEventListener(Nt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Nt.eventName,t)}currentItem(){return(0,Ze.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Ze.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Ze.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Ze.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,o=t+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,n);)this.hasState(o)&&(i=o),o++;return i}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,o=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return o==null||o!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Fn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var $l=f(I());var Ul=$l.css`
|
|
290
|
+
`;var Hl=f(I()),se=f(X()),kt=f(E());var Lt=f(E());function Bl(e,t){let{authenticationRequired:r,session:n}=_.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var Hn=class extends Zt{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var no=class e extends Lt.FtStateManager{static build(t){return new e(_,t)}constructor(t,r){super(),this.store=t,this.cache=new Lt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Hn,this.cleanSessionDebouncer=new Lt.Debouncer,this.reloadConfiguration=()=>{var n;(n=this.cache)===null||n===void 0||n.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Lt.Debouncer(500),this.apiProvider=r??(()=>Ot.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Tt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Tt.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 t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}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 t;let r=await this.cache.get("availableContentLocales",()=>Bl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}setStickyFilters(t){this.store.actions.stickyFilters(t)}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Rr(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setNoCustomCode(t){this.store.actions.noCustomCode(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}userHasAnyRole(...t){return Ol(_.getState().session,...t)}},Fl=no.build();var Pt=class extends Event{constructor(t,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var Lr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:i,callbackRef:o}of n){let s=i.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new Pt(t.context,s,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,i=this.pendingContextRequests.get(t.context);i===void 0&&this.pendingContextRequests.set(t.context,i={callbacks:new WeakMap,requests:[]});let o=i.callbacks.get(r);o===void 0&&i.callbacks.set(r,o=new WeakSet),o.has(n)||(o.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var Z=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},V=class extends kt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Fl,this.contextRoot=new Lr}render(){return Hl.html`
|
|
291
291
|
<slot></slot>
|
|
292
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Qt.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};V.elementDefinitions={};V.styles=
|
|
292
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Qt.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};V.elementDefinitions={};V.styles=Ul;Z([(0,se.property)()],V.prototype,"baseUrl",void 0);Z([(0,se.property)()],V.prototype,"tenantId",void 0);Z([(0,se.property)()],V.prototype,"apiIntegrationIdentifier",void 0);Z([(0,se.property)()],V.prototype,"apiIntegrationAppVersion",void 0);Z([(0,se.property)()],V.prototype,"uiLocale",void 0);Z([(0,kt.jsonProperty)(null)],V.prototype,"availableUiLocales",void 0);Z([(0,kt.jsonProperty)(null)],V.prototype,"metadataConfiguration",void 0);Z([(0,se.property)({type:Boolean})],V.prototype,"editorMode",void 0);Z([(0,se.property)({type:Boolean})],V.prototype,"noCustom",void 0);Z([(0,se.property)({type:Boolean})],V.prototype,"openExternalDocumentInNewTab",void 0);Z([(0,se.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],V.prototype,"noCustomComponent",void 0);Z([(0,se.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],V.prototype,"noCustomCode",void 0);Z([(0,se.property)({type:Boolean})],V.prototype,"withManualResources",void 0);Z([(0,se.property)({type:Boolean})],V.prototype,"navigatorOnline",void 0);Z([(0,se.property)({type:Boolean})],V.prototype,"forcedOffline",void 0);Z([(0,se.property)({type:Boolean})],V.prototype,"authenticationRequired",void 0);Z([(0,kt.jsonProperty)([])],V.prototype,"messageContexts",void 0);Z([(0,kt.jsonProperty)(void 0)],V.prototype,"session",void 0);var zl=f(E());var Vl={"ft-app-context":V};(0,zl.customElements)(Vl);var jl=f(X());var io=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,n]=t.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},er=new io;var Hu=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},kr=Symbol("i18nAttributes"),Wl=Symbol("i18nListAttributes"),Kl=Symbol("i18nProperties"),Vn=Symbol("i18nContexts"),Pr=Symbol("i18nUnsubs"),Wn=(0,tr.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?Bn:Qt}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:d,argsProvider:u}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let p=d??(u?u(this):[]);return this.getI18nService(c).resolveMessage(s,a,...p)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(er.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,c=(d,u,p)=>p?.context&&p.key&&o(d,u,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...d})}:p;(s=this[kr])===null||s===void 0||s.forEach((d,u)=>l[u]=c(d,u,l[u])),(a=this[Wl])===null||a===void 0||a.forEach((d,u)=>{var p;return l[u]=(p=l[u])===null||p===void 0?void 0:p.map(y=>c(d,u,y))})}updateI18nProperties(o){var s;(s=this[Kl])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[Vn].set(l,{isCustomContext:a}),this[Pr].has(l)||this[Pr].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[Vn].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Vn].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Pr].forEach(o=>o()),this[Pr].clear()}}return t=Vn,r=Pr,Hu([(0,jl.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),zn=class extends Wn(tr.FtLitElement){},jn=class extends Wn(tr.FtLitElementRedux){};var Gl=f(E());var oo=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?er.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Vu=new oo;var ql=(e,t)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:Gl.hasChanged,converter:er,...t}),r[kr]=(i=r[kr])!==null&&i!==void 0?i:new Map,r[kr].set(n,e??{})};var Kn=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?Bn:Qt}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let o=i;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...o)=>this.service.resolveMessage(this.name,i,...o)}),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 Xl=f(I());var Yl=Xl.css`
|
|
293
293
|
`;var Gn=f(I()),nr=f(X()),qn=f(E());var rr=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Se=class extends jn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Gn.nothing:Gn.html`
|
|
294
294
|
<span class="ft-i18n">
|
|
295
295
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
296
296
|
</span>
|
|
297
|
-
`}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Se.elementDefinitions={};Se.styles=
|
|
297
|
+
`}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Se.elementDefinitions={};Se.styles=Yl;rr([(0,qn.redux)()],Se.prototype,"editorMode",void 0);rr([(0,nr.property)()],Se.prototype,"context",void 0);rr([(0,nr.property)()],Se.prototype,"key",void 0);rr([(0,qn.jsonProperty)([])],Se.prototype,"args",void 0);rr([(0,nr.property)()],Se.prototype,"defaultMessage",void 0);rr([(0,nr.state)()],Se.prototype,"editorMessage",void 0);var Jl=f(E());var Zl={"ft-i18n":Se};(0,Jl.customElements)(Zl);var ke=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Y=class extends zn{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new _e.Debouncer,this.revealDebouncer=new _e.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)?this.matchesIgnored(t)&&this.hide():this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,r;return Ql.html`
|
|
298
298
|
<div part="container"
|
|
299
299
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
300
300
|
<slot part="slot"></slot>
|
|
@@ -309,7 +309,7 @@
|
|
|
309
309
|
</div>
|
|
310
310
|
</div>
|
|
311
311
|
</div>
|
|
312
|
-
`}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:t},await this.show(r),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&js(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${_e.designSystemVariables.transitionDuration}, left ${_e.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,_e.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};Y.elementDefinitions={"ft-typography":J};Y.styles=ys;ke([
|
|
312
|
+
`}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:t},await this.show(r),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&js(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${_e.designSystemVariables.transitionDuration}, left ${_e.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,_e.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};Y.elementDefinitions={"ft-typography":J};Y.styles=ys;ke([ql()],Y.prototype,"text",void 0);ke([(0,Ce.property)({type:Boolean})],Y.prototype,"manual",void 0);ke([(0,Ce.property)({type:Boolean})],Y.prototype,"inline",void 0);ke([(0,_e.numberProperty)()],Y.prototype,"delay",void 0);ke([(0,Ce.property)()],Y.prototype,"position",void 0);ke([(0,_e.jsonProperty)([])],Y.prototype,"ignoreMatchingElements",void 0);ke([(0,Ce.queryAssignedNodes)()],Y.prototype,"slotNodes",void 0);ke([(0,Ce.query)(".ft-tooltip--container")],Y.prototype,"container",void 0);ke([(0,Ce.query)(".ft-tooltip")],Y.prototype,"tooltip",void 0);ke([(0,Ce.query)(".ft-tooltip--content")],Y.prototype,"tooltipContent",void 0);ke([(0,Ce.state)()],Y.prototype,"visible",void 0);var tc=f(E());var ec={"ft-tooltip":Y};(0,tc.customElements)(ec);var rc=f(I()),Ie=f(E()),ae={size:Ie.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ie.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ie.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ie.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ie.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ie.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ie.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ie.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},nc=[rc.css`
|
|
313
313
|
:host, i.ft-icon {
|
|
314
314
|
display: inline-flex;
|
|
315
315
|
align-items: center;
|
|
@@ -357,12 +357,12 @@
|
|
|
357
357
|
.ft-icon--material {
|
|
358
358
|
font-family: ${ae.materialFontFamily}, "Material Icons", sans-serif;
|
|
359
359
|
}
|
|
360
|
-
`,Ie.noTextSelect];var De;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(De||(De={}));var Ir=f(I()),st=f(X()),
|
|
360
|
+
`,Ie.noTextSelect];var De;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(De||(De={}));var Ir=f(I()),st=f(X()),sc=f(E()),ac=f(oc());var Xn;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CIRCLE_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE="",e.TOPICS_SOLID="",e.PHOTO_FILM="",e.HYPHEN_SOLID="",e.CROSSHAIRS="",e.PERSON_CHALKBOARD="",e.CIRCLE_ARROW_DOWN_SLASH="",e.BOOK_OPEN_COVER="",e.LIGHTBULB="",e.MESSAGE_BOT_AGENTIC_SOLID="",e.CHART_LINE_USER="",e.SERVER_CIRCLE_ARROW_DOWN="",e.EYE="",e.SHARE="󨃱"})(Xn||(Xn={}));var m;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(m||(m={}));var cx=new Map([...["abw"].map(e=>[e,m.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(e=>[e,m.AUDIO]),...["avi"].map(e=>[e,m.AVI]),...["chm","xhs"].map(e=>[e,m.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(e=>[e,m.CODE]),...["csv"].map(e=>[e,m.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,m.DITA]),...["epub"].map(e=>[e,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,m.EXCEL]),...["flac"].map(e=>[e,m.FLAC]),...["gif"].map(e=>[e,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,m.GZIP]),...["html","htm","xhtml"].map(e=>[e,m.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(e=>[e,m.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,m.JPEG]),...["json"].map(e=>[e,m.JSON]),...["m4a","m4p"].map(e=>[e,m.M4A]),...["mov","qt"].map(e=>[e,m.MOV]),...["mp3"].map(e=>[e,m.MP3]),...["mp4","m4v"].map(e=>[e,m.MP4]),...["ogg","oga"].map(e=>[e,m.OGG]),...["pdf","ps"].map(e=>[e,m.PDF]),...["png"].map(e=>[e,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,m.POWERPOINT]),...["rar"].map(e=>[e,m.RAR]),...["stp"].map(e=>[e,m.STP]),...["txt","rtf","md","mdown"].map(e=>[e,m.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(e=>[e,m.VIDEO]),...["wav"].map(e=>[e,m.WAV]),...["wma"].map(e=>[e,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,m.WORD]),...["xml","xsl","rdf"].map(e=>[e,m.XML]),...["yaml","yml","x-yaml"].map(e=>[e,m.YAML]),...["zip"].map(e=>[e,m.ZIP])]);var dx={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var Dr=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},te=class extends sc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Ir.nothing}render(){let t=this.variant&&Object.values(De).includes(this.variant)?this.variant:De.fluid_topics,r=t!==De.material||!!this.value;return Ir.html`
|
|
361
361
|
<i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
|
|
362
|
-
${(0,
|
|
362
|
+
${(0,ac.unsafeHTML)(this.resolvedIcon)}
|
|
363
363
|
<slot ?hidden=${r}></slot>
|
|
364
364
|
</i>
|
|
365
|
-
`}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.getTextContent();switch(this.variant){case De.file_format:this.resolvedIcon=(t=m[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case De.material:this.resolvedIcon=this.value||Ir.nothing;break;default:this.resolvedIcon=(r=Xn[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};te.elementDefinitions={};te.styles=
|
|
365
|
+
`}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.getTextContent();switch(this.variant){case De.file_format:this.resolvedIcon=(t=m[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case De.material:this.resolvedIcon=this.value||Ir.nothing;break;default:this.resolvedIcon=(r=Xn[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};te.elementDefinitions={};te.styles=nc;Dr([(0,st.property)()],te.prototype,"variant",void 0);Dr([(0,st.property)()],te.prototype,"value",void 0);Dr([(0,st.property)({reflect:!0,attribute:"aria-hidden"})],te.prototype,"ariaHidden",void 0);Dr([(0,st.state)()],te.prototype,"resolvedIcon",void 0);Dr([(0,st.query)("slot")],te.prototype,"slottedContent",void 0);var cc=f(E());var lc={"ft-icon":te};(0,cc.customElements)(lc);var dc=f(I()),Mr=f(E()),It={color:Mr.FtCssVariableFactory.extend("--ft-loader-color","",Mr.designSystemVariables.colorPrimary),size:Mr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},uc=dc.css`
|
|
366
366
|
:host {
|
|
367
367
|
line-height: 0;
|
|
368
368
|
}
|
|
@@ -431,14 +431,14 @@
|
|
|
431
431
|
transform: translate(calc(0.35 * ${It.size}), 0);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
`;var
|
|
434
|
+
`;var pc=f(I()),fc=f(E());var Dt=class extends fc.FtLitElement{render(){return pc.html`
|
|
435
435
|
<div class="ft-loader">
|
|
436
436
|
<div></div>
|
|
437
437
|
<div></div>
|
|
438
438
|
<div></div>
|
|
439
439
|
<div></div>
|
|
440
440
|
</div>
|
|
441
|
-
`}};Dt.styles=
|
|
441
|
+
`}};Dt.styles=uc;var mc=f(E());var hc={"ft-loader":Dt};(0,mc.customElements)(hc);var at=f(I()),Yn=f(bt()),M=f(X());var xc=f(I()),C=f(E());var yc=C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorPrimary),P={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorSurface),borderRadius:C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusL),color:yc,fontSize:C.FtCssVariableFactory.extend("--ft-button-font-size","",Oe.fontSize),iconSize:C.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:C.FtCssVariableFactory.extend("--ft-button-ripple-color","",yc),verticalPadding:C.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:C.FtCssVariableFactory.external(C.designSystemVariables.colorOpacityDisabled,"Design system")},gc=C.FtCssVariableFactory.extend("--ft-button-primary-color","",C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorOnPrimary)),so={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-primary-background-color","",C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorPrimary)),color:gc,rippleColor:C.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",gc)},ze={borderRadius:C.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusM)),verticalPadding:C.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},vc=xc.css`
|
|
442
442
|
:host {
|
|
443
443
|
display: inline-block;
|
|
444
444
|
max-width: 100%;
|
|
@@ -616,7 +616,7 @@
|
|
|
616
616
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
617
617
|
`:at.html`
|
|
618
618
|
<slot part="icon" name="icon"></slot>
|
|
619
|
-
`}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};T.elementDefinitions={"ft-ripple":U,"ft-tooltip":Y,"ft-icon":te,"ft-loader":Dt,"ft-typography":J};T.styles=[je.safariEllipsisFix,
|
|
619
|
+
`}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};T.elementDefinitions={"ft-ripple":U,"ft-tooltip":Y,"ft-icon":te,"ft-loader":Dt,"ft-typography":J};T.styles=[je.safariEllipsisFix,vc,je.noTextSelect];T.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=t.boundingClientRect.width>0:T.labelsObserver.unobserve(t.target)}});F([(0,M.property)({type:Boolean})],T.prototype,"primary",void 0);F([(0,M.property)({type:Boolean})],T.prototype,"outlined",void 0);F([(0,M.property)({type:Boolean})],T.prototype,"dense",void 0);F([(0,M.property)({type:Boolean})],T.prototype,"round",void 0);F([(0,M.property)({type:Boolean})],T.prototype,"disabled",void 0);F([(0,M.property)()],T.prototype,"icon",void 0);F([(0,M.property)()],T.prototype,"iconVariant",void 0);F([(0,M.property)({type:Boolean})],T.prototype,"trailingIcon",void 0);F([(0,M.property)()],T.prototype,"label",void 0);F([(0,M.property)()],T.prototype,"type",void 0);F([(0,M.property)()],T.prototype,"href",void 0);F([(0,M.property)()],T.prototype,"target",void 0);F([(0,M.property)({type:Boolean})],T.prototype,"loading",void 0);F([(0,M.property)({attribute:"aria-label"})],T.prototype,"ariaLabel",void 0);F([(0,M.property)()],T.prototype,"ariaHasPopup",void 0);F([(0,M.property)({attribute:"aria-pressed"})],T.prototype,"ariaPressed",void 0);F([(0,M.property)()],T.prototype,"tooltipPosition",void 0);F([(0,M.property)({type:Boolean})],T.prototype,"hideTooltip",void 0);F([(0,M.property)({type:Boolean})],T.prototype,"forceTooltip",void 0);F([(0,M.property)({type:Boolean})],T.prototype,"activated",void 0);F([(0,M.query)(".ft-button")],T.prototype,"button",void 0);F([(0,M.query)(".ft-button--label")],T.prototype,"labelContainer",void 0);F([(0,M.state)()],T.prototype,"hasTextContent",void 0);F([(0,M.query)(".ft-button--label slot")],T.prototype,"slottedContent",void 0);F([(0,M.query)("[part=tooltip]")],T.prototype,"tooltip",void 0);var Ec=f(E());var bc={"ft-button":T};(0,Ec.customElements)(bc);var _c=f(I()),Mt=f(X()),Zn=f(E());var le;(function(e){e.S="S",e.M="M",e.L="L",e.XL="XL",e.XXL="XXL"})(le||(le={}));var Ac=f(I());var Sc=Ac.css`
|
|
620
620
|
.ft-size-watcher--pixel {
|
|
621
621
|
width: 0;
|
|
622
622
|
height: 0;
|
|
@@ -635,11 +635,11 @@
|
|
|
635
635
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
636
636
|
width: 100%;
|
|
637
637
|
}
|
|
638
|
-
`;var $r=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},ao=class extends CustomEvent{constructor(t,r){super("change",{detail:{size:t,category:r}})}},xe=class extends Zn.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=le.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new Zn.Debouncer}render(){return
|
|
638
|
+
`;var $r=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},ao=class extends CustomEvent{constructor(t,r){super("change",{detail:{size:t,category:r}})}},xe=class extends Zn.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=le.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new Zn.Debouncer}render(){return _c.html`
|
|
639
639
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
640
640
|
<div class="ft-size-watcher--watcher"></div>
|
|
641
641
|
</div>
|
|
642
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=le.S:this.size<976?this.category=le.M:this.size<1024?this.category=le.L:this.size<1440?this.category=le.XL:this.category=le.XXL,this.dispatchEvent(new ao(this.size,this.category)))},this.debounceTimeout)}};xe.elementDefinitions={};xe.styles=
|
|
642
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=le.S:this.size<976?this.category=le.M:this.size<1024?this.category=le.L:this.size<1440?this.category=le.XL:this.category=le.XXL,this.dispatchEvent(new ao(this.size,this.category)))},this.debounceTimeout)}};xe.elementDefinitions={};xe.styles=Sc;$r([(0,Mt.property)({type:Number})],xe.prototype,"debounceTimeout",void 0);$r([(0,Mt.property)({type:Boolean})],xe.prototype,"local",void 0);$r([(0,Mt.property)({type:Number,reflect:!0})],xe.prototype,"size",void 0);$r([(0,Mt.property)({type:String,reflect:!0})],xe.prototype,"category",void 0);$r([(0,Mt.query)(".ft-size-watcher--watcher")],xe.prototype,"watcher",void 0);var wc=f(E());var Cc={"ft-size-watcher":xe};(0,wc.customElements)(Cc);var Tc=f(I()),D=f(E());var L={tabulationSize:D.FtCssVariableFactory.create("--ft-reader-toc-tabulation-size","","SIZE","16px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-reader-toc-vertical-spacing","","SIZE","4px"),textColor:D.FtCssVariableFactory.extend("--ft-reader-toc-text-color","",D.designSystemVariables.colorOnSurface),hoverColor:D.FtCssVariableFactory.extend("--ft-reader-toc-hover-color","",D.designSystemVariables.colorPrimary),highlightedTextColor:D.FtCssVariableFactory.extend("--ft-reader-toc-highlighted-text-color","",D.designSystemVariables.colorPrimary),highlightedFontWeight:D.FtCssVariableFactory.create("--ft-reader-toc-highlighted-font-weight","","UNKNOWN","bold"),highlightedBackgroundColor:D.FtCssVariableFactory.create("--ft-reader-toc-highlighted-background-color","","COLOR","transparent"),iconFontSize:D.FtCssVariableFactory.create("--ft-reader-toc-icon-font-size","","SIZE","16px"),treeNodeIconColor:D.FtCssVariableFactory.create("--ft-reader-toc-tree-node-icon-color","","COLOR",D.designSystemVariables.colorPrimary),leafNodeIconColor:D.FtCssVariableFactory.create("--ft-reader-toc-leaf-node-icon-color","","COLOR",D.designSystemVariables.colorPrimary),nodeButtonBackgroundColor:D.FtCssVariableFactory.create("--ft-reader-toc-node-button-background-color","","COLOR",D.designSystemVariables.colorSurface),expandCollapseAllButtonColor:D.FtCssVariableFactory.create("--ft-reader-toc-expand-collapse-all-button-color","","COLOR",D.designSystemVariables.colorPrimary),expandCollapseAllButtonBackgroundColor:D.FtCssVariableFactory.create("--ft-reader-toc-expand-collapse-all-button-background-color","","COLOR",D.designSystemVariables.colorSurface)},Oc=Tc.css`
|
|
643
643
|
.ft-reader-toc {
|
|
644
644
|
color: ${L.textColor};
|
|
645
645
|
}
|
|
@@ -723,7 +723,7 @@
|
|
|
723
723
|
.ft-reader-toc-expand-collapse-all-justify ft-button {
|
|
724
724
|
flex-grow: 1;
|
|
725
725
|
}
|
|
726
|
-
`;var
|
|
726
|
+
`;var Lc=f(I()),Pc=f(E());var Rc=f(I()),Me=f(E()),pe={display:Me.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Me.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Me.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Me.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Me.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Me.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Me.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Me.FtCssVariableFactory.external(Me.designSystemVariables.borderRadiusM,"Design system")},Nc=Rc.css`
|
|
727
727
|
:host {
|
|
728
728
|
width: ${pe.width};
|
|
729
729
|
height: ${pe.height};
|
|
@@ -750,8 +750,8 @@
|
|
|
750
750
|
background-position: calc(100vw + ${pe.glareWidth}) 0, calc(${pe.glareWidth} * -1) 0;
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
|
-
`;var We=class extends
|
|
754
|
-
`}};We.elementDefinitions={};We.styles=
|
|
753
|
+
`;var We=class extends Pc.FtLitElement{render(){return Lc.html`
|
|
754
|
+
`}};We.elementDefinitions={};We.styles=Nc;var Ic=f(E());var kc={"ft-skeleton":We};(0,Ic.customElements)(kc);var Je=Kn.build("designedReaderToc"),Dc={expand:"Expand {0}",collapse:"Collapse {0}",expandAll:"Expand all",expandAllLong:"Expand all table of contents",collapseAll:"Collapse all",collapseAllLong:"Collapse all table of contents"};var Ur=f(I()),H=f(X()),$e=f(E());var $=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},N=class extends Wn(Vt){get isCurrentPageToc(){return this.scope==="current-page"}nodeIsExpanded(t){return this.expanded||this.manuallyExpandedNodes.has(t.tocId)||(this.expandAll||this.automaticallyExpandedNodes.has(t.tocId))&&!this.manuallyCollapsedNodes.has(t.tocId)}constructor(){super(),this.expanded=!1,this.iconVariant=De.fluid_topics,this.collapseIcon="MINUS",this.expandIcon="PLUS",this.leafNodeIconVariant=De.fluid_topics,this.leafNodeIcon="DOT",this.expandCollapseAll=!1,this.expandCollapseAllHideLabel=!1,this.expandCollapseAllTrailingIcon=!1,this.expandCollapseAllAlignment="left",this.expandCollapseAllHideIcon=!1,this.collapseAllIcon="ICON_COLLAPSE",this.expandAllIcon="ICON_EXPAND",this.autoCollapse=!1,this.scrollCurrentTopicIntoView=!1,this.scope="pages",this.empty=!0,this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set,this.expandAll=!1,this.viewportSize=le.M,this.nodesToExpandExist=!1,this.addI18nContext(Je,Dc)}willUpdate(t){var r,n,i;super.willUpdate(t),t.has("toc")&&(this.nodesToExpandExist=((r=this.toc)!==null&&r!==void 0?r:[]).some(o=>o.children.length>0)),t.has("highlightedTocIds")&&!this.expanded&&(this.automaticallyExpandedNodes=this.buildAutomaticallyExpandedNodes((n=this.highlightedTocIds)!==null&&n!==void 0?n:[])),this.empty=((i=this.toc)!==null&&i!==void 0?i:[]).length===0}contentAvailableCallback(t){var r,n;if(super.contentAvailableCallback(t),this.scrollCurrentTopicIntoView&&t.has("highlightedTocIds")&&this.highlightedTocIds&&((r=this.highlightedTocIds)===null||r===void 0?void 0:r.length)>0){let i=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`[tocId="${this.highlightedTocIds[0]}"]`);i&&$e.scrollHelper.scrollIntoViewIfPossible(i,{behavior:"instant",position:.25})}}get tocClasses(){return{"ft-reader-toc":!0,"ft-reader-toc-mobile":this.viewportSize===le.S,"ft-reader-toc-desktop":this.viewportSize!==le.S,"ft-reader-toc-loaded":this.currentPage!=null,"ft-reader-toc-expanded":this.expanded}}renderExpandCollapseAll(){return this.expandCollapseAll&&!this.expanded&&this.nodesToExpandExist?Ur.html`
|
|
755
755
|
<div part="expand-collapse-all-container"
|
|
756
756
|
class="ft-reader-toc-expand-collapse-all-container ft-reader-toc-expand-collapse-all-${this.expandCollapseAllAlignment}">
|
|
757
757
|
<ft-button part="expand-collapse-all"
|
|
@@ -770,16 +770,16 @@
|
|
|
770
770
|
part="leaf-node-icon"
|
|
771
771
|
.variant=${this.leafNodeIconVariant}
|
|
772
772
|
.value=${this.leafNodeIcon}></ft-icon>
|
|
773
|
-
`}};N.elementDefinitions={"ft-button":T,"ft-icon":te,"ft-size-watcher":xe};$([(0,H.property)({type:Boolean})],N.prototype,"expanded",void 0);$([(0,H.property)()],N.prototype,"iconVariant",void 0);$([(0,H.property)()],N.prototype,"collapseIcon",void 0);$([(0,H.property)()],N.prototype,"expandIcon",void 0);$([(0,H.property)()],N.prototype,"leafNodeIconVariant",void 0);$([(0,H.property)()],N.prototype,"leafNodeIcon",void 0);$([(0,H.property)({type:Boolean})],N.prototype,"expandCollapseAll",void 0);$([(0,H.property)({type:Boolean})],N.prototype,"expandCollapseAllHideLabel",void 0);$([(0,H.property)({type:Boolean})],N.prototype,"expandCollapseAllTrailingIcon",void 0);$([(0,H.property)()],N.prototype,"expandCollapseAllAlignment",void 0);$([(0,H.property)({type:Boolean})],N.prototype,"expandCollapseAllHideIcon",void 0);$([(0,H.property)()],N.prototype,"expandCollapseAllIconVariant",void 0);$([(0,H.property)()],N.prototype,"collapseAllIcon",void 0);$([(0,H.property)()],N.prototype,"expandAllIcon",void 0);$([(0,H.property)({type:Boolean})],N.prototype,"autoCollapse",void 0);$([(0,H.property)({type:Boolean})],N.prototype,"scrollCurrentTopicIntoView",void 0);$([(0,H.property)()],N.prototype,"scope",void 0);$([(0,H.property)({type:Boolean,reflect:!0})],N.prototype,"empty",void 0);$([(0,$e.redux)({selector:(e,t)=>{var r,n,i;return t.isCurrentPageToc?!((r=e.paginationConfiguration)===null||r===void 0)&&r.splitCurrentPageToc?(n=e.currentPage)===null||n===void 0?void 0:n.toc:void 0:!((i=e.paginationConfiguration)===null||i===void 0)&&i.splitCurrentPageToc?e.pagesToc:e.toc}})],N.prototype,"toc",void 0);$([(0,$e.redux)()],N.prototype,"currentPage",void 0);$([(0,$e.redux)({selector:(e,t)=>{var r,n;return!((r=e.paginationConfiguration)===null||r===void 0)&&r.splitCurrentPageToc&&!t.isCurrentPageToc?!((n=e.currentPage)===null||n===void 0)&&n.rootTocId?[e.currentPage.rootTocId]:[]:e.visibleTopics}})],N.prototype,"highlightedTocIds",void 0);$([(0,$e.redux)({selector:e=>e.translation.isLoading})],N.prototype,"translationLoading",void 0);$([(0,H.state)({hasChanged:$e.hasChanged})],N.prototype,"automaticallyExpandedNodes",void 0);$([(0,H.state)({hasChanged:$e.hasChanged})],N.prototype,"manuallyExpandedNodes",void 0);$([(0,H.state)({hasChanged:$e.hasChanged})],N.prototype,"manuallyCollapsedNodes",void 0);$([(0,H.state)()],N.prototype,"expandAll",void 0);$([(0,H.state)()],N.prototype,"viewportSize",void 0);var
|
|
774
|
-
<div class="${(0
|
|
773
|
+
`}};N.elementDefinitions={"ft-button":T,"ft-icon":te,"ft-size-watcher":xe};$([(0,H.property)({type:Boolean})],N.prototype,"expanded",void 0);$([(0,H.property)()],N.prototype,"iconVariant",void 0);$([(0,H.property)()],N.prototype,"collapseIcon",void 0);$([(0,H.property)()],N.prototype,"expandIcon",void 0);$([(0,H.property)()],N.prototype,"leafNodeIconVariant",void 0);$([(0,H.property)()],N.prototype,"leafNodeIcon",void 0);$([(0,H.property)({type:Boolean})],N.prototype,"expandCollapseAll",void 0);$([(0,H.property)({type:Boolean})],N.prototype,"expandCollapseAllHideLabel",void 0);$([(0,H.property)({type:Boolean})],N.prototype,"expandCollapseAllTrailingIcon",void 0);$([(0,H.property)()],N.prototype,"expandCollapseAllAlignment",void 0);$([(0,H.property)({type:Boolean})],N.prototype,"expandCollapseAllHideIcon",void 0);$([(0,H.property)()],N.prototype,"expandCollapseAllIconVariant",void 0);$([(0,H.property)()],N.prototype,"collapseAllIcon",void 0);$([(0,H.property)()],N.prototype,"expandAllIcon",void 0);$([(0,H.property)({type:Boolean})],N.prototype,"autoCollapse",void 0);$([(0,H.property)({type:Boolean})],N.prototype,"scrollCurrentTopicIntoView",void 0);$([(0,H.property)()],N.prototype,"scope",void 0);$([(0,H.property)({type:Boolean,reflect:!0})],N.prototype,"empty",void 0);$([(0,$e.redux)({selector:(e,t)=>{var r,n,i;return t.isCurrentPageToc?!((r=e.paginationConfiguration)===null||r===void 0)&&r.splitCurrentPageToc?(n=e.currentPage)===null||n===void 0?void 0:n.toc:void 0:!((i=e.paginationConfiguration)===null||i===void 0)&&i.splitCurrentPageToc?e.pagesToc:e.toc}})],N.prototype,"toc",void 0);$([(0,$e.redux)()],N.prototype,"currentPage",void 0);$([(0,$e.redux)({selector:(e,t)=>{var r,n;return!((r=e.paginationConfiguration)===null||r===void 0)&&r.splitCurrentPageToc&&!t.isCurrentPageToc?!((n=e.currentPage)===null||n===void 0)&&n.rootTocId?[e.currentPage.rootTocId]:[]:e.visibleTopics}})],N.prototype,"highlightedTocIds",void 0);$([(0,$e.redux)({selector:e=>e.translation.isLoading})],N.prototype,"translationLoading",void 0);$([(0,H.state)({hasChanged:$e.hasChanged})],N.prototype,"automaticallyExpandedNodes",void 0);$([(0,H.state)({hasChanged:$e.hasChanged})],N.prototype,"manuallyExpandedNodes",void 0);$([(0,H.state)({hasChanged:$e.hasChanged})],N.prototype,"manuallyCollapsedNodes",void 0);$([(0,H.state)()],N.prototype,"expandAll",void 0);$([(0,H.state)()],N.prototype,"viewportSize",void 0);var $c=f(bt()),ir=class extends N{render(){var t,r;return Ue.html`
|
|
774
|
+
<div class="${(0,$c.classMap)(this.tocClasses)}" role="tree" aria-label="${(t=this.currentPage)===null||t===void 0?void 0:t.title}">
|
|
775
775
|
<ft-size-watcher @change=${this.onViewportSizeChange}></ft-size-watcher>
|
|
776
776
|
${this.renderExpandCollapseAll()}
|
|
777
777
|
${Bt((r=this.toc)!==null&&r!==void 0?r:[],n=>this.renderNode(n))}
|
|
778
778
|
</div>
|
|
779
|
-
`}renderNode(t){var r,n,i;let o=(r=this.highlightedTocIds)===null||r===void 0?void 0:r.includes(t.tocId),s=this.nodeIsExpanded(t),a=t.children.length>0,l=this.isCurrentPageToc?((i=(n=this.currentPage)===null||n===void 0?void 0:n.breadcrumb.length)!==null&&i!==void 0?i:0)+1:0,c=t.depth-1-l,
|
|
779
|
+
`}renderNode(t){var r,n,i;let o=(r=this.highlightedTocIds)===null||r===void 0?void 0:r.includes(t.tocId),s=this.nodeIsExpanded(t),a=t.children.length>0,l=this.isCurrentPageToc?((i=(n=this.currentPage)===null||n===void 0?void 0:n.breadcrumb.length)!==null&&i!==void 0?i:0)+1:0,c=t.depth-1-l,d={"padding-left":`calc( ${L.tabulationSize} * ${c} + 4px)`};return Ue.html`
|
|
780
780
|
<div class="ft-reader-toc--node ${o?"ft-reader-toc--node-highlighted":""}"
|
|
781
781
|
aria-current="${Te(o?"true":void 0)}">
|
|
782
|
-
<div class="ft-reader-toc--link-container" data-depth="${t.depth}" style="${(0,
|
|
782
|
+
<div class="ft-reader-toc--link-container" data-depth="${t.depth}" style="${(0,Mc.styleMap)(d)}">
|
|
783
783
|
${this.nodesToExpandExist&&!this.expanded?Ue.html`
|
|
784
784
|
<div class="ft-reader-toc--toggle-container">
|
|
785
785
|
${a?Ue.html`
|
|
@@ -811,11 +811,11 @@
|
|
|
811
811
|
<div id="${t.tocId}-children"
|
|
812
812
|
class="ft-reader-toc--node-children"
|
|
813
813
|
?hidden=${!s}>
|
|
814
|
-
${Bt(s?t.children:[],
|
|
814
|
+
${Bt(s?t.children:[],u=>this.renderNode(u))}
|
|
815
815
|
</div>
|
|
816
816
|
`:Ue.nothing}
|
|
817
817
|
</div>
|
|
818
|
-
`}};ir.elementDefinitions={...N.elementDefinitions,"ft-button":T,"ft-reader-internal-link":Re,"ft-typography":J,"ft-skeleton":We};ir.styles=
|
|
818
|
+
`}};ir.elementDefinitions={...N.elementDefinitions,"ft-button":T,"ft-reader-internal-link":Re,"ft-typography":J,"ft-skeleton":We};ir.styles=Oc;var we=f(I());var Gc=f(ei());var Uc=f(I()),Br=f(E());var Bc=Uc.css`
|
|
819
819
|
.ft-reader-toc {
|
|
820
820
|
color: ${L.textColor};
|
|
821
821
|
}
|
|
@@ -881,7 +881,7 @@
|
|
|
881
881
|
.ft-reader-toc-expand-collapse-all-justify ft-button {
|
|
882
882
|
flex-grow: 1;
|
|
883
883
|
}
|
|
884
|
-
`;var
|
|
884
|
+
`;var qc=f(bt());var Jn=f(I()),re=f(X()),jc=f(bt()),or=f(E());var Fr=f(I()),O=f(E());var Fc=O.FtCssVariableFactory.extend("--ft-chip-color","",O.designSystemVariables.colorOnSurface),fe={backgroundColor:O.FtCssVariableFactory.extend("--ft-chip-background-color","",O.designSystemVariables.colorSurface),color:Fc,fontSize:O.FtCssVariableFactory.extend("--ft-chip-font-size","",he.fontSize),fontWeight:O.FtCssVariableFactory.extend("--ft-chip-font-weight","",he.fontWeight),iconSize:O.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:O.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:O.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Fc),horizontalPadding:O.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:O.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:O.FtCssVariableFactory.extend("--ft-chip-border-color","",O.designSystemVariables.colorOutline),opacityDisabled:O.FtCssVariableFactory.external(O.designSystemVariables.colorOpacityDisabled,"Design system")},Hc=O.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",O.FtCssVariableFactory.extend("--ft-chip-color","",O.designSystemVariables.colorOnPrimary)),lo={backgroundColor:O.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",O.FtCssVariableFactory.extend("--ft-chip-background-color","",O.designSystemVariables.colorPrimary)),color:Hc,rippleColor:O.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Hc)},Vc={horizontalPadding:O.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:O.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},zc=[O.noTextSelect,Fr.css`
|
|
885
885
|
:host {
|
|
886
886
|
display: inline-block;
|
|
887
887
|
max-width: 100%;
|
|
@@ -921,8 +921,8 @@
|
|
|
921
921
|
|
|
922
922
|
.ft-chip--dense {
|
|
923
923
|
--chip-internal-icon-padding: 3px;
|
|
924
|
-
--chip-internal-vertical-padding: ${
|
|
925
|
-
--chip-internal-horizontal-padding: ${
|
|
924
|
+
--chip-internal-vertical-padding: ${Vc.verticalPadding};
|
|
925
|
+
--chip-internal-horizontal-padding: ${Vc.horizontalPadding};
|
|
926
926
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
927
927
|
}
|
|
928
928
|
|
|
@@ -1022,7 +1022,7 @@
|
|
|
1022
1022
|
order: -1;
|
|
1023
1023
|
}
|
|
1024
1024
|
`];var ce=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Qn=class extends CustomEvent{constructor(){super("icon-click")}},z=class extends or.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var t;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":or.isSafari};return Jn.html`
|
|
1025
|
-
<div class="${(0,
|
|
1025
|
+
<div class="${(0,jc.classMap)(r)}"
|
|
1026
1026
|
aria-label="${this.getLabel()}"
|
|
1027
1027
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1028
1028
|
@keyup=${this.onKeyUp}
|
|
@@ -1048,15 +1048,15 @@
|
|
|
1048
1048
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1049
1049
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
1050
1050
|
</div>
|
|
1051
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Qn))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Qn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,or.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};z.elementDefinitions={"ft-ripple":U,"ft-typography":J,"ft-icon":te,"ft-button":T};z.styles=
|
|
1052
|
-
<div class="${(0,
|
|
1051
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Qn))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Qn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,or.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};z.elementDefinitions={"ft-ripple":U,"ft-typography":J,"ft-icon":te,"ft-button":T};z.styles=zc;ce([(0,re.property)({type:Boolean})],z.prototype,"highlighted",void 0);ce([(0,re.property)({type:Boolean})],z.prototype,"removable",void 0);ce([(0,re.property)({type:Boolean})],z.prototype,"disabled",void 0);ce([(0,re.property)({type:Boolean})],z.prototype,"clickable",void 0);ce([(0,re.property)({type:Boolean})],z.prototype,"iconClickable",void 0);ce([(0,re.property)({type:Boolean})],z.prototype,"dense",void 0);ce([(0,re.property)({type:Boolean})],z.prototype,"multiLine",void 0);ce([(0,re.property)()],z.prototype,"label",void 0);ce([(0,re.property)()],z.prototype,"iconLabel",void 0);ce([(0,re.property)({type:Boolean})],z.prototype,"hideIconTooltip",void 0);ce([(0,re.property)()],z.prototype,"icon",void 0);ce([(0,re.property)()],z.prototype,"iconVariant",void 0);ce([(0,re.property)({type:Boolean})],z.prototype,"trailingIcon",void 0);ce([(0,re.property)()],z.prototype,"typographyVariant",void 0);ce([(0,re.query)("ft-typography slot")],z.prototype,"slottedContent",void 0);var Kc=f(E());var Wc={"ft-chip":z};(0,Kc.customElements)(Wc);var Xc=f(X()),zu=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},$t=class extends N{willUpdate(t){var r,n,i;if(super.willUpdate(t),t.has("toc")||t.has("highlightedTocIds")){let o=(i=(r=this.toc)===null||r===void 0?void 0:r.flatMap(s=>this.allTocIds(s)))!==null&&i!==void 0?i:[];for(let s of o)if(!((n=this.highlightedTocIds)===null||n===void 0)&&n.includes(s)){this.currentTocNode=s;break}}}allTocIds(t){return[t.tocId,...t.children.flatMap(r=>this.allTocIds(r))]}render(){var t,r;return we.html`
|
|
1052
|
+
<div class="${(0,qc.classMap)(this.tocClasses)}" part="container">
|
|
1053
1053
|
<ft-size-watcher @change=${this.onViewportSizeChange}></ft-size-watcher>
|
|
1054
1054
|
${this.renderExpandCollapseAll()}
|
|
1055
1055
|
<div part="tree" role="tree" aria-label="${(t=this.currentPage)===null||t===void 0?void 0:t.title}">
|
|
1056
1056
|
${Bt((r=this.toc)!==null&&r!==void 0?r:[],n=>this.renderNode(n))}
|
|
1057
1057
|
</div>
|
|
1058
1058
|
</div>
|
|
1059
|
-
`}renderNode(t){var r,n,i,o;let s=(r=this.highlightedTocIds)===null||r===void 0?void 0:r.includes(t.tocId),a=t.tocId===this.currentTocNode,l=this.nodeIsExpanded(t),c=t.children.length>0,
|
|
1059
|
+
`}renderNode(t){var r,n,i,o;let s=(r=this.highlightedTocIds)===null||r===void 0?void 0:r.includes(t.tocId),a=t.tocId===this.currentTocNode,l=this.nodeIsExpanded(t),c=t.children.length>0,d=this.isCurrentPageToc?((o=(n=this.currentPage)===null||n===void 0?void 0:n.breadcrumb.length)!==null&&o!==void 0?o:0)+1:0,u=t.depth-1-d,p={"padding-left":`calc( ${L.tabulationSize} * ${u} + 4px)`};return we.html`
|
|
1060
1060
|
<div part="node ${s?"node-highlighted":""}"
|
|
1061
1061
|
class="ft-reader-toc--node ${s?"ft-reader-toc--node-highlighted":""}"
|
|
1062
1062
|
data-depth="${t.depth}">
|
|
@@ -1064,7 +1064,7 @@
|
|
|
1064
1064
|
<ft-skeleton></ft-skeleton>`:we.html`
|
|
1065
1065
|
<a part="node-link ${t.contentClass?`node-link-class-${t.contentClass}`:""}"
|
|
1066
1066
|
class="ft-reader-toc--node-link"
|
|
1067
|
-
style="${(0,
|
|
1067
|
+
style="${(0,Gc.styleMap)(p)}"
|
|
1068
1068
|
href="${(i=this.service)===null||i===void 0?void 0:i.getLinkWithFilter(t.tocId)}"
|
|
1069
1069
|
tabindex="${a?"0":"-1"}"
|
|
1070
1070
|
data-tocId="${t.tocId}"
|
|
@@ -1109,52 +1109,45 @@
|
|
|
1109
1109
|
part="${r.join(" ")}">
|
|
1110
1110
|
${t.contentTag}
|
|
1111
1111
|
</ft-chip>
|
|
1112
|
-
`}onLinkClick(t,r){var n,i,o;!t.ctrlKey&&!t.metaKey&&(t.preventDefault(),performance.mark(`fluid_topics__reader_link_click__${r}`),(n=this.stateManager)===null||n===void 0||n.navigateToTopic(r),(i=this.stateManager)===null||i===void 0||i.store.commands.clear(/^focus-topic-/),(o=this.stateManager)===null||o===void 0||o.store.commands.add({type:`focus-topic-${r}`}))}onKeyDown(t){var r,n,i,o,s;let a=t.currentTarget;switch(t.key){case"Home":(r=this.allLinks.shift())===null||r===void 0||r.focus();break;case"End":(n=this.allLinks.pop())===null||n===void 0||n.focus();break;case"ArrowDown":this.selectNextNode(a,this.allLinks),t.preventDefault();break;case"ArrowUp":this.selectNextNode(a,this.allLinks.reverse()),t.preventDefault();break;case"ArrowRight":a.ariaExpanded==="true"?this.selectNextNode(a,this.allLinks):a.ariaExpanded==="false"&&this.manuallyToggle(a.getAttribute("data-tocId"),!1),t.preventDefault();break;case"ArrowLeft":if(a.ariaExpanded==="true")this.manuallyToggle(a.getAttribute("data-tocId"),!0);else{let l=(s=(o=(i=a.parentElement)===null||i===void 0?void 0:i.parentElement)===null||o===void 0?void 0:o.parentElement)===null||s===void 0?void 0:s.querySelector('[part="node-link"]');l?.focus()}t.preventDefault();break}}get allLinks(){var t,r;return Array.from((r=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll('[part~="node-link"]'))!==null&&r!==void 0?r:[])}selectNextNode(t,r){let n=!1;for(let i of r){if(n){i.focus();return}i.getAttribute("data-tocId")===t.getAttribute("data-tocId")&&(n=!0)}}};$t.elementDefinitions={...N.elementDefinitions,"ft-typography":J,"ft-skeleton":We,"ft-ripple":U,"ft-chip":z};$t.styles=
|
|
1112
|
+
`}onLinkClick(t,r){var n,i,o;!t.ctrlKey&&!t.metaKey&&(t.preventDefault(),performance.mark(`fluid_topics__reader_link_click__${r}`),(n=this.stateManager)===null||n===void 0||n.navigateToTopic(r),(i=this.stateManager)===null||i===void 0||i.store.commands.clear(/^focus-topic-/),(o=this.stateManager)===null||o===void 0||o.store.commands.add({type:`focus-topic-${r}`}))}onKeyDown(t){var r,n,i,o,s;let a=t.currentTarget;switch(t.key){case"Home":(r=this.allLinks.shift())===null||r===void 0||r.focus();break;case"End":(n=this.allLinks.pop())===null||n===void 0||n.focus();break;case"ArrowDown":this.selectNextNode(a,this.allLinks),t.preventDefault();break;case"ArrowUp":this.selectNextNode(a,this.allLinks.reverse()),t.preventDefault();break;case"ArrowRight":a.ariaExpanded==="true"?this.selectNextNode(a,this.allLinks):a.ariaExpanded==="false"&&this.manuallyToggle(a.getAttribute("data-tocId"),!1),t.preventDefault();break;case"ArrowLeft":if(a.ariaExpanded==="true")this.manuallyToggle(a.getAttribute("data-tocId"),!0);else{let l=(s=(o=(i=a.parentElement)===null||i===void 0?void 0:i.parentElement)===null||o===void 0?void 0:o.parentElement)===null||s===void 0?void 0:s.querySelector('[part="node-link"]');l?.focus()}t.preventDefault();break}}get allLinks(){var t,r;return Array.from((r=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll('[part~="node-link"]'))!==null&&r!==void 0?r:[])}selectNextNode(t,r){let n=!1;for(let i of r){if(n){i.focus();return}i.getAttribute("data-tocId")===t.getAttribute("data-tocId")&&(n=!0)}}};$t.elementDefinitions={...N.elementDefinitions,"ft-typography":J,"ft-skeleton":We,"ft-ripple":U,"ft-chip":z};$t.styles=Bc;zu([(0,Xc.state)()],$t.prototype,"currentTocNode",void 0);var Yc={"ft-reader-toc":ir,"ft-reader-accessible-toc":$t};(0,Zc.customElements)(Yc);})();
|
|
1113
1113
|
/*! Bundled license information:
|
|
1114
1114
|
|
|
1115
|
-
lit-html/directives/map.js:
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1115
|
+
.store/lit-html-npm-3.3.3-0f054b825a/package/directives/map.js:
|
|
1116
|
+
.store/@lit-context-npm-1.1.6-2c155157c6/package/lib/context-request-event.js:
|
|
1117
|
+
.store/@lit-context-npm-1.1.6-2c155157c6/package/lib/create-context.js:
|
|
1118
|
+
.store/@lit-context-npm-1.1.6-2c155157c6/package/lib/controllers/context-consumer.js:
|
|
1119
|
+
.store/@lit-context-npm-1.1.6-2c155157c6/package/lib/value-notifier.js:
|
|
1120
|
+
.store/@lit-context-npm-1.1.6-2c155157c6/package/lib/controllers/context-provider.js:
|
|
1121
|
+
.store/@lit-context-npm-1.1.6-2c155157c6/package/lib/context-root.js:
|
|
1122
1122
|
(**
|
|
1123
1123
|
* @license
|
|
1124
1124
|
* Copyright 2021 Google LLC
|
|
1125
1125
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1126
1126
|
*)
|
|
1127
1127
|
|
|
1128
|
-
lit-html/lit-html.js:
|
|
1129
|
-
|
|
1128
|
+
.store/lit-html-npm-3.3.3-0f054b825a/package/lit-html.js:
|
|
1129
|
+
.store/@lit-context-npm-1.1.6-2c155157c6/package/lib/decorators/provide.js:
|
|
1130
1130
|
(**
|
|
1131
1131
|
* @license
|
|
1132
1132
|
* Copyright 2017 Google LLC
|
|
1133
1133
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1134
1134
|
*)
|
|
1135
1135
|
|
|
1136
|
-
lit-html/directives/if-defined.js:
|
|
1136
|
+
.store/lit-html-npm-3.3.3-0f054b825a/package/directives/if-defined.js:
|
|
1137
1137
|
(**
|
|
1138
1138
|
* @license
|
|
1139
1139
|
* Copyright 2018 Google LLC
|
|
1140
1140
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1141
1141
|
*)
|
|
1142
1142
|
|
|
1143
|
-
lit-html/static.js:
|
|
1143
|
+
.store/lit-html-npm-3.3.3-0f054b825a/package/static.js:
|
|
1144
1144
|
(**
|
|
1145
1145
|
* @license
|
|
1146
1146
|
* Copyright 2020 Google LLC
|
|
1147
1147
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1148
1148
|
*)
|
|
1149
1149
|
|
|
1150
|
-
|
|
1151
|
-
(**
|
|
1152
|
-
* @license
|
|
1153
|
-
* Copyright 2019 Google LLC
|
|
1154
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
1155
|
-
*)
|
|
1156
|
-
|
|
1157
|
-
@lit/context/lib/decorators/consume.js:
|
|
1150
|
+
.store/@lit-context-npm-1.1.6-2c155157c6/package/lib/decorators/consume.js:
|
|
1158
1151
|
(**
|
|
1159
1152
|
* @license
|
|
1160
1153
|
* Copyright 2022 Google LLC
|