@fluid-topics/ft-reader-page-title 2.1.23 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),dn=/'/g,pn=/"/g,yn=/^(?:script|style|textarea|title)$/i,sr=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),vn=sr(1),gn=sr(2),bn=sr(3),Ge=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),fn=new WeakMap,oe=ue.createTreeWalker(ue,129);function An(t,e){if(!ir(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return un!==void 0?un.createHTML(e):e}var ea=(t,e)=>{let r=t.length-1,n=[],i,s=e===2?"<svg>":e===3?"<math>":"",a=ze;for(let o=0;o<r;o++){let u=t[o],c,l,d=-1,p=0;for(;p<u.length&&(a.lastIndex=p,l=a.exec(u),l!==null);)p=a.lastIndex,a===ze?l[1]==="!--"?a=cn:l[1]!==void 0?a=ln:l[2]!==void 0?(yn.test(l[2])&&(i=RegExp("</"+l[2],"g")),a=ae):l[3]!==void 0&&(a=ae):a===ae?l[0]===">"?(a=i??ze,d=-1):l[1]===void 0?d=-2:(d=a.lastIndex-l[2].length,c=l[1],a=l[3]===void 0?ae:l[3]==='"'?pn:dn):a===pn||a===dn?a=ae:a===cn||a===ln?a=ze:(a=ae,i=void 0);let m=a===ae&&t[o+1].startsWith("/>")?" ":"";s+=a===ze?u+Qs:d>=0?(n.push(c),u.slice(0,d)+hn+u.slice(d)+ee+m):u+ee+(d===-2?o:m)}return[An(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},Ye=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let s=0,a=0,o=e.length-1,u=this.parts,[c,l]=ea(e,r);if(this.el=t.createElement(c,n),oe.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=oe.nextNode())!==null&&u.length<o;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(hn)){let p=l[a++],m=i.getAttribute(d).split(ee),f=/([.?@])?(.*)/.exec(p);u.push({type:1,index:s,name:f[2],strings:m,ctor:f[1]==="."?Zt:f[1]==="?"?er:f[1]==="@"?tr:Ae}),i.removeAttribute(d)}else d.startsWith(ee)&&(u.push({type:6,index:s}),i.removeAttribute(d));if(yn.test(i.tagName)){let d=i.textContent.split(ee),p=d.length-1;if(p>0){i.textContent=ct?ct.emptyScript:"";for(let m=0;m<p;m++)i.append(d[m],lt()),oe.nextNode(),u.push({type:2,index:++s});i.append(d[p],lt())}}}else if(i.nodeType===8)if(i.data===mn)u.push({type:2,index:s});else{let d=-1;for(;(d=i.data.indexOf(ee,d+1))!==-1;)u.push({type:7,index:s}),d+=ee.length-1}s++}}static createElement(e,r){let n=ue.createElement("template");return n.innerHTML=e,n}};function be(t,e,r=t,n){if(e===Ge)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=We(e)?void 0:e._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=be(t,i._$AS(t,e.values),i,n)),e}var Qt=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,i=(e?.creationScope??ue).importNode(r,!0);oe.currentNode=i;let s=oe.nextNode(),a=0,o=0,u=n[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new dt(s,s.nextSibling,this,e):u.type===1?c=new u.ctor(s,u.name,u.strings,this,e):u.type===6&&(c=new rr(s,this,e)),this._$AV.push(c),u=n[++o]}a!==u?.index&&(s=oe.nextNode(),a++)}return oe.currentNode=ue,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},dt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=be(this,e,r),We(e)?e===R||e==null||e===""?(this._$AH!==R&&this._$AR(),this._$AH=R):e!==this._$AH&&e!==Ge&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Zs(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==R&&We(this._$AH)?this._$AA.nextSibling.data=e:this.T(ue.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Ye.createElement(An(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new Qt(i,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let r=fn.get(e.strings);return r===void 0&&fn.set(e.strings,r=new Ye(e)),r}k(e){ir(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of e)i===r.length?r.push(n=new t(this.O(lt()),this.O(lt()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let n=on(e).nextSibling;on(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ae=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,s){this.type=1,this._$AH=R,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=R}_$AI(e,r=this,n,i){let s=this.strings,a=!1;if(s===void 0)e=be(this,e,r,0),a=!We(e)||e!==this._$AH&&e!==Ge,a&&(this._$AH=e);else{let o=e,u,c;for(e=s[0],u=0;u<s.length-1;u++)c=be(this,o[n+u],r,u),c===Ge&&(c=this._$AH[u]),a||=!We(c)||c!==this._$AH[u],c===R?e=R:e!==R&&(e+=(c??"")+s[u+1]),this._$AH[u]=c}a&&!i&&this.j(e)}j(e){e===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Zt=class extends Ae{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===R?void 0:e}},er=class extends Ae{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==R)}},tr=class extends Ae{constructor(e,r,n,i,s){super(e,r,n,i,s),this.type=5}_$AI(e,r=this){if((e=be(this,e,r,0)??R)===Ge)return;let n=this._$AH,i=e===R&&n!==R||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==R&&(n===R||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},rr=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){be(this,e)}};var ta=nr.litHtmlPolyfillSupport;ta?.(Ye,dt),(nr.litHtmlVersions??=[]).push("3.3.3");var En=Symbol.for(""),ra=t=>{if(t?.r===En)return t?._$litStatic$},ar=t=>({_$litStatic$:t,r:En});var Sn=new Map,or=t=>(e,...r)=>{let n=r.length,i,s,a=[],o=[],u,c=0,l=!1;for(;c<n;){for(u=e[c];c<n&&(s=r[c],(i=ra(s))!==void 0);)u+=i+e[++c],l=!0;c!==n&&o.push(s),a.push(u),c++}if(c===n&&a.push(e[n]),l){let d=a.join("$$lit$$");(e=Sn.get(d))===void 0&&(a.raw=a,Sn.set(d,e=a)),r=o}return t(e,...r)},ur=or(vn),po=or(gn),fo=or(bn);var cr=b(B()),Dn=b(w());var pt;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(pt||(pt={}));var D=b(G()),h=b(w()),xn=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Y=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),v={fontFamily:Y,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")},Se={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",xn),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",v.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",v.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",v.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",v.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",v.textTransform,"inherit")},Ee={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",xn),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",v.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",v.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",v.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",v.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",v.textTransform,"inherit")},xe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Y),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",v.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",v.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",v.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",v.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",v.textTransform,"inherit")},Ce={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Y),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",v.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",v.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",v.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",v.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",v.textTransform,"inherit")},Te={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Y),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",v.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",v.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",v.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",v.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",v.textTransform,"inherit")},Oe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Y),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",v.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",v.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",v.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",v.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",v.textTransform,"inherit")},we={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Y),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",v.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",v.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",v.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",v.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",v.textTransform,"inherit")},_e={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Y),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",v.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",v.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",v.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",v.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",v.textTransform,"inherit")},Re={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Y),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",v.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",v.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",v.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",v.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",v.textTransform,"uppercase")},Ie={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Y),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",v.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",v.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",v.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",v.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",v.textTransform,"uppercase")},Cn=D.css`
|
|
1
|
+
"use strict";(()=>{var ro=Object.create;var tn=Object.defineProperty;var no=Object.getOwnPropertyDescriptor;var so=Object.getOwnPropertyNames;var io=Object.getPrototypeOf,oo=Object.prototype.hasOwnProperty;var nr=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var ao=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of so(t))!oo.call(e,s)&&s!==r&&tn(e,s,{get:()=>t[s],enumerable:!(n=no(t,s))||n.enumerable});return e};var m=(e,t,r)=>(r=e!=null?ro(io(e)):{},ao(t||!e||!e.__esModule?tn(r,"default",{value:e,enumerable:!0}):r,e));var C=nr((Ta,rn)=>{rn.exports=ftGlobals.wcUtils});var X=nr((wa,nn)=>{nn.exports=ftGlobals.lit});var V=nr((Oa,sn)=>{sn.exports=ftGlobals.litDecorators});var Zi=m(C());var tr=m(X()),rr=m(V()),Zr=m(C());var on=m(X());var an=on.css``;var nt=m(C()),un=m(V());var cn;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change",e.requestedTopicNotFound="requested-topic-not-found"})(cn||(cn={}));var ln;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(ln||(ln={}));var co=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},ir=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},sr=Symbol("registerInterval"),lo=(0,nt.applyMixinOnce)(Symbol("toFtReaderComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(s){this.clearStateManager(),this.stateManager=s,this.addStore(s.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var s;return(s=this.stateManager)===null||s===void 0?void 0:s.service}connectedCallback(){super.connectedCallback(),this[sr]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[sr]):this.dispatchEvent(new ir)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=sr,co([(0,un.state)()],r.prototype,"stateManager",void 0),r}),rt=class extends lo(nt.FtLitElementRedux){};var pr=globalThis,dn=e=>e,st=pr.trustedTypes,pn=st?st.createPolicy("lit-html",{createHTML:e=>e}):void 0,En="$lit$",re=`lit$${Math.random().toFixed(9).slice(2)}$`,Sn="?"+re,uo=`<${Sn}>`,ae=document,it=()=>ae.createComment(""),$e=e=>e===null||typeof e!="object"&&typeof e!="function",fr=Array.isArray,po=e=>fr(e)||typeof e?.[Symbol.iterator]=="function",or=`[
|
|
2
|
+
\f\r]`,Fe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fn=/-->/g,hn=/>/g,ie=RegExp(`>|${or}(?:([^\\s"'>=/]+)(${or}*=${or}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),yn=/'/g,mn=/"/g,An=/^(?:script|style|textarea|title)$/i,hr=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),vn=hr(1),bn=hr(2),_n=hr(3),Be=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),gn=new WeakMap,oe=ae.createTreeWalker(ae,129);function xn(e,t){if(!fr(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return pn!==void 0?pn.createHTML(t):t}var fo=(e,t)=>{let r=e.length-1,n=[],s,i=t===2?"<svg>":t===3?"<math>":"",o=Fe;for(let a=0;a<r;a++){let c=e[a],l,u,d=-1,f=0;for(;f<c.length&&(o.lastIndex=f,u=o.exec(c),u!==null);)f=o.lastIndex,o===Fe?u[1]==="!--"?o=fn:u[1]!==void 0?o=hn:u[2]!==void 0?(An.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=ie):u[3]!==void 0&&(o=ie):o===ie?u[0]===">"?(o=s??Fe,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,l=u[1],o=u[3]===void 0?ie:u[3]==='"'?mn:yn):o===mn||o===yn?o=ie:o===fn||o===hn?o=Fe:(o=ie,s=void 0);let g=o===ie&&e[a+1].startsWith("/>")?" ":"";i+=o===Fe?c+uo:d>=0?(n.push(l),c.slice(0,d)+En+c.slice(d)+re+g):c+re+(d===-2?a:g)}return[xn(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},He=class e{constructor({strings:t,_$litType$:r},n){let s;this.parts=[];let i=0,o=0,a=t.length-1,c=this.parts,[l,u]=fo(t,r);if(this.el=e.createElement(l,n),oe.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=oe.nextNode())!==null&&c.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith(En)){let f=u[o++],g=s.getAttribute(d).split(re),A=/([.?@])?(.*)/.exec(f);c.push({type:1,index:i,name:A[2],strings:g,ctor:A[1]==="."?cr:A[1]==="?"?lr:A[1]==="@"?ur:ge}),s.removeAttribute(d)}else d.startsWith(re)&&(c.push({type:6,index:i}),s.removeAttribute(d));if(An.test(s.tagName)){let d=s.textContent.split(re),f=d.length-1;if(f>0){s.textContent=st?st.emptyScript:"";for(let g=0;g<f;g++)s.append(d[g],it()),oe.nextNode(),c.push({type:2,index:++i});s.append(d[f],it())}}}else if(s.nodeType===8)if(s.data===Sn)c.push({type:2,index:i});else{let d=-1;for(;(d=s.data.indexOf(re,d+1))!==-1;)c.push({type:7,index:i}),d+=re.length-1}i++}}static createElement(t,r){let n=ae.createElement("template");return n.innerHTML=t,n}};function me(e,t,r=e,n){if(t===Be)return t;let s=n!==void 0?r._$Co?.[n]:r._$Cl,i=$e(t)?void 0:t._$litDirective$;return s?.constructor!==i&&(s?._$AO?.(!1),i===void 0?s=void 0:(s=new i(e),s._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=s:r._$Cl=s),s!==void 0&&(t=me(e,s._$AS(e,t.values),s,n)),t}var ar=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,s=(t?.creationScope??ae).importNode(r,!0);oe.currentNode=s;let i=oe.nextNode(),o=0,a=0,c=n[0];for(;c!==void 0;){if(o===c.index){let l;c.type===2?l=new ot(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new dr(i,this,t)),this._$AV.push(l),c=n[++a]}o!==c?.index&&(i=oe.nextNode(),o++)}return oe.currentNode=ae,s}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++}},ot=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,s){this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=s,this._$Cv=s?.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=me(this,t,r),$e(t)?t===O||t==null||t===""?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==Be&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):po(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!==O&&$e(this._$AH)?this._$AA.nextSibling.data=t:this.T(ae.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,s=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=He.createElement(xn(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===s)this._$AH.p(r);else{let i=new ar(s,this),o=i.u(this.options);i.p(r),this.T(o),this._$AH=i}}_$AC(t){let r=gn.get(t.strings);return r===void 0&&gn.set(t.strings,r=new He(t)),r}k(t){fr(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,s=0;for(let i of t)s===r.length?r.push(n=new e(this.O(it()),this.O(it()),this,this.options)):n=r[s],n._$AI(i),s++;s<r.length&&(this._$AR(n&&n._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=dn(t).nextSibling;dn(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},ge=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,s,i){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=O}_$AI(t,r=this,n,s){let i=this.strings,o=!1;if(i===void 0)t=me(this,t,r,0),o=!$e(t)||t!==this._$AH&&t!==Be,o&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=me(this,a[n+c],r,c),l===Be&&(l=this._$AH[c]),o||=!$e(l)||l!==this._$AH[c],l===O?t=O:t!==O&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}o&&!s&&this.j(t)}j(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},cr=class extends ge{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===O?void 0:t}},lr=class extends ge{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==O)}},ur=class extends ge{constructor(t,r,n,s,i){super(t,r,n,s,i),this.type=5}_$AI(t,r=this){if((t=me(this,t,r,0)??O)===Be)return;let n=this._$AH,s=t===O&&n!==O||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==O&&(n===O||s);s&&this.element.removeEventListener(this.name,this,n),i&&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)}},dr=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){me(this,t)}};var ho=pr.litHtmlPolyfillSupport;ho?.(He,ot),(pr.litHtmlVersions??=[]).push("3.3.3");var Tn=Symbol.for(""),yo=e=>{if(e?.r===Tn)return e?._$litStatic$},yr=e=>({_$litStatic$:e,r:Tn});var Cn=new Map,mr=e=>(t,...r)=>{let n=r.length,s,i,o=[],a=[],c,l=0,u=!1;for(;l<n;){for(c=t[l];l<n&&(i=r[l],(s=yo(i))!==void 0);)c+=s+t[++l],u=!0;l!==n&&a.push(i),o.push(c),l++}if(l===n&&o.push(t[n]),u){let d=o.join("$$lit$$");(t=Cn.get(d))===void 0&&(o.raw=o,Cn.set(d,t=o)),r=a}return e(t,...r)},gr=mr(vn),Pa=mr(bn),La=mr(_n);var Er=m(V()),Bn=m(C());var at;(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"})(at||(at={}));var B=m(X()),p=m(C()),wn=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.titleFont),J=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.contentFont),h={fontFamily:J,fontSize:p.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:p.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:p.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:p.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:p.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ee={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-font-family","",wn),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-font-size","",h.fontSize,"20px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",h.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",h.letterSpacing,"0.15px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-line-height","",h.lineHeight,"1.2"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",h.textTransform,"inherit")},Se={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",wn),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",h.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",h.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",h.letterSpacing,"0.105px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",h.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",h.textTransform,"inherit")},Ae={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",J),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",h.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",h.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",h.letterSpacing,"0.144px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",h.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",h.textTransform,"inherit")},ve={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",J),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",h.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",h.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",h.letterSpacing,"0.098px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",h.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",h.textTransform,"inherit")},be={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",J),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",h.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",h.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",h.letterSpacing,"0.496px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",h.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",h.textTransform,"inherit")},_e={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",J),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",h.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",h.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",h.letterSpacing,"0.252px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",h.lineHeight,"1.4"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",h.textTransform,"inherit")},xe={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",J),fontSize:p.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",h.fontSize,"12px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",h.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",h.letterSpacing,"0.396px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",h.lineHeight,"1.33"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",h.textTransform,"inherit")},Ce={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",J),fontSize:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",h.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",h.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",h.letterSpacing,"0.33px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",h.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",h.textTransform,"inherit")},Te={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",J),fontSize:p.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",h.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",h.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",h.letterSpacing,"1.5px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",h.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",h.textTransform,"uppercase")},we={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-button-font-family","",J),fontSize:p.FtCssVariableFactory.extend("--ft-typography-button-font-size","",h.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",h.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",h.letterSpacing,"1.246px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-button-line-height","",h.lineHeight,"1.15"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",h.textTransform,"uppercase")},On=B.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
|
-
font-family: ${Se.fontFamily};
|
|
6
|
-
font-size: ${Se.fontSize};
|
|
7
|
-
font-weight: ${Se.fontWeight};
|
|
8
|
-
letter-spacing: ${Se.letterSpacing};
|
|
9
|
-
line-height: ${Se.lineHeight};
|
|
10
|
-
text-transform: ${Se.textTransform};
|
|
11
|
-
}
|
|
12
|
-
`,Tn=D.css`
|
|
13
|
-
.ft-typography--title-dense {
|
|
14
5
|
font-family: ${Ee.fontFamily};
|
|
15
6
|
font-size: ${Ee.fontSize};
|
|
16
7
|
font-weight: ${Ee.fontWeight};
|
|
@@ -18,8 +9,54 @@
|
|
|
18
9
|
line-height: ${Ee.lineHeight};
|
|
19
10
|
text-transform: ${Ee.textTransform};
|
|
20
11
|
}
|
|
21
|
-
`,
|
|
12
|
+
`,Rn=B.css`
|
|
13
|
+
.ft-typography--title-dense {
|
|
14
|
+
font-family: ${Se.fontFamily};
|
|
15
|
+
font-size: ${Se.fontSize};
|
|
16
|
+
font-weight: ${Se.fontWeight};
|
|
17
|
+
letter-spacing: ${Se.letterSpacing};
|
|
18
|
+
line-height: ${Se.lineHeight};
|
|
19
|
+
text-transform: ${Se.textTransform};
|
|
20
|
+
}
|
|
21
|
+
`,In=B.css`
|
|
22
22
|
.ft-typography--subtitle1 {
|
|
23
|
+
font-family: ${Ae.fontFamily};
|
|
24
|
+
font-size: ${Ae.fontSize};
|
|
25
|
+
font-weight: ${Ae.fontWeight};
|
|
26
|
+
letter-spacing: ${Ae.letterSpacing};
|
|
27
|
+
line-height: ${Ae.lineHeight};
|
|
28
|
+
text-transform: ${Ae.textTransform};
|
|
29
|
+
}
|
|
30
|
+
`,Mn=B.css`
|
|
31
|
+
.ft-typography--subtitle2 {
|
|
32
|
+
font-family: ${ve.fontFamily};
|
|
33
|
+
font-size: ${ve.fontSize};
|
|
34
|
+
font-weight: ${ve.fontWeight};
|
|
35
|
+
letter-spacing: ${ve.letterSpacing};
|
|
36
|
+
line-height: ${ve.lineHeight};
|
|
37
|
+
text-transform: ${ve.textTransform};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
`,Nn=B.css`
|
|
41
|
+
.ft-typography--body1 {
|
|
42
|
+
font-family: ${be.fontFamily};
|
|
43
|
+
font-size: ${be.fontSize};
|
|
44
|
+
font-weight: ${be.fontWeight};
|
|
45
|
+
letter-spacing: ${be.letterSpacing};
|
|
46
|
+
line-height: ${be.lineHeight};
|
|
47
|
+
text-transform: ${be.textTransform};
|
|
48
|
+
}
|
|
49
|
+
`,kn=B.css`
|
|
50
|
+
.ft-typography--body2 {
|
|
51
|
+
font-family: ${_e.fontFamily};
|
|
52
|
+
font-size: ${_e.fontSize};
|
|
53
|
+
font-weight: ${_e.fontWeight};
|
|
54
|
+
letter-spacing: ${_e.letterSpacing};
|
|
55
|
+
line-height: ${_e.lineHeight};
|
|
56
|
+
text-transform: ${_e.textTransform};
|
|
57
|
+
}
|
|
58
|
+
`,Dn=B.css`
|
|
59
|
+
.ft-typography--caption {
|
|
23
60
|
font-family: ${xe.fontFamily};
|
|
24
61
|
font-size: ${xe.fontSize};
|
|
25
62
|
font-weight: ${xe.fontWeight};
|
|
@@ -27,8 +64,8 @@
|
|
|
27
64
|
line-height: ${xe.lineHeight};
|
|
28
65
|
text-transform: ${xe.textTransform};
|
|
29
66
|
}
|
|
30
|
-
`,
|
|
31
|
-
.ft-typography--
|
|
67
|
+
`,Pn=B.css`
|
|
68
|
+
.ft-typography--breadcrumb {
|
|
32
69
|
font-family: ${Ce.fontFamily};
|
|
33
70
|
font-size: ${Ce.fontSize};
|
|
34
71
|
font-weight: ${Ce.fontWeight};
|
|
@@ -36,9 +73,8 @@
|
|
|
36
73
|
line-height: ${Ce.lineHeight};
|
|
37
74
|
text-transform: ${Ce.textTransform};
|
|
38
75
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
.ft-typography--body1 {
|
|
76
|
+
`,Ln=B.css`
|
|
77
|
+
.ft-typography--overline {
|
|
42
78
|
font-family: ${Te.fontFamily};
|
|
43
79
|
font-size: ${Te.fontSize};
|
|
44
80
|
font-weight: ${Te.fontWeight};
|
|
@@ -46,17 +82,8 @@
|
|
|
46
82
|
line-height: ${Te.lineHeight};
|
|
47
83
|
text-transform: ${Te.textTransform};
|
|
48
84
|
}
|
|
49
|
-
`,
|
|
50
|
-
.ft-typography--
|
|
51
|
-
font-family: ${Oe.fontFamily};
|
|
52
|
-
font-size: ${Oe.fontSize};
|
|
53
|
-
font-weight: ${Oe.fontWeight};
|
|
54
|
-
letter-spacing: ${Oe.letterSpacing};
|
|
55
|
-
line-height: ${Oe.lineHeight};
|
|
56
|
-
text-transform: ${Oe.textTransform};
|
|
57
|
-
}
|
|
58
|
-
`,In=D.css`
|
|
59
|
-
.ft-typography--caption {
|
|
85
|
+
`,Un=B.css`
|
|
86
|
+
.ft-typography--button {
|
|
60
87
|
font-family: ${we.fontFamily};
|
|
61
88
|
font-size: ${we.fontSize};
|
|
62
89
|
font-weight: ${we.fontWeight};
|
|
@@ -64,54 +91,27 @@
|
|
|
64
91
|
line-height: ${we.lineHeight};
|
|
65
92
|
text-transform: ${we.textTransform};
|
|
66
93
|
}
|
|
67
|
-
`,
|
|
68
|
-
.ft-typography--breadcrumb {
|
|
69
|
-
font-family: ${_e.fontFamily};
|
|
70
|
-
font-size: ${_e.fontSize};
|
|
71
|
-
font-weight: ${_e.fontWeight};
|
|
72
|
-
letter-spacing: ${_e.letterSpacing};
|
|
73
|
-
line-height: ${_e.lineHeight};
|
|
74
|
-
text-transform: ${_e.textTransform};
|
|
75
|
-
}
|
|
76
|
-
`,Nn=D.css`
|
|
77
|
-
.ft-typography--overline {
|
|
78
|
-
font-family: ${Re.fontFamily};
|
|
79
|
-
font-size: ${Re.fontSize};
|
|
80
|
-
font-weight: ${Re.fontWeight};
|
|
81
|
-
letter-spacing: ${Re.letterSpacing};
|
|
82
|
-
line-height: ${Re.lineHeight};
|
|
83
|
-
text-transform: ${Re.textTransform};
|
|
84
|
-
}
|
|
85
|
-
`,Mn=D.css`
|
|
86
|
-
.ft-typography--button {
|
|
87
|
-
font-family: ${Ie.fontFamily};
|
|
88
|
-
font-size: ${Ie.fontSize};
|
|
89
|
-
font-weight: ${Ie.fontWeight};
|
|
90
|
-
letter-spacing: ${Ie.letterSpacing};
|
|
91
|
-
line-height: ${Ie.lineHeight};
|
|
92
|
-
text-transform: ${Ie.textTransform};
|
|
93
|
-
}
|
|
94
|
-
`,kn=D.css`
|
|
94
|
+
`,Fn=B.css`
|
|
95
95
|
.ft-typography {
|
|
96
96
|
vertical-align: inherit;
|
|
97
97
|
}
|
|
98
|
-
`;var
|
|
99
|
-
<${
|
|
98
|
+
`;var $n=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Q=class extends Bn.FtLitElement{constructor(){super(...arguments),this.variant=at.body1}render(){return this.element?gr`
|
|
99
|
+
<${yr(this.element)}
|
|
100
100
|
part="text"
|
|
101
101
|
class="ft-typography ft-typography--${this.variant}">
|
|
102
102
|
<slot></slot>
|
|
103
|
-
</${
|
|
104
|
-
`:
|
|
103
|
+
</${yr(this.element)}>
|
|
104
|
+
`:gr`
|
|
105
105
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
106
|
-
`}};J.styles=[Cn,Tn,On,wn,_n,Rn,In,Pn,Nn,Mn,kn];Ln([(0,cr.property)()],J.prototype,"element",void 0);Ln([(0,cr.property)()],J.prototype,"variant",void 0);var Fn=b(w());var Un={"ft-typography":J};(0,Fn.customElements)(Un);var Lr=b(B());var jn=b(B(),1);var lr=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function $n(t,e){return(0,jn.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Je(t);try{return JSON.parse(r)}catch{return Je(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Xe,...e??{}})}function na(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!ft(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!ft(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=a=>Object.keys(a).filter(o=>a[o]!=null),s=i(t);if(r=s.length,r!==i(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){let a=s[n];if(!ft(t[a],e[a]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ft(t,e){try{return na(t,e)}catch{return!1}}function Xe(t,e){return!ft(t,e)}function Je(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ht(t,e){let r=n=>n[t]===!0;return n=>{if(r(n))return n;let i=e(n);return i[t]=!0,i}}var Bn=b(B(),1);var dr=t=>{let e=t??{};return(r,n)=>{var i;let s={hasChanged:Xe,attribute:!1,...e};(0,Bn.property)(s)(r,n);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(o=>o[n]),store:e.store})}};var mt=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var ce=b(B(),1);var yt=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let a of n)try{await a()}catch(o){i(o);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Vn=b(G(),1);var vt=globalThis,ia=vt.ShadowRoot&&(vt.ShadyCSS===void 0||vt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Hn=(t,e)=>{if(ia)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=vt.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}};var gt=class extends Vn.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Hn(n,e.elementStyles),n}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(e,r){lr(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function Kn(t,e,...r){var n;let i=t.querySelector(e);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var Ne=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},Gn,qn=Symbol("constructorPrototype"),zn=Symbol("constructorName"),Yn=Symbol("exportpartsDebouncer"),Wn=Symbol("dynamicDependenciesLoaded"),Pe=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Pe.eventName="exportparts-updated";var K=class extends gt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Gn]=new yt(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Yn].run(()=>{var i,s;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[zn]=this.constructor.name,this[qn]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[zn]&&Object.setPrototypeOf(this,this[qn])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Wn]||(r[Wn]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Pe.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Pe.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Pe)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=Kn(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,n,i,s,a,o;let u=p=>p!=null&&p.trim().length>0,c=e.filter(u).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let l=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let m=(s=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],f=(o=(a=p.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(A=>A.split(":")[1]))!==null&&o!==void 0?o:[],y=[...m,...f].filter(u).map(A=>A.trim());for(let A of y)l.add(A)}if(l.size===0){this.exportparts=void 0;return}let d=[...l.values()].flatMap(p=>c.map(m=>`${p}:${m}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Gn=Yn;Ne([(0,ce.property)()],K.prototype,"exportpartsPrefix",void 0);Ne([$n([])],K.prototype,"exportpartsPrefixes",void 0);Ne([(0,ce.property)({reflect:!0})],K.prototype,"exportparts",void 0);Ne([(0,ce.property)()],K.prototype,"customStylesheet",void 0);Ne([(0,ce.property)()],K.prototype,"elementToFocus",void 0);Ne([(0,ce.state)()],K.prototype,"useAdoptedStyleSheets",void 0);function bt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Qe=Symbol("internalReduxEventsUnsubscribers"),te=Symbol("internalStoresUnsubscribers"),le=Symbol("internalStores"),sa=ht(Symbol("withRedux"),function(t){var e,r,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(a){super.willUpdate(a),[...this.reduxConstructor.reduxReactiveProperties].some(o=>a.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[le].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[le].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[le].get(a)}addStore(a,o){var u;o=(u=o??a.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(o),this[le].set(o,a),this.subscribeToStore(o,a),this.updateFromStores()}removeStore(a){let o=typeof a=="string"?a:a.name;this.unsubscribeFromStore(o),this[le].delete(o)}setupStores(){this.unsubscribeFromStores(),this[le].forEach((a,o)=>this.subscribeToStore(o,a)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((a,o)=>{let u=this.constructor.getPropertyOptions(o);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:o)){let c=this.getStore(a.store);c&&(a.store?this[te].has(a.store):this[te].size>0)&&(this[o]=a.selector(c.getState(),this))}})}subscribeToStore(a,o){var u;this[te].set(a,o.subscribe(()=>this.updateFromStores())),this[Qe].set(a,[]),bt(o)&&o.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((c,l)=>{if(typeof this[l]=="function"&&(!c.store||o.name===c.store)){let d=p=>this[l](p);o.addEventListener(c.eventName,d),this[Qe].get(a).push(()=>o.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(a)}unsubscribeFromStores(){this[te].forEach((a,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(a){var o;this[te].has(a)&&this[te].get(a)(),this[te].delete(a),(o=this[Qe].get(a))===null||o===void 0||o.forEach(u=>u()),this[Qe].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=te,r=le,n=Qe,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Jn=class extends sa(K){};function U(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,s;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(a){return"'"+a+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function X(t){return!!t&&!!t[C]}function H(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===fa})(t)||Array.isArray(t)||!!t[ni]||!!(!((e=t.constructor)===null||e===void 0)&&e[ni])||Ar(t)||Sr(t))}function de(t,e,r){r===void 0&&(r=!1),Le(t)===0?(r?Object.keys:ke)(t).forEach((function(n){r&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,i){return e(i,n,t)}))}function Le(t){var e=t[C];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ar(t)?2:Sr(t)?3:0}function Me(t,e){return Le(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function aa(t,e){return Le(t)===2?t.get(e):t[e]}function ii(t,e,r){var n=Le(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function si(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ar(t){return da&&t instanceof Map}function Sr(t){return pa&&t instanceof Set}function re(t){return t.o||t.t}function Er(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ui(t);delete e[C];for(var r=ke(e),n=0;n<r.length;n++){var i=r[n],s=e[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(e[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function xr(t,e){return e===void 0&&(e=!1),Cr(t)||X(t)||!H(t)||(Le(t)>1&&(t.set=t.add=t.clear=t.delete=oa),Object.freeze(t),e&&de(t,(function(r,n){return xr(n,!0)}),!0)),t}function oa(){U(2)}function Cr(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function q(t){var e=br[t];return e||U(18,t),e}function ua(t,e){br[t]||(br[t]=e)}function yr(){return et}function pr(t,e){e&&(q("Patches"),t.u=[],t.s=[],t.v=e)}function At(t){vr(t),t.p.forEach(ca),t.p=null}function vr(t){t===et&&(et=t.l)}function Xn(t){return et={p:[],l:et,h:t,m:!0,_:0}}function ca(t){var e=t[C];e.i===0||e.i===1?e.j():e.g=!0}function fr(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||q("ES5").S(e,t,n),n?(r[C].P&&(At(e),U(4)),H(t)&&(t=St(e,t),e.l||Et(e,t)),e.u&&q("Patches").M(r[C].t,t,e.u,e.s)):t=St(e,r,[]),At(e),e.u&&e.v(e.u,e.s),t!==oi?t:void 0}function St(t,e,r){if(Cr(e))return e;var n=e[C];if(!n)return de(e,(function(o,u){return Qn(t,n,e,o,u,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return Et(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Er(n.k):n.o,s=i,a=!1;n.i===3&&(s=new Set(i),i.clear(),a=!0),de(s,(function(o,u){return Qn(t,n,i,o,u,r,a)})),Et(t,i,!1),r&&t.u&&q("Patches").N(n,r,t.u,t.s)}return n.o}function Qn(t,e,r,n,i,s,a){if(X(i)){var o=St(t,i,s&&e&&e.i!==3&&!Me(e.R,n)?s.concat(n):void 0);if(ii(r,n,o),!X(o))return;t.m=!1}else a&&r.add(i);if(H(i)&&!Cr(i)){if(!t.h.D&&t._<1)return;St(t,i),e&&e.A.l||Et(t,i)}}function Et(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&xr(e,r)}function hr(t,e){var r=t[C];return(r?re(r):t)[e]}function Zn(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function ne(t){t.P||(t.P=!0,t.l&&ne(t.l))}function mr(t){t.o||(t.o=Er(t.t))}function gr(t,e,r){var n=Ar(e)?q("MapSet").F(e,r):Sr(e)?q("MapSet").T(e,r):t.O?(function(i,s){var a=Array.isArray(i),o={i:a?1:0,A:s?s.A:yr(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},u=o,c=tt;a&&(u=[o],c=Ze);var l=Proxy.revocable(u,c),d=l.revoke,p=l.proxy;return o.k=p,o.j=d,p})(e,r):q("ES5").J(e,r);return(r?r.A:yr()).p.push(n),n}function la(t){return X(t)||U(22,t),(function e(r){if(!H(r))return r;var n,i=r[C],s=Le(r);if(i){if(!i.P&&(i.i<4||!q("ES5").K(i)))return i.t;i.I=!0,n=ei(r,s),i.I=!1}else n=ei(r,s);return de(n,(function(a,o){i&&aa(i.t,a)===o||ii(n,a,e(o))})),s===3?new Set(n):n})(t)}function ei(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Er(t)}function ai(){function t(a,o){var u=s[a];return u?u.enumerable=o:s[a]=u={configurable:!0,enumerable:o,get:function(){var c=this[C];return tt.get(c,a)},set:function(c){var l=this[C];tt.set(l,a,c)}},u}function e(a){for(var o=a.length-1;o>=0;o--){var u=a[o][C];if(!u.P)switch(u.i){case 5:n(u)&&ne(u);break;case 4:r(u)&&ne(u)}}}function r(a){for(var o=a.t,u=a.k,c=ke(u),l=c.length-1;l>=0;l--){var d=c[l];if(d!==C){var p=o[d];if(p===void 0&&!Me(o,d))return!0;var m=u[d],f=m&&m[C];if(f?f.t!==p:!si(m,p))return!0}}var y=!!o[C];return c.length!==ke(o).length+(y?0:1)}function n(a){var o=a.k;if(o.length!==a.t.length)return!0;var u=Object.getOwnPropertyDescriptor(o,o.length-1);if(u&&!u.get)return!0;for(var c=0;c<o.length;c++)if(!o.hasOwnProperty(c))return!0;return!1}function i(a){a.g&&U(3,JSON.stringify(re(a)))}var s={};ua("ES5",{J:function(a,o){var u=Array.isArray(a),c=(function(d,p){if(d){for(var m=Array(p.length),f=0;f<p.length;f++)Object.defineProperty(m,""+f,t(f,!0));return m}var y=ui(p);delete y[C];for(var A=ke(y),S=0;S<A.length;S++){var E=A[S];y[E]=t(E,d||!!y[E].enumerable)}return Object.create(Object.getPrototypeOf(p),y)})(u,a),l={i:u?5:4,A:o?o.A:yr(),P:!1,I:!1,R:{},l:o,t:a,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,C,{value:l,writable:!0}),c},S:function(a,o,u){u?X(o)&&o[C].A===a&&e(a.p):(a.u&&(function c(l){if(l&&typeof l=="object"){var d=l[C];if(d){var p=d.t,m=d.k,f=d.R,y=d.i;if(y===4)de(m,(function(x){x!==C&&(p[x]!==void 0||Me(p,x)?f[x]||c(m[x]):(f[x]=!0,ne(d)))})),de(p,(function(x){m[x]!==void 0||Me(m,x)||(f[x]=!1,ne(d))}));else if(y===5){if(n(d)&&(ne(d),f.length=!0),m.length<p.length)for(var A=m.length;A<p.length;A++)f[A]=!1;else for(var S=p.length;S<m.length;S++)f[S]=!0;for(var E=Math.min(m.length,p.length),T=0;T<E;T++)m.hasOwnProperty(T)||(f[T]=!0),f[T]===void 0&&c(m[T])}}}})(a.p[0]),e(a.p))},K:function(a){return a.i===4?r(a):n(a)}})}var ti,et,Tr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",da=typeof Map<"u",pa=typeof Set<"u",ri=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",oi=Tr?Symbol.for("immer-nothing"):((ti={})["immer-nothing"]=!0,ti),ni=Tr?Symbol.for("immer-draftable"):"__$immer_draftable",C=Tr?Symbol.for("immer-state"):"__$immer_state";var fa=""+Object.prototype.constructor,ke=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ui=Object.getOwnPropertyDescriptors||function(t){var e={};return ke(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},br={},tt={get:function(t,e){if(e===C)return t;var r=re(t);if(!Me(r,e))return(function(i,s,a){var o,u=Zn(s,a);return u?"value"in u?u.value:(o=u.get)===null||o===void 0?void 0:o.call(i.k):void 0})(t,r,e);var n=r[e];return t.I||!H(n)?n:n===hr(t.t,e)?(mr(t),t.o[e]=gr(t.A.h,n,t)):n},has:function(t,e){return e in re(t)},ownKeys:function(t){return Reflect.ownKeys(re(t))},set:function(t,e,r){var n=Zn(re(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=hr(re(t),e),s=i?.[C];if(s&&s.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(si(r,i)&&(r!==void 0||Me(t.t,e)))return!0;mr(t),ne(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return hr(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,mr(t),ne(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=re(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){U(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){U(12)}},Ze={};de(tt,(function(t,e){Ze[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ze.deleteProperty=function(t,e){return Ze.set.call(this,t,e,void 0)},Ze.set=function(t,e,r){return tt.set.call(this,t[0],e,r,t[0])};var ha=(function(){function t(r){var n=this;this.O=ri,this.D=!0,this.produce=function(i,s,a){if(typeof i=="function"&&typeof s!="function"){var o=s;s=i;var u=n;return function(y){var A=this;y===void 0&&(y=o);for(var S=arguments.length,E=Array(S>1?S-1:0),T=1;T<S;T++)E[T-1]=arguments[T];return u.produce(y,(function(x){var Z;return(Z=s).call.apply(Z,[A,x].concat(E))}))}}var c;if(typeof s!="function"&&U(6),a!==void 0&&typeof a!="function"&&U(7),H(i)){var l=Xn(n),d=gr(n,i,void 0),p=!0;try{c=s(d),p=!1}finally{p?At(l):vr(l)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(y){return pr(l,a),fr(y,l)}),(function(y){throw At(l),y})):(pr(l,a),fr(c,l))}if(!i||typeof i!="object"){if((c=s(i))===void 0&&(c=i),c===oi&&(c=void 0),n.D&&xr(c,!0),a){var m=[],f=[];q("Patches").M(i,c,m,f),a(m,f)}return c}U(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(c){for(var l=arguments.length,d=Array(l>1?l-1:0),p=1;p<l;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,(function(m){return i.apply(void 0,[m].concat(d))}))};var a,o,u=n.produce(i,s,(function(c,l){a=c,o=l}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(c){return[c,a,o]})):[u,a,o]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){H(r)||U(8),X(r)&&(r=la(r));var n=Xn(this),i=gr(this,r,void 0);return i[C].C=!0,vr(n),i},e.finishDraft=function(r,n){var i=r&&r[C],s=i.A;return pr(s,n),fr(void 0,s)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ri&&U(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var s=n[i];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}i>-1&&(n=n.slice(i+1));var a=q("Patches").$;return X(r)?a(r,n):this.produce(r,(function(o){return a(o,n)}))},t})(),k=new ha,ma=k.produce,tu=k.produceWithPatches.bind(k),ru=k.setAutoFreeze.bind(k),nu=k.setUseProxies.bind(k),iu=k.applyPatches.bind(k),su=k.createDraft.bind(k),au=k.finishDraft.bind(k),xt=ma;function pe(t){"@babel/helpers - typeof";return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(t)}function ci(t,e){if(pe(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(pe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function li(t){var e=ci(t,"string");return pe(e)=="symbol"?e:e+""}function di(t,e,r){return(e=li(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Or(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pi(Object(r),!0).forEach(function(n){di(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pi(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function P(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var fi=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),wr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ct={INIT:"@@redux/INIT"+wr(),REPLACE:"@@redux/REPLACE"+wr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wr()}};function ya(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function _r(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(P(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(P(1));return r(_r)(t,e)}if(typeof t!="function")throw new Error(P(2));var i=t,s=e,a=[],o=a,u=!1;function c(){o===a&&(o=a.slice())}function l(){if(u)throw new Error(P(3));return s}function d(y){if(typeof y!="function")throw new Error(P(4));if(u)throw new Error(P(5));var A=!0;return c(),o.push(y),function(){if(A){if(u)throw new Error(P(6));A=!1,c();var E=o.indexOf(y);o.splice(E,1),a=null}}}function p(y){if(!ya(y))throw new Error(P(7));if(typeof y.type>"u")throw new Error(P(8));if(u)throw new Error(P(9));try{u=!0,s=i(s,y)}finally{u=!1}for(var A=a=o,S=0;S<A.length;S++){var E=A[S];E()}return y}function m(y){if(typeof y!="function")throw new Error(P(10));i=y,p({type:Ct.REPLACE})}function f(){var y,A=d;return y={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(P(11));function T(){E.next&&E.next(l())}T();var x=A(T);return{unsubscribe:x}}},y[fi]=function(){return this},y}return p({type:Ct.INIT}),n={dispatch:p,subscribe:d,getState:l,replaceReducer:m},n[fi]=f,n}function va(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Ct.INIT});if(typeof n>"u")throw new Error(P(12));if(typeof r(void 0,{type:Ct.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(P(13))})}function hi(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var s=Object.keys(r),a,o;try{va(r)}catch(u){o=u}return function(c,l){if(c===void 0&&(c={}),o)throw o;if(0)var d;for(var p=!1,m={},f=0;f<s.length;f++){var y=s[f],A=r[y],S=c[y],E=A(S,l);if(typeof E>"u"){var T=l&&l.type;throw new Error(P(14))}m[y]=E,p=p||E!==S}return p=p||s.length!==Object.keys(c).length,p?m:c}}function De(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function mi(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),s=function(){throw new Error(P(15))},a={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},o=e.map(function(u){return u(a)});return s=De.apply(void 0,o)(i.dispatch),Or(Or({},i),{},{dispatch:s})}}}function yi(t){var e=function(n){var i=n.dispatch,s=n.getState;return function(a){return function(o){return typeof o=="function"?o(i,s,t):a(o)}}};return e}var vi=yi();vi.withExtraArgument=yi;var Rr=vi;var Ei=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),ga=function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(l){c=[6,l],i=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Ue=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},ba=Object.defineProperty,Aa=Object.defineProperties,Sa=Object.getOwnPropertyDescriptors,gi=Object.getOwnPropertySymbols,Ea=Object.prototype.hasOwnProperty,xa=Object.prototype.propertyIsEnumerable,bi=function(t,e,r){return e in t?ba(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},ie=function(t,e){for(var r in e||(e={}))Ea.call(e,r)&&bi(t,r,e[r]);if(gi)for(var n=0,i=gi(e);n<i.length;n++){var r=i[n];xa.call(e,r)&&bi(t,r,e[r])}return t},Ir=function(t,e){return Aa(t,Sa(e))},Ca=function(t,e,r){return new Promise(function(n,i){var s=function(u){try{o(r.next(u))}catch(c){i(c)}},a=function(u){try{o(r.throw(u))}catch(c){i(c)}},o=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,a)};o((r=r.apply(t,e)).next())})};var Ta=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?De:De.apply(null,arguments)},Cu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Oa(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function se(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var s=e.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return ie(ie({type:t,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}var wa=(function(t){Ei(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Ue([void 0],r[0].concat(this)))):new(e.bind.apply(e,Ue([void 0],r.concat(this))))},e})(Array),_a=(function(t){Ei(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Ue([void 0],r[0].concat(this)))):new(e.bind.apply(e,Ue([void 0],r.concat(this))))},e})(Array);function Mr(t){return H(t)?xt(t,function(){}):t}function Ra(t){return typeof t=="boolean"}function Ia(){return function(e){return Pa(e)}}function Pa(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,s=t.serializableCheck,a=s===void 0?!0:s,o=t.actionCreatorCheck,u=o===void 0?!0:o,c=new wa;if(r&&(Ra(r)?c.push(Rr):c.push(Rr.withExtraArgument(r.extraArgument))),0){if(i)var l;if(a)var d;if(u)var p}return c}var Pr=!0;function xi(t){var e=Ia(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,s=r.middleware,a=s===void 0?e():s,o=r.devTools,u=o===void 0?!0:o,c=r.preloadedState,l=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,m;if(typeof i=="function")m=i;else if(Oa(i))m=hi(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var f=a;if(typeof f=="function"&&(f=f(e),!Pr&&!Array.isArray(f)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Pr&&f.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var y=mi.apply(void 0,f),A=De;u&&(A=Ta(ie({trace:!Pr},typeof u=="object"&&u)));var S=new _a(y),E=S;Array.isArray(p)?E=Ue([y],p):typeof p=="function"&&(E=p(S));var T=A.apply(void 0,E);return _r(m,l,T)}function Ci(t){var e={},r=[],n,i={addCase:function(s,a){var o=typeof s=="string"?s:s.type;if(!o)throw new Error("`builder.addCase` cannot be called with an empty action type");if(o in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[o]=a,i},addMatcher:function(s,a){return r.push({matcher:s,reducer:a}),i},addDefaultCase:function(s){return n=s,i}};return t(i),[e,r,n]}function Na(t){return typeof t=="function"}function Ma(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?Ci(e):[e,r,n],s=i[0],a=i[1],o=i[2],u;if(Na(t))u=function(){return Mr(t())};else{var c=Mr(t);u=function(){return c}}function l(d,p){d===void 0&&(d=u());var m=Ue([s[p.type]],a.filter(function(f){var y=f.matcher;return y(p)}).map(function(f){var y=f.reducer;return y}));return m.filter(function(f){return!!f}).length===0&&(m=[o]),m.reduce(function(f,y){if(y)if(X(f)){var A=f,S=y(A,p);return S===void 0?f:S}else{if(H(f))return xt(f,function(E){return y(E,p)});var S=y(f,p);if(S===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return S}return f},d)}return l.getInitialState=u,l}function ka(t,e){return t+"/"+e}function Ti(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Mr(t.initialState),n=t.reducers||{},i=Object.keys(n),s={},a={},o={};i.forEach(function(l){var d=n[l],p=ka(e,l),m,f;"reducer"in d?(m=d.reducer,f=d.prepare):m=d,s[l]=m,a[p]=m,o[l]=f?se(p,f):se(p)});function u(){var l=typeof t.extraReducers=="function"?Ci(t.extraReducers):[t.extraReducers],d=l[0],p=d===void 0?{}:d,m=l[1],f=m===void 0?[]:m,y=l[2],A=y===void 0?void 0:y,S=ie(ie({},p),a);return Ma(r,function(E){for(var T in S)E.addCase(T,S[T]);for(var x=0,Z=f;x<Z.length;x++){var W=Z[x];E.addMatcher(W.matcher,W.reducer)}A&&E.addDefaultCase(A)})}var c;return{name:e,reducer:function(l,d){return c||(c=u()),c(l,d)},actions:o,caseReducers:s,getInitialState:function(){return c||(c=u()),c.getInitialState()}}}var La="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Da=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=La[Math.random()*64|0];return e},Ua=["name","message","stack","code"],Nr=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Ai=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Fa=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Ua;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},_u=(function(){function t(e,r,n){var i=se(e+"/fulfilled",function(l,d,p,m){return{payload:l,meta:Ir(ie({},m||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),s=se(e+"/pending",function(l,d,p){return{payload:void 0,meta:Ir(ie({},p||{}),{arg:d,requestId:l,requestStatus:"pending"})}}),a=se(e+"/rejected",function(l,d,p,m,f){return{payload:m,error:(n&&n.serializeError||Fa)(l||"Rejected"),meta:Ir(ie({},f||{}),{arg:p,requestId:d,rejectedWithValue:!!m,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"})}}),o=!1,u=typeof AbortController<"u"?AbortController:(function(){function l(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return l.prototype.abort=function(){},l})();function c(l){return function(d,p,m){var f=n?.idGenerator?n.idGenerator(l):Da(),y=new u,A,S=!1;function E(x){A=x,y.abort()}var T=(function(){return Ca(this,null,function(){var x,Z,W,Ve,Yr,Ke,Jr;return ga(this,function(ge){switch(ge.label){case 0:return ge.trys.push([0,4,,5]),Ve=(x=n?.condition)==null?void 0:x.call(n,l,{getState:p,extra:m}),$a(Ve)?[4,Ve]:[3,2];case 1:Ve=ge.sent(),ge.label=2;case 2:if(Ve===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return S=!0,Yr=new Promise(function($,qe){return y.signal.addEventListener("abort",function(){return qe({name:"AbortError",message:A||"Aborted"})})}),d(s(f,l,(Z=n?.getPendingMeta)==null?void 0:Z.call(n,{requestId:f,arg:l},{getState:p,extra:m}))),[4,Promise.race([Yr,Promise.resolve(r(l,{dispatch:d,getState:p,extra:m,requestId:f,signal:y.signal,abort:E,rejectWithValue:function($,qe){return new Nr($,qe)},fulfillWithValue:function($,qe){return new Ai($,qe)}})).then(function($){if($ instanceof Nr)throw $;return $ instanceof Ai?i($.payload,f,l,$.meta):i($,f,l)})])];case 3:return W=ge.sent(),[3,5];case 4:return Ke=ge.sent(),W=Ke instanceof Nr?a(null,f,l,Ke.payload,Ke.meta):a(Ke,f,l),[3,5];case 5:return Jr=n&&!n.dispatchConditionRejection&&a.match(W)&&W.meta.condition,Jr||d(W),[2,W]}})})})();return Object.assign(T,{abort:E,requestId:f,arg:l,unwrap:function(){return T.then(ja)}})}}return Object.assign(c,{pending:s,rejected:a,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t})();function ja(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function $a(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Oi="listener",wi="completed",_i="cancelled",Ru="task-"+_i,Iu="task-"+wi,Pu=Oi+"-"+_i,Nu=Oi+"-"+wi;var kr="listenerMiddleware";var Mu=se(kr+"/add"),ku=se(kr+"/removeAll"),Lu=se(kr+"/remove");var Si,Du=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Si||(Si=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Ba=function(t){return function(e){setTimeout(e,t)}},Uu=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ba(10);ai();var Ha=ht(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),Tt=class extends Ha(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ri=class t extends Tt{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,s=window.ftReduxStores[n];if(bt(s))return s;if(i==null)return;let a=Ti({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),o=xi({reducer:(u,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let l=Je(a.getInitialState());for(let d of c.keeping)l[d]=(u??l)[d];return l}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...c.overwrites};return a.reducer(u,c)}});return window.ftReduxStores[i.name]=new t(a,o,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new mt;let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,a,o)=>{let u=a,c=s[u];return c?(...l)=>{let d=c(...l.map(i));return this.reduxStore.dispatch(d),d}:l=>{this.setState({[u]:i(l)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Ot=class{static format(e,r,n,i,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(e,r,n,i,!!s)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i,s){let a=typeof e=="string"?new Date(e):e,o=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(a),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return s?u:i?`${o} ${u}`:o}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var wt=b(w()),Va="ft-app-info",Fe=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Fe.eventName="authentication-change";var rt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};rt.eventName="ui-locale-changed";var Ka={session:(t,e)=>{(0,wt.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>g.dispatchEvent(new Fe(e.payload)),0))}},g=wt.FtReduxStore.get({name:Va,reducers:Ka,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,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Ii=b(w()),_t=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},dc=(0,Ii.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(g)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,s;return((s=(i=this.metadataDescriptors.find(o=>o.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?o=>Ot.format(o,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return _t([(0,Lr.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),_t([(0,Lr.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),_t([dr({store:g.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),_t([dr({store:g.name})],e.prototype,"uiLocale",void 0),e});var Pi;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Pi||(Pi={}));var Ni;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Ni||(Ni={}));var Mi;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Mi||(Mi={}));var ki;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(ki||(ki={}));var Li;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Li||(Li={}));var Di;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Di||(Di={}));var Ui;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Ui||(Ui={}));var Fi;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Fi||(Fi={}));var ji;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(ji||(ji={}));var $i;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})($i||($i={}));var Bi;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Bi||(Bi={}));var Hi;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Hi||(Hi={}));var Vi;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Vi||(Vi={}));var Ki;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Ki||(Ki={}));var qi;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(qi||(qi={}));var zi;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(zi||(zi={}));var Wi;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Wi||(Wi={}));var Gi;(function(t){t.ASC="ASC",t.DESC="DESC"})(Gi||(Gi={}));var Yi;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Yi||(Yi={}));var Ji;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ji||(Ji={}));var Xi;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Xi||(Xi={}));var Qi;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Qi||(Qi={}));var Zi;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Zi||(Zi={}));var es;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(es||(es={}));var ts;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ts||(ts={}));var rs;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(rs||(rs={}));var ns;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ns||(ns={}));var _;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(_||(_={}));var F;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(F||(F={}));var is;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(is||(is={}));var ss;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(ss||(ss={}));var as;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(as||(as={}));var os;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(os||(os={}));var us;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(us||(us={}));var cs;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(cs||(cs={}));var ls;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ls||(ls={}));var ds;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(ds||(ds={}));var ps;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(ps||(ps={}));var fs;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(fs||(fs={}));var hs;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(hs||(hs={}));var ms;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(ms||(ms={}));var qa={[_.PERSONAL_BOOK_SHARE_USER]:[_.PERSONAL_BOOK_USER],[_.HTML_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.PDF_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.KHUB_ADMIN]:[_.CONTENT_PUBLISHER],[_.ADMIN]:[_.KHUB_ADMIN,_.USERS_ADMIN,_.PORTAL_ADMIN,_.BEHAVIOR_DATA_USER],[_.GENERATIVE_AI_EXPORT_USER]:[_.GENERATIVE_AI_USER]};function ys(t,e){return t===e||(qa[t]??[]).some(r=>ys(r,e))}function vs(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>ys(n,e))}var Mt=b(w());var Dr=b(w());var fe=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=g.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=g.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var je=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:fe.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):fe.await()}};var L=class extends je{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(s,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([o],[u])=>o.localeCompare(u)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Dr.CacheRegistry,this.cache=e?i.commonCache:new Dr.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Rt=class extends L{async listMySearches(){let{session:e}=g.getState();return vs(e,_.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var It=class extends L{async listMyBookmarks(){let e=g.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Pt=class extends L{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=g.getState().session;return!!e?.sessionAuthenticated}};var Nt=class extends L{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=g.getState().session;return!!e?.sessionAuthenticated}};var za="ft-user-assets",Wa={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(F).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:n,asset:i}=e.payload;Fr(t,r,[...Ur(t,r),i]),gs(t,r,1,n),bs(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Fr(t,r,Ur(t,r).map(i=>i.id===n.id?n:i)),bs(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;Fr(t,r,Ur(t,r).filter(s=>s.id!==i)),gs(t,r,-1,n)}},As={[F.SEARCHES]:"savedSearches",[F.BOOKMARKS]:"bookmarks",[F.BOOKS]:void 0,[F.COLLECTIONS]:void 0},Ur=(t,e)=>{var r;let n=As[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Fr=(t,e,r)=>{let n=As[e];n&&(t[n]=r)},gs=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===F.BOOKMARKS&&n)){let s=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},bs=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},N=Mt.FtReduxStore.get({name:za,reducers:Wa,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(F).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),jr=class{constructor(e=new Pt,r=new Nt){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=g.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new It,this.savedSearchesService=new Rt,g.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=g.getState();(0,Mt.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),N.actions.clearAssetCount(),N.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),N.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),N.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();N.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();N.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&N.getState().assetCounts.allAsset[e]!==r.count&&N.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&N.getState().assetCounts.bookmarkByMap[e]!==r.count&&N.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(N.getState().assetCounts.bookmarkByMap).length!==0;e===F.BOOKMARKS&&r&&N.actions.clearBookmarkCountByMap(),N.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;N.actions.bookmarks(r)}}},Ga=new jr;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ga);var $r=class{addCommand(e,r=!1){g.commands.add(e,r)}consumeCommand(e){return g.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new $r;var j=b(w());var Ss,$e=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Ya=Symbol("clearAfterUnitTest"),kt=class extends(0,j.withEventBus)(L){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ss]=()=>{this.defaultMessages={},this.cache=new j.CacheRegistry,this.listeners={}},this.currentUiLocale=g.getState().uiLocale,g.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=g.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,j.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let s=e.toLowerCase(),a=this.resolveContext(s);return new j.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},a).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof j.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new $e({loadedContexts:e})),this.dispatchEvent(new $e({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new $e({loadedContexts:[e]})),this.dispatchEvent(new $e({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,j.delay)(0).then(()=>n()).catch(()=>null)))}};Ss=Ya;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends kt{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends kt{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Be=window.FluidTopicsI18nService,Lt=window.FluidTopicsCustomI18nService;var Es=b(w()),Br=class{highlightHtml(e,r,n){(0,Es.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Br;var xs=b(w());var Hr=class{isDate(e){var r,n,i,s;return(s=(i=((n=(r=g.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var n,i,s,a;if(e==null)return"";try{return xs.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:g.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(a=r?.onlyTime)!==null&&a!==void 0?a:!1)}catch(o){throw console.error(`Date ${JSON.stringify(e)} is not valid`,o),o}}};window.FluidTopicsDateService=new Hr;var Cs=b(w());var nt=class{static get(e,r){var n,i,s,a;let o=g.getState(),{lang:u,region:c}=(s=(i=(n=o.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new Cs.SearchPlaceConverter(o.baseUrl,e??20,(a=o.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed,r??`${u}-${c}`)}};var Vr=class{urlToSearchRequest(e){return nt.get().parse(e)}searchRequestToUrl(e){return nt.get().serialize(e)}};window.FluidTopicsUrlService=new Vr;var Q=b(w());var he=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};he.eventName="change";var Kr=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Ts=new Kr;var Dt=class t extends Q.WithEventBus{static build(){return new t(window.history,Ts,()=>window.location,!1)}constructor(e,r,n,i){var s,a;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(a=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&a!==void 0?a:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Q.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new he(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[s,a,o])=>{let u=r(),c={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:typeof o=="string"?o:(o??this.windowLocation()).href};n.apply(i,[c,a,o]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(he.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(he.eventName,e)}currentItem(){return(0,Q.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Q.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Q.deepCopy)(r.find(n=>e(n)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Q.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let i=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,s=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Dt.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var Os=b(G());var ws=Os.css`
|
|
107
|
-
`;var
|
|
106
|
+
`}};Q.styles=[On,Rn,In,Mn,Nn,kn,Dn,Pn,Ln,Un,Fn];$n([(0,Er.property)()],Q.prototype,"element",void 0);$n([(0,Er.property)()],Q.prototype,"variant",void 0);var jn=m(C());var Hn={"ft-typography":Q};(0,jn.customElements)(Hn);var Br=m(V());var Vn=m(V(),1);var Sr=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function zn(e,t){return(0,Vn.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return je(e);try{return JSON.parse(r)}catch{return je(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Ve,...t??{}})}function mo(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(!Oe(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(!Oe(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 s=o=>Object.keys(o).filter(a=>o[a]!=null),i=s(e);if(r=i.length,r!==s(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let o=i[n];if(!Oe(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Oe(e,t){try{return mo(e,t)}catch{return!1}}function Ve(e,t){return!Oe(e,t)}function je(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function ct(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let s=t(n);return s[e]=!0,s}}var Kn=m(V(),1);var Ar=e=>{let t=e??{};return(r,n)=>{var s;let i={hasChanged:Ve,attribute:!1,...t};(0,Kn.property)(i)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(s=t.selector)!==null&&s!==void 0?s:(a=>a[n]),store:t.store})}};var lt=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 ce=m(V(),1);var ut=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 s=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),i=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){s(a);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Wn=m(X(),1);var dt=globalThis,go=dt.ShadowRoot&&(dt.ShadyCSS===void 0||dt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var qn=(e,t)=>{if(go)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),s=dt.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=r.cssText,e.appendChild(n)}};var pt=class extends Wn.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 qn(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){Sr(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 Gn(e,t,...r){var n;let s=e.querySelector(t);for(let i of r)s=(n=s?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return s}var Ie=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Qn,Yn=Symbol("constructorPrototype"),Xn=Symbol("constructorName"),Zn=Symbol("exportpartsDebouncer"),Jn=Symbol("dynamicDependenciesLoaded"),Re=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Re.eventName="exportparts-updated";var W=class extends pt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Qn]=new ut(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[Zn].run(()=>{var s,i;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Xn]=this.constructor.name,this[Yn]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Xn]&&Object.setPrototypeOf(this,this[Yn])}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[Jn]||(r[Jn]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Re.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Re.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 Re)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:s}=this.elementToFocus;if(n!=null){let i=[...s??[],n];r=Gn(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,s;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var r,n,s,i,o,a;let c=f=>f!=null&&f.trim().length>0,l=t.filter(c).map(f=>f.trim());if(l.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let g=(i=(s=f.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&i!==void 0?i:[],A=(a=(o=f.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(S=>S.split(":")[1]))!==null&&a!==void 0?a:[],R=[...g,...A].filter(c).map(S=>S.trim());for(let S of R)u.add(S)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(f=>l.map(g=>`${f}:${g}--${f}`));this.exportparts=[...this.part,...d].join(", ")}};Qn=Zn;Ie([(0,ce.property)()],W.prototype,"exportpartsPrefix",void 0);Ie([zn([])],W.prototype,"exportpartsPrefixes",void 0);Ie([(0,ce.property)({reflect:!0})],W.prototype,"exportparts",void 0);Ie([(0,ce.property)()],W.prototype,"customStylesheet",void 0);Ie([(0,ce.property)()],W.prototype,"elementToFocus",void 0);Ie([(0,ce.state)()],W.prototype,"useAdoptedStyleSheets",void 0);function ft(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var ze=Symbol("internalReduxEventsUnsubscribers"),ne=Symbol("internalStoresUnsubscribers"),le=Symbol("internalStores"),Eo=ct(Symbol("withRedux"),function(e){var t,r,n;class s extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[le].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[le].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[le].get(o)}addStore(o,a){var c;a=(c=a??o.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(a),this[le].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[le].delete(a)}setupStores(){this.unsubscribeFromStores(),this[le].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let c=this.constructor.getPropertyOptions(a);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:a)){let l=this.getStore(o.store);l&&(o.store?this[ne].has(o.store):this[ne].size>0)&&(this[a]=o.selector(l.getState(),this))}})}subscribeToStore(o,a){var c;this[ne].set(o,a.subscribe(()=>this.updateFromStores())),this[ze].set(o,[]),ft(a)&&a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((l,u)=>{if(typeof this[u]=="function"&&(!l.store||a.name===l.store)){let d=f=>this[u](f);a.addEventListener(l.eventName,d),this[ze].get(o).push(()=>a.removeEventListener(l.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[ne].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[ne].has(o)&&this[ne].get(o)(),this[ne].delete(o),(a=this[ze].get(o))===null||a===void 0||a.forEach(c=>c()),this[ze].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ne,r=le,n=ze,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),es=class extends Eo(W){};function M(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 So=typeof Symbol=="function"&&Symbol.observable||"@@observable",ts=So,vr=()=>Math.random().toString(36).substring(7).split("").join("."),Ao={INIT:`@@redux/INIT${vr()}`,REPLACE:`@@redux/REPLACE${vr()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${vr()}`},ht=Ao;function yt(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 br(e,t,r){if(typeof e!="function")throw new Error(M(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(M(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(M(1));return r(br)(e,t)}let n=e,s=t,i=new Map,o=i,a=0,c=!1;function l(){o===i&&(o=new Map,i.forEach((S,I)=>{o.set(I,S)}))}function u(){if(c)throw new Error(M(3));return s}function d(S){if(typeof S!="function")throw new Error(M(4));if(c)throw new Error(M(5));let I=!0;l();let L=a++;return o.set(L,S),function(){if(I){if(c)throw new Error(M(6));I=!1,l(),o.delete(L),i=null}}}function f(S){if(!yt(S))throw new Error(M(7));if(typeof S.type>"u")throw new Error(M(8));if(typeof S.type!="string")throw new Error(M(17));if(c)throw new Error(M(9));try{c=!0,s=n(s,S)}finally{c=!1}return(i=o).forEach(L=>{L()}),S}function g(S){if(typeof S!="function")throw new Error(M(10));n=S,f({type:ht.REPLACE})}function A(){let S=d;return{subscribe(I){if(typeof I!="object"||I===null)throw new Error(M(11));function L(){let v=I;v.next&&v.next(u())}return L(),{unsubscribe:S(L)}},[ts](){return this}}}return f({type:ht.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:g,[ts]:A}}function vo(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:ht.INIT})>"u")throw new Error(M(12));if(typeof r(void 0,{type:ht.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(M(13))})}function rs(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let n=Object.keys(r),s,i;try{vo(r)}catch(o){i=o}return function(a={},c){if(i)throw i;let l=!1,u={};for(let d=0;d<n.length;d++){let f=n[d],g=r[f],A=a[f],R=g(A,c);if(typeof R>"u"){let S=c&&c.type;throw new Error(M(14))}u[f]=R,l=l||R!==A}return l=l||n.length!==Object.keys(a).length,l?u:a}}function Ke(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function ns(...e){return t=>(r,n)=>{let s=t(r,n),i=()=>{throw new Error(M(15))},o={getState:s.getState,dispatch:(c,...l)=>i(c,...l)},a=e.map(c=>c(o));return i=Ke(...a)(s.dispatch),{...s,dispatch:i}}}function ss(e){return yt(e)&&"type"in e&&typeof e.type=="string"}var fs=Symbol.for("immer-nothing"),is=Symbol.for("immer-draftable"),k=Symbol.for("immer-state");function z(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var U=Object,Ne=U.getPrototypeOf,St="constructor",Ct="prototype",Tr="configurable",At="enumerable",gt="writable",qe="value",G=e=>!!e&&!!e[k];function F(e){return e?hs(e)||wt(e)||!!e[is]||!!e[St]?.[is]||Ot(e)||Rt(e):!1}var bo=U[Ct][St].toString(),os=new WeakMap;function hs(e){if(!e||!Dr(e))return!1;let t=Ne(e);if(t===null||t===U[Ct])return!0;let r=U.hasOwnProperty.call(t,St)&&t[St];if(r===Object)return!0;if(!Me(r))return!1;let n=os.get(r);return n===void 0&&(n=Function.toString.call(r),os.set(r,n)),n===bo}function Tt(e,t,r=!0){Ye(e)===0?(r?Reflect.ownKeys(e):U.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((n,s)=>t(s,n,e))}function Ye(e){let t=e[k];return t?t.type_:wt(e)?1:Ot(e)?2:Rt(e)?3:0}var _r=(e,t,r=Ye(e))=>r===2?e.has(t):U[Ct].hasOwnProperty.call(e,t),wr=(e,t,r=Ye(e))=>r===2?e.get(t):e[t],vt=(e,t,r,n=Ye(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function _o(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var wt=Array.isArray,Ot=e=>e instanceof Map,Rt=e=>e instanceof Set,Dr=e=>typeof e=="object",Me=e=>typeof e=="function",xr=e=>typeof e=="boolean";function xo(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Z=e=>e.copy_||e.base_;var Pr=e=>e.modified_?e.copy_:e.base_;function Or(e,t){if(Ot(e))return new Map(e);if(Rt(e))return new Set(e);if(wt(e))return Array[Ct].slice.call(e);let r=hs(e);if(t===!0||t==="class_only"&&!r){let n=U.getOwnPropertyDescriptors(e);delete n[k];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){let o=s[i],a=n[o];a[gt]===!1&&(a[gt]=!0,a[Tr]=!0),(a.get||a.set)&&(n[o]={[Tr]:!0,[gt]:!0,[At]:a[At],[qe]:e[o]})}return U.create(Ne(e),n)}else{let n=Ne(e);if(n!==null&&r)return{...e};let s=U.create(n);return U.assign(s,e)}}function Lr(e,t=!1){return It(e)||G(e)||!F(e)||(Ye(e)>1&&U.defineProperties(e,{set:mt,add:mt,clear:mt,delete:mt}),U.freeze(e),t&&Tt(e,(r,n)=>{Lr(n,!0)},!1)),e}function Co(){z(2)}var mt={[qe]:Co};function It(e){return e===null||!Dr(e)?!0:U.isFrozen(e)}var bt="MapSet",Rr="Patches",as="ArrayMethods",ys={};function ue(e){let t=ys[e];return t||z(0,e),t}var cs=e=>!!ys[e];var We,ms=()=>We,To=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:cs(bt)?ue(bt):void 0,arrayMethodsPlugin_:cs(as)?ue(as):void 0});function ls(e,t){t&&(e.patchPlugin_=ue(Rr),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ir(e){Mr(e),e.drafts_.forEach(wo),e.drafts_=null}function Mr(e){e===We&&(We=e.parent_)}var us=e=>We=To(We,e);function wo(e){let t=e[k];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ds(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[k].modified_&&(Ir(t),z(4)),F(e)&&(e=ps(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[k].base_,e,t)}else e=ps(t,r);return Oo(t,e,!0),Ir(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==fs?e:void 0}function ps(e,t){if(It(t))return t;let r=t[k];if(!r)return _t(t,e.handledSet_,e);if(!Mt(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);Ss(r,e)}return r.copy_}function Oo(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Lr(t,r)}function gs(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Mt=(e,t)=>e.scope_===t,Ro=[];function Es(e,t,r,n){let s=Z(e),i=e.type_;if(n!==void 0&&wr(s,n,i)===t){vt(s,n,r,i);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;Tt(s,(c,l)=>{if(G(l)){let u=a.get(l)||[];u.push(c),a.set(l,u)}})}let o=e.draftLocations_.get(t)??Ro;for(let a of o)vt(s,a,r,i)}function Io(e,t,r){e.callbacks_.push(function(s){let i=t;if(!i||!Mt(i,s))return;s.mapSetPlugin_?.fixSetContents(i);let o=Pr(i);Es(e,i.draft_??i,o,r),Ss(i,s)})}function Ss(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 s=n.getPath(e);s&&n.generatePatches_(e,s,t)}gs(e)}}function Mo(e,t,r){let{scope_:n}=e;if(G(r)){let s=r[k];Mt(s,n)&&s.callbacks_.push(function(){Et(e);let o=Pr(s);Es(e,r,o,t)})}else F(r)&&e.callbacks_.push(function(){let i=Z(e);e.type_===3?i.has(r)&&_t(r,n.handledSet_,n):wr(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&_t(wr(e.copy_,t,e.type_),n.handledSet_,n)})}function _t(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||G(e)||t.has(e)||!F(e)||It(e)||(t.add(e),Tt(e,(n,s)=>{if(G(s)){let i=s[k];if(Mt(i,r)){let o=Pr(i);vt(e,n,o,e.type_),gs(i)}}else F(s)&&_t(s,t,r)})),e}function No(e,t){let r=wt(e),n={type_:r?1:0,scope_:t?t.scope_:ms(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=n,i=xt;r&&(s=[n],i=Ge);let{revoke:o,proxy:a}=Proxy.revocable(s,i);return n.draft_=a,n.revoke_=o,[a,n]}var xt={get(e,t){if(t===k)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 s=Z(e);if(!_r(s,t,e.type_))return Do(e,s,t);let i=s[t];if(e.finalized_||!F(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&xo(t))return i;if(i===Cr(e.base_,t)||ko(e,t,i)){Et(e);let o=e.type_===1?+t:t,a=kr(e.scope_,i,e,o);return e.copy_[o]=a}return i},has(e,t){return t in Z(e)},ownKeys(e){return Reflect.ownKeys(Z(e))},set(e,t,r){let n=As(Z(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let s=Cr(Z(e),t),i=s?.[k];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(_o(r,s)&&(r!==void 0||_r(e.base_,t,e.type_)))return!0;Et(e),Nr(e)}return e.copy_[t]===r&&(r!==void 0||_r(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Mo(e,t,r)),!0},deleteProperty(e,t){return Et(e),Cr(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Nr(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Z(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[gt]:!0,[Tr]:e.type_!==1||t!=="length",[At]:n[At],[qe]:r[t]}},defineProperty(){z(11)},getPrototypeOf(e){return Ne(e.base_)},setPrototypeOf(){z(12)}},Ge={};for(let e in xt){let t=xt[e];Ge[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Ge.deleteProperty=function(e,t){return Ge.set.call(this,e,t,void 0)};Ge.set=function(e,t,r){return xt.set.call(this,e[0],t,r,e[0])};function Cr(e,t){let r=e[k];return(r?Z(r):e)[t]}function ko(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!F(r)||r[k]?!1:e.baseRefs_.has(r)}function Do(e,t,r){let n=As(t,r);return n?qe in n?n[qe]:n.get?.call(e.draft_):void 0}function As(e,t){if(!(t in e))return;let r=Ne(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Ne(r)}}function Nr(e){e.modified_||(e.modified_=!0,e.parent_&&Nr(e.parent_))}function Et(e){e.copy_||(e.assigned_=new Map,e.copy_=Or(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Po=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Me(t)&&!Me(r)){let i=r;r=t;let o=this;return function(c=i,...l){return o.produce(c,u=>r.call(this,u,...l))}}Me(r)||z(6),n!==void 0&&!Me(n)&&z(7);let s;if(F(t)){let i=us(this),o=kr(i,t,void 0),a=!0;try{s=r(o),a=!1}finally{a?Ir(i):Mr(i)}return ls(i,n),ds(s,i)}else if(!t||!Dr(t)){if(s=r(t),s===void 0&&(s=t),s===fs&&(s=void 0),this.autoFreeze_&&Lr(s,!0),n){let i=[],o=[];ue(Rr).generateReplacementPatches_(t,s,{patches_:i,inversePatches_:o}),n(i,o)}return s}else z(1,t)},this.produceWithPatches=(t,r)=>{if(Me(t))return(o,...a)=>this.produceWithPatches(o,c=>t(c,...a));let n,s;return[this.produce(t,r,(o,a)=>{n=o,s=a}),n,s]},xr(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),xr(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),xr(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){F(e)||z(8),G(e)&&(e=vs(e));let t=us(this),r=kr(t,e,void 0);return r[k].isManual_=!0,Mr(t),r}finishDraft(e,t){let r=e&&e[k];(!r||!r.isManual_)&&z(9);let{scope_:n}=r;return ls(n,t),ds(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 s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));let n=ue(Rr).applyPatches_;return G(e)?n(e,t):this.produce(e,s=>n(s,t))}};function kr(e,t,r,n){let[s,i]=Ot(t)?ue(bt).proxyMap_(t,r):Rt(t)?ue(bt).proxySet_(t,r):No(t,r);return(r?.scope_??ms()).drafts_.push(s),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?Io(r,i,n):i.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:l}=c;i.modified_&&l&&l.generatePatches_(i,[],c)}),s}function vs(e){return G(e)||z(10,e),bs(e)}function bs(e){if(!F(e)||It(e))return e;let t=e[k],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Or(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Or(e,!0);return Tt(r,(s,i)=>{vt(r,s,bs(i))},n),t&&(t.finalized_=!1),r}var Lo=new Po,Ur=Lo.produce;function _s(e){return({dispatch:r,getState:n})=>s=>i=>typeof i=="function"?i(r,n,e):s(i)}var xs=_s(),Cs=_s;var Uo=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ke:Ke.apply(null,arguments)},Mc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Fo=e=>e&&typeof e.match=="function";function se(e,t){function r(...n){if(t){let s=t(...n);if(!s)throw new Error(ee(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>ss(n)&&n.type===e,r}var Is=class Xe extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Xe.prototype)}static get[Symbol.species](){return Xe}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Xe(...t[0].concat(this)):new Xe(...t.concat(this))}};function Ts(e){return F(e)?Ur(e,()=>{}):e}function Nt(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function $o(e){return typeof e=="boolean"}var Bo=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{},o=new Is;return r&&($o(r)?o.push(xs):o.push(Cs(r.extraArgument))),o},Ho="RTK_autoBatch";var ws=e=>t=>{setTimeout(t,e)},jo=(e,t)=>r=>{let n=!1,s=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(o),r())},i=e(s),o=setTimeout(s,t)},Vo=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),s=!0,i=!1,o=!1,a=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?jo(window.requestAnimationFrame,100):ws(10):e.type==="callback"?e.queueNotification:ws(e.timeout),l=()=>{o=!1,i&&(i=!1,a.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let d=()=>s&&u(),f=n.subscribe(d);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return s=!u?.meta?.[Ho],i=!s,i&&(o||(o=!0,c(l))),n.dispatch(u)}finally{s=!0}}})},zo=e=>function(r){let{autoBatch:n=!0}=r??{},s=new Is(e);return n&&s.push(Vo(typeof n=="object"?n:void 0)),s};function Ms(e){let t=Bo(),{reducer:r=void 0,middleware:n,devTools:s=!0,duplicateMiddlewareCheck:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},c;if(typeof r=="function")c=r;else if(yt(r))c=rs(r);else throw new Error(ee(1));let l;typeof n=="function"?l=n(t):l=t();let u=Ke;s&&(u=Uo({trace:!1,...typeof s=="object"&&s}));let d=ns(...l),f=zo(d),g=typeof a=="function"?a(f):f(),A=u(...g);return br(c,o,A)}function Ns(e){let t={},r=[],n,s={addCase(i,o){let a=typeof i=="string"?i:i.type;if(!a)throw new Error(ee(28));if(a in t)throw new Error(ee(29));return t[a]=o,s},addAsyncThunk(i,o){return o.pending&&(t[i.pending.type]=o.pending),o.rejected&&(t[i.rejected.type]=o.rejected),o.fulfilled&&(t[i.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:i.settled,reducer:o.settled}),s},addMatcher(i,o){return r.push({matcher:i,reducer:o}),s},addDefaultCase(i){return n=i,s}};return e(s),[t,r,n]}function Ko(e){return typeof e=="function"}function qo(e,t){let[r,n,s]=Ns(t),i;if(Ko(e))i=()=>Ts(e());else{let a=Ts(e);i=()=>a}function o(a=i(),c){let l=[r[c.type],...n.filter(({matcher:u})=>u(c)).map(({reducer:u})=>u)];return l.filter(u=>!!u).length===0&&(l=[s]),l.reduce((u,d)=>{if(d)if(G(u)){let g=d(u,c);return g===void 0?u:g}else{if(F(u))return Ur(u,f=>d(f,c));{let f=d(u,c);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},a)}return o.getInitialState=i,o}var Wo=(e,t)=>Fo(e)?e.match(t):e(t);function Go(...e){return t=>e.some(r=>Wo(r,t))}var Yo="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xo=(e=21)=>{let t="",r=e;for(;r--;)t+=Yo[Math.random()*64|0];return t},Jo=["name","message","stack","code"],Fr=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Os=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Qo=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Jo)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Rs="External signal was aborted",Zo=(()=>{function e(t,r,n){let s=se(t+"/fulfilled",(c,l,u,d)=>({payload:c,meta:{...d||{},arg:u,requestId:l,requestStatus:"fulfilled"}})),i=se(t+"/pending",(c,l,u)=>({payload:void 0,meta:{...u||{},arg:l,requestId:c,requestStatus:"pending"}})),o=se(t+"/rejected",(c,l,u,d,f)=>({payload:d,error:(n&&n.serializeError||Qo)(c||"Rejected"),meta:{...f||{},arg:u,requestId:l,rejectedWithValue:!!d,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function a(c,{signal:l}={}){return(u,d,f)=>{let g=n?.idGenerator?n.idGenerator(c):Xo(),A=new AbortController,R,S;function I(E){S=E,A.abort()}l&&(l.aborted?I(Rs):l.addEventListener("abort",()=>I(Rs),{once:!0}));let L=(async function(){let E;try{let b=n?.condition?.(c,{getState:d,extra:f});if(ta(b)&&(b=await b),b===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let q=new Promise((x,T)=>{R=()=>{T({name:"AbortError",message:S||"Aborted"})},A.signal.addEventListener("abort",R,{once:!0})});u(i(g,c,n?.getPendingMeta?.({requestId:g,arg:c},{getState:d,extra:f}))),E=await Promise.race([q,Promise.resolve(r(c,{dispatch:u,getState:d,extra:f,requestId:g,signal:A.signal,abort:I,rejectWithValue:((x,T)=>new Fr(x,T)),fulfillWithValue:((x,T)=>new Os(x,T))})).then(x=>{if(x instanceof Fr)throw x;return x instanceof Os?s(x.payload,g,c,x.meta):s(x,g,c)})])}catch(b){E=b instanceof Fr?o(null,g,c,b.payload,b.meta):o(b,g,c)}finally{R&&A.signal.removeEventListener("abort",R)}return n&&!n.dispatchConditionRejection&&o.match(E)&&E.meta.condition||u(E),E})();return Object.assign(L,{abort:I,requestId:g,arg:c,unwrap(){return L.then(ea)}})}}return Object.assign(a,{pending:i,rejected:o,fulfilled:s,settled:Go(o,s),typePrefix:t})}return e.withTypes=()=>e,e})();function ea(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ta(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ks=Symbol.for("rtk-slice-createasyncthunk"),kc={[ks]:Zo};function ra(e,t){return`${e}/${t}`}function na({creators:e}={}){let t=e?.asyncThunk?.[ks];return function(n){let{name:s,reducerPath:i=s}=n;if(!s)throw new Error(ee(11));typeof process<"u";let o=(typeof n.reducers=="function"?n.reducers(ia()):n.reducers)||{},a=Object.keys(o),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(E,v){let b=typeof E=="string"?E:E.type;if(!b)throw new Error(ee(12));if(b in c.sliceCaseReducersByType)throw new Error(ee(13));return c.sliceCaseReducersByType[b]=v,l},addMatcher(E,v){return c.sliceMatchers.push({matcher:E,reducer:v}),l},exposeAction(E,v){return c.actionCreators[E]=v,l},exposeCaseReducer(E,v){return c.sliceCaseReducersByName[E]=v,l}};a.forEach(E=>{let v=o[E],b={reducerName:E,type:ra(s,E),createNotation:typeof n.reducers=="function"};aa(v)?la(b,v,l,t):oa(b,v,l)});function u(){let[E={},v=[],b=void 0]=typeof n.extraReducers=="function"?Ns(n.extraReducers):[n.extraReducers],q={...E,...c.sliceCaseReducersByType};return qo(n.initialState,x=>{for(let T in q)x.addCase(T,q[T]);for(let T of c.sliceMatchers)x.addMatcher(T.matcher,T.reducer);for(let T of v)x.addMatcher(T.matcher,T.reducer);b&&x.addDefaultCase(b)})}let d=E=>E,f=new Map,g=new WeakMap,A;function R(E,v){return A||(A=u()),A(E,v)}function S(){return A||(A=u()),A.getInitialState()}function I(E,v=!1){function b(x){let T=x[E];return typeof T>"u"&&v&&(T=Nt(g,b,S)),T}function q(x=d){let T=Nt(f,v,()=>new WeakMap);return Nt(T,x,()=>{let en={};for(let[eo,to]of Object.entries(n.selectors??{}))en[eo]=sa(to,x,()=>Nt(g,x,S),v);return en})}return{reducerPath:E,getSelectors:q,get selectors(){return q(b)},selectSlice:b}}let L={name:s,reducer:R,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:S,...I(i),injectInto(E,{reducerPath:v,...b}={}){let q=v??i;return E.inject({reducerPath:q,reducer:R},b),{...L,...I(q,!0)}}};return L}}function sa(e,t,r,n){function s(i,...o){let a=t(i);return typeof a>"u"&&n&&(a=r()),e(a,...o)}return s.unwrapped=e,s}var Ds=na();function ia(){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 oa({type:e,reducerName:t,createNotation:r},n,s){let i,o;if("reducer"in n){if(r&&!ca(n))throw new Error(ee(17));i=n.reducer,o=n.prepare}else i=n;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?se(e,o):se(e))}function aa(e){return e._reducerDefinitionType==="asyncThunk"}function ca(e){return e._reducerDefinitionType==="reducerWithPrepare"}function la({type:e,reducerName:t},r,n,s){if(!s)throw new Error(ee(18));let{payloadCreator:i,fulfilled:o,pending:a,rejected:c,settled:l,options:u}=r,d=s(e,i,u);n.exposeAction(t,d),o&&n.addCase(d.fulfilled,o),a&&n.addCase(d.pending,a),c&&n.addCase(d.rejected,c),l&&n.addMatcher(d.settled,l),n.exposeCaseReducer(t,{fulfilled:o||kt,pending:a||kt,rejected:c||kt,settled:l||kt})}function kt(){}var Ps="listener",Ls="completed",Us="cancelled",Dc=`task-${Us}`,Pc=`task-${Ls}`,Lc=`${Ps}-${Us}`,Uc=`${Ps}-${Ls}`;var{assign:Fs}=Object;var $r="listenerMiddleware";var ua=Fs(se(`${$r}/add`),{withTypes:()=>ua}),Fc=se(`${$r}/removeAll`),da=Fs(se(`${$r}/remove`),{withTypes:()=>da});function ee(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 pa=ct(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,s){this.eventBus.addEventListener(r,n,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,s){this.eventBus.removeEventListener(r,n,s)}}}),Dt=class extends pa(Object){};window.ftReduxStores||(window.ftReduxStores={});var $s=class e extends Dt{static get(t){var r;let n=typeof t=="string"?t:t.name,s=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(ft(i))return i;if(s==null)return;let o=Ds({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=Ms({reducer:(c,l)=>{if(l.type==="CLEAR_FT_REDUX_STORE"){let u=je(o.getInitialState());for(let d of l.keeping)u[d]=(c??u)[d];return u}else if(typeof l.type=="string"&&l.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...l.overwrites};return o.reducer(c,l)}});return window.ftReduxStores[s.name]=new e(o,a,s.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new lt,this.injectInto=(i,o)=>this.reduxSlice.injectInto(i,o),this.selectSlice=i=>this.reduxSlice.selectSlice(i);let s=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,o,a)=>{let c=o,l=i[c];return l?(...u)=>{let d=l(...u.map(s));return this.reduxStore.dispatch(d),d}:u=>{let d=c,f=this.getState()[d];Oe(f,u)||this.setState({[d]:s(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 Pt=class{static format(t,r,n,s,i){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,s,!!i)):this.getIntlDateTime(t,r,n,s,!!i)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,s,i){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return i?c:s?`${a} ${c}`:a}static getTimezoneAsString(){let 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 Lt=m(C()),fa="ft-app-info",ke=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};ke.eventName="authentication-change";var Je=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Je.eventName="ui-locale-changed";var ha={session:(e,t)=>{(0,Lt.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>y.dispatchEvent(new ke(t.payload)),0))}},y=Lt.FtReduxStore.get({name:fa,reducers:ha,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,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Bs=m(C()),Ut=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},hl=(0,Bs.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(y)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var s,i;return((i=(s=this.metadataDescriptors.find(a=>a.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?a=>Pt.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ut([(0,Br.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Ut([(0,Br.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Ut([Ar({store:y.name,selector:r=>{var n,s;return(s=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&s!==void 0?s:[]}})],t.prototype,"metadataDescriptors",void 0),Ut([Ar({store:y.name})],t.prototype,"uiLocale",void 0),t});var Hs;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Hs||(Hs={}));var js;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(js||(js={}));var Vs;(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"})(Vs||(Vs={}));var zs;(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"})(zs||(zs={}));var Ks;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ks||(Ks={}));var qs;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(qs||(qs={}));var Ws;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Ws||(Ws={}));var Gs;(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"})(Gs||(Gs={}));var Ys;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Ys||(Ys={}));var Xs;(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"})(Xs||(Xs={}));var Js;(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"})(Js||(Js={}));var Qs;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Qs||(Qs={}));var Zs;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Zs||(Zs={}));var ei;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ei||(ei={}));var ti;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(ti||(ti={}));var ri;(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"})(ri||(ri={}));var ni;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(ni||(ni={}));var si;(function(e){e.ASC="ASC",e.DESC="DESC"})(si||(si={}));var ii;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(ii||(ii={}));var oi;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(oi||(oi={}));var ai;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(ai||(ai={}));var ci;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(ci||(ci={}));var li;(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"})(li||(li={}));var ui;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ui||(ui={}));var di;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(di||(di={}));var pi;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(pi||(pi={}));var fi;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(fi||(fi={}));var w;(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"})(w||(w={}));var H;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(H||(H={}));var hi;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(hi||(hi={}));var yi;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(yi||(yi={}));var mi;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(mi||(mi={}));var gi;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(gi||(gi={}));var Ei;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Ei||(Ei={}));var Si;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Si||(Si={}));var Ai;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ai||(Ai={}));var vi;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(vi||(vi={}));var bi;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(bi||(bi={}));var _i;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(_i||(_i={}));var xi;(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"})(xi||(xi={}));var Ci;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Ci||(Ci={}));var ya={[w.PERSONAL_BOOK_SHARE_USER]:[w.PERSONAL_BOOK_USER],[w.HTML_EXPORT_USER]:[w.PERSONAL_BOOK_USER],[w.PDF_EXPORT_USER]:[w.PERSONAL_BOOK_USER],[w.KHUB_ADMIN]:[w.CONTENT_PUBLISHER],[w.ADMIN]:[w.KHUB_ADMIN,w.USERS_ADMIN,w.PORTAL_ADMIN,w.BEHAVIOR_DATA_USER],[w.GENERATIVE_AI_EXPORT_USER]:[w.GENERATIVE_AI_USER]};function Ti(e,t){return e===t||(ya[e]??[]).some(r=>Ti(r,t))}function wi(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=>Ti(n,t))}var jt=m(C());var Hr=m(C());var de=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=y.getState(),s=t??n;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let s=y.subscribe(()=>{n=e.get(t),n&&(s(),r(n))})}})}};var De=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:de.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):de.await()}};var $=class extends De{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[c])=>a.localeCompare(c)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new Hr.CacheRegistry,this.cache=t?s.commonCache:new Hr.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 Ft=class extends ${async listMySearches(){let{session:t}=y.getState();return wi(t,w.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var $t=class extends ${async listMyBookmarks(){let t=y.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Bt=class extends ${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=y.getState().session;return!!t?.sessionAuthenticated}};var Ht=class extends ${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=y.getState().session;return!!t?.sessionAuthenticated}};var ma="ft-user-assets",ga={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(H).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:s}=t.payload;Vr(e,r,[...jr(e,r),s]),Oi(e,r,1,n),Ri(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Vr(e,r,jr(e,r).map(s=>s.id===n.id?n:s)),Ri(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:s}=t.payload;Vr(e,r,jr(e,r).filter(i=>i.id!==s)),Oi(e,r,-1,n)}},Ii={[H.SEARCHES]:"savedSearches",[H.BOOKMARKS]:"bookmarks",[H.BOOKS]:void 0,[H.COLLECTIONS]:void 0},jr=(e,t)=>{var r;let n=Ii[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Vr=(e,t,r)=>{let n=Ii[t];n&&(e[n]=r)},Oi=(e,t,r,n)=>{let s=e.assetCounts.allAsset[t];if(s!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,s+r),t===H.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},Ri=(e,t)=>{let r=e.assetLabels.map(s=>s.title),n=t.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));e.assetLabels.push(...n)},D=jt.FtReduxStore.get({name:ma,reducers:ga,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(H).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),zr=class{constructor(t=new Bt,r=new Ht){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=y.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new $t,this.savedSearchesService=new Ft,y.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=y.getState();(0,jt.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(),D.actions.clearAssetCount(),D.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),D.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),D.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();D.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();D.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&D.getState().assetCounts.allAsset[t]!==r.count&&D.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&D.getState().assetCounts.bookmarkByMap[t]!==r.count&&D.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(D.getState().assetCounts.bookmarkByMap).length!==0;t===H.BOOKMARKS&&r&&D.actions.clearBookmarkCountByMap(),D.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;D.actions.bookmarks(r)}}},Ea=new zr;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ea);var Kr=class{addCommand(t,r=!1){y.commands.add(t,r)}consumeCommand(t){return y.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Kr;var j=m(C());var Mi,Pe=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Sa=Symbol("clearAfterUnitTest"),Vt=class extends(0,j.withEventBus)($){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Mi]=()=>{this.defaultMessages={},this.cache=new j.CacheRegistry,this.listeners={}},this.currentUiLocale=y.getState().uiLocale,y.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=y.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 s={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,j.deepEqual)(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,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 s;let i=t.toLowerCase(),o=this.resolveContext(i);return new j.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},o).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(s){!(s instanceof j.CanceledPromiseError)&&r&&console.error(s)}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 s;return(s=this.listeners[t])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Pe({loadedContexts:t})),this.dispatchEvent(new Pe({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Pe({loadedContexts:[t]})),this.dispatchEvent(new Pe({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,j.delay)(0).then(()=>n()).catch(()=>null)))}};Mi=Sa;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Vt{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Vt{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Le=window.FluidTopicsI18nService,zt=window.FluidTopicsCustomI18nService;var Ni=m(C()),qr=class{highlightHtml(t,r,n){(0,Ni.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new qr;var ki=m(C());var Wr=class{isDate(t){var r,n,s,i;return(i=(s=((n=(r=y.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===t))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1}format(t,r){var n,s,i,o;if(t==null)return"";try{return ki.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:y.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new Wr;var Di=m(C());var Qe=class{static get(t,r){var n,s,i,o;let a=y.getState(),{lang:c,region:l}=(i=(s=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Di.SearchPlaceConverter(a.baseUrl,t??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${c}-${l}`)}};var Gr=class{urlToSearchRequest(t){return Qe.get().parse(t)}searchRequestToUrl(t){return Qe.get().serialize(t)}};window.FluidTopicsUrlService=new Gr;var te=m(C());var pe=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};pe.eventName="change";var Yr=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))}},Pi=new Yr;var Kt=class e extends te.WithEventBus{static build(){return new e(window.history,Pi,()=>window.location,!1)}constructor(t,r,n,s){var i,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}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,te.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new pe(this.currentItem())),0)}installProxies(){let t=r=>(n,s,[i,o,a])=>{let c=r(),l={...c===this.currentIndex?this.currentState:void 0,...i,index:c,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(s,[l,o,a]),this.setCurrentState(l,!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)}addHistoryChangeListener(t){this.addEventListener(pe.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(pe.eventName,t)}currentItem(){return(0,te.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,te.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,te.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,te.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 s=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(s=i),i++;return s}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 s=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Kt.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Li=m(X());var Ui=Li.css`
|
|
107
|
+
`;var Bi=m(X()),P=m(V()),ye=m(C());var fe=m(C());function Fi(e,t){let{authenticationRequired:r,session:n}=y.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var qt=class extends De{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Xr=class e extends fe.FtStateManager{static build(t){return new e(y,t)}constructor(t,r){super(),this.store=t,this.cache=new fe.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new qt,this.cleanSessionDebouncer=new fe.Debouncer,this.reloadDebouncer=new fe.Debouncer(500),this.apiProvider=r??(()=>de.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(ke.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",()=>Fi(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}reloadConfiguration(){var t;(t=this.cache)===null||t===void 0||t.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}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 Je(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)}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)}},$i=Xr.build();var he=class extends Event{constructor(t,r,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=s??!1}};var Ze=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:s,callbackRef:i}of n){let o=s.deref(),a=i.deref();o===void 0||a===void 0||o.dispatchEvent(new he(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,s=this.pendingContextRequests.get(t.context);s===void 0&&this.pendingContextRequests.set(t.context,s={callbacks:new WeakMap,requests:[]});let i=s.callbacks.get(r);i===void 0&&s.callbacks.set(r,i=new WeakSet),i.has(n)||(i.add(n),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(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 N=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},_=class extends ye.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=$i,this.contextRoot=new Ze}render(){return Bi.html`
|
|
108
108
|
<slot></slot>
|
|
109
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(
|
|
110
|
-
`;var
|
|
109
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),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("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Le.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())}};_.elementDefinitions={};_.styles=Ui;N([(0,P.property)()],_.prototype,"baseUrl",void 0);N([(0,P.property)()],_.prototype,"tenantId",void 0);N([(0,P.property)()],_.prototype,"apiIntegrationIdentifier",void 0);N([(0,P.property)()],_.prototype,"apiIntegrationAppVersion",void 0);N([(0,P.property)()],_.prototype,"uiLocale",void 0);N([(0,ye.jsonProperty)(null)],_.prototype,"availableUiLocales",void 0);N([(0,ye.jsonProperty)(null)],_.prototype,"metadataConfiguration",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"editorMode",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"noCustom",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"openExternalDocumentInNewTab",void 0);N([(0,P.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],_.prototype,"noCustomComponent",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"withManualResources",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"navigatorOnline",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"forcedOffline",void 0);N([(0,P.property)({type:Boolean})],_.prototype,"authenticationRequired",void 0);N([(0,ye.jsonProperty)([])],_.prototype,"messageContexts",void 0);N([(0,ye.jsonProperty)(void 0)],_.prototype,"session",void 0);var ji=m(C());var Hi={"ft-app-context":_};(0,ji.customElements)(Hi);var Wt=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?zt:Le}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,s)=>{let i=s;return o=>({context:this.name,key:i,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(n,s)=>(...i)=>this.service.resolveMessage(this.name,s,...i)}),this.rawMessages=new Proxy({},{get:(n,s)=>this.service.resolveRawMessage(this.name,s)}),this.keys=new Proxy({},{get:(n,s)=>()=>s}),this.attributes=new Proxy({},{get:(n,s)=>()=>({context:this.name,key:s,message:this.service.resolveRawMessage(this.name,s)})})}};var Ue=m(C());var Ki=m(V());var Jr=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-]+$/)}},Vi=new Jr;var ba=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},_a=Symbol("i18nAttributes"),xa=Symbol("i18nListAttributes"),qi=Symbol("i18nProperties"),Gt=Symbol("i18nContexts"),et=Symbol("i18nUnsubs"),Xt=(0,Ue.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(i){return i??this.useCustomMessageContexts?zt:Le}i18n(i){let{context:o,key:a,message:c}=i,{custom:l,args:u,argsProvider:d}=i;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,l);let f=u??(d?d(this):[]);return this.getI18nService(l).resolveMessage(o,a,...f)}return c}async awaitI18n(i){let{context:o,custom:a}=i;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(i)}customI18n(i,o){if(Vi.isI18nKey(i)){let[a,c]=i.split(".");return this.i18n({custom:!0,context:a,key:c,...o})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((o,a,c)=>i.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((o,a,c)=>{var l;return((l=c?.context)===null||l===void 0?void 0:l.toLowerCase())===i}),this.updateI18nProperties(o=>o.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var o,a;let c=this,l=(u,d,f)=>f?.context&&f.key&&i(u,d,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(o=this[_a])===null||o===void 0||o.forEach((u,d)=>c[d]=l(u,d,c[d])),(a=this[xa])===null||a===void 0||a.forEach((u,d)=>{var f;return c[d]=(f=c[d])===null||f===void 0?void 0:f.map(g=>l(u,d,g))})}updateI18nProperties(i){var o;(o=this[qi])===null||o===void 0||o.forEach((a,c)=>{i(a,c)&&(this[c]=this.i18n(a))})}addI18nMessages(i,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,o,a)}addI18nContext(i,o,a){let c=(typeof i=="string"?i:i.name).toLowerCase();a=typeof i=="string"?a:i.custom,this[Gt].set(c,{isCustomContext:a}),this[et].has(c)||this[et].set(c,this.getI18nService(a).subscribe(c,()=>this.onI18nUpdate(c))),this.getI18nService(a).prepareContext(c,o)}hasI18nContext(i){return this[Gt].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Gt].forEach((i,o)=>this.addI18nContext(o,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[et].forEach(i=>i()),this[et].clear()}}return t=Gt,r=et,ba([(0,Ki.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),zi=class extends Xt(Ue.FtLitElement){},Yt=class extends Xt(Ue.FtLitElementRedux){};var Wi=m(X());var Gi=Wi.css`
|
|
110
|
+
`;var Jt=m(X()),Qt=m(V()),Zt=m(C());var tt=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},K=class extends Yt{constructor(){super(),this.editorMode=!1,this.addStore(y)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Jt.nothing:Jt.html`
|
|
111
111
|
<span class="ft-i18n">
|
|
112
112
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
113
113
|
</span>
|
|
114
|
-
`}update(
|
|
114
|
+
`}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:""})}};K.elementDefinitions={};K.styles=Gi;tt([(0,Zt.redux)()],K.prototype,"editorMode",void 0);tt([(0,Qt.property)()],K.prototype,"context",void 0);tt([(0,Qt.property)()],K.prototype,"key",void 0);tt([(0,Zt.jsonProperty)([])],K.prototype,"args",void 0);tt([(0,Qt.property)()],K.prototype,"defaultMessage",void 0);var Xi=m(C());var Yi={"ft-i18n":K};(0,Xi.customElements)(Yi);var Qr=Wt.build("readerPageTitle"),Ji={pageTitle:"Page title"};var er=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Y=class extends Xt(rt){constructor(){super(),this.target="current",this.editorMode=!1,this.addStore(y),this.addI18nContext(Qr,Ji)}render(){var t,r;let n=(r=(t=this.targetPage)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:this.editorMode?Qr.messages.pageTitle():void 0;return n?tr.html`<ft-typography variant="title" part="text">${n}</ft-typography>`:tr.nothing}update(t){var r;if(super.update(t),t.has("currentPage")||t.has("target")){let n=this.computeOffset(this.target);if(this.currentPage&&n!=0){let s=this.currentPage.number+n;(r=this.stateManager)===null||r===void 0||r.getPage(s).then(i=>{i.number==s?this.targetPage=i:this.targetPage=void 0})}else this.targetPage=this.currentPage}}computeOffset(t){switch(t){case"next":return 1;case"previous":return-1;default:return 0}}};Y.styles=an;Y.elementDefinitions={"ft-typography":Q};er([(0,rr.property)()],Y.prototype,"target",void 0);er([(0,Zr.redux)({store:"reader"})],Y.prototype,"currentPage",void 0);er([(0,rr.state)()],Y.prototype,"targetPage",void 0);er([(0,Zr.redux)({store:y.name})],Y.prototype,"editorMode",void 0);var Qi={"ft-reader-page-title":Y};(0,Zi.customElements)(Qi);})();
|
|
115
115
|
/*! Bundled license information:
|
|
116
116
|
|
|
117
117
|
lit-html/lit-html.js:
|