@fluid-topics/ft-reader-toc 2.2.37 → 2.2.38
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 +38 -38
- package/build/ft-reader-toc.min.js +116 -116
- package/package.json +14 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var td=Object.create;var po=Object.defineProperty;var rd=Object.getOwnPropertyDescriptor;var nd=Object.getOwnPropertyNames;var id=Object.getPrototypeOf,od=Object.prototype.hasOwnProperty;var Ut=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var sd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nd(t))!od.call(e,i)&&i!==r&&po(e,i,{get:()=>t[i],enumerable:!(n=rd(t,i))||n.enumerable});return e};var f=(e,t,r)=>(r=e!=null?td(id(e)):{},sd(t||!e||!e.__esModule?po(r,"default",{value:e,enumerable:!0}):r,e));var E=Ut((Ku,fo)=>{fo.exports=ftGlobals.wcUtils});var k=Ut((Gu,ho)=>{ho.exports=ftGlobals.lit});var ri=Ut((Zu,mo)=>{mo.exports=ftGlobals.litStyleMap});var q=Ut((cp,Io)=>{Io.exports=ftGlobals.litDecorators});var bt=Ut((Cp,Zo)=>{Zo.exports=ftGlobals.litClassMap});var ac=Ut((lx,sc)=>{sc.exports=ftGlobals.litUnsafeHTML});var Jc=f(E());var Be=f(k());function*Bt(e,t){if(e!==void 0){let r=0;for(let n of e)yield t(n,r++)}}var $c=f(ri());var ci=globalThis,yo=e=>e,jr=ci.trustedTypes,go=jr?jr.createPolicy("lit-html",{createHTML:e=>e}):void 0,So="$lit$",et=`lit$${Math.random().toFixed(9).slice(2)}$`,_o="?"+et,ad=`<${_o}>`,ut=document,Wr=()=>ut.createComment(""),cr=e=>e===null||typeof e!="object"&&typeof e!="function",di=Array.isArray,ld=e=>di(e)||typeof e?.[Symbol.iterator]=="function",ni=`[
|
|
2
2
|
\f\r]`,lr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xo=/-->/g,vo=/>/g,ct=RegExp(`>|${ni}(?:([^\\s"'>=/]+)(${ni}*=${ni}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),bo=/'/g,Eo=/"/g,Co=/^(?:script|style|textarea|title)$/i,ui=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),wo=ui(1),To=ui(2),Oo=ui(3),dr=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),Ao=new WeakMap,dt=ut.createTreeWalker(ut,129);function Ro(e,t){if(!di(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return go!==void 0?go.createHTML(t):t}var ld=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=lr;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===lr?d[1]==="!--"?s=xo:d[1]!==void 0?s=vo:d[2]!==void 0?(Co.test(d[2])&&(i=RegExp("</"+d[2],"g")),s=ct):d[3]!==void 0&&(s=ct):s===ct?d[0]===">"?(s=i??lr,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]==='"'?Eo:bo):s===Eo||s===bo?s=ct:s===xo||s===vo?s=lr:(s=ct,i=void 0);let m=s===ct&&e[a+1].startsWith("/>")?" ":"";o+=s===lr?l+sd:u>=0?(n.push(c),l.slice(0,u)+So+l.slice(u)+et+m):l+et+(u===-2?a:m)}return[Ro(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,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(So)){let p=d[s++],m=i.getAttribute(u).split(et),v=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:v[2],strings:m,ctor:v[1]==="."?oi:v[1]==="?"?si:v[1]==="@"?ai:Ht}),i.removeAttribute(u)}else u.startsWith(et)&&(l.push({type:6,index:o}),i.removeAttribute(u));if(Co.test(i.tagName)){let u=i.textContent.split(et),p=u.length-1;if(p>0){i.textContent=jr?jr.emptyScript:"";for(let m=0;m<p;m++)i.append(u[m],Wr()),dt.nextNode(),l.push({type:2,index:++o});i.append(u[p],Wr())}}}else if(i.nodeType===8)if(i.data===_o)l.push({type:2,index:o});else{let u=-1;for(;(u=i.data.indexOf(et,u+1))!==-1;)l.push({type:7,index:o}),u+=et.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===dr)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=cr(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 ii=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 Kr(o,o.nextSibling,this,t):l.type===1?c=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(c=new li(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++}},Kr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=j,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),cr(t)?t===j||t==null||t===""?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==dr&&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!==j&&cr(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=ur.createElement(Ro(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new ii(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=Ao.get(t.strings);return r===void 0&&Ao.set(t.strings,r=new ur(t)),r}k(t){di(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(Wr()),this.O(Wr()),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=yo(t).nextSibling;yo(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=j,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=j}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=Ft(this,t,r,0),s=!cr(t)||t!==this._$AH&&t!==dr,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===dr&&(c=this._$AH[l]),s||=!cr(c)||c!==this._$AH[l],c===j?t=j:t!==j&&(t+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!i&&this.j(t)}j(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},oi=class extends Ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===j?void 0:t}},si=class extends Ht{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==j)}},ai=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)??j)===dr)return;let n=this._$AH,i=t===j&&n!==j||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==j&&(n===j||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)}},li=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=ci.litHtmlPolyfillSupport;cd?.(ur,Kr),(ci.litHtmlVersions??=[]).push("3.3.3");var be=e=>e??j;var Lo=Symbol.for(""),dd=e=>{if(e?.r===Lo)return e?._$litStatic$},pi=e=>({_$litStatic$:e,r:Lo});var No=new Map,fi=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=No.get(u))===void 0&&(s.raw=s,No.set(u,t=s)),r=a}return e(t,...r)},hi=fi(wo),np=fi(To),ip=fi(Oo);var mi=f(q()),Ko=f(E());var Fe;(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"})(Fe||(Fe={}));var Ee=f(k()),h=f(E()),Io=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),qe=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),g={fontFamily:qe,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","",Io),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","",Io),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","",qe),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","",qe),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","",qe),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","",qe),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","",qe),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","",qe),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","",qe),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","",qe),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")},ko=Ee.css`
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),bo=/'/g,Eo=/"/g,Co=/^(?:script|style|textarea|title)$/i,ui=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),wo=ui(1),To=ui(2),Oo=ui(3),dr=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),Ao=new WeakMap,dt=ut.createTreeWalker(ut,129);function Ro(e,t){if(!di(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return go!==void 0?go.createHTML(t):t}var cd=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=lr;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===lr?d[1]==="!--"?s=xo:d[1]!==void 0?s=vo:d[2]!==void 0?(Co.test(d[2])&&(i=RegExp("</"+d[2],"g")),s=ct):d[3]!==void 0&&(s=ct):s===ct?d[0]===">"?(s=i??lr,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]==='"'?Eo:bo):s===Eo||s===bo?s=ct:s===xo||s===vo?s=lr:(s=ct,i=void 0);let m=s===ct&&e[a+1].startsWith("/>")?" ":"";o+=s===lr?l+ad:u>=0?(n.push(c),l.slice(0,u)+So+l.slice(u)+et+m):l+et+(u===-2?a:m)}return[Ro(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,d]=cd(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(So)){let p=d[s++],m=i.getAttribute(u).split(et),v=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:v[2],strings:m,ctor:v[1]==="."?oi:v[1]==="?"?si:v[1]==="@"?ai:Ht}),i.removeAttribute(u)}else u.startsWith(et)&&(l.push({type:6,index:o}),i.removeAttribute(u));if(Co.test(i.tagName)){let u=i.textContent.split(et),p=u.length-1;if(p>0){i.textContent=jr?jr.emptyScript:"";for(let m=0;m<p;m++)i.append(u[m],Wr()),dt.nextNode(),l.push({type:2,index:++o});i.append(u[p],Wr())}}}else if(i.nodeType===8)if(i.data===_o)l.push({type:2,index:o});else{let u=-1;for(;(u=i.data.indexOf(et,u+1))!==-1;)l.push({type:7,index:o}),u+=et.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===dr)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=cr(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 ii=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 Kr(o,o.nextSibling,this,t):l.type===1?c=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(c=new li(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++}},Kr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=j,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),cr(t)?t===j||t==null||t===""?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==dr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ld(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!==j&&cr(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=ur.createElement(Ro(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new ii(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=Ao.get(t.strings);return r===void 0&&Ao.set(t.strings,r=new ur(t)),r}k(t){di(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(Wr()),this.O(Wr()),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=yo(t).nextSibling;yo(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=j,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=j}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=Ft(this,t,r,0),s=!cr(t)||t!==this._$AH&&t!==dr,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===dr&&(c=this._$AH[l]),s||=!cr(c)||c!==this._$AH[l],c===j?t=j:t!==j&&(t+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!i&&this.j(t)}j(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},oi=class extends Ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===j?void 0:t}},si=class extends Ht{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==j)}},ai=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)??j)===dr)return;let n=this._$AH,i=t===j&&n!==j||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==j&&(n===j||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)}},li=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 dd=ci.litHtmlPolyfillSupport;dd?.(ur,Kr),(ci.litHtmlVersions??=[]).push("3.3.3");var be=e=>e??j;var Lo=Symbol.for(""),ud=e=>{if(e?.r===Lo)return e?._$litStatic$},pi=e=>({_$litStatic$:e,r:Lo});var No=new Map,fi=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=ud(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=No.get(u))===void 0&&(s.raw=s,No.set(u,t=s)),r=a}return e(t,...r)},hi=fi(wo),ip=fi(To),op=fi(Oo);var mi=f(q()),Ko=f(E());var Fe;(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"})(Fe||(Fe={}));var Ee=f(k()),h=f(E()),Po=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),qe=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),g={fontFamily:qe,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","",Po),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","",Po),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","",qe),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","",qe),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","",qe),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","",qe),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","",qe),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","",qe),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","",qe),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","",qe),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")},ko=Ee.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
5
|
font-family: ${pt.fontFamily};
|
|
6
6
|
font-size: ${pt.fontSize};
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
text-decoration: none;
|
|
127
127
|
color: inherit;
|
|
128
128
|
}
|
|
129
|
-
`;var ts=f(k()),Xr=f(q()),rs=f(bt());var zt=f(E()),es=f(q());var Jo;(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"})(Jo||(Jo={}));var Qo;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Qo||(Qo={}));var
|
|
129
|
+
`;var ts=f(k()),Xr=f(q()),rs=f(bt());var zt=f(E()),es=f(q());var Jo;(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"})(Jo||(Jo={}));var Qo;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Qo||(Qo={}));var pd=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},xi=class extends zt.FtContextRegistrationEvent{constructor(t){super("register-ft-reader-component",t)}},gi=Symbol("registerInterval"),fd=(0,zt.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[gi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[gi]):this.dispatchEvent(new xi({target:this}))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=gi,pd([(0,es.state)()],r.prototype,"stateManager",void 0),r}),Vt=class extends fd(zt.FtLitElementRedux){};var ns=f(E()),qr=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,rs.classMap)({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return ts.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)}>
|
|
@@ -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()}};B.elementDefinitions={};B.styles=ps;de([(0,ee.property)({type:Boolean})],B.prototype,"primary",void 0);de([(0,ee.property)({type:Boolean})],B.prototype,"secondary",void 0);de([(0,ee.property)({type:Boolean})],B.prototype,"unbounded",void 0);de([(0,ee.property)({type:Boolean})],B.prototype,"activated",void 0);de([(0,ee.property)({type:Boolean})],B.prototype,"selected",void 0);de([(0,ee.property)({type:Boolean})],B.prototype,"disabled",void 0);de([(0,ee.state)()],B.prototype,"hovered",void 0);de([(0,ee.state)()],B.prototype,"focused",void 0);de([(0,ee.state)()],B.prototype,"pressed",void 0);de([(0,ee.state)()],B.prototype,"rippling",void 0);de([(0,ee.state)()],B.prototype,"originX",void 0);de([(0,ee.state)()],B.prototype,"originY",void 0);de([(0,ee.query)(".ft-ripple")],B.prototype,"ripple",void 0);de([(0,ee.query)(".ft-ripple--effect")],B.prototype,"rippleEffect",void 0);var ys=f(E());var ms={"ft-ripple":B};(0,ys.customElements)(ms);var
|
|
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()}};B.elementDefinitions={};B.styles=ps;de([(0,ee.property)({type:Boolean})],B.prototype,"primary",void 0);de([(0,ee.property)({type:Boolean})],B.prototype,"secondary",void 0);de([(0,ee.property)({type:Boolean})],B.prototype,"unbounded",void 0);de([(0,ee.property)({type:Boolean})],B.prototype,"activated",void 0);de([(0,ee.property)({type:Boolean})],B.prototype,"selected",void 0);de([(0,ee.property)({type:Boolean})],B.prototype,"disabled",void 0);de([(0,ee.state)()],B.prototype,"hovered",void 0);de([(0,ee.state)()],B.prototype,"focused",void 0);de([(0,ee.state)()],B.prototype,"pressed",void 0);de([(0,ee.state)()],B.prototype,"rippling",void 0);de([(0,ee.state)()],B.prototype,"originX",void 0);de([(0,ee.state)()],B.prototype,"originY",void 0);de([(0,ee.query)(".ft-ripple")],B.prototype,"ripple",void 0);de([(0,ee.query)(".ft-ripple--effect")],B.prototype,"rippleEffect",void 0);var ys=f(E());var ms={"ft-ripple":B};(0,ys.customElements)(ms);var tc=f(k()),we=f(q()),Ce=f(E());var gs=f(k()),tt=f(E()),fr={distance:tt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:tt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:tt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:tt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",tt.designSystemVariables.borderRadiusS),maxWidth:tt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},xs=gs.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 bs=["top","right","bottom","left"],vs=["start","end"],bi=bs.reduce((e,t)=>e.concat(t,t+"-"+vs[0],t+"-"+vs[1]),[]),hr=Math.min,rt=Math.max,mr=Math.round;var He=e=>({x:e,y:e}),fd={left:"right",right:"left",bottom:"top",top:"bottom"};function Es(e,t,r){return rt(e,hr(t,r))}function Yr(e,t){return typeof e=="function"?e(t):e}function yr(e){return e.split("-")[0]}function nt(e){return e.split("-")[1]}function Ei(e){return e==="x"?"y":"x"}function Ai(e){return e==="y"?"height":"width"}function Zr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Si(e){return Ei(Zr(e))}function As(e,t,r){r===void 0&&(r=!1);let n=nt(e),i=Si(e),o=Ai(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=vi(s)),[s,vi(s)]}function Ss(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function vi(e){let t=yr(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 _s(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 Cs(e,t,r){let{reference:n,floating:i}=e,o=Zr(t),s=Si(t),a=Ai(s),l=yr(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,m;switch(l){case"top":m={x:d,y:n.y-i.height};break;case"bottom":m={x:d,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:u};break;case"left":m={x:n.x-i.width,y:u};break;default:m={x:n.x,y:n.y}}let v=nt(t);return v&&(m[s]+=p*(v==="end"?1:-1)*(r&&c?-1:1)),m}async function ws(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:m=0}=Yr(t,e),v=_s(m),x=a[p?u==="floating"?"reference":"floating":u],C=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})),I=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)),A=await(o.isElement==null?void 0:o.isElement(b))&&await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1},$=Et(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:I,offsetParent:b,strategy:l}):I);return{top:(C.top-$.top+v.top)/A.y,bottom:($.bottom-C.bottom+v.bottom)/A.y,left:(C.left-$.left+v.left)/A.x,right:($.right-C.right+v.right)/A.x}}var md=50,Ts=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:ws},l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=Cs(c,n,l),p=n,m=0,v={};for(let S=0;S<o.length;S++){let x=o[S];if(!x)continue;let{name:C,fn:I}=x,{x:b,y:A,data:$,reset:P}=await I({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=A??u,v[C]={...v[C],...$},P&&m<md&&(m++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(c=P.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):P.rects),{x:d,y:u}=Cs(c,p,l)),S=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:v}};function yd(e,t,r){return(e?[...r.filter(i=>nt(i)===e),...r.filter(i=>nt(i)!==e)]:r.filter(i=>yr(i)===i)).filter(i=>e?nt(i)===e||(t?Ss(i)!==i:!1):!0)}var Os=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=bi,autoAlignment:m=!0,...v}=Yr(e,t),S=u!==void 0||p===bi?yd(u||null,m,p):p,x=((r=s.autoPlacement)==null?void 0:r.index)||0,C=S[x];if(C==null)return{};if(a!==C)return{reset:{placement:S[0]}};let I=await l.detectOverflow(t,v),b=As(C,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),A=[I[yr(C)],I[b[0]],I[b[1]]],$=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:C,overflows:A}],P=S[x+1];if(P)return{data:{index:x+1,overflows:$},reset:{placement:P}};let G=$.map(ve=>{let ar=nt(ve.placement);return[ve.placement,ar&&d?ve.overflows.slice(0,2).reduce((Jc,Qc)=>Jc+Qc,0):ve.overflows[0],ve.overflows]}).sort((ve,ar)=>ve[1]-ar[1]),zr=((i=G.filter(ve=>ve[2].slice(0,nt(ve[0])?2:3).every(ar=>ar<=0))[0])==null?void 0:i[0])||G[0][0];return zr!==a?{data:{index:x+1,overflows:$},reset:{placement:zr}}:{}}}};var Rs=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:I=>{let{x:b,y:A}=I;return{x:b,y:A}}},...c}=Yr(e,t),d={x:r,y:n},u=await o.detectOverflow(t,c),p=Zr(i),m=Ei(p),v=d[m],S=d[p],x=(I,b)=>Es(b+u[I==="y"?"top":"left"],b,b-u[I==="y"?"bottom":"right"]);s&&(v=x(m,v)),a&&(S=x(p,S));let C=l.fn({...t,[m]:v,[p]:S});return{...C,data:{x:C.x-r,y:C.y-n,enabled:{[m]:s,[p]:a}}}}}};function Qr(){return typeof window<"u"}function St(e){return Ls(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xe(e){var t;return(t=(Ls(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ls(e){return Qr()?e instanceof Node||e instanceof ue(e).Node:!1}function Ne(e){return Qr()?e instanceof Element||e instanceof ue(e).Element:!1}function Ye(e){return Qr()?e instanceof HTMLElement||e instanceof ue(e).HTMLElement:!1}function Ns(e){return!Qr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}function gr(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 Ps(e){return/^(table|td|th)$/.test(St(e))}function xr(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",_i;function jt(e){let t=Ne(e)?Le(e):e;return At(t.transform)||At(t.translate)||At(t.scale)||At(t.rotate)||At(t.perspective)||!en()&&(At(t.backdropFilter)||At(t.filter))||gd.test(t.willChange||"")||xd.test(t.contain||"")}function Is(e){let t=it(e);for(;Ye(t)&&!Wt(t);){if(jt(t))return t;if(xr(t))return null;t=it(t)}return null}function en(){return _i==null&&(_i=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_i}function Wt(e){return/^(html|body|#document)$/.test(St(e))}function Le(e){return ue(e).getComputedStyle(e)}function vr(e){return Ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function it(e){if(St(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ns(e)&&e.host||Xe(e);return Ns(t)?t.host:t}function ks(e){let t=it(e);return Wt(t)?(e.ownerDocument||e).body:Ye(t)&&gr(t)?t:ks(t)}function Jr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=ks(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=ue(i);if(o){let a=tn(s);return t.concat(s,s.visualViewport||[],gr(i)?i:[],a&&r?Jr(a):[])}else return t.concat(i,Jr(i,[],r))}function tn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $s(e){let t=Le(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Ye(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=mr(r)!==o||mr(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function Us(e){return Ne(e)?e:e.contextElement}function Kt(e){let t=Us(e);if(!Ye(t))return He(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=$s(t),s=(o?mr(r.width):r.width)/n,a=(o?mr(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var vd=He(0);function Bs(e){let t=ue(e);return!en()||!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 br(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=Us(e),s=He(1);t&&(n?Ne(n)&&(s=Kt(n)):s=Kt(e));let a=bd(o,r,n)?Bs(o):He(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),m=Ne(n)?ue(n):n,v=p,S=tn(v);for(;S&&m!==v;){let x=Kt(S),C=S.getBoundingClientRect(),I=Le(S),b=C.left+(S.clientLeft+parseFloat(I.paddingLeft))*x.x,A=C.top+(S.clientTop+parseFloat(I.paddingTop))*x.y;l*=x.x,c*=x.y,d*=x.x,u*=x.y,l+=b,c+=A,v=ue(S),S=tn(v)}}return Et({width:d,height:u,x:l,y:c})}function rn(e,t){let r=vr(e).scrollLeft;return t?t.left+r:br(Xe(e)).left+r}function Fs(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-rn(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=Xe(n),a=t?xr(t.floating):!1;if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=He(1),d=He(0),u=Ye(n);if((u||!o)&&((St(n)!=="body"||gr(s))&&(l=vr(n)),u)){let m=br(n);c=Kt(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}let p=s&&!u&&!o?Fs(s,l):He(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=vr(e),r=e.ownerDocument.body,n=rt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=rt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),o=-t.scrollLeft+rn(e),s=-t.scrollTop;return Le(r).direction==="rtl"&&(o+=rt(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=Xe(e),s=i.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,d=0;if(s){let p=!en()||t==="fixed";n?p||(c=-s.offsetLeft,d=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,d=s.offsetTop))}if(rn(o)<=0){let p=o.ownerDocument,m=p.body,v=getComputedStyle(m),S=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(o.clientWidth-m.clientWidth-S),C=getComputedStyle(o).scrollbarGutter==="stable both-edges"?x/2:x;C<=_d&&(a-=C)}return{width:a,height:l,x:c,y:d}}function wd(e,t){let r=br(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=Kt(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 Ds(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=Cd(e,r,t);else if(t==="document")n=Sd(Xe(e));else if(Ne(t))n=wd(t,r);else{let i=Bs(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=Jr(e,[],!1).filter(a=>Ne(a)&&St(a)!=="body"),i=null,o=Le(e).position==="fixed",s=o?it(e):e;for(;Ne(s)&&!Wt(s);){let a=Le(s),l=jt(s),c=i?i.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(u=>u!==s):i=a,s=it(s)}return t.set(e,n),n}function Od(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?xr(t)?[]:Td(t,this._c):[].concat(r),n],a=Ds(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 m=Ds(t,s[p],i);l=rt(m.top,l),c=hr(m.right,c),d=hr(m.bottom,d),u=rt(m.left,u)}return{width:c-u,height:d-l,x:u,y:l}}function Rd(e){let{width:t,height:r}=$s(e);return{width:t,height:r}}function Nd(e,t,r){let n=Ye(t),i=Xe(t),o=r==="fixed",s=br(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=He(0);if((n||!o)&&((St(t)!=="body"||gr(i))&&(a=vr(t)),n)){let p=br(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!n&&i&&(l.x=rn(i));let c=i&&!n&&!o?Fs(i,a):He(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 Ci(e){return Le(e).position==="static"}function Ms(e,t){if(!Ye(e)||Le(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Xe(e)===r&&(r=r.ownerDocument.body),r}function Hs(e,t){let r=ue(e);if(xr(e))return r;if(!Ye(e)){let i=it(e);for(;i&&!Wt(i);){if(Ne(i)&&!Ci(i))return i;i=it(i)}return r}let n=Ms(e,t);for(;n&&Ps(n)&&Ci(n);)n=Ms(n,t);return n&&Wt(n)&&Ci(n)&&!jt(n)?r:n||Is(e)||r}var Ld=async function(e){let t=this.getOffsetParent||Hs,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 nn={convertOffsetParentRelativeRectToViewportRelativeRect:Ed,getDocumentElement:Xe,getClippingRect:Od,getOffsetParent:Hs,getElementRects:Ld,getClientRects:Ad,getDimensions:Rd,getScale:Kt,isElement:Ne,isRTL:Pd};var Vs=Os,zs=Rs;var js=(e,t,r)=>{let n=new Map,i=r??{},o={...nn,...i.platform,_c:n};return Ts(e,t,{...i,platform:o})};function Ws(e){return Id(e)}function wi(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Id(e){for(let t=e;t;t=wi(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=wi(e);t;t=wi(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||jt(r)||t.tagName==="BODY"))return t}return null}async function Ks(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},js(e,t,{strategy:n.strategy,platform:{...nn,getOffsetParent:i=>nn.getOffsetParent(i,Ws)},middleware:[zs({crossAxis:!0}),Vs({allowedPlacements:[n.placement]})]})}var rr=f(E());var qi=f(q());var Gs=f(q(),1);var Ti=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},kd=e=>({fromAttribute:t=>{if(t==null)return Er(e);try{return JSON.parse(t)}catch{return Er(e)}},toAttribute:t=>JSON.stringify(t)});function qs(e,t){return(0,Gs.property)({type:Object,converter:kd(e),hasChanged:Ar,...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(!Gt(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(!Gt(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(!Gt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Gt(e,t){try{return Dd(e,t)}catch{return!1}}function Ar(e,t){return!Gt(e,t)}function Er(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function on(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 Xs=f(q(),1);var Oi=e=>{let t=e??{};return(r,n)=>{var i;let o={hasChanged:Ar,attribute:!1,...t};(0,Xs.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 sn=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(q(),1);var an=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 cn=f(k(),1);var ln=class extends cn.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,cn.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){Ti(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 Xt=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"),qt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};qt.eventName="exportparts-updated";var Ve=class extends ln{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ea]=new an(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(qt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(qt.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 qt)})}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 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 m=(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:[],S=[...m,...v].filter(l).map(x=>x.trim());for(let x of S)d.add(x)}if(d.size===0){this.exportparts=void 0;return}let u=[...d.values()].flatMap(p=>c.map(m=>`${p}:${m}--${p}`));this.exportparts=[...this.part,...u].join(", ")}};ea=ta;Xt([(0,_t.property)()],Ve.prototype,"exportpartsPrefix",void 0);Xt([qs([])],Ve.prototype,"exportpartsPrefixes",void 0);Xt([(0,_t.property)({reflect:!0})],Ve.prototype,"exportparts",void 0);Xt([(0,_t.property)()],Ve.prototype,"customStylesheet",void 0);Xt([(0,_t.property)()],Ve.prototype,"elementToFocus",void 0);Xt([(0,_t.state)()],Ve.prototype,"useAdoptedStyleSheets",void 0);function dn(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Sr=Symbol("internalReduxEventsUnsubscribers"),ot=Symbol("internalStoresUnsubscribers"),Ct=Symbol("internalStores"),Md=on(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[ot].has(s.store):this[ot].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l,c;this[ot].set(s,a.subscribe(()=>this.updateFromStores())),this[Sr].set(s,[]),dn(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((d,u)=>{this.getStore(d.store)===a&&a.deprecatedKeys.includes(u)&&console.warn("Element",this,"is subscribed to deprecated key",u,"in store",a.name)}),a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((d,u)=>{if(typeof this[u]=="function"&&(!d.store||a.name===d.store)){let p=m=>this[u](m);a.addEventListener(d.eventName,p),this[Sr].get(s).push(()=>a.removeEventListener(d.eventName,p))}}))),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ot].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[ot].has(s)&&this[ot].get(s)(),this[ot].delete(s),(a=this[Sr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Sr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ot,r=Ct,n=Sr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),ra=class extends Md(Ve){};function te(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",na=$d,Ri=()=>Math.random().toString(36).substring(7).split("").join("."),Ud={INIT:`@@redux/INIT${Ri()}`,REPLACE:`@@redux/REPLACE${Ri()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ri()}`},un=Ud;function pn(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 Ni(e,t,r){if(typeof e!="function")throw new Error(te(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(te(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(te(1));return r(Ni)(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,C)=>{s.set(C,x)}))}function d(){if(l)throw new Error(te(3));return i}function u(x){if(typeof x!="function")throw new Error(te(4));if(l)throw new Error(te(5));let C=!0;c();let I=a++;return s.set(I,x),function(){if(C){if(l)throw new Error(te(6));C=!1,c(),s.delete(I),o=null}}}function p(x){if(!pn(x))throw new Error(te(7));if(typeof x.type>"u")throw new Error(te(8));if(typeof x.type!="string")throw new Error(te(17));if(l)throw new Error(te(9));try{l=!0,i=n(i,x)}finally{l=!1}return(o=s).forEach(I=>{I()}),x}function m(x){if(typeof x!="function")throw new Error(te(10));n=x,p({type:un.REPLACE})}function v(){let x=u;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(te(11));function I(){let A=C;A.next&&A.next(d())}return I(),{unsubscribe:x(I)}},[na](){return this}}}return p({type:un.INIT}),{dispatch:p,subscribe:u,getState:d,replaceReducer:m,[na]:v}}function Bd(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:un.INIT})>"u")throw new Error(te(12));if(typeof r(void 0,{type:un.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(te(13))})}function Li(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],m=r[p],v=a[p],S=m(v,l);if(typeof S>"u"){let x=l&&l.type;throw new Error(te(14))}d[p]=S,c=c||S!==v}return c=c||n.length!==Object.keys(a).length,c?d:a}}function _r(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function ia(...e){return t=>(r,n)=>{let i=t(r,n),o=()=>{throw new Error(te(15))},s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=_r(...a)(i.dispatch),{...i,dispatch:o}}}function oa(e){return pn(e)&&"type"in e&&typeof e.type=="string"}var ha=Symbol.for("immer-nothing"),sa=Symbol.for("immer-draftable"),ie=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,Zt=me.getPrototypeOf,yn="constructor",An="prototype",Di="configurable",gn="enumerable",hn="writable",Cr="value",ze=e=>!!e&&!!e[ie];function ye(e){return e?ma(e)||_n(e)||!!e[sa]||!!e[yn]?.[sa]||Cn(e)||Rr(e):!1}var Fd=me[An][yn].toString(),aa=new WeakMap;function ma(e){if(!e||!zi(e))return!1;let t=Zt(e);if(t===null||t===me[An])return!0;let r=me.hasOwnProperty.call(t,yn)&&t[yn];if(r===Object)return!0;if(!Yt(r))return!1;let n=aa.get(r);return n===void 0&&(n=Function.toString.call(r),aa.set(r,n)),n===Fd}function Sn(e,t,r=!0){Or(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 Or(e){let t=e[ie];return t?t.type_:_n(e)?1:Cn(e)?2:Rr(e)?3:0}var Pi=(e,t,r=Or(e))=>r===2?e.has(t):me[An].hasOwnProperty.call(e,t),Mi=(e,t,r=Or(e))=>r===2?e.get(t):e[t],xn=(e,t,r,n=Or(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 _n=Array.isArray,Cn=e=>e instanceof Map,Rr=e=>e instanceof Set,zi=e=>typeof e=="object",Yt=e=>typeof e=="function",Ii=e=>typeof e=="boolean";function Vd(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Ze=e=>e.copy_||e.base_;var ji=e=>e.modified_?e.copy_:e.base_;function $i(e,t){if(Cn(e))return new Map(e);if(Rr(e))return new Set(e);if(_n(e))return Array[An].slice.call(e);let r=ma(e);if(t===!0||t==="class_only"&&!r){let n=me.getOwnPropertyDescriptors(e);delete n[ie];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){let s=i[o],a=n[s];a[hn]===!1&&(a[hn]=!0,a[Di]=!0),(a.get||a.set)&&(n[s]={[Di]:!0,[hn]:!0,[gn]:a[gn],[Cr]:e[s]})}return me.create(Zt(e),n)}else{let n=Zt(e);if(n!==null&&r)return{...e};let i=me.create(n);return me.assign(i,e)}}function wn(e,t=!1){return Tn(e)||ze(e)||!ye(e)||(Or(e)>1&&me.defineProperties(e,{set:fn,add:fn,clear:fn,delete:fn}),me.freeze(e),t&&Sn(e,(r,n)=>{wn(n,!0)},!1)),e}function zd(){Pe(2)}var fn={[Cr]:zd};function Tn(e){return e===null||!zi(e)?!0:me.isFrozen(e)}var vn="MapSet",Ui="Patches",la="ArrayMethods",ya={};function wt(e){let t=ya[e];return t||Pe(0,e),t}var ca=e=>!!ya[e];var wr,ga=()=>wr,jd=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ca(vn)?wt(vn):void 0,arrayMethodsPlugin_:ca(la)?wt(la):void 0});function da(e,t){t&&(e.patchPlugin_=wt(Ui),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Bi(e){Fi(e),e.drafts_.forEach(Wd),e.drafts_=null}function Fi(e){e===wr&&(wr=e.parent_)}var ua=e=>wr=jd(wr,e);function Wd(e){let t=e[ie];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function pa(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[ie].modified_&&(Bi(t),Pe(4)),ye(e)&&(e=fa(t,e));let{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[ie].base_,e,t)}else e=fa(t,r);return Kd(t,e,!0),Bi(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ha?e:void 0}function fa(e,t){if(Tn(t))return t;let r=t[ie];if(!r)return bn(t,e.handledSet_,e);if(!On(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);ba(r,e)}return r.copy_}function Kd(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&wn(t,r)}function xa(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var On=(e,t)=>e.scope_===t,Gd=[];function va(e,t,r,n){let i=Ze(e),o=e.type_;if(n!==void 0&&Mi(i,n,o)===t){xn(i,n,r,o);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;Sn(i,(l,c)=>{if(ze(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)xn(i,a,r,o)}function qd(e,t,r){e.callbacks_.push(function(i){let o=t;if(!o||!On(o,i))return;i.mapSetPlugin_?.fixSetContents(o);let s=ji(o);va(e,o.draft_??o,s,r),ba(o,i)})}function ba(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)}xa(e)}}function Xd(e,t,r){let{scope_:n}=e;if(ze(r)){let i=r[ie];On(i,n)&&i.callbacks_.push(function(){mn(e);let s=ji(i);va(e,r,s,t)})}else ye(r)&&e.callbacks_.push(function(){let o=Ze(e);e.type_===3?o.has(r)&&bn(r,n.handledSet_,n):Mi(o,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&bn(Mi(e.copy_,t,e.type_),n.handledSet_,n)})}function bn(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||ze(e)||t.has(e)||!ye(e)||Tn(e)||(t.add(e),Sn(e,(n,i)=>{if(ze(i)){let o=i[ie];if(On(o,r)){let s=ji(o);xn(e,n,s,e.type_),xa(o)}}else ye(i)&&bn(i,t,r)})),e}function Yd(e,t){let r=_n(e),n={type_:r?1:0,scope_:t?t.scope_:ga(),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=En;r&&(i=[n],o=Tr);let{revoke:s,proxy:a}=Proxy.revocable(i,o);return n.draft_=a,n.revoke_=s,[a,n]}var En={get(e,t){if(t===ie)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=Ze(e);if(!Pi(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===ki(e.base_,t)||Zd(e,t,o)){mn(e);let s=e.type_===1?+t:t,a=Vi(e.scope_,o,e,s);return e.copy_[s]=a}return o},has(e,t){return t in Ze(e)},ownKeys(e){return Reflect.ownKeys(Ze(e))},set(e,t,r){let n=Ea(Ze(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let i=ki(Ze(e),t),o=i?.[ie];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_.delete(t),!0;if(Hd(r,i)&&(r!==void 0||Pi(e.base_,t,e.type_)))return!0;mn(e),Hi(e)}return e.copy_[t]===r&&(r!==void 0||Pi(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 mn(e),ki(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Hi(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Ze(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[hn]:!0,[Di]:e.type_!==1||t!=="length",[gn]:n[gn],[Cr]:r[t]}},defineProperty(){Pe(11)},getPrototypeOf(e){return Zt(e.base_)},setPrototypeOf(){Pe(12)}},Tr={};for(let e in En){let t=En[e];Tr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Tr.deleteProperty=function(e,t){return Tr.set.call(this,e,t,void 0)};Tr.set=function(e,t,r){return En.set.call(this,e[0],t,r,e[0])};function ki(e,t){let r=e[ie];return(r?Ze(r):e)[t]}function Zd(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||!ye(r)||r[ie]?!1:e.baseRefs_.has(r)}function Jd(e,t,r){let n=Ea(t,r);return n?Cr in n?n[Cr]:n.get?.call(e.draft_):void 0}function Ea(e,t){if(!(t in e))return;let r=Zt(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Zt(r)}}function Hi(e){e.modified_||(e.modified_=!0,e.parent_&&Hi(e.parent_))}function mn(e){e.copy_||(e.assigned_=new Map,e.copy_=$i(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(Yt(t)&&!Yt(r)){let o=r;r=t;let s=this;return function(l=o,...c){return s.produce(l,d=>r.call(this,d,...c))}}Yt(r)||Pe(6),n!==void 0&&!Yt(n)&&Pe(7);let i;if(ye(t)){let o=ua(this),s=Vi(o,t,void 0),a=!0;try{i=r(s),a=!1}finally{a?Bi(o):Fi(o)}return da(o,n),pa(i,o)}else if(!t||!zi(t)){if(i=r(t),i===void 0&&(i=t),i===ha&&(i=void 0),this.autoFreeze_&&wn(i,!0),n){let o=[],s=[];wt(Ui).generateReplacementPatches_(t,i,{patches_:o,inversePatches_:s}),n(o,s)}return i}else Pe(1,t)},this.produceWithPatches=(t,r)=>{if(Yt(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]},Ii(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ii(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ii(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){ye(e)||Pe(8),ze(e)&&(e=Aa(e));let t=ua(this),r=Vi(t,e,void 0);return r[ie].isManual_=!0,Fi(t),r}finishDraft(e,t){let r=e&&e[ie];(!r||!r.isManual_)&&Pe(9);let{scope_:n}=r;return da(n,t),pa(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(Ui).applyPatches_;return ze(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Vi(e,t,r,n){let[i,o]=Cn(t)?wt(vn).proxyMap_(t,r):Rr(t)?wt(vn).proxySet_(t,r):Yd(t,r);return(r?.scope_??ga()).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 Aa(e){return ze(e)||Pe(10,e),Sa(e)}function Sa(e){if(!ye(e)||Tn(e))return e;let t=e[ie],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=$i(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=$i(e,!0);let i=r;return Rr(r)&&(r=new Set),Sn(i,(o,s)=>{xn(r,o,Sa(s))},n),t&&(t.finalized_=!1),r}var eu=globalThis.Iterator,Gf=typeof eu?.from=="function";var tu=new Qd,Wi=tu.produce;function _a(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var Ca=_a(),wa=_a;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"?_r:_r.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var nu=e=>e&&typeof e.match=="function";function st(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(je(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=>oa(n)&&n.type===e,r}var La=class Nr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Nr.prototype)}static get[Symbol.species](){return Nr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Nr(...t[0].concat(this)):new Nr(...t.concat(this))}};function Ta(e){return ye(e)?Wi(e,()=>{}):e}function Rn(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 La;return r&&(iu(r)?s.push(Ca):s.push(wa(r.extraArgument))),s},su="RTK_autoBatch";var Oa=e=>t=>{setTimeout(t,e)},au=(e,t)=>r=>{let n=!1,i,o,s=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(o),r())};i=e(s),o=setTimeout(s,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):Oa(10):e.type==="callback"?e.queueNotification:Oa(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 La(e);return n&&i.push(lu(typeof n=="object"?n:void 0)),i};function Pa(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(pn(r))l=Li(r);else throw new Error(je(1));let c;typeof n=="function"?c=n(t):c=t();let d=_r;i&&(d=ru({trace:!1,...typeof i=="object"&&i}));let u=ia(...c),p=cu(u),m=typeof a=="function"?a(p):p(),v=d(...m);return Ni(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(je(28));if(a in t)throw new Error(je(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]=Ia(t),o;if(du(e))o=()=>Ta(e());else{let a=Ta(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(ze(d)){let p=u(d,l);return p===void 0?d:p}else{if(ye(d))return Wi(d,p=>u(p,l));{let p=u(d,l);if(p===void 0){if(d===null)return d;throw new Error(je(9))}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"],Ki=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},Ra=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},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)}},Na="External signal was aborted",xu=(()=>{function e(t,r,n){let i=st(t+"/fulfilled",(l,c,d,u)=>({payload:l,meta:{...u||{},arg:d,requestId:c,requestStatus:"fulfilled"}})),o=st(t+"/pending",(l,c,d)=>({payload:void 0,meta:{...d||{},arg:c,requestId:l,requestStatus:"pending"}})),s=st(t+"/rejected",(l,c,d,u,p)=>({payload:u,error:(n&&n.serializeError||gu)(l||"Rejected"),meta:{...p||{},arg:d,requestId:c,rejectedWithValue:u!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(d,u,p)=>{let m=n?.idGenerator?n.idGenerator(l):mu(),v=new AbortController,S,x;function C(b){x=b,v.abort()}c&&(c.aborted?C(Na):c.addEventListener("abort",()=>C(Na),{once:!0}));let I=(async function(){let b;try{let A=n?.condition?.(l,{getState:u,extra:p});if(bu(A)&&(A=await A),A===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(v.signal.aborted)throw{name:"AbortError",message:x||"Aborted"};let $=new Promise((P,G)=>{S=()=>{G({name:"AbortError",message:x||"Aborted"})},v.signal.addEventListener("abort",S,{once:!0})});d(o(m,l,n?.getPendingMeta?.({requestId:m,arg:l},{getState:u,extra:p}))),b=await Promise.race([$,Promise.resolve(r(l,{dispatch:d,getState:u,extra:p,requestId:m,signal:v.signal,abort:C,rejectWithValue:((P,G)=>new Ki(P,G)),fulfillWithValue:((P,G)=>new Ra(P,G))})).then(P=>{if(P instanceof Ki)throw P;return P instanceof Ra?i(P.payload,m,l,P.meta):i(P,m,l)})])}catch(A){b=A instanceof Ki?s(null,m,l,A.payload,A.meta):s(A,m,l)}finally{S&&v.signal.removeEventListener("abort",S)}return n&&!n.dispatchConditionRejection&&s.match(b)&&b.meta.condition||d(b),b})();return Object.assign(I,{abort:C,requestId:m,arg:l,unwrap(){return I.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"),th={[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(je(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,A){let $=typeof b=="string"?b:b.type;if(!$)throw new Error(je(12));if($ in l.sliceCaseReducersByType)throw new Error(je(13));return l.sliceCaseReducersByType[$]=A,c},addMatcher(b,A){return l.sliceMatchers.push({matcher:b,reducer:A}),c},exposeAction(b,A){return l.actionCreators[b]=A,c},exposeCaseReducer(b,A){return l.sliceCaseReducersByName[b]=A,c}};a.forEach(b=>{let A=s[b],$={reducerName:b,type:Eu(i,b),createNotation:typeof n.reducers=="function"};wu(A)?Ou($,A,c,t):Cu($,A,c)});function d(){let[b={},A=[],$=void 0]=typeof n.extraReducers=="function"?Ia(n.extraReducers):[n.extraReducers],P={...b,...l.sliceCaseReducersByType};return uu(n.initialState,G=>{for(let ne in P)G.addCase(ne,P[ne]);for(let ne of l.sliceMatchers)G.addMatcher(ne.matcher,ne.reducer);for(let ne of A)G.addMatcher(ne.matcher,ne.reducer);$&&G.addDefaultCase($)})}let u=b=>b,p=new Map,m=new WeakMap,v;function S(b,A){return v||(v=d()),v(b,A)}function x(){return v||(v=d()),v.getInitialState()}function C(b,A=!1){function $(G){let ne=G[b];return typeof ne>"u"&&A&&(ne=Rn(m,$,x)),ne}function P(G=u){return Rn(Rn(p,A,()=>new WeakMap),G,()=>{let ne={};for(let[zr,ve]of Object.entries(n.selectors??{}))ne[zr]=Su(ve,G,()=>Rn(m,G,x),A);return ne})}return{reducerPath:b,getSelectors:P,get selectors(){return P($)},selectSlice:$}}let I={name:i,reducer:S,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...C(o),injectInto(b,{reducerPath:A,...$}={}){let P=A??o;return b.inject({reducerPath:P,reducer:S},$),{...I,...C(P,!0)}}};return I}}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 Da=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(je(17));o=n.reducer,s=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?st(e,s):st(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(je(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||Nn,pending:a||Nn,rejected:l||Nn,settled:c||Nn})}function Nn(){}var Ma="listener",$a="completed",Ua="cancelled",rh=`task-${Ua}`,nh=`task-${$a}`,ih=`${Ma}-${Ua}`,oh=`${Ma}-${$a}`;var{assign:Ba}=Object;var Gi="listenerMiddleware";var Ru=Ba(st(`${Gi}/add`),{withTypes:()=>Ru}),sh=st(`${Gi}/removeAll`),Nu=Ba(st(`${Gi}/remove`),{withTypes:()=>Nu});function je(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=on(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)}}}),Ln=class extends Lu(Object){};window.ftReduxStores||(window.ftReduxStores={});var Fa=class e extends Ln{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(dn(o))return o;if(i==null)return;let s=Da({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=Pa({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let d=Er(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,i.deprecatedKeys)}constructor(t,r,n,i){super(),this.reduxSlice=t,this.reduxStore=r,this.deprecatedKeys=i,this.isFtReduxStore=!0,this.commands=new sn,this.injectInto=(s,a)=>this.reduxSlice.injectInto(s,a),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let o=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,a,l)=>{let c=a,d=s[c];return d?(...u)=>{let p=d(...u.map(o));return this.reduxStore.dispatch(p),p}:u=>{let p=c,m=this.getState()[p];Gt(m,u)||this.setState({[p]:o(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 Pn=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 In=f(E()),Pu="ft-app-info",Tt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Tt.eventName="authentication-change";var Lr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Lr.eventName="ui-locale-changed";var Iu={session:(e,t)=>{(0,In.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new Tt(t.payload)),0))}},w=In.FtReduxStore.get({name:Pu,reducers:Iu,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 Ha=f(E()),kn=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},Mh=(0,Ha.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(w)}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=>Pn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return kn([(0,qi.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),kn([(0,qi.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),kn([Oi({store:w.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),kn([Oi({store:w.name})],t.prototype,"uiLocale",void 0),t});var Va;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Va||(Va={}));var za;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(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.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.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ka||(Ka={}));var Ga;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ga||(Ga={}));var qa;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(qa||(qa={}));var Xa;(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"})(Xa||(Xa={}));var Ya;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Ya||(Ya={}));var Za;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Za||(Za={}));var Ja;(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",e.DOC_DIFF="DOC_DIFF"})(Ja||(Ja={}));var Qa;(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"})(Qa||(Qa={}));var el;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(el||(el={}));var tl;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(tl||(tl={}));var rl;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(rl||(rl={}));var nl;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(nl||(nl={}));var il;(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"})(il||(il={}));var ol;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(ol||(ol={}));var sl;(function(e){e.ASC="ASC",e.DESC="DESC"})(sl||(sl={}));var al;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(al||(al={}));var ll;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(ll||(ll={}));var cl;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(cl||(cl={}));var dl;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(dl||(dl={}));var ul;(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"})(ul||(ul={}));var pl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(pl||(pl={}));var fl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(fl||(fl={}));var hl;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(hl||(hl={}));var ml;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ml||(ml={}));var K;(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"})(K||(K={}));var Ae;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Ae||(Ae={}));var yl;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(yl||(yl={}));var gl;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(gl||(gl={}));var xl;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(xl||(xl={}));var vl;(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"})(vl||(vl={}));var bl;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(bl||(bl={}));var El;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(El||(El={}));var Al;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Al||(Al={}));var Sl;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Sl||(Sl={}));var _l;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(_l||(_l={}));var Cl;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Cl||(Cl={}));var wl;(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"})(wl||(wl={}));var Tl;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Tl||(Tl={}));var ku={[K.PERSONAL_BOOK_SHARE_USER]:[K.PERSONAL_BOOK_USER],[K.HTML_EXPORT_USER]:[K.PERSONAL_BOOK_USER],[K.PDF_EXPORT_USER]:[K.PERSONAL_BOOK_USER],[K.KHUB_ADMIN]:[K.CONTENT_PUBLISHER],[K.ADMIN]:[K.KHUB_ADMIN,K.USERS_ADMIN,K.PORTAL_ADMIN,K.BEHAVIOR_DATA_USER],[K.GENERATIVE_AI_EXPORT_USER]:[K.GENERATIVE_AI_USER]};function Ol(e,t){return e===t||(ku[e]??[]).some(r=>Ol(r,t))}function Xi(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Ol(n,t))}function Rl(e,...t){return e==null?!1:t.some(r=>Xi(e,r))}var Bn=f(E());var Yi=f(E());var Ot=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=w.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=w.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Jt=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 Jt{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 Yi.CacheRegistry,this.cache=t?i.commonCache:new Yi.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 Dn=class extends ge{async listMySearches(){let{session:t}=w.getState();return Xi(t,K.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Mn=class extends ge{async listMyBookmarks(){let t=w.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var $n=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=w.getState().session;return!!t?.sessionAuthenticated}};var Un=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=w.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(Ae).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;Ji(e,r,[...Zi(e,r),i]),Nl(e,r,1,n),Ll(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Ji(e,r,Zi(e,r).map(i=>i.id===n.id?n:i)),Ll(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;Ji(e,r,Zi(e,r).filter(o=>o.id!==i)),Nl(e,r,-1,n)}},Pl={[Ae.SEARCHES]:"savedSearches",[Ae.BOOKMARKS]:"bookmarks",[Ae.BOOKS]:void 0,[Ae.COLLECTIONS]:void 0},Zi=(e,t)=>{var r;let n=Pl[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Ji=(e,t,r)=>{let n=Pl[t];n&&(e[n]=r)},Nl=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===Ae.BOOKMARKS&&n)){let o=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,o+r)}},Ll=(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)},se=Bn.FtReduxStore.get({name:Du,reducers:Mu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ae).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Qi=class{constructor(t=new $n,r=new Un){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Mn,this.savedSearchesService=new Dn,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,Bn.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(),se.actions.clearAssetCount(),se.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),se.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),se.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();se.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();se.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&se.getState().assetCounts.allAsset[t]!==r.count&&se.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&se.getState().assetCounts.bookmarkByMap[t]!==r.count&&se.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(se.getState().assetCounts.bookmarkByMap).length!==0;t===Ae.BOOKMARKS&&r&&se.actions.clearBookmarkCountByMap(),se.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;se.actions.bookmarks(r)}}},$u=new Qi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=$u);var eo=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new eo;var Se=f(E());var Il,Qt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Uu=Symbol("clearAfterUnitTest"),Fn=class extends(0,Se.withEventBus)(ge){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Il]=()=>{this.defaultMessages={},this.cache=new Se.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=w.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,Se.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 Se.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 Se.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 Qt({loadedContexts:t})),this.dispatchEvent(new Qt({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Qt({loadedContexts:[t]})),this.dispatchEvent(new Qt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Se.delay)(0).then(()=>n()).catch(()=>null)))}};Il=Uu;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var er=window.FluidTopicsI18nService,Hn=window.FluidTopicsCustomI18nService;var kl=f(E()),to=class{highlightHtml(t,r,n){(0,kl.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new to;var Dl=f(E());var ro=class{isDate(t){var r,n,i,o;return(o=(n=((i=(r=w.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 Dl.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:w.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 ro;var Ml=f(E());var Pr=class{static get(t,r,{baseUrl:n,localesConfiguration:i,availableContentLocales:o}=w.getState()){var s;if(!r||o.length>0&&!o.some(a=>a.lang===r)){let a=i?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(s=o[0])===null||s===void 0?void 0:s.lang}return new Ml.SearchPlaceConverter(n,t??20,i?.allLanguagesAllowed,r,o)}};var no=class{urlToSearchRequest(t){return Pr.get().parse(t)}searchRequestToUrl(t){return Pr.get().serialize(t)}};window.FluidTopicsUrlService=new no;var Je=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 io=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))}},$l=new io;var Vn=class e extends Je.WithEventBus{static build(){return new e(window.history,$l,()=>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,Je.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,Je.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,Je.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Je.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,Je.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=Vn.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 Ul=f(k());var Bl=Ul.css`
|
|
290
|
-
`;var
|
|
289
|
+
`;var bs=["top","right","bottom","left"],vs=["start","end"],bi=bs.reduce((e,t)=>e.concat(t,t+"-"+vs[0],t+"-"+vs[1]),[]),hr=Math.min,rt=Math.max,mr=Math.round;var He=e=>({x:e,y:e}),hd={left:"right",right:"left",bottom:"top",top:"bottom"};function Es(e,t,r){return rt(e,hr(t,r))}function Yr(e,t){return typeof e=="function"?e(t):e}function yr(e){return e.split("-")[0]}function nt(e){return e.split("-")[1]}function Ei(e){return e==="x"?"y":"x"}function Ai(e){return e==="y"?"height":"width"}function Zr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Si(e){return Ei(Zr(e))}function As(e,t,r){r===void 0&&(r=!1);let n=nt(e),i=Si(e),o=Ai(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=vi(s)),[s,vi(s)]}function Ss(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function vi(e){let t=yr(e);return hd[t]+e.slice(t.length)}function md(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 _s(e){return typeof e!="number"?md(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 Cs(e,t,r){let{reference:n,floating:i}=e,o=Zr(t),s=Si(t),a=Ai(s),l=yr(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,m;switch(l){case"top":m={x:d,y:n.y-i.height};break;case"bottom":m={x:d,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:u};break;case"left":m={x:n.x-i.width,y:u};break;default:m={x:n.x,y:n.y}}let v=nt(t);return v&&(m[s]+=p*(v==="end"?1:-1)*(r&&c?-1:1)),m}async function ws(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:m=0}=Yr(t,e),v=_s(m),x=a[p?u==="floating"?"reference":"floating":u],C=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})),P=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)),A=await(o.isElement==null?void 0:o.isElement(b))&&await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1},$=Et(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:P,offsetParent:b,strategy:l}):P);return{top:(C.top-$.top+v.top)/A.y,bottom:($.bottom-C.bottom+v.bottom)/A.y,left:(C.left-$.left+v.left)/A.x,right:($.right-C.right+v.right)/A.x}}var yd=50,Ts=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:ws},l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=Cs(c,n,l),p=n,m=0,v={};for(let S=0;S<o.length;S++){let x=o[S];if(!x)continue;let{name:C,fn:P}=x,{x:b,y:A,data:$,reset:I}=await P({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=A??u,v[C]={...v[C],...$},I&&m<yd&&(m++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(c=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:d,y:u}=Cs(c,p,l)),S=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:v}};function gd(e,t,r){return(e?[...r.filter(i=>nt(i)===e),...r.filter(i=>nt(i)!==e)]:r.filter(i=>yr(i)===i)).filter(i=>e?nt(i)===e||(t?Ss(i)!==i:!1):!0)}var Os=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=bi,autoAlignment:m=!0,...v}=Yr(e,t),S=u!==void 0||p===bi?gd(u||null,m,p):p,x=((r=s.autoPlacement)==null?void 0:r.index)||0,C=S[x];if(C==null)return{};if(a!==C)return{reset:{placement:S[0]}};let P=await l.detectOverflow(t,v),b=As(C,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),A=[P[yr(C)],P[b[0]],P[b[1]]],$=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:C,overflows:A}],I=S[x+1];if(I)return{data:{index:x+1,overflows:$},reset:{placement:I}};let G=$.map(ve=>{let ar=nt(ve.placement);return[ve.placement,ar&&d?ve.overflows.slice(0,2).reduce((Qc,ed)=>Qc+ed,0):ve.overflows[0],ve.overflows]}).sort((ve,ar)=>ve[1]-ar[1]),zr=((i=G.filter(ve=>ve[2].slice(0,nt(ve[0])?2:3).every(ar=>ar<=0))[0])==null?void 0:i[0])||G[0][0];return zr!==a?{data:{index:x+1,overflows:$},reset:{placement:zr}}:{}}}};var Rs=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:P=>{let{x:b,y:A}=P;return{x:b,y:A}}},...c}=Yr(e,t),d={x:r,y:n},u=await o.detectOverflow(t,c),p=Zr(i),m=Ei(p),v=d[m],S=d[p],x=(P,b)=>Es(b+u[P==="y"?"top":"left"],b,b-u[P==="y"?"bottom":"right"]);s&&(v=x(m,v)),a&&(S=x(p,S));let C=l.fn({...t,[m]:v,[p]:S});return{...C,data:{x:C.x-r,y:C.y-n,enabled:{[m]:s,[p]:a}}}}}};function Qr(){return typeof window<"u"}function St(e){return Ls(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xe(e){var t;return(t=(Ls(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ls(e){return Qr()?e instanceof Node||e instanceof ue(e).Node:!1}function Ne(e){return Qr()?e instanceof Element||e instanceof ue(e).Element:!1}function Ye(e){return Qr()?e instanceof HTMLElement||e instanceof ue(e).HTMLElement:!1}function Ns(e){return!Qr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}function gr(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 Is(e){return/^(table|td|th)$/.test(St(e))}function xr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var xd=/transform|translate|scale|rotate|perspective|filter/,vd=/paint|layout|strict|content/,At=e=>!!e&&e!=="none",_i;function jt(e){let t=Ne(e)?Le(e):e;return At(t.transform)||At(t.translate)||At(t.scale)||At(t.rotate)||At(t.perspective)||!en()&&(At(t.backdropFilter)||At(t.filter))||xd.test(t.willChange||"")||vd.test(t.contain||"")}function Ps(e){let t=it(e);for(;Ye(t)&&!Wt(t);){if(jt(t))return t;if(xr(t))return null;t=it(t)}return null}function en(){return _i==null&&(_i=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_i}function Wt(e){return/^(html|body|#document)$/.test(St(e))}function Le(e){return ue(e).getComputedStyle(e)}function vr(e){return Ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function it(e){if(St(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ns(e)&&e.host||Xe(e);return Ns(t)?t.host:t}function ks(e){let t=it(e);return Wt(t)?(e.ownerDocument||e).body:Ye(t)&&gr(t)?t:ks(t)}function Jr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=ks(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=ue(i);if(o){let a=tn(s);return t.concat(s,s.visualViewport||[],gr(i)?i:[],a&&r?Jr(a):[])}else return t.concat(i,Jr(i,[],r))}function tn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $s(e){let t=Le(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Ye(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=mr(r)!==o||mr(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function Us(e){return Ne(e)?e:e.contextElement}function Kt(e){let t=Us(e);if(!Ye(t))return He(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=$s(t),s=(o?mr(r.width):r.width)/n,a=(o?mr(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var bd=He(0);function Bs(e){let t=ue(e);return!en()||!t.visualViewport?bd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ed(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===ue(e)}function br(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=Us(e),s=He(1);t&&(n?Ne(n)&&(s=Kt(n)):s=Kt(e));let a=Ed(o,r,n)?Bs(o):He(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),m=Ne(n)?ue(n):n,v=p,S=tn(v);for(;S&&m!==v;){let x=Kt(S),C=S.getBoundingClientRect(),P=Le(S),b=C.left+(S.clientLeft+parseFloat(P.paddingLeft))*x.x,A=C.top+(S.clientTop+parseFloat(P.paddingTop))*x.y;l*=x.x,c*=x.y,d*=x.x,u*=x.y,l+=b,c+=A,v=ue(S),S=tn(v)}}return Et({width:d,height:u,x:l,y:c})}function rn(e,t){let r=vr(e).scrollLeft;return t?t.left+r:br(Xe(e)).left+r}function Fs(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-rn(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function Ad(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o=i==="fixed",s=Xe(n),a=t?xr(t.floating):!1;if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=He(1),d=He(0),u=Ye(n);if((u||!o)&&((St(n)!=="body"||gr(s))&&(l=vr(n)),u)){let m=br(n);c=Kt(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}let p=s&&!u&&!o?Fs(s,l):He(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 Sd(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function _d(e){let t=vr(e),r=e.ownerDocument.body,n=rt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=rt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),o=-t.scrollLeft+rn(e),s=-t.scrollTop;return Le(r).direction==="rtl"&&(o+=rt(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:o,y:s}}var Cd=25;function wd(e,t,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=ue(e),o=Xe(e),s=i.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,d=0;if(s){let p=!en()||t==="fixed";n?p||(c=-s.offsetLeft,d=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,d=s.offsetTop))}if(rn(o)<=0){let p=o.ownerDocument,m=p.body,v=getComputedStyle(m),S=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(o.clientWidth-m.clientWidth-S),C=getComputedStyle(o).scrollbarGutter==="stable both-edges"?x/2:x;C<=Cd&&(a-=C)}return{width:a,height:l,x:c,y:d}}function Td(e,t){let r=br(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=Kt(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 Ds(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=wd(e,r,t);else if(t==="document")n=_d(Xe(e));else if(Ne(t))n=Td(t,r);else{let i=Bs(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Et(n)}function Od(e,t){let r=t.get(e);if(r)return r;let n=Jr(e,[],!1).filter(a=>Ne(a)&&St(a)!=="body"),i=null,o=Le(e).position==="fixed",s=o?it(e):e;for(;Ne(s)&&!Wt(s);){let a=Le(s),l=jt(s),c=i?i.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(u=>u!==s):i=a,s=it(s)}return t.set(e,n),n}function Rd(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?xr(t)?[]:Od(t,this._c):[].concat(r),n],a=Ds(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 m=Ds(t,s[p],i);l=rt(m.top,l),c=hr(m.right,c),d=hr(m.bottom,d),u=rt(m.left,u)}return{width:c-u,height:d-l,x:u,y:l}}function Nd(e){let{width:t,height:r}=$s(e);return{width:t,height:r}}function Ld(e,t,r){let n=Ye(t),i=Xe(t),o=r==="fixed",s=br(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=He(0);if((n||!o)&&((St(t)!=="body"||gr(i))&&(a=vr(t)),n)){let p=br(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!n&&i&&(l.x=rn(i));let c=i&&!n&&!o?Fs(i,a):He(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 Ci(e){return Le(e).position==="static"}function Ms(e,t){if(!Ye(e)||Le(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Xe(e)===r&&(r=r.ownerDocument.body),r}function Hs(e,t){let r=ue(e);if(xr(e))return r;if(!Ye(e)){let i=it(e);for(;i&&!Wt(i);){if(Ne(i)&&!Ci(i))return i;i=it(i)}return r}let n=Ms(e,t);for(;n&&Is(n)&&Ci(n);)n=Ms(n,t);return n&&Wt(n)&&Ci(n)&&!jt(n)?r:n||Ps(e)||r}var Id=async function(e){let t=this.getOffsetParent||Hs,r=this.getDimensions,n=await r(e.floating);return{reference:Ld(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 nn={convertOffsetParentRelativeRectToViewportRelativeRect:Ad,getDocumentElement:Xe,getClippingRect:Rd,getOffsetParent:Hs,getElementRects:Id,getClientRects:Sd,getDimensions:Nd,getScale:Kt,isElement:Ne,isRTL:Pd};var Vs=Os,zs=Rs;var js=(e,t,r)=>{let n=new Map,i=r??{},o={...nn,...i.platform,_c:n};return Ts(e,t,{...i,platform:o})};function Ws(e){return kd(e)}function wi(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function kd(e){for(let t=e;t;t=wi(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=wi(e);t;t=wi(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||jt(r)||t.tagName==="BODY"))return t}return null}async function Ks(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},js(e,t,{strategy:n.strategy,platform:{...nn,getOffsetParent:i=>nn.getOffsetParent(i,Ws)},middleware:[zs({crossAxis:!0}),Vs({allowedPlacements:[n.placement]})]})}var rr=f(E());var qi=f(q());var Gs=f(q(),1);var Ti=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},Dd=e=>({fromAttribute:t=>{if(t==null)return Er(e);try{return JSON.parse(t)}catch{return Er(e)}},toAttribute:t=>JSON.stringify(t)});function qs(e,t){return(0,Gs.property)({type:Object,converter:Dd(e),hasChanged:Ar,...t??{}})}function Md(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(!Gt(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(!Gt(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(!Gt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Gt(e,t){try{return Md(e,t)}catch{return!1}}function Ar(e,t){return!Gt(e,t)}function Er(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function on(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 Xs=f(q(),1);var Oi=e=>{let t=e??{};return(r,n)=>{var i;let o={hasChanged:Ar,attribute:!1,...t};(0,Xs.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 sn=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(q(),1);var an=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 cn=f(k(),1);var ln=class extends cn.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,cn.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){Ti(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 Xt=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"),qt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};qt.eventName="exportparts-updated";var Ve=class extends ln{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ea]=new an(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(qt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(qt.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 qt)})}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 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 m=(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:[],S=[...m,...v].filter(l).map(x=>x.trim());for(let x of S)d.add(x)}if(d.size===0){this.exportparts=void 0;return}let u=[...d.values()].flatMap(p=>c.map(m=>`${p}:${m}--${p}`));this.exportparts=[...this.part,...u].join(", ")}};ea=ta;Xt([(0,_t.property)()],Ve.prototype,"exportpartsPrefix",void 0);Xt([qs([])],Ve.prototype,"exportpartsPrefixes",void 0);Xt([(0,_t.property)({reflect:!0})],Ve.prototype,"exportparts",void 0);Xt([(0,_t.property)()],Ve.prototype,"customStylesheet",void 0);Xt([(0,_t.property)()],Ve.prototype,"elementToFocus",void 0);Xt([(0,_t.state)()],Ve.prototype,"useAdoptedStyleSheets",void 0);function dn(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Sr=Symbol("internalReduxEventsUnsubscribers"),ot=Symbol("internalStoresUnsubscribers"),Ct=Symbol("internalStores"),$d=on(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[ot].has(s.store):this[ot].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l,c;this[ot].set(s,a.subscribe(()=>this.updateFromStores())),this[Sr].set(s,[]),dn(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((d,u)=>{this.getStore(d.store)===a&&a.deprecatedKeys.includes(u)&&console.warn("Element",this,"is subscribed to deprecated key",u,"in store",a.name)}),a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((d,u)=>{if(typeof this[u]=="function"&&(!d.store||a.name===d.store)){let p=m=>this[u](m);a.addEventListener(d.eventName,p),this[Sr].get(s).push(()=>a.removeEventListener(d.eventName,p))}}))),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ot].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[ot].has(s)&&this[ot].get(s)(),this[ot].delete(s),(a=this[Sr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Sr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ot,r=Ct,n=Sr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),ra=class extends $d(Ve){};function te(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 Ud=typeof Symbol=="function"&&Symbol.observable||"@@observable",na=Ud,Ri=()=>Math.random().toString(36).substring(7).split("").join("."),Bd={INIT:`@@redux/INIT${Ri()}`,REPLACE:`@@redux/REPLACE${Ri()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ri()}`},un=Bd;function pn(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 Ni(e,t,r){if(typeof e!="function")throw new Error(te(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(te(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(te(1));return r(Ni)(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,C)=>{s.set(C,x)}))}function d(){if(l)throw new Error(te(3));return i}function u(x){if(typeof x!="function")throw new Error(te(4));if(l)throw new Error(te(5));let C=!0;c();let P=a++;return s.set(P,x),function(){if(C){if(l)throw new Error(te(6));C=!1,c(),s.delete(P),o=null}}}function p(x){if(!pn(x))throw new Error(te(7));if(typeof x.type>"u")throw new Error(te(8));if(typeof x.type!="string")throw new Error(te(17));if(l)throw new Error(te(9));try{l=!0,i=n(i,x)}finally{l=!1}return(o=s).forEach(P=>{P()}),x}function m(x){if(typeof x!="function")throw new Error(te(10));n=x,p({type:un.REPLACE})}function v(){let x=u;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(te(11));function P(){let A=C;A.next&&A.next(d())}return P(),{unsubscribe:x(P)}},[na](){return this}}}return p({type:un.INIT}),{dispatch:p,subscribe:u,getState:d,replaceReducer:m,[na]:v}}function Fd(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:un.INIT})>"u")throw new Error(te(12));if(typeof r(void 0,{type:un.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(te(13))})}function Li(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{Fd(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],m=r[p],v=a[p],S=m(v,l);if(typeof S>"u"){let x=l&&l.type;throw new Error(te(14))}d[p]=S,c=c||S!==v}return c=c||n.length!==Object.keys(a).length,c?d:a}}function _r(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function ia(...e){return t=>(r,n)=>{let i=t(r,n),o=()=>{throw new Error(te(15))},s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=_r(...a)(i.dispatch),{...i,dispatch:o}}}function oa(e){return pn(e)&&"type"in e&&typeof e.type=="string"}var ha=Symbol.for("immer-nothing"),sa=Symbol.for("immer-draftable"),ie=Symbol.for("immer-state");function Ie(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var me=Object,Zt=me.getPrototypeOf,yn="constructor",An="prototype",Di="configurable",gn="enumerable",hn="writable",Cr="value",ze=e=>!!e&&!!e[ie];function ye(e){return e?ma(e)||_n(e)||!!e[sa]||!!e[yn]?.[sa]||Cn(e)||Rr(e):!1}var Hd=me[An][yn].toString(),aa=new WeakMap;function ma(e){if(!e||!zi(e))return!1;let t=Zt(e);if(t===null||t===me[An])return!0;let r=me.hasOwnProperty.call(t,yn)&&t[yn];if(r===Object)return!0;if(!Yt(r))return!1;let n=aa.get(r);return n===void 0&&(n=Function.toString.call(r),aa.set(r,n)),n===Hd}function Sn(e,t,r=!0){Or(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 Or(e){let t=e[ie];return t?t.type_:_n(e)?1:Cn(e)?2:Rr(e)?3:0}var Ii=(e,t,r=Or(e))=>r===2?e.has(t):me[An].hasOwnProperty.call(e,t),Mi=(e,t,r=Or(e))=>r===2?e.get(t):e[t],xn=(e,t,r,n=Or(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function Vd(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var _n=Array.isArray,Cn=e=>e instanceof Map,Rr=e=>e instanceof Set,zi=e=>typeof e=="object",Yt=e=>typeof e=="function",Pi=e=>typeof e=="boolean";function zd(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Ze=e=>e.copy_||e.base_;var ji=e=>e.modified_?e.copy_:e.base_;function $i(e,t){if(Cn(e))return new Map(e);if(Rr(e))return new Set(e);if(_n(e))return Array[An].slice.call(e);let r=ma(e);if(t===!0||t==="class_only"&&!r){let n=me.getOwnPropertyDescriptors(e);delete n[ie];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){let s=i[o],a=n[s];a[hn]===!1&&(a[hn]=!0,a[Di]=!0),(a.get||a.set)&&(n[s]={[Di]:!0,[hn]:!0,[gn]:a[gn],[Cr]:e[s]})}return me.create(Zt(e),n)}else{let n=Zt(e);if(n!==null&&r)return{...e};let i=me.create(n);return me.assign(i,e)}}function wn(e,t=!1){return Tn(e)||ze(e)||!ye(e)||(Or(e)>1&&me.defineProperties(e,{set:fn,add:fn,clear:fn,delete:fn}),me.freeze(e),t&&Sn(e,(r,n)=>{wn(n,!0)},!1)),e}function jd(){Ie(2)}var fn={[Cr]:jd};function Tn(e){return e===null||!zi(e)?!0:me.isFrozen(e)}var vn="MapSet",Ui="Patches",la="ArrayMethods",ya={};function wt(e){let t=ya[e];return t||Ie(0,e),t}var ca=e=>!!ya[e];var wr,ga=()=>wr,Wd=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ca(vn)?wt(vn):void 0,arrayMethodsPlugin_:ca(la)?wt(la):void 0});function da(e,t){t&&(e.patchPlugin_=wt(Ui),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Bi(e){Fi(e),e.drafts_.forEach(Kd),e.drafts_=null}function Fi(e){e===wr&&(wr=e.parent_)}var ua=e=>wr=Wd(wr,e);function Kd(e){let t=e[ie];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function pa(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[ie].modified_&&(Bi(t),Ie(4)),ye(e)&&(e=fa(t,e));let{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[ie].base_,e,t)}else e=fa(t,r);return Gd(t,e,!0),Bi(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ha?e:void 0}function fa(e,t){if(Tn(t))return t;let r=t[ie];if(!r)return bn(t,e.handledSet_,e);if(!On(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);ba(r,e)}return r.copy_}function Gd(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&wn(t,r)}function xa(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var On=(e,t)=>e.scope_===t,qd=[];function va(e,t,r,n){let i=Ze(e),o=e.type_;if(n!==void 0&&Mi(i,n,o)===t){xn(i,n,r,o);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;Sn(i,(l,c)=>{if(ze(c)){let d=a.get(c)||[];d.push(l),a.set(c,d)}})}let s=e.draftLocations_.get(t)??qd;for(let a of s)xn(i,a,r,o)}function Xd(e,t,r){e.callbacks_.push(function(i){let o=t;if(!o||!On(o,i))return;i.mapSetPlugin_?.fixSetContents(o);let s=ji(o);va(e,o.draft_??o,s,r),ba(o,i)})}function ba(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)}xa(e)}}function Yd(e,t,r){let{scope_:n}=e;if(ze(r)){let i=r[ie];On(i,n)&&i.callbacks_.push(function(){mn(e);let s=ji(i);va(e,r,s,t)})}else ye(r)&&e.callbacks_.push(function(){let o=Ze(e);e.type_===3?o.has(r)&&bn(r,n.handledSet_,n):Mi(o,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&bn(Mi(e.copy_,t,e.type_),n.handledSet_,n)})}function bn(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||ze(e)||t.has(e)||!ye(e)||Tn(e)||(t.add(e),Sn(e,(n,i)=>{if(ze(i)){let o=i[ie];if(On(o,r)){let s=ji(o);xn(e,n,s,e.type_),xa(o)}}else ye(i)&&bn(i,t,r)})),e}function Zd(e,t){let r=_n(e),n={type_:r?1:0,scope_:t?t.scope_:ga(),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=En;r&&(i=[n],o=Tr);let{revoke:s,proxy:a}=Proxy.revocable(i,o);return n.draft_=a,n.revoke_=s,[a,n]}var En={get(e,t){if(t===ie)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=Ze(e);if(!Ii(i,t,e.type_))return Qd(e,i,t);let o=i[t];if(e.finalized_||!ye(o)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&zd(t))return o;if(o===ki(e.base_,t)||Jd(e,t,o)){mn(e);let s=e.type_===1?+t:t,a=Vi(e.scope_,o,e,s);return e.copy_[s]=a}return o},has(e,t){return t in Ze(e)},ownKeys(e){return Reflect.ownKeys(Ze(e))},set(e,t,r){let n=Ea(Ze(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let i=ki(Ze(e),t),o=i?.[ie];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_.delete(t),!0;if(Vd(r,i)&&(r!==void 0||Ii(e.base_,t,e.type_)))return!0;mn(e),Hi(e)}return e.copy_[t]===r&&(r!==void 0||Ii(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Yd(e,t,r)),!0},deleteProperty(e,t){return mn(e),ki(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Hi(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Ze(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[hn]:!0,[Di]:e.type_!==1||t!=="length",[gn]:n[gn],[Cr]:r[t]}},defineProperty(){Ie(11)},getPrototypeOf(e){return Zt(e.base_)},setPrototypeOf(){Ie(12)}},Tr={};for(let e in En){let t=En[e];Tr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Tr.deleteProperty=function(e,t){return Tr.set.call(this,e,t,void 0)};Tr.set=function(e,t,r){return En.set.call(this,e[0],t,r,e[0])};function ki(e,t){let r=e[ie];return(r?Ze(r):e)[t]}function Jd(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||!ye(r)||r[ie]?!1:e.baseRefs_.has(r)}function Qd(e,t,r){let n=Ea(t,r);return n?Cr in n?n[Cr]:n.get?.call(e.draft_):void 0}function Ea(e,t){if(!(t in e))return;let r=Zt(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Zt(r)}}function Hi(e){e.modified_||(e.modified_=!0,e.parent_&&Hi(e.parent_))}function mn(e){e.copy_||(e.assigned_=new Map,e.copy_=$i(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var eu=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Yt(t)&&!Yt(r)){let o=r;r=t;let s=this;return function(l=o,...c){return s.produce(l,d=>r.call(this,d,...c))}}Yt(r)||Ie(6),n!==void 0&&!Yt(n)&&Ie(7);let i;if(ye(t)){let o=ua(this),s=Vi(o,t,void 0),a=!0;try{i=r(s),a=!1}finally{a?Bi(o):Fi(o)}return da(o,n),pa(i,o)}else if(!t||!zi(t)){if(i=r(t),i===void 0&&(i=t),i===ha&&(i=void 0),this.autoFreeze_&&wn(i,!0),n){let o=[],s=[];wt(Ui).generateReplacementPatches_(t,i,{patches_:o,inversePatches_:s}),n(o,s)}return i}else Ie(1,t)},this.produceWithPatches=(t,r)=>{if(Yt(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]},Pi(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Pi(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Pi(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){ye(e)||Ie(8),ze(e)&&(e=Aa(e));let t=ua(this),r=Vi(t,e,void 0);return r[ie].isManual_=!0,Fi(t),r}finishDraft(e,t){let r=e&&e[ie];(!r||!r.isManual_)&&Ie(9);let{scope_:n}=r;return da(n,t),pa(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(Ui).applyPatches_;return ze(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Vi(e,t,r,n){let[i,o]=Cn(t)?wt(vn).proxyMap_(t,r):Rr(t)?wt(vn).proxySet_(t,r):Zd(t,r);return(r?.scope_??ga()).drafts_.push(i),o.callbacks_=r?.callbacks_??[],o.key_=n,r&&n!==void 0?Xd(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 Aa(e){return ze(e)||Ie(10,e),Sa(e)}function Sa(e){if(!ye(e)||Tn(e))return e;let t=e[ie],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=$i(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=$i(e,!0);let i=r;return Rr(r)&&(r=new Set),Sn(i,(o,s)=>{xn(r,o,Sa(s))},n),t&&(t.finalized_=!1),r}var tu=globalThis.Iterator,qf=typeof tu?.from=="function";var ru=new eu,Wi=ru.produce;function _a(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var Ca=_a(),wa=_a;var nu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_r:_r.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var iu=e=>e&&typeof e.match=="function";function st(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(je(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=>oa(n)&&n.type===e,r}var La=class Nr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Nr.prototype)}static get[Symbol.species](){return Nr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Nr(...t[0].concat(this)):new Nr(...t.concat(this))}};function Ta(e){return ye(e)?Wi(e,()=>{}):e}function Rn(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function ou(e){return typeof e=="boolean"}var su=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{},s=new La;return r&&(ou(r)?s.push(Ca):s.push(wa(r.extraArgument))),s},au="RTK_autoBatch";var Oa=e=>t=>{setTimeout(t,e)},lu=(e,t)=>r=>{let n=!1,i,o,s=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(o),r())};i=e(s),o=setTimeout(s,t)},cu=(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?lu(window.requestAnimationFrame,100):Oa(10):e.type==="callback"?e.queueNotification:Oa(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?.[au],o=!i,o&&(s||(s=!0,l(c))),n.dispatch(d)}finally{i=!0}}})},du=e=>function(r){let{autoBatch:n=!0}=r??{},i=new La(e);return n&&i.push(cu(typeof n=="object"?n:void 0)),i};function Ia(e){let t=su(),{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(pn(r))l=Li(r);else throw new Error(je(1));let c;typeof n=="function"?c=n(t):c=t();let d=_r;i&&(d=nu({trace:!1,...typeof i=="object"&&i}));let u=ia(...c),p=du(u),m=typeof a=="function"?a(p):p(),v=d(...m);return Ni(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(je(28));if(a in t)throw new Error(je(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 uu(e){return typeof e=="function"}function pu(e,t){let[r,n,i]=Pa(t),o;if(uu(e))o=()=>Ta(e());else{let a=Ta(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(ze(d)){let p=u(d,l);return p===void 0?d:p}else{if(ye(d))return Wi(d,p=>u(p,l));{let p=u(d,l);if(p===void 0){if(d===null)return d;throw new Error(je(9))}return p}}return d},a)}return s.getInitialState=o,s}var fu=(e,t)=>iu(e)?e.match(t):e(t);function hu(...e){return t=>e.some(r=>fu(r,t))}var mu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",yu=(e=21)=>{let t="",r=e;for(;r--;)t+=mu[Math.random()*64|0];return t},gu=["name","message","stack","code"],Ki=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},Ra=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},xu=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of gu)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Na="External signal was aborted",vu=(()=>{function e(t,r,n){let i=st(t+"/fulfilled",(l,c,d,u)=>({payload:l,meta:{...u||{},arg:d,requestId:c,requestStatus:"fulfilled"}})),o=st(t+"/pending",(l,c,d)=>({payload:void 0,meta:{...d||{},arg:c,requestId:l,requestStatus:"pending"}})),s=st(t+"/rejected",(l,c,d,u,p)=>({payload:u,error:(n&&n.serializeError||xu)(l||"Rejected"),meta:{...p||{},arg:d,requestId:c,rejectedWithValue:u!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(d,u,p)=>{let m=n?.idGenerator?n.idGenerator(l):yu(),v=new AbortController,S,x;function C(b){x=b,v.abort()}c&&(c.aborted?C(Na):c.addEventListener("abort",()=>C(Na),{once:!0}));let P=(async function(){let b;try{let A=n?.condition?.(l,{getState:u,extra:p});if(Eu(A)&&(A=await A),A===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(v.signal.aborted)throw{name:"AbortError",message:x||"Aborted"};let $=new Promise((I,G)=>{S=()=>{G({name:"AbortError",message:x||"Aborted"})},v.signal.addEventListener("abort",S,{once:!0})});d(o(m,l,n?.getPendingMeta?.({requestId:m,arg:l},{getState:u,extra:p}))),b=await Promise.race([$,Promise.resolve(r(l,{dispatch:d,getState:u,extra:p,requestId:m,signal:v.signal,abort:C,rejectWithValue:((I,G)=>new Ki(I,G)),fulfillWithValue:((I,G)=>new Ra(I,G))})).then(I=>{if(I instanceof Ki)throw I;return I instanceof Ra?i(I.payload,m,l,I.meta):i(I,m,l)})])}catch(A){b=A instanceof Ki?s(null,m,l,A.payload,A.meta):s(A,m,l)}finally{S&&v.signal.removeEventListener("abort",S)}return n&&!n.dispatchConditionRejection&&s.match(b)&&b.meta.condition||d(b),b})();return Object.assign(P,{abort:C,requestId:m,arg:l,unwrap(){return P.then(bu)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:i,settled:hu(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function bu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Eu(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ka=Symbol.for("rtk-slice-createasyncthunk"),rh={[ka]:vu};function Au(e,t){return`${e}/${t}`}function Su({creators:e}={}){let t=e?.asyncThunk?.[ka];return function(n){let{name:i,reducerPath:o=i}=n;if(!i)throw new Error(je(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(Cu()):n.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,A){let $=typeof b=="string"?b:b.type;if(!$)throw new Error(je(12));if($ in l.sliceCaseReducersByType)throw new Error(je(13));return l.sliceCaseReducersByType[$]=A,c},addMatcher(b,A){return l.sliceMatchers.push({matcher:b,reducer:A}),c},exposeAction(b,A){return l.actionCreators[b]=A,c},exposeCaseReducer(b,A){return l.sliceCaseReducersByName[b]=A,c}};a.forEach(b=>{let A=s[b],$={reducerName:b,type:Au(i,b),createNotation:typeof n.reducers=="function"};Tu(A)?Ru($,A,c,t):wu($,A,c)});function d(){let[b={},A=[],$=void 0]=typeof n.extraReducers=="function"?Pa(n.extraReducers):[n.extraReducers],I={...b,...l.sliceCaseReducersByType};return pu(n.initialState,G=>{for(let ne in I)G.addCase(ne,I[ne]);for(let ne of l.sliceMatchers)G.addMatcher(ne.matcher,ne.reducer);for(let ne of A)G.addMatcher(ne.matcher,ne.reducer);$&&G.addDefaultCase($)})}let u=b=>b,p=new Map,m=new WeakMap,v;function S(b,A){return v||(v=d()),v(b,A)}function x(){return v||(v=d()),v.getInitialState()}function C(b,A=!1){function $(G){let ne=G[b];return typeof ne>"u"&&A&&(ne=Rn(m,$,x)),ne}function I(G=u){return Rn(Rn(p,A,()=>new WeakMap),G,()=>{let ne={};for(let[zr,ve]of Object.entries(n.selectors??{}))ne[zr]=_u(ve,G,()=>Rn(m,G,x),A);return ne})}return{reducerPath:b,getSelectors:I,get selectors(){return I($)},selectSlice:$}}let P={name:i,reducer:S,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...C(o),injectInto(b,{reducerPath:A,...$}={}){let I=A??o;return b.inject({reducerPath:I,reducer:S},$),{...P,...C(I,!0)}}};return P}}function _u(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 Da=Su();function Cu(){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 wu({type:e,reducerName:t,createNotation:r},n,i){let o,s;if("reducer"in n){if(r&&!Ou(n))throw new Error(je(17));o=n.reducer,s=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?st(e,s):st(e))}function Tu(e){return e._reducerDefinitionType==="asyncThunk"}function Ou(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Ru({type:e,reducerName:t},r,n,i){if(!i)throw new Error(je(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||Nn,pending:a||Nn,rejected:l||Nn,settled:c||Nn})}function Nn(){}var Ma="listener",$a="completed",Ua="cancelled",nh=`task-${Ua}`,ih=`task-${$a}`,oh=`${Ma}-${Ua}`,sh=`${Ma}-${$a}`;var{assign:Ba}=Object;var Gi="listenerMiddleware";var Nu=Ba(st(`${Gi}/add`),{withTypes:()=>Nu}),ah=st(`${Gi}/removeAll`),Lu=Ba(st(`${Gi}/remove`),{withTypes:()=>Lu});function je(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 Iu=on(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)}}}),Ln=class extends Iu(Object){};window.ftReduxStores||(window.ftReduxStores={});var Fa=class e extends Ln{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(dn(o))return o;if(i==null)return;let s=Da({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=Ia({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let d=Er(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,i.deprecatedKeys)}constructor(t,r,n,i){super(),this.reduxSlice=t,this.reduxStore=r,this.deprecatedKeys=i,this.isFtReduxStore=!0,this.commands=new sn,this.injectInto=(s,a)=>this.reduxSlice.injectInto(s,a),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let o=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,a,l)=>{let c=a,d=s[c];return d?(...u)=>{let p=d(...u.map(o));return this.reduxStore.dispatch(p),p}:u=>{let p=c,m=this.getState()[p];Gt(m,u)||this.setState({[p]:o(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 In=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 Pn=f(E()),Pu="ft-app-info",Tt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Tt.eventName="authentication-change";var Lr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Lr.eventName="ui-locale-changed";var ku={session:(e,t)=>{(0,Pn.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new Tt(t.payload)),0))}},w=Pn.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 Ha=f(E()),kn=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,Ha.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(w)}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=>In.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return kn([(0,qi.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),kn([(0,qi.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),kn([Oi({store:w.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),kn([Oi({store:w.name})],t.prototype,"uiLocale",void 0),t});var Va;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Va||(Va={}));var za;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(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.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.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ka||(Ka={}));var Ga;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ga||(Ga={}));var qa;(function(e){e.PUBLISHED="PUBLISHED",e.AI="AI"})(qa||(qa={}));var Xa;(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"})(Xa||(Xa={}));var Ya;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Ya||(Ya={}));var Za;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Za||(Za={}));var Ja;(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",e.DOC_DIFF="DOC_DIFF"})(Ja||(Ja={}));var Qa;(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"})(Qa||(Qa={}));var el;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(el||(el={}));var tl;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(tl||(tl={}));var rl;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(rl||(rl={}));var nl;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(nl||(nl={}));var il;(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"})(il||(il={}));var ol;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(ol||(ol={}));var sl;(function(e){e.ASC="ASC",e.DESC="DESC"})(sl||(sl={}));var al;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(al||(al={}));var ll;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(ll||(ll={}));var cl;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(cl||(cl={}));var dl;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(dl||(dl={}));var ul;(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"})(ul||(ul={}));var pl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(pl||(pl={}));var fl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(fl||(fl={}));var hl;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(hl||(hl={}));var ml;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ml||(ml={}));var K;(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"})(K||(K={}));var Ae;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Ae||(Ae={}));var yl;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(yl||(yl={}));var gl;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(gl||(gl={}));var xl;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(xl||(xl={}));var vl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(vl||(vl={}));var bl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(bl||(bl={}));var El;(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"})(El||(El={}));var Al;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Al||(Al={}));var Sl;(function(e){e.CHAT="CHAT",e.COMPLETION="COMPLETION",e.RAG="RAG",e.AGENT="AGENT"})(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 Du={[K.PERSONAL_BOOK_SHARE_USER]:[K.PERSONAL_BOOK_USER],[K.HTML_EXPORT_USER]:[K.PERSONAL_BOOK_USER],[K.PDF_EXPORT_USER]:[K.PERSONAL_BOOK_USER],[K.KHUB_ADMIN]:[K.CONTENT_PUBLISHER],[K.ADMIN]:[K.KHUB_ADMIN,K.USERS_ADMIN,K.PORTAL_ADMIN,K.BEHAVIOR_DATA_USER],[K.GENERATIVE_AI_EXPORT_USER]:[K.GENERATIVE_AI_USER]};function Rl(e,t){return e===t||(Du[e]??[]).some(r=>Rl(r,t))}function Xi(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=>Xi(e,r))}var Bn=f(E());var Yi=f(E());var Ot=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=w.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=w.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Jt=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 Jt{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 Yi.CacheRegistry,this.cache=t?i.commonCache:new Yi.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 Dn=class extends ge{async listMySearches(){let{session:t}=w.getState();return Xi(t,K.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Mn=class extends ge{async listMyBookmarks(){let t=w.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var $n=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=w.getState().session;return!!t?.sessionAuthenticated}};var Un=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=w.getState().session;return!!t?.sessionAuthenticated}};var Mu="ft-user-assets",$u={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(Ae).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;Ji(e,r,[...Zi(e,r),i]),Ll(e,r,1,n),Il(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Ji(e,r,Zi(e,r).map(i=>i.id===n.id?n:i)),Il(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;Ji(e,r,Zi(e,r).filter(o=>o.id!==i)),Ll(e,r,-1,n)}},Pl={[Ae.SEARCHES]:"savedSearches",[Ae.BOOKMARKS]:"bookmarks",[Ae.BOOKS]:void 0,[Ae.COLLECTIONS]:void 0},Zi=(e,t)=>{var r;let n=Pl[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Ji=(e,t,r)=>{let n=Pl[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===Ae.BOOKMARKS&&n)){let o=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,o+r)}},Il=(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)},se=Bn.FtReduxStore.get({name:Mu,reducers:$u,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ae).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Qi=class{constructor(t=new $n,r=new Un){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Mn,this.savedSearchesService=new Dn,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,Bn.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(),se.actions.clearAssetCount(),se.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),se.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),se.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();se.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();se.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&se.getState().assetCounts.allAsset[t]!==r.count&&se.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&se.getState().assetCounts.bookmarkByMap[t]!==r.count&&se.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(se.getState().assetCounts.bookmarkByMap).length!==0;t===Ae.BOOKMARKS&&r&&se.actions.clearBookmarkCountByMap(),se.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;se.actions.bookmarks(r)}}},Uu=new Qi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Uu);var eo=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new eo;var Se=f(E());var kl,Qt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Bu=Symbol("clearAfterUnitTest"),Fn=class extends(0,Se.withEventBus)(ge){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[kl]=()=>{this.defaultMessages={},this.cache=new Se.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=w.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,Se.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 Se.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 Se.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 Qt({loadedContexts:t})),this.dispatchEvent(new Qt({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Qt({loadedContexts:[t]})),this.dispatchEvent(new Qt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Se.delay)(0).then(()=>n()).catch(()=>null)))}};kl=Bu;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var er=window.FluidTopicsI18nService,Hn=window.FluidTopicsCustomI18nService;var Dl=f(E()),to=class{highlightHtml(t,r,n){(0,Dl.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new to;var Ml=f(E());var ro=class{isDate(t){var r,n,i,o;return(o=(n=((i=(r=w.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:w.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 ro;var $l=f(E());var Ir=class{static get(t,r,{baseUrl:n,localesConfiguration:i,availableContentLocales:o}=w.getState()){var s;if(!r||o.length>0&&!o.some(a=>a.lang===r)){let a=i?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(s=o[0])===null||s===void 0?void 0:s.lang}return new $l.SearchPlaceConverter(n,t??20,i?.allLanguagesAllowed,r,o)}};var no=class{urlToSearchRequest(t){return Ir.get().parse(t)}searchRequestToUrl(t){return Ir.get().serialize(t)}};window.FluidTopicsUrlService=new no;var Je=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 io=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 io;var Vn=class e extends Je.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,Je.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 URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),c=new Rt(l);this.dispatchEvent(c);let d=r(),u={...d===this.currentIndex?this.currentState:void 0,...o,index:d,href:c.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,Je.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,Je.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Je.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,Je.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=Vn.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(k());var Fl=Bl.css`
|
|
290
|
+
`;var zl=f(k()),ae=f(q()),It=f(E());var We=f(E());function Hl(e,t){let{authenticationRequired:r,session:n}=w.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var zn=class extends Jt{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var oo=class e extends We.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new We.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new zn,this.knownContexts=new We.AbstractRegistry,this.knownCustomComponents=new We.AbstractRegistry,this.cleanSessionDebouncer=new We.Debouncer,this.reloadConfiguration=()=>{var n;(n=this.cache)===null||n===void 0||n.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new We.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",()=>Hl(()=>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 Lr(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 Nl(w.getState().session,...t)}},Vl=oo.build();var Lt=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 Pr=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 Lt(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 Y=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 It.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=Vl,this.contextRoot=new Pr}render(){return zl.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=>er.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=>er.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=Fl;Y([(0,ae.property)()],V.prototype,"baseUrl",void 0);Y([(0,ae.property)()],V.prototype,"tenantId",void 0);Y([(0,ae.property)()],V.prototype,"apiIntegrationIdentifier",void 0);Y([(0,ae.property)()],V.prototype,"apiIntegrationAppVersion",void 0);Y([(0,ae.property)()],V.prototype,"uiLocale",void 0);Y([(0,It.jsonProperty)(null)],V.prototype,"availableUiLocales",void 0);Y([(0,It.jsonProperty)(null)],V.prototype,"metadataConfiguration",void 0);Y([(0,ae.property)({type:Boolean})],V.prototype,"editorMode",void 0);Y([(0,ae.property)({type:Boolean})],V.prototype,"noCustom",void 0);Y([(0,ae.property)({type:Boolean})],V.prototype,"openExternalDocumentInNewTab",void 0);Y([(0,ae.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],V.prototype,"noCustomComponent",void 0);Y([(0,ae.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],V.prototype,"noCustomCode",void 0);Y([(0,ae.property)({type:Boolean})],V.prototype,"withManualResources",void 0);Y([(0,ae.property)({type:Boolean})],V.prototype,"navigatorOnline",void 0);Y([(0,ae.property)({type:Boolean})],V.prototype,"forcedOffline",void 0);Y([(0,ae.property)({type:Boolean})],V.prototype,"authenticationRequired",void 0);Y([(0,It.jsonProperty)([])],V.prototype,"messageContexts",void 0);Y([(0,It.jsonProperty)(void 0)],V.prototype,"session",void 0);var Wl=f(E());var jl={"ft-app-context":V};(0,Wl.customElements)(jl);var Kl=f(q());var so=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-]+$/)}},tr=new so;var Vu=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},Dr=Symbol("i18nAttributes"),Gl=Symbol("i18nListAttributes"),ql=Symbol("i18nProperties"),jn=Symbol("i18nContexts"),kr=Symbol("i18nUnsubs"),Gn=(0,rr.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?Hn:er}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(tr.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[Dr])===null||s===void 0||s.forEach((d,u)=>l[u]=c(d,u,l[u])),(a=this[Gl])===null||a===void 0||a.forEach((d,u)=>{var p;return l[u]=(p=l[u])===null||p===void 0?void 0:p.map(m=>c(d,u,m))})}updateI18nProperties(o){var s;(s=this[ql])===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[jn].set(l,{isCustomContext:a}),this[kr].has(l)||this[kr].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[jn].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[jn].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[kr].forEach(o=>o()),this[kr].clear()}}return t=jn,r=kr,Vu([(0,Kl.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Wn=class extends Gn(rr.FtLitElement){},Kn=class extends Gn(rr.FtLitElementRedux){};var Xl=f(E());var ao=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?tr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},zu=new ao;var Yl=(e,t)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:Xl.hasChanged,converter:tr,...t}),r[Dr]=(i=r[Dr])!==null&&i!==void 0?i:new Map,r[Dr].set(n,e??{})};var qn=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?Hn:er}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 Zl=f(k());var Jl=Zl.css`
|
|
293
293
|
`;var Xn=f(k()),ir=f(q()),Yn=f(E());var nr=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},_e=class extends Kn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Xn.nothing:Xn.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:""})}};_e.elementDefinitions={};_e.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:""})}};_e.elementDefinitions={};_e.styles=Jl;nr([(0,Yn.redux)()],_e.prototype,"editorMode",void 0);nr([(0,ir.property)()],_e.prototype,"context",void 0);nr([(0,ir.property)()],_e.prototype,"key",void 0);nr([(0,Yn.jsonProperty)([])],_e.prototype,"args",void 0);nr([(0,ir.property)()],_e.prototype,"defaultMessage",void 0);nr([(0,ir.state)()],_e.prototype,"editorMessage",void 0);var ec=f(E());var Ql={"ft-i18n":_e};(0,ec.customElements)(Ql);var Pe=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},X=class extends Wn{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 Ce.Debouncer,this.revealDebouncer=new Ce.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 tc.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&&Ks(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 ${Ce.designSystemVariables.transitionDuration}, left ${Ce.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,Ce.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};X.elementDefinitions={"ft-typography":J};X.styles=xs;
|
|
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&&Ks(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 ${Ce.designSystemVariables.transitionDuration}, left ${Ce.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,Ce.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};X.elementDefinitions={"ft-typography":J};X.styles=xs;Pe([Yl()],X.prototype,"text",void 0);Pe([(0,we.property)({type:Boolean})],X.prototype,"manual",void 0);Pe([(0,we.property)({type:Boolean})],X.prototype,"inline",void 0);Pe([(0,Ce.numberProperty)()],X.prototype,"delay",void 0);Pe([(0,we.property)()],X.prototype,"position",void 0);Pe([(0,Ce.jsonProperty)([])],X.prototype,"ignoreMatchingElements",void 0);Pe([(0,we.queryAssignedNodes)()],X.prototype,"slotNodes",void 0);Pe([(0,we.query)(".ft-tooltip--container")],X.prototype,"container",void 0);Pe([(0,we.query)(".ft-tooltip")],X.prototype,"tooltip",void 0);Pe([(0,we.query)(".ft-tooltip--content")],X.prototype,"tooltipContent",void 0);Pe([(0,we.state)()],X.prototype,"visible",void 0);var nc=f(E());var rc={"ft-tooltip":X};(0,nc.customElements)(rc);var ic=f(k()),ke=f(E()),le={size:ke.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:ke.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",ke.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:ke.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",ke.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:ke.FtCssVariableFactory.extend("--ft-icon-material-font-family","",ke.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:ke.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},oc=[ic.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: ${le.materialFontFamily}, "Material Icons", sans-serif;
|
|
359
359
|
}
|
|
360
|
-
`,ke.noTextSelect];var De;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(De||(De={}));var Mr=f(k()),at=f(q()),
|
|
360
|
+
`,ke.noTextSelect];var De;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(De||(De={}));var Mr=f(k()),at=f(q()),lc=f(E()),cc=f(ac());var Zn;(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="󨃱"})(Zn||(Zn={}));var y;(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=""})(y||(y={}));var cx=new Map([...["abw"].map(e=>[e,y.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,y.AUDIO]),...["avi"].map(e=>[e,y.AVI]),...["chm","xhs"].map(e=>[e,y.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,y.CODE]),...["csv"].map(e=>[e,y.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,y.DITA]),...["epub"].map(e=>[e,y.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,y.EXCEL]),...["flac"].map(e=>[e,y.FLAC]),...["gif"].map(e=>[e,y.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,y.GZIP]),...["html","htm","xhtml"].map(e=>[e,y.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,y.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,y.JPEG]),...["json"].map(e=>[e,y.JSON]),...["m4a","m4p"].map(e=>[e,y.M4A]),...["mov","qt"].map(e=>[e,y.MOV]),...["mp3"].map(e=>[e,y.MP3]),...["mp4","m4v"].map(e=>[e,y.MP4]),...["ogg","oga"].map(e=>[e,y.OGG]),...["pdf","ps"].map(e=>[e,y.PDF]),...["png"].map(e=>[e,y.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,y.POWERPOINT]),...["rar"].map(e=>[e,y.RAR]),...["stp"].map(e=>[e,y.STP]),...["txt","rtf","md","mdown"].map(e=>[e,y.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,y.VIDEO]),...["wav"].map(e=>[e,y.WAV]),...["wma"].map(e=>[e,y.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,y.WORD]),...["xml","xsl","rdf"].map(e=>[e,y.XML]),...["yaml","yml","x-yaml"].map(e=>[e,y.YAML]),...["zip"].map(e=>[e,y.ZIP])]);var dx={[y.ABW]:"#91ABC6",[y.AUDIO]:"#1795E3",[y.AVI]:"#E63324",[y.CHM]:"#71C3EB",[y.CODE]:"#71C3EB",[y.CSV]:"#1F7345",[y.DITA]:"#71C3EB",[y.EPUB]:"#85B926",[y.EXCEL]:"#1F7345",[y.FLAC]:"#1795E3",[y.GIF]:"#59B031",[y.GZIP]:"#F8AB36",[y.HTML]:"#71C3EB",[y.IMAGE]:"#59B031",[y.JPEG]:"#59B031",[y.JSON]:"#71C3EB",[y.M4A]:"#1795E3",[y.MOV]:"#E63324",[y.MP3]:"#1795E3",[y.MP4]:"#E63324",[y.OGG]:"#1795E3",[y.PDF]:"#E44948",[y.PNG]:"#59B031",[y.POWERPOINT]:"#B54A2B",[y.RAR]:"#F8AB36",[y.STP]:"#3764B1",[y.TEXT]:"#3162AB",[y.UNKNOWN]:"#999999",[y.VIDEO]:"#E63324",[y.WAV]:"#1795E3",[y.WMA]:"#1795E3",[y.WORD]:"#3162AB",[y.XML]:"#71C3EB",[y.YAML]:"#71C3EB",[y.ZIP]:"#F8AB36"};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},re=class extends lc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Mr.nothing}render(){let t=this.variant&&Object.values(De).includes(this.variant)?this.variant:De.fluid_topics,r=t!==De.material||!!this.value;return Mr.html`
|
|
361
361
|
<i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
|
|
362
|
-
${(0,
|
|
362
|
+
${(0,cc.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=y[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case De.material:this.resolvedIcon=this.value||Mr.nothing;break;default:this.resolvedIcon=(r=Zn[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};re.elementDefinitions={};re.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=y[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case De.material:this.resolvedIcon=this.value||Mr.nothing;break;default:this.resolvedIcon=(r=Zn[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};re.elementDefinitions={};re.styles=oc;$r([(0,at.property)()],re.prototype,"variant",void 0);$r([(0,at.property)()],re.prototype,"value",void 0);$r([(0,at.property)({reflect:!0,attribute:"aria-hidden"})],re.prototype,"ariaHidden",void 0);$r([(0,at.state)()],re.prototype,"resolvedIcon",void 0);$r([(0,at.query)("slot")],re.prototype,"slottedContent",void 0);var uc=f(E());var dc={"ft-icon":re};(0,uc.customElements)(dc);var pc=f(k()),Ur=f(E()),Pt={color:Ur.FtCssVariableFactory.extend("--ft-loader-color","",Ur.designSystemVariables.colorPrimary),size:Ur.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},fc=pc.css`
|
|
366
366
|
:host {
|
|
367
367
|
line-height: 0;
|
|
368
368
|
}
|
|
@@ -371,8 +371,8 @@
|
|
|
371
371
|
display: inline-block;
|
|
372
372
|
position: relative;
|
|
373
373
|
|
|
374
|
-
width: ${
|
|
375
|
-
height: ${
|
|
374
|
+
width: ${Pt.size};
|
|
375
|
+
height: ${Pt.size};
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
.ft-loader div {
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
width: 25%;
|
|
382
382
|
height: 25%;
|
|
383
383
|
border-radius: 50%;
|
|
384
|
-
background: ${
|
|
384
|
+
background: ${Pt.color};
|
|
385
385
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
386
386
|
}
|
|
387
387
|
|
|
@@ -428,17 +428,17 @@
|
|
|
428
428
|
transform: translate(0, 0);
|
|
429
429
|
}
|
|
430
430
|
100% {
|
|
431
|
-
transform: translate(calc(0.35 * ${
|
|
431
|
+
transform: translate(calc(0.35 * ${Pt.size}), 0);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
`;var
|
|
434
|
+
`;var hc=f(k()),mc=f(E());var kt=class extends mc.FtLitElement{render(){return hc.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
|
-
`}};kt.styles=
|
|
441
|
+
`}};kt.styles=fc;var gc=f(E());var yc={"ft-loader":kt};(0,gc.customElements)(yc);var lt=f(k()),Qn=f(bt()),M=f(q());var Jn=f(k()),_=f(E());var xc=_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorPrimary),N={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorSurface),borderRadius:_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusL),color:xc,fontSize:_.FtCssVariableFactory.extend("--ft-button-font-size","",Oe.fontSize),iconSize:_.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:_.FtCssVariableFactory.extend("--ft-button-ripple-color","",xc),verticalPadding:_.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:_.FtCssVariableFactory.external(_.designSystemVariables.colorOpacityDisabled,"Design system")},vc=_.FtCssVariableFactory.extend("--ft-button-primary-color","",_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorOnPrimary)),lo={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-primary-background-color","",_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorPrimary)),color:vc,rippleColor:_.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",vc)},Me={borderRadius:_.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusM)),verticalPadding:_.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},bc=Jn.css`
|
|
442
442
|
:host {
|
|
443
443
|
display: inline-block;
|
|
444
444
|
max-width: 100%;
|
|
@@ -577,8 +577,8 @@
|
|
|
577
577
|
}
|
|
578
578
|
|
|
579
579
|
ft-loader {
|
|
580
|
-
${(0,_.setVariable)(
|
|
581
|
-
${(0,_.setVariable)(
|
|
580
|
+
${(0,_.setVariable)(Pt.size,N.iconSize)};
|
|
581
|
+
${(0,_.setVariable)(Pt.color,"var(--button-internal-color)")};
|
|
582
582
|
}
|
|
583
583
|
`;var F=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 e extends(0,Ke.toFtFormComponent)(Ke.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.ariaExpanded=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,n;let i={"ft-button--label":!0,"ft-safari-ellipsis-fix":Ke.isSafari},o=lt.html`
|
|
584
584
|
<ft-ripple part="ripple"
|
|
@@ -622,7 +622,7 @@
|
|
|
622
622
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
623
623
|
`:lt.html`
|
|
624
624
|
<slot part="icon" name="icon"></slot>
|
|
625
|
-
`}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":B,"ft-tooltip":X,"ft-icon":re,"ft-loader":kt,"ft-typography":J};T.styles=[Ke.safariEllipsisFix,
|
|
625
|
+
`}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":B,"ft-tooltip":X,"ft-icon":re,"ft-loader":kt,"ft-typography":J};T.styles=[Ke.safariEllipsisFix,bc,Ke.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)({attribute:"aria-expanded"})],T.prototype,"ariaExpanded",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 Ac=f(E());var Ec={"ft-button":T};(0,Ac.customElements)(Ec);var Cc=f(k()),Dt=f(q()),ei=f(E());var ce;(function(e){e.S="S",e.M="M",e.L="L",e.XL="XL",e.XXL="XXL"})(ce||(ce={}));var Sc=f(k());var _c=Sc.css`
|
|
626
626
|
.ft-size-watcher--pixel {
|
|
627
627
|
width: 0;
|
|
628
628
|
height: 0;
|
|
@@ -641,11 +641,11 @@
|
|
|
641
641
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
642
642
|
width: 100%;
|
|
643
643
|
}
|
|
644
|
-
`;var Br=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},co=class extends CustomEvent{constructor(t,r){super("change",{detail:{size:t,category:r}})}},xe=class extends ei.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=ce.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new ei.Debouncer}render(){return
|
|
644
|
+
`;var Br=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},co=class extends CustomEvent{constructor(t,r){super("change",{detail:{size:t,category:r}})}},xe=class extends ei.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=ce.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new ei.Debouncer}render(){return Cc.html`
|
|
645
645
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
646
646
|
<div class="ft-size-watcher--watcher"></div>
|
|
647
647
|
</div>
|
|
648
|
-
`}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=ce.S:this.size<976?this.category=ce.M:this.size<1024?this.category=ce.L:this.size<1440?this.category=ce.XL:this.category=ce.XXL,this.dispatchEvent(new co(this.size,this.category)))},this.debounceTimeout)}};xe.elementDefinitions={};xe.styles=
|
|
648
|
+
`}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=ce.S:this.size<976?this.category=ce.M:this.size<1024?this.category=ce.L:this.size<1440?this.category=ce.XL:this.category=ce.XXL,this.dispatchEvent(new co(this.size,this.category)))},this.debounceTimeout)}};xe.elementDefinitions={};xe.styles=_c;Br([(0,Dt.property)({type:Number})],xe.prototype,"debounceTimeout",void 0);Br([(0,Dt.property)({type:Boolean})],xe.prototype,"local",void 0);Br([(0,Dt.property)({type:Number,reflect:!0})],xe.prototype,"size",void 0);Br([(0,Dt.property)({type:String,reflect:!0})],xe.prototype,"category",void 0);Br([(0,Dt.query)(".ft-size-watcher--watcher")],xe.prototype,"watcher",void 0);var Tc=f(E());var wc={"ft-size-watcher":xe};(0,Tc.customElements)(wc);var Oc=f(k()),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)},Rc=Oc.css`
|
|
649
649
|
.ft-reader-toc {
|
|
650
650
|
color: ${L.textColor};
|
|
651
651
|
}
|
|
@@ -729,7 +729,7 @@
|
|
|
729
729
|
.ft-reader-toc-expand-collapse-all-justify ft-button {
|
|
730
730
|
flex-grow: 1;
|
|
731
731
|
}
|
|
732
|
-
`;var
|
|
732
|
+
`;var Ic=f(k()),Pc=f(E());var Nc=f(k()),$e=f(E()),pe={display:$e.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:$e.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:$e.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:$e.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:$e.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:$e.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:$e.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:$e.FtCssVariableFactory.external($e.designSystemVariables.borderRadiusM,"Design system")},Lc=Nc.css`
|
|
733
733
|
:host {
|
|
734
734
|
width: ${pe.width};
|
|
735
735
|
height: ${pe.height};
|
|
@@ -756,8 +756,8 @@
|
|
|
756
756
|
background-position: calc(100vw + ${pe.glareWidth}) 0, calc(${pe.glareWidth} * -1) 0;
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
|
-
`;var Ge=class extends Pc.FtLitElement{render(){return
|
|
760
|
-
`}};Ge.elementDefinitions={};Ge.styles=
|
|
759
|
+
`;var Ge=class extends Pc.FtLitElement{render(){return Ic.html`
|
|
760
|
+
`}};Ge.elementDefinitions={};Ge.styles=Lc;var Dc=f(E());var kc={"ft-skeleton":Ge};(0,Dc.customElements)(kc);var Qe=qn.build("designedReaderToc"),Mc={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 Fr=f(k()),H=f(q()),Ue=f(E());var U=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},R=class extends Gn(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=ce.M,this.nodesToExpandExist=!1,this.addI18nContext(Qe,Mc)}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&&Ue.scrollHelper.scrollIntoViewIfPossible(i,{behavior:"instant",position:.25})}}get tocClasses(){return{"ft-reader-toc":!0,"ft-reader-toc-mobile":this.viewportSize===ce.S,"ft-reader-toc-desktop":this.viewportSize!==ce.S,"ft-reader-toc-loaded":this.currentPage!=null,"ft-reader-toc-expanded":this.expanded}}renderExpandCollapseAll(){return this.expandCollapseAll&&!this.expanded&&this.nodesToExpandExist?Fr.html`
|
|
761
761
|
<div part="expand-collapse-all-container"
|
|
762
762
|
class="ft-reader-toc-expand-collapse-all-container ft-reader-toc-expand-collapse-all-${this.expandCollapseAllAlignment}">
|
|
763
763
|
<ft-button part="expand-collapse-all"
|
|
@@ -776,8 +776,8 @@
|
|
|
776
776
|
part="leaf-node-icon"
|
|
777
777
|
.variant=${this.leafNodeIconVariant}
|
|
778
778
|
.value=${this.leafNodeIcon}></ft-icon>
|
|
779
|
-
`}};R.elementDefinitions={"ft-button":T,"ft-icon":re,"ft-size-watcher":xe};U([(0,H.property)({type:Boolean})],R.prototype,"expanded",void 0);U([(0,H.property)()],R.prototype,"iconVariant",void 0);U([(0,H.property)()],R.prototype,"collapseIcon",void 0);U([(0,H.property)()],R.prototype,"expandIcon",void 0);U([(0,H.property)()],R.prototype,"leafNodeIconVariant",void 0);U([(0,H.property)()],R.prototype,"leafNodeIcon",void 0);U([(0,H.property)({type:Boolean})],R.prototype,"expandCollapseAll",void 0);U([(0,H.property)({type:Boolean})],R.prototype,"expandCollapseAllHideLabel",void 0);U([(0,H.property)({type:Boolean})],R.prototype,"expandCollapseAllTrailingIcon",void 0);U([(0,H.property)()],R.prototype,"expandCollapseAllAlignment",void 0);U([(0,H.property)({type:Boolean})],R.prototype,"expandCollapseAllHideIcon",void 0);U([(0,H.property)()],R.prototype,"expandCollapseAllIconVariant",void 0);U([(0,H.property)()],R.prototype,"collapseAllIcon",void 0);U([(0,H.property)()],R.prototype,"expandAllIcon",void 0);U([(0,H.property)({type:Boolean})],R.prototype,"autoCollapse",void 0);U([(0,H.property)({type:Boolean})],R.prototype,"scrollCurrentTopicIntoView",void 0);U([(0,H.property)()],R.prototype,"scope",void 0);U([(0,H.property)({type:Boolean,reflect:!0})],R.prototype,"empty",void 0);U([(0,Ue.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}})],R.prototype,"toc",void 0);U([(0,Ue.redux)()],R.prototype,"currentPage",void 0);U([(0,Ue.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}})],R.prototype,"highlightedTocIds",void 0);U([(0,Ue.redux)({selector:e=>e.translation.isLoading})],R.prototype,"translationLoading",void 0);U([(0,H.state)({hasChanged:Ue.hasChanged})],R.prototype,"automaticallyExpandedNodes",void 0);U([(0,H.state)({hasChanged:Ue.hasChanged})],R.prototype,"manuallyExpandedNodes",void 0);U([(0,H.state)({hasChanged:Ue.hasChanged})],R.prototype,"manuallyCollapsedNodes",void 0);U([(0,H.state)()],R.prototype,"expandAll",void 0);U([(0,H.state)()],R.prototype,"viewportSize",void 0);var
|
|
780
|
-
<div class="${(0
|
|
779
|
+
`}};R.elementDefinitions={"ft-button":T,"ft-icon":re,"ft-size-watcher":xe};U([(0,H.property)({type:Boolean})],R.prototype,"expanded",void 0);U([(0,H.property)()],R.prototype,"iconVariant",void 0);U([(0,H.property)()],R.prototype,"collapseIcon",void 0);U([(0,H.property)()],R.prototype,"expandIcon",void 0);U([(0,H.property)()],R.prototype,"leafNodeIconVariant",void 0);U([(0,H.property)()],R.prototype,"leafNodeIcon",void 0);U([(0,H.property)({type:Boolean})],R.prototype,"expandCollapseAll",void 0);U([(0,H.property)({type:Boolean})],R.prototype,"expandCollapseAllHideLabel",void 0);U([(0,H.property)({type:Boolean})],R.prototype,"expandCollapseAllTrailingIcon",void 0);U([(0,H.property)()],R.prototype,"expandCollapseAllAlignment",void 0);U([(0,H.property)({type:Boolean})],R.prototype,"expandCollapseAllHideIcon",void 0);U([(0,H.property)()],R.prototype,"expandCollapseAllIconVariant",void 0);U([(0,H.property)()],R.prototype,"collapseAllIcon",void 0);U([(0,H.property)()],R.prototype,"expandAllIcon",void 0);U([(0,H.property)({type:Boolean})],R.prototype,"autoCollapse",void 0);U([(0,H.property)({type:Boolean})],R.prototype,"scrollCurrentTopicIntoView",void 0);U([(0,H.property)()],R.prototype,"scope",void 0);U([(0,H.property)({type:Boolean,reflect:!0})],R.prototype,"empty",void 0);U([(0,Ue.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}})],R.prototype,"toc",void 0);U([(0,Ue.redux)()],R.prototype,"currentPage",void 0);U([(0,Ue.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}})],R.prototype,"highlightedTocIds",void 0);U([(0,Ue.redux)({selector:e=>e.translation.isLoading})],R.prototype,"translationLoading",void 0);U([(0,H.state)({hasChanged:Ue.hasChanged})],R.prototype,"automaticallyExpandedNodes",void 0);U([(0,H.state)({hasChanged:Ue.hasChanged})],R.prototype,"manuallyExpandedNodes",void 0);U([(0,H.state)({hasChanged:Ue.hasChanged})],R.prototype,"manuallyCollapsedNodes",void 0);U([(0,H.state)()],R.prototype,"expandAll",void 0);U([(0,H.state)()],R.prototype,"viewportSize",void 0);var Uc=f(bt()),or=class extends R{render(){var t,r;return Be.html`
|
|
780
|
+
<div class="${(0,Uc.classMap)(this.tocClasses)}" role="tree" aria-label="${(t=this.currentPage)===null||t===void 0?void 0:t.title}">
|
|
781
781
|
<ft-size-watcher @change=${this.onViewportSizeChange}></ft-size-watcher>
|
|
782
782
|
${this.renderExpandCollapseAll()}
|
|
783
783
|
${Bt((r=this.toc)!==null&&r!==void 0?r:[],n=>this.renderNode(n))}
|
|
@@ -785,7 +785,7 @@
|
|
|
785
785
|
`}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 Be.html`
|
|
786
786
|
<div class="ft-reader-toc--node ${o?"ft-reader-toc--node-highlighted":""}"
|
|
787
787
|
aria-current="${be(o?"true":void 0)}">
|
|
788
|
-
<div class="ft-reader-toc--link-container" data-depth="${t.depth}" style="${(0
|
|
788
|
+
<div class="ft-reader-toc--link-container" data-depth="${t.depth}" style="${(0,$c.styleMap)(d)}">
|
|
789
789
|
${this.nodesToExpandExist&&!this.expanded?Be.html`
|
|
790
790
|
<div class="ft-reader-toc--toggle-container">
|
|
791
791
|
${a?Be.html`
|
|
@@ -821,7 +821,7 @@
|
|
|
821
821
|
</div>
|
|
822
822
|
`:Be.nothing}
|
|
823
823
|
</div>
|
|
824
|
-
`}};or.elementDefinitions={...R.elementDefinitions,"ft-button":T,"ft-reader-internal-link":Re,"ft-typography":J,"ft-skeleton":Ge};or.styles=
|
|
824
|
+
`}};or.elementDefinitions={...R.elementDefinitions,"ft-button":T,"ft-reader-internal-link":Re,"ft-typography":J,"ft-skeleton":Ge};or.styles=Rc;var Te=f(k());var qc=f(ri());var Bc=f(k()),Hr=f(E());var Fc=Bc.css`
|
|
825
825
|
.ft-reader-toc {
|
|
826
826
|
color: ${L.textColor};
|
|
827
827
|
}
|
|
@@ -887,7 +887,7 @@
|
|
|
887
887
|
.ft-reader-toc-expand-collapse-all-justify ft-button {
|
|
888
888
|
flex-grow: 1;
|
|
889
889
|
}
|
|
890
|
-
`;var
|
|
890
|
+
`;var Xc=f(bt());var Mt=f(k()),Z=f(q()),Wc=f(bt()),sr=f(E());var Vr=f(k()),O=f(E());var Hc=O.FtCssVariableFactory.extend("--ft-chip-color","",O.designSystemVariables.colorOnSurface),fe={backgroundColor:O.FtCssVariableFactory.extend("--ft-chip-background-color","",O.designSystemVariables.colorSurface),color:Hc,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","",Hc),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")},Vc=O.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",O.FtCssVariableFactory.extend("--ft-chip-color","",O.designSystemVariables.colorOnPrimary)),uo={backgroundColor:O.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",O.FtCssVariableFactory.extend("--ft-chip-background-color","",O.designSystemVariables.colorPrimary)),color:Vc,rippleColor:O.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Vc)},zc={horizontalPadding:O.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:O.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},jc=[O.noTextSelect,Vr.css`
|
|
891
891
|
:host {
|
|
892
892
|
display: inline-block;
|
|
893
893
|
max-width: 100%;
|
|
@@ -927,8 +927,8 @@
|
|
|
927
927
|
|
|
928
928
|
.ft-chip--dense {
|
|
929
929
|
--chip-internal-icon-padding: 3px;
|
|
930
|
-
--chip-internal-vertical-padding: ${
|
|
931
|
-
--chip-internal-horizontal-padding: ${
|
|
930
|
+
--chip-internal-vertical-padding: ${zc.verticalPadding};
|
|
931
|
+
--chip-internal-horizontal-padding: ${zc.horizontalPadding};
|
|
932
932
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
933
933
|
}
|
|
934
934
|
|
|
@@ -1028,7 +1028,7 @@
|
|
|
1028
1028
|
order: -1;
|
|
1029
1029
|
}
|
|
1030
1030
|
`];var oe=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},ti=class extends CustomEvent{constructor(){super("icon-click")}},z=class extends sr.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.accessibleLabelOnIcon=!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":sr.isSafari};return Mt.html`
|
|
1031
|
-
<div class="${(0,
|
|
1031
|
+
<div class="${(0,Wc.classMap)(r)}"
|
|
1032
1032
|
aria-label="${this.labelOnIconOnly?Mt.nothing:this.getLabel()}"
|
|
1033
1033
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1034
1034
|
@keyup=${this.onKeyUp}
|
|
@@ -1055,8 +1055,8 @@
|
|
|
1055
1055
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1056
1056
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
1057
1057
|
</div>
|
|
1058
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ti))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ti))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,sr.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":B,"ft-typography":J,"ft-icon":re,"ft-button":T};z.styles=
|
|
1059
|
-
<div class="${(0,
|
|
1058
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ti))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ti))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,sr.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":B,"ft-typography":J,"ft-icon":re,"ft-button":T};z.styles=jc;oe([(0,Z.property)({type:Boolean})],z.prototype,"highlighted",void 0);oe([(0,Z.property)({type:Boolean})],z.prototype,"removable",void 0);oe([(0,Z.property)({type:Boolean})],z.prototype,"disabled",void 0);oe([(0,Z.property)({type:Boolean})],z.prototype,"clickable",void 0);oe([(0,Z.property)({type:Boolean})],z.prototype,"iconClickable",void 0);oe([(0,Z.property)({type:Boolean})],z.prototype,"dense",void 0);oe([(0,Z.property)({type:Boolean})],z.prototype,"multiLine",void 0);oe([(0,Z.property)()],z.prototype,"label",void 0);oe([(0,Z.property)()],z.prototype,"iconLabel",void 0);oe([(0,Z.property)({type:Boolean})],z.prototype,"hideIconTooltip",void 0);oe([(0,Z.property)({type:Boolean})],z.prototype,"accessibleLabelOnIcon",void 0);oe([(0,Z.property)()],z.prototype,"icon",void 0);oe([(0,Z.property)()],z.prototype,"iconVariant",void 0);oe([(0,Z.property)({type:Boolean})],z.prototype,"trailingIcon",void 0);oe([(0,Z.property)()],z.prototype,"typographyVariant",void 0);oe([(0,Z.query)("ft-typography slot")],z.prototype,"slottedContent",void 0);var Gc=f(E());var Kc={"ft-chip":z};(0,Gc.customElements)(Kc);var Yc=f(q()),ju=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 R{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 Te.html`
|
|
1059
|
+
<div class="${(0,Xc.classMap)(this.tocClasses)}" part="container">
|
|
1060
1060
|
<ft-size-watcher @change=${this.onViewportSizeChange}></ft-size-watcher>
|
|
1061
1061
|
${this.renderExpandCollapseAll()}
|
|
1062
1062
|
<div part="tree" role="tree" aria-label="${(t=this.currentPage)===null||t===void 0?void 0:t.title}">
|
|
@@ -1071,7 +1071,7 @@
|
|
|
1071
1071
|
<ft-skeleton></ft-skeleton>`:Te.html`
|
|
1072
1072
|
<a part="node-link ${t.contentClass?`node-link-class-${t.contentClass}`:""}"
|
|
1073
1073
|
class="ft-reader-toc--node-link"
|
|
1074
|
-
style="${(0,
|
|
1074
|
+
style="${(0,qc.styleMap)(p)}"
|
|
1075
1075
|
href="${(i=this.service)===null||i===void 0?void 0:i.getLinkWithFilter(t.tocId)}"
|
|
1076
1076
|
tabindex="${a?"0":"-1"}"
|
|
1077
1077
|
data-tocId="${t.tocId}"
|
|
@@ -1116,7 +1116,7 @@
|
|
|
1116
1116
|
part="${r.join(" ")}">
|
|
1117
1117
|
${t.contentTag}
|
|
1118
1118
|
</ft-chip>
|
|
1119
|
-
`}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={...R.elementDefinitions,"ft-typography":J,"ft-skeleton":Ge,"ft-ripple":B,"ft-chip":z};$t.styles=
|
|
1119
|
+
`}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={...R.elementDefinitions,"ft-typography":J,"ft-skeleton":Ge,"ft-ripple":B,"ft-chip":z};$t.styles=Fc;ju([(0,Yc.state)()],$t.prototype,"currentTocNode",void 0);var Zc={"ft-reader-toc":or,"ft-reader-accessible-toc":$t};(0,Jc.customElements)(Zc);})();
|
|
1120
1120
|
/*! Bundled license information:
|
|
1121
1121
|
|
|
1122
1122
|
.store/lit-html-npm-3.3.3-0f054b825a/package/directives/map.js:
|