@fluid-topics/ft-tooltip 2.1.17 → 2.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-tooltip.light.js +77 -77
- package/build/ft-tooltip.min.js +14 -14
- package/package.json +5 -5
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Bn=/'/g,Vn=/"/g,qn=/^(?:script|style|textarea|title)$/i,Dr=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Gn=Dr(1),Yn=Dr(2),Xn=Dr(3),mt=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),zn=new WeakMap,Ce=Te.createTreeWalker(Te,129);function Jn(t,e){if(!Nr(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return $n!==void 0?$n.createHTML(e):e}var ca=(t,e)=>{let r=t.length-1,n=[],i,s=e===2?"<svg>":e===3?"<math>":"",o=pt;for(let a=0;a<r;a++){let c=t[a],u,l,d=-1,f=0;for(;f<c.length&&(o.lastIndex=f,l=o.exec(c),l!==null);)f=o.lastIndex,o===pt?l[1]==="!--"?o=jn:l[1]!==void 0?o=Hn:l[2]!==void 0?(qn.test(l[2])&&(i=RegExp("</"+l[2],"g")),o=we):l[3]!==void 0&&(o=we):o===we?l[0]===">"?(o=i??pt,d=-1):l[1]===void 0?d=-2:(d=o.lastIndex-l[2].length,u=l[1],o=l[3]===void 0?we:l[3]==='"'?Vn:Bn):o===Vn||o===Bn?o=we:o===jn||o===Hn?o=pt:(o=we,i=void 0);let p=o===we&&t[a+1].startsWith("/>")?" ":"";s+=o===pt?c+oa:d>=0?(n.push(u),c.slice(0,d)+Wn+c.slice(d)+pe+p):c+pe+(d===-2?a:p)}return[Jn(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},yt=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,a=e.length-1,c=this.parts,[u,l]=ca(e,r);if(this.el=t.createElement(u,n),Ce.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=Ce.nextNode())!==null&&c.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(Wn)){let f=l[o++],p=i.getAttribute(d).split(pe),h=/([.?@])?(.*)/.exec(f);c.push({type:1,index:s,name:h[2],strings:p,ctor:h[1]==="."?_r:h[1]==="?"?Ir:h[1]==="@"?Pr:je}),i.removeAttribute(d)}else d.startsWith(pe)&&(c.push({type:6,index:s}),i.removeAttribute(d));if(qn.test(i.tagName)){let d=i.textContent.split(pe),f=d.length-1;if(f>0){i.textContent=Ft?Ft.emptyScript:"";for(let p=0;p<f;p++)i.append(d[p],$t()),Ce.nextNode(),c.push({type:2,index:++s});i.append(d[f],$t())}}}else if(i.nodeType===8)if(i.data===Kn)c.push({type:2,index:s});else{let d=-1;for(;(d=i.data.indexOf(pe,d+1))!==-1;)c.push({type:7,index:s}),d+=pe.length-1}s++}}static createElement(e,r){let n=Te.createElement("template");return n.innerHTML=e,n}};function $e(t,e,r=t,n){if(e===mt)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=ht(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=$e(t,i._$AS(t,e.values),i,n)),e}var Rr=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??Te).importNode(r,!0);Ce.currentNode=i;let s=Ce.nextNode(),o=0,a=0,c=n[0];for(;c!==void 0;){if(o===c.index){let u;c.type===2?u=new jt(s,s.nextSibling,this,e):c.type===1?u=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(u=new Lr(s,this,e)),this._$AV.push(u),c=n[++a]}o!==c?.index&&(s=Ce.nextNode(),o++)}return Ce.currentNode=Te,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++}},jt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=P,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=$e(this,e,r),ht(e)?e===P||e==null||e===""?(this._$AH!==P&&this._$AR(),this._$AH=P):e!==this._$AH&&e!==mt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):aa(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!==P&&ht(this._$AH)?this._$AA.nextSibling.data=e:this.T(Te.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=yt.createElement(Jn(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new Rr(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=zn.get(e.strings);return r===void 0&&zn.set(e.strings,r=new yt(e)),r}k(e){Nr(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($t()),this.O($t()),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=Fn(e).nextSibling;Fn(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},je=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,s){this.type=1,this._$AH=P,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=P}_$AI(e,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)e=$e(this,e,r,0),o=!ht(e)||e!==this._$AH&&e!==mt,o&&(this._$AH=e);else{let a=e,c,u;for(e=s[0],c=0;c<s.length-1;c++)u=$e(this,a[n+c],r,c),u===mt&&(u=this._$AH[c]),o||=!ht(u)||u!==this._$AH[c],u===P?e=P:e!==P&&(e+=(u??"")+s[c+1]),this._$AH[c]=u}o&&!i&&this.j(e)}j(e){e===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},_r=class extends je{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===P?void 0:e}},Ir=class extends je{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==P)}},Pr=class extends je{constructor(e,r,n,i,s){super(e,r,n,i,s),this.type=5}_$AI(e,r=this){if((e=$e(this,e,r,0)??P)===mt)return;let n=this._$AH,i=e===P&&n!==P||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==P&&(n===P||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)}},Lr=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){$e(this,e)}};var ua=kr.litHtmlPolyfillSupport;ua?.(yt,jt),(kr.litHtmlVersions??=[]).push("3.3.3");var Zn=Symbol.for(""),la=t=>{if(t?.r===Zn)return t?._$litStatic$},Mr=t=>({_$litStatic$:t,r:Zn});var Qn=new Map,Ur=t=>(e,...r)=>{let n=r.length,i,s,o=[],a=[],c,u=0,l=!1;for(;u<n;){for(c=e[u];u<n&&(s=r[u],(i=la(s))!==void 0);)c+=i+e[++u],l=!0;u!==n&&a.push(s),o.push(c),u++}if(u===n&&o.push(e[n]),l){let d=o.join("$$lit$$");(e=Qn.get(d))===void 0&&(o.raw=o,Qn.set(d,e=o)),r=a}return t(e,...r)},Fr=Ur(Gn),Dc=Ur(Yn),Mc=Ur(Xn);var $r=E(ee()),pi=E(T());var He;(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"})(He||(He={}));var V=E(ie()),y=E(T()),ei=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.titleFont),se=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.contentFont),A={fontFamily:se,fontSize:y.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:y.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:y.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:y.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:y.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Be={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ei),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit")},Ve={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ei),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit")},ze={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",se),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit")},We={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",se),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit")},Ke={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",se),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit")},qe={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",se),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit")},Ge={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",se),fontSize:y.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit")},Ye={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",se),fontSize:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit")},Xe={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",se),fontSize:y.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase")},Je={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-button-font-family","",se),fontSize:y.FtCssVariableFactory.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase")},ti=V.css`
|
|
1
|
+
"use strict";(()=>{var ta=Object.create;var Nn=Object.defineProperty;var ea=Object.getOwnPropertyDescriptor;var ra=Object.getOwnPropertyNames;var na=Object.getPrototypeOf,ia=Object.prototype.hasOwnProperty;var Tr=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var sa=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ra(t))!ia.call(e,i)&&i!==r&&Nn(e,i,{get:()=>t[i],enumerable:!(n=ea(t,i))||n.enumerable});return e};var E=(e,t,r)=>(r=e!=null?ta(na(e)):{},sa(t||!e||!e.__esModule?Nn(r,"default",{value:e,enumerable:!0}):r,e));var T=Tr((Ic,Dn)=>{Dn.exports=ftGlobals.wcUtils});var it=Tr((Pc,Mn)=>{Mn.exports=ftGlobals.lit});var tt=Tr((Lc,Un)=>{Un.exports=ftGlobals.litDecorators});var Zo=E(T());var Jo=E(it()),G=E(tt()),q=E(T());var kr=globalThis,Fn=e=>e,Fe=kr.trustedTypes,$n=Fe?Fe.createPolicy("lit-html",{createHTML:e=>e}):void 0,Wn="$lit$",pt=`lit$${Math.random().toFixed(9).slice(2)}$`,Kn="?"+pt,oa=`<${Kn}>`,Tt=document,$e=()=>Tt.createComment(""),he=e=>e===null||typeof e!="object"&&typeof e!="function",Nr=Array.isArray,aa=e=>Nr(e)||typeof e?.[Symbol.iterator]=="function",Or=`[
|
|
2
|
+
\f\r]`,pe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jn=/-->/g,Hn=/>/g,wt=RegExp(`>|${Or}(?:([^\\s"'>=/]+)(${Or}*=${Or}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Bn=/'/g,Vn=/"/g,qn=/^(?:script|style|textarea|title)$/i,Dr=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Gn=Dr(1),Yn=Dr(2),Xn=Dr(3),me=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),zn=new WeakMap,Ct=Tt.createTreeWalker(Tt,129);function Jn(e,t){if(!Nr(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return $n!==void 0?$n.createHTML(t):t}var ca=(e,t)=>{let r=e.length-1,n=[],i,s=t===2?"<svg>":t===3?"<math>":"",o=pe;for(let a=0;a<r;a++){let c=e[a],u,l,d=-1,f=0;for(;f<c.length&&(o.lastIndex=f,l=o.exec(c),l!==null);)f=o.lastIndex,o===pe?l[1]==="!--"?o=jn:l[1]!==void 0?o=Hn:l[2]!==void 0?(qn.test(l[2])&&(i=RegExp("</"+l[2],"g")),o=wt):l[3]!==void 0&&(o=wt):o===wt?l[0]===">"?(o=i??pe,d=-1):l[1]===void 0?d=-2:(d=o.lastIndex-l[2].length,u=l[1],o=l[3]===void 0?wt:l[3]==='"'?Vn:Bn):o===Vn||o===Bn?o=wt:o===jn||o===Hn?o=pe:(o=wt,i=void 0);let p=o===wt&&e[a+1].startsWith("/>")?" ":"";s+=o===pe?c+oa:d>=0?(n.push(u),c.slice(0,d)+Wn+c.slice(d)+pt+p):c+pt+(d===-2?a:p)}return[Jn(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},ye=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,a=t.length-1,c=this.parts,[u,l]=ca(t,r);if(this.el=e.createElement(u,n),Ct.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=Ct.nextNode())!==null&&c.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(Wn)){let f=l[o++],p=i.getAttribute(d).split(pt),h=/([.?@])?(.*)/.exec(f);c.push({type:1,index:s,name:h[2],strings:p,ctor:h[1]==="."?_r:h[1]==="?"?Ir:h[1]==="@"?Pr:jt}),i.removeAttribute(d)}else d.startsWith(pt)&&(c.push({type:6,index:s}),i.removeAttribute(d));if(qn.test(i.tagName)){let d=i.textContent.split(pt),f=d.length-1;if(f>0){i.textContent=Fe?Fe.emptyScript:"";for(let p=0;p<f;p++)i.append(d[p],$e()),Ct.nextNode(),c.push({type:2,index:++s});i.append(d[f],$e())}}}else if(i.nodeType===8)if(i.data===Kn)c.push({type:2,index:s});else{let d=-1;for(;(d=i.data.indexOf(pt,d+1))!==-1;)c.push({type:7,index:s}),d+=pt.length-1}s++}}static createElement(t,r){let n=Tt.createElement("template");return n.innerHTML=t,n}};function $t(e,t,r=e,n){if(t===me)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=he(t)?void 0:t._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=$t(e,i._$AS(e,t.values),i,n)),t}var Rr=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??Tt).importNode(r,!0);Ct.currentNode=i;let s=Ct.nextNode(),o=0,a=0,c=n[0];for(;c!==void 0;){if(o===c.index){let u;c.type===2?u=new je(s,s.nextSibling,this,t):c.type===1?u=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(u=new Lr(s,this,t)),this._$AV.push(u),c=n[++a]}o!==c?.index&&(s=Ct.nextNode(),o++)}return Ct.currentNode=Tt,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},je=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=$t(this,t,r),he(t)?t===P||t==null||t===""?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==me&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):aa(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!==P&&he(this._$AH)?this._$AA.nextSibling.data=t:this.T(Tt.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=ye.createElement(Jn(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new Rr(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=zn.get(t.strings);return r===void 0&&zn.set(t.strings,r=new ye(t)),r}k(t){Nr(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of t)i===r.length?r.push(n=new e(this.O($e()),this.O($e()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=Fn(t).nextSibling;Fn(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},jt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,s){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,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=P}_$AI(t,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)t=$t(this,t,r,0),o=!he(t)||t!==this._$AH&&t!==me,o&&(this._$AH=t);else{let a=t,c,u;for(t=s[0],c=0;c<s.length-1;c++)u=$t(this,a[n+c],r,c),u===me&&(u=this._$AH[c]),o||=!he(u)||u!==this._$AH[c],u===P?t=P:t!==P&&(t+=(u??"")+s[c+1]),this._$AH[c]=u}o&&!i&&this.j(t)}j(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},_r=class extends jt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===P?void 0:t}},Ir=class extends jt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==P)}},Pr=class extends jt{constructor(t,r,n,i,s){super(t,r,n,i,s),this.type=5}_$AI(t,r=this){if((t=$t(this,t,r,0)??P)===me)return;let n=this._$AH,i=t===P&&n!==P||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==P&&(n===P||i);i&&this.element.removeEventListener(this.name,this,n),s&&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)}},Lr=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){$t(this,t)}};var ua=kr.litHtmlPolyfillSupport;ua?.(ye,je),(kr.litHtmlVersions??=[]).push("3.3.3");var Zn=Symbol.for(""),la=e=>{if(e?.r===Zn)return e?._$litStatic$},Mr=e=>({_$litStatic$:e,r:Zn});var Qn=new Map,Ur=e=>(t,...r)=>{let n=r.length,i,s,o=[],a=[],c,u=0,l=!1;for(;u<n;){for(c=t[u];u<n&&(s=r[u],(i=la(s))!==void 0);)c+=i+t[++u],l=!0;u!==n&&a.push(s),o.push(c),u++}if(u===n&&o.push(t[n]),l){let d=o.join("$$lit$$");(t=Qn.get(d))===void 0&&(o.raw=o,Qn.set(d,t=o)),r=a}return e(t,...r)},Fr=Ur(Gn),Dc=Ur(Yn),Mc=Ur(Xn);var $r=E(tt()),pi=E(T());var Ht;(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"})(Ht||(Ht={}));var V=E(it()),y=E(T()),ti=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.titleFont),st=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.contentFont),A={fontFamily:st,fontSize:y.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:y.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:y.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:y.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:y.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Bt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ti),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit")},Vt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ti),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit")},zt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",st),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit")},Wt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",st),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit")},Kt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",st),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit")},qt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",st),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit")},Gt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",st),fontSize:y.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit")},Yt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",st),fontSize:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit")},Xt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",st),fontSize:y.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase")},Jt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-button-font-family","",st),fontSize:y.FtCssVariableFactory.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase")},ei=V.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
|
-
font-family: ${
|
|
6
|
-
font-size: ${
|
|
7
|
-
font-weight: ${
|
|
8
|
-
letter-spacing: ${
|
|
9
|
-
line-height: ${
|
|
10
|
-
text-transform: ${
|
|
5
|
+
font-family: ${Bt.fontFamily};
|
|
6
|
+
font-size: ${Bt.fontSize};
|
|
7
|
+
font-weight: ${Bt.fontWeight};
|
|
8
|
+
letter-spacing: ${Bt.letterSpacing};
|
|
9
|
+
line-height: ${Bt.lineHeight};
|
|
10
|
+
text-transform: ${Bt.textTransform};
|
|
11
11
|
}
|
|
12
12
|
`,ri=V.css`
|
|
13
13
|
.ft-typography--title-dense {
|
|
14
|
-
font-family: ${
|
|
15
|
-
font-size: ${
|
|
16
|
-
font-weight: ${
|
|
17
|
-
letter-spacing: ${
|
|
18
|
-
line-height: ${
|
|
19
|
-
text-transform: ${
|
|
14
|
+
font-family: ${Vt.fontFamily};
|
|
15
|
+
font-size: ${Vt.fontSize};
|
|
16
|
+
font-weight: ${Vt.fontWeight};
|
|
17
|
+
letter-spacing: ${Vt.letterSpacing};
|
|
18
|
+
line-height: ${Vt.lineHeight};
|
|
19
|
+
text-transform: ${Vt.textTransform};
|
|
20
20
|
}
|
|
21
21
|
`,ni=V.css`
|
|
22
22
|
.ft-typography--subtitle1 {
|
|
23
|
-
font-family: ${
|
|
24
|
-
font-size: ${
|
|
25
|
-
font-weight: ${
|
|
26
|
-
letter-spacing: ${
|
|
27
|
-
line-height: ${
|
|
28
|
-
text-transform: ${
|
|
23
|
+
font-family: ${zt.fontFamily};
|
|
24
|
+
font-size: ${zt.fontSize};
|
|
25
|
+
font-weight: ${zt.fontWeight};
|
|
26
|
+
letter-spacing: ${zt.letterSpacing};
|
|
27
|
+
line-height: ${zt.lineHeight};
|
|
28
|
+
text-transform: ${zt.textTransform};
|
|
29
29
|
}
|
|
30
30
|
`,ii=V.css`
|
|
31
31
|
.ft-typography--subtitle2 {
|
|
32
|
-
font-family: ${
|
|
33
|
-
font-size: ${
|
|
34
|
-
font-weight: ${
|
|
35
|
-
letter-spacing: ${
|
|
36
|
-
line-height: ${
|
|
37
|
-
text-transform: ${
|
|
32
|
+
font-family: ${Wt.fontFamily};
|
|
33
|
+
font-size: ${Wt.fontSize};
|
|
34
|
+
font-weight: ${Wt.fontWeight};
|
|
35
|
+
letter-spacing: ${Wt.letterSpacing};
|
|
36
|
+
line-height: ${Wt.lineHeight};
|
|
37
|
+
text-transform: ${Wt.textTransform};
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
`,si=V.css`
|
|
41
41
|
.ft-typography--body1 {
|
|
42
|
-
font-family: ${
|
|
43
|
-
font-size: ${
|
|
44
|
-
font-weight: ${
|
|
45
|
-
letter-spacing: ${
|
|
46
|
-
line-height: ${
|
|
47
|
-
text-transform: ${
|
|
42
|
+
font-family: ${Kt.fontFamily};
|
|
43
|
+
font-size: ${Kt.fontSize};
|
|
44
|
+
font-weight: ${Kt.fontWeight};
|
|
45
|
+
letter-spacing: ${Kt.letterSpacing};
|
|
46
|
+
line-height: ${Kt.lineHeight};
|
|
47
|
+
text-transform: ${Kt.textTransform};
|
|
48
48
|
}
|
|
49
49
|
`,oi=V.css`
|
|
50
50
|
.ft-typography--body2 {
|
|
51
|
-
font-family: ${
|
|
52
|
-
font-size: ${
|
|
53
|
-
font-weight: ${
|
|
54
|
-
letter-spacing: ${
|
|
55
|
-
line-height: ${
|
|
56
|
-
text-transform: ${
|
|
51
|
+
font-family: ${qt.fontFamily};
|
|
52
|
+
font-size: ${qt.fontSize};
|
|
53
|
+
font-weight: ${qt.fontWeight};
|
|
54
|
+
letter-spacing: ${qt.letterSpacing};
|
|
55
|
+
line-height: ${qt.lineHeight};
|
|
56
|
+
text-transform: ${qt.textTransform};
|
|
57
57
|
}
|
|
58
58
|
`,ai=V.css`
|
|
59
59
|
.ft-typography--caption {
|
|
60
|
-
font-family: ${
|
|
61
|
-
font-size: ${
|
|
62
|
-
font-weight: ${
|
|
63
|
-
letter-spacing: ${
|
|
64
|
-
line-height: ${
|
|
65
|
-
text-transform: ${
|
|
60
|
+
font-family: ${Gt.fontFamily};
|
|
61
|
+
font-size: ${Gt.fontSize};
|
|
62
|
+
font-weight: ${Gt.fontWeight};
|
|
63
|
+
letter-spacing: ${Gt.letterSpacing};
|
|
64
|
+
line-height: ${Gt.lineHeight};
|
|
65
|
+
text-transform: ${Gt.textTransform};
|
|
66
66
|
}
|
|
67
67
|
`,ci=V.css`
|
|
68
68
|
.ft-typography--breadcrumb {
|
|
69
|
-
font-family: ${
|
|
70
|
-
font-size: ${
|
|
71
|
-
font-weight: ${
|
|
72
|
-
letter-spacing: ${
|
|
73
|
-
line-height: ${
|
|
74
|
-
text-transform: ${
|
|
69
|
+
font-family: ${Yt.fontFamily};
|
|
70
|
+
font-size: ${Yt.fontSize};
|
|
71
|
+
font-weight: ${Yt.fontWeight};
|
|
72
|
+
letter-spacing: ${Yt.letterSpacing};
|
|
73
|
+
line-height: ${Yt.lineHeight};
|
|
74
|
+
text-transform: ${Yt.textTransform};
|
|
75
75
|
}
|
|
76
76
|
`,ui=V.css`
|
|
77
77
|
.ft-typography--overline {
|
|
78
|
-
font-family: ${
|
|
79
|
-
font-size: ${
|
|
80
|
-
font-weight: ${
|
|
81
|
-
letter-spacing: ${
|
|
82
|
-
line-height: ${
|
|
83
|
-
text-transform: ${
|
|
78
|
+
font-family: ${Xt.fontFamily};
|
|
79
|
+
font-size: ${Xt.fontSize};
|
|
80
|
+
font-weight: ${Xt.fontWeight};
|
|
81
|
+
letter-spacing: ${Xt.letterSpacing};
|
|
82
|
+
line-height: ${Xt.lineHeight};
|
|
83
|
+
text-transform: ${Xt.textTransform};
|
|
84
84
|
}
|
|
85
85
|
`,li=V.css`
|
|
86
86
|
.ft-typography--button {
|
|
87
|
-
font-family: ${
|
|
88
|
-
font-size: ${
|
|
89
|
-
font-weight: ${
|
|
90
|
-
letter-spacing: ${
|
|
91
|
-
line-height: ${
|
|
92
|
-
text-transform: ${
|
|
87
|
+
font-family: ${Jt.fontFamily};
|
|
88
|
+
font-size: ${Jt.fontSize};
|
|
89
|
+
font-weight: ${Jt.fontWeight};
|
|
90
|
+
letter-spacing: ${Jt.letterSpacing};
|
|
91
|
+
line-height: ${Jt.lineHeight};
|
|
92
|
+
text-transform: ${Jt.textTransform};
|
|
93
93
|
}
|
|
94
94
|
`,di=V.css`
|
|
95
95
|
.ft-typography {
|
|
96
96
|
vertical-align: inherit;
|
|
97
97
|
}
|
|
98
|
-
`;var fi=function(t,
|
|
98
|
+
`;var fi=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ot=class extends pi.FtLitElement{constructor(){super(...arguments),this.variant=Ht.body1}render(){return this.element?Fr`
|
|
99
99
|
<${Mr(this.element)}
|
|
100
100
|
part="text"
|
|
101
101
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
</${Mr(this.element)}>
|
|
104
104
|
`:Fr`
|
|
105
105
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
106
|
-
`}};
|
|
106
|
+
`}};ot.styles=[ei,ri,ni,ii,si,oi,ai,ci,ui,li,di];fi([(0,$r.property)()],ot.prototype,"element",void 0);fi([(0,$r.property)()],ot.prototype,"variant",void 0);var mi=E(T());var hi={"ft-typography":ot};(0,mi.customElements)(hi);var yi=E(it()),ht=E(T()),ge={distance:ht.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:ht.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:ht.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:ht.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",ht.designSystemVariables.borderRadiusS),maxWidth:ht.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},gi=yi.css`
|
|
107
107
|
.ft-tooltip--container {
|
|
108
108
|
display: block;
|
|
109
109
|
}
|
|
@@ -121,28 +121,28 @@
|
|
|
121
121
|
box-sizing: border-box;
|
|
122
122
|
overflow: hidden;
|
|
123
123
|
width: max-content;
|
|
124
|
-
max-width: ${
|
|
124
|
+
max-width: ${ge.maxWidth};
|
|
125
125
|
text-align: center;
|
|
126
|
-
padding: ${
|
|
126
|
+
padding: ${ge.distance};
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
.ft-tooltip--content {
|
|
130
130
|
padding: 4px 8px;
|
|
131
|
-
border-radius: ${
|
|
132
|
-
background-color: ${
|
|
133
|
-
color: ${
|
|
131
|
+
border-radius: ${ge.borderRadiusS};
|
|
132
|
+
background-color: ${ge.backgroundColor};
|
|
133
|
+
color: ${ge.color};
|
|
134
134
|
position: relative;
|
|
135
135
|
word-break: break-word;
|
|
136
136
|
}
|
|
137
|
-
`;var bi=["top","right","bottom","left"],vi=["start","end"],Hr=bi.reduce((t,e)=>t.concat(e,e+"-"+vi[0],e+"-"+vi[1]),[]),vt=Math.min,me=Math.max,bt=Math.round;var te=t=>({x:t,y:t}),da={left:"right",right:"left",bottom:"top",top:"bottom"};function Ai(t,e,r){return me(t,vt(e,r))}function Ht(t,e){return typeof t=="function"?t(e):t}function At(t){return t.split("-")[0]}function ye(t){return t.split("-")[1]}function Br(t){return t==="x"?"y":"x"}function Vr(t){return t==="y"?"height":"width"}function Bt(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function zr(t){return Br(Bt(t))}function xi(t,e,r){r===void 0&&(r=!1);let n=ye(t),i=zr(t),s=Vr(i),o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=jr(o)),[o,jr(o)]}function Si(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function jr(t){let e=At(t);return da[e]+t.slice(e.length)}function fa(t){var e,r,n,i;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(n=t.bottom)!=null?n:0,left:(i=t.left)!=null?i:0}}function Ei(t){return typeof t!="number"?fa(t):{top:t,right:t,bottom:t,left:t}}function Oe(t){let{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function wi(t,e,r){let{reference:n,floating:i}=t,s=Bt(e),o=zr(e),a=Vr(o),c=At(e),u=s==="y",l=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,f=n[a]/2-i[a]/2,p;switch(c){case"top":p={x:l,y:n.y-i.height};break;case"bottom":p={x:l,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-i.width,y:d};break;default:p={x:n.x,y:n.y}}let h=ye(e);return h&&(p[o]+=f*(h==="end"?1:-1)*(r&&u?-1:1)),p}async function Ci(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:s,rects:o,elements:a,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ht(e,t),h=Ei(p),g=a[f?d==="floating"?"reference":"floating":d],v=Oe(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(g)))==null||r?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:l,strategy:c})),b=d==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(x))&&await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1},I=Oe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:c}):b);return{top:(v.top-I.top+h.top)/S.y,bottom:(I.bottom-v.bottom+h.bottom)/S.y,left:(v.left-I.left+h.left)/S.x,right:(I.right-v.right+h.right)/S.x}}var pa=50,Ti=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:Ci},c=await(o.isRTL==null?void 0:o.isRTL(e)),u=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:l,y:d}=wi(u,n,c),f=n,p=0,h={};for(let m=0;m<s.length;m++){let g=s[m];if(!g)continue;let{name:v,fn:b}=g,{x,y:S,data:I,reset:R}=await b({x:l,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:h,rects:u,platform:a,elements:{reference:t,floating:e}});l=x??l,d=S??d,h[v]={...h[v],...I},R&&p<pa&&(p++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(u=R.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):R.rects),{x:l,y:d}=wi(u,f,c)),m=-1)}return{x:l,y:d,placement:f,strategy:i,middlewareData:h}};function ha(t,e,r){return(t?[...r.filter(i=>ye(i)===t),...r.filter(i=>ye(i)!==t)]:r.filter(i=>At(i)===i)).filter(i=>t?ye(i)===t||(e?Si(i)!==i:!1):!0)}var Oi=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:s,middlewareData:o,placement:a,platform:c,elements:u}=e,{crossAxis:l=!1,alignment:d,allowedPlacements:f=Hr,autoAlignment:p=!0,...h}=Ht(t,e),m=d!==void 0||f===Hr?ha(d||null,p,f):f,g=((r=o.autoPlacement)==null?void 0:r.index)||0,v=m[g];if(v==null)return{};if(a!==v)return{reset:{placement:m[0]}};let b=await c.detectOverflow(e,h),x=xi(v,s,await(c.isRTL==null?void 0:c.isRTL(u.floating))),S=[b[At(v)],b[x[0]],b[x[1]]],I=[...((n=o.autoPlacement)==null?void 0:n.overflows)||[],{placement:v,overflows:S}],R=m[g+1];if(R)return{data:{index:g+1,overflows:I},reset:{placement:R}};let de=I.map(U=>{let B=ye(U.placement);return[U.placement,B&&l?U.overflows.slice(0,2).reduce((F,Ee)=>F+Ee,0):U.overflows[0],U.overflows]}).sort((U,B)=>U[1]-B[1]),fe=((i=de.filter(U=>U[2].slice(0,ye(U[0])?2:3).every(B=>B<=0))[0])==null?void 0:i[0])||de[0][0];return fe!==a?{data:{index:g+1,overflows:I},reset:{placement:fe}}:{}}}};var Ri=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:b=>{let{x,y:S}=b;return{x,y:S}}},...u}=Ht(t,e),l={x:r,y:n},d=await s.detectOverflow(e,u),f=Bt(i),p=Br(f),h=l[p],m=l[f],g=(b,x)=>Ai(x+d[b==="y"?"top":"left"],x,x-d[b==="y"?"bottom":"right"]);o&&(h=g(p,h)),a&&(m=g(f,m));let v=c.fn({...e,[p]:h,[f]:m});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[p]:o,[f]:a}}}}}};function zt(){return typeof window<"u"}function _e(t){return Ii(t)?(t.nodeName||"").toLowerCase():"#document"}function M(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ae(t){var e;return(e=(Ii(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ii(t){return zt()?t instanceof Node||t instanceof M(t).Node:!1}function Y(t){return zt()?t instanceof Element||t instanceof M(t).Element:!1}function ce(t){return zt()?t instanceof HTMLElement||t instanceof M(t).HTMLElement:!1}function _i(t){return!zt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof M(t).ShadowRoot}function xt(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=X(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&i!=="inline"&&i!=="contents"}function Pi(t){return/^(table|td|th)$/.test(_e(t))}function St(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var ma=/transform|translate|scale|rotate|perspective|filter/,ya=/paint|layout|strict|content/,Re=t=>!!t&&t!=="none",Wr;function Qe(t){let e=Y(t)?X(t):t;return Re(e.transform)||Re(e.translate)||Re(e.scale)||Re(e.rotate)||Re(e.perspective)||!Wt()&&(Re(e.backdropFilter)||Re(e.filter))||ma.test(e.willChange||"")||ya.test(e.contain||"")}function Li(t){let e=ge(t);for(;ce(e)&&!Ze(e);){if(Qe(e))return e;if(St(e))return null;e=ge(e)}return null}function Wt(){return Wr==null&&(Wr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Wr}function Ze(t){return/^(html|body|#document)$/.test(_e(t))}function X(t){return M(t).getComputedStyle(t)}function Et(t){return Y(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ge(t){if(_e(t)==="html")return t;let e=t.assignedSlot||t.parentNode||_i(t)&&t.host||ae(t);return _i(e)?e.host:e}function ki(t){let e=ge(t);return Ze(e)?(t.ownerDocument||t).body:ce(e)&&xt(e)?e:ki(e)}function Vt(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=ki(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),o=M(i);if(s){let a=Kt(o);return e.concat(o,o.visualViewport||[],xt(i)?i:[],a&&r?Vt(a):[])}else return e.concat(i,Vt(i,[],r))}function Kt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Mi(t){let e=X(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=ce(t),s=i?t.offsetWidth:r,o=i?t.offsetHeight:n,a=bt(r)!==s||bt(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function Ui(t){return Y(t)?t:t.contextElement}function et(t){let e=Ui(t);if(!ce(e))return te(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:s}=Mi(e),o=(s?bt(r.width):r.width)/n,a=(s?bt(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var ga=te(0);function Fi(t){let e=M(t);return!Wt()||!e.visualViewport?ga:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function va(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===M(t)}function wt(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),s=Ui(t),o=te(1);e&&(n?Y(n)&&(o=et(n)):o=et(t));let a=va(s,r,n)?Fi(s):te(0),c=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,l=i.width/o.x,d=i.height/o.y;if(s&&n){let f=M(s),p=Y(n)?M(n):n,h=f,m=Kt(h);for(;m&&p!==h;){let g=et(m),v=m.getBoundingClientRect(),b=X(m),x=v.left+(m.clientLeft+parseFloat(b.paddingLeft))*g.x,S=v.top+(m.clientTop+parseFloat(b.paddingTop))*g.y;c*=g.x,u*=g.y,l*=g.x,d*=g.y,c+=x,u+=S,h=M(m),m=Kt(h)}}return Oe({width:l,height:d,x:c,y:u})}function qt(t,e){let r=Et(t).scrollLeft;return e?e.left+r:wt(ae(t)).left+r}function $i(t,e){let r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-qt(t,r),i=r.top+e.scrollTop;return{x:n,y:i}}function ba(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t,s=i==="fixed",o=ae(n),a=e?St(e.floating):!1;if(n===o||a&&s)return r;let c={scrollLeft:0,scrollTop:0},u=te(1),l=te(0),d=ce(n);if((d||!s)&&((_e(n)!=="body"||xt(o))&&(c=Et(n)),d)){let p=wt(n);u=et(n),l.x=p.x+n.clientLeft,l.y=p.y+n.clientTop}let f=o&&!d&&!s?$i(o,c):te(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+l.x+f.x,y:r.y*u.y-c.scrollTop*u.y+l.y+f.y}}function Aa(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function xa(t){let e=Et(t),r=t.ownerDocument.body,n=me(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=me(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+qt(t),o=-e.scrollTop;return X(r).direction==="rtl"&&(s+=me(t.clientWidth,r.clientWidth)-n),{width:n,height:i,x:s,y:o}}var Sa=25;function Ea(t,e,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=M(t),s=ae(t),o=i.visualViewport,a=s.clientWidth,c=s.clientHeight,u=0,l=0;if(o){let f=!Wt()||e==="fixed";n?f||(u=-o.offsetLeft,l=-o.offsetTop):(a=o.width,c=o.height,f&&(u=o.offsetLeft,l=o.offsetTop))}if(qt(s)<=0){let f=s.ownerDocument,p=f.body,h=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(s.clientWidth-p.clientWidth-m),v=getComputedStyle(s).scrollbarGutter==="stable both-edges"?g/2:g;v<=Sa&&(a-=v)}return{width:a,height:c,x:u,y:l}}function wa(t,e){let r=wt(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,s=et(t),o=t.clientWidth*s.x,a=t.clientHeight*s.y,c=i*s.x,u=n*s.y;return{width:o,height:a,x:c,y:u}}function Ni(t,e,r){let n;if(e==="viewport"||e==="layoutViewport")n=Ea(t,r,e);else if(e==="document")n=xa(ae(t));else if(Y(e))n=wa(e,r);else{let i=Fi(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Oe(n)}function Ca(t,e){let r=e.get(t);if(r)return r;let n=Vt(t,[],!1).filter(a=>Y(a)&&_e(a)!=="body"),i=null,s=X(t).position==="fixed",o=s?ge(t):t;for(;Y(o)&&!Ze(o);){let a=X(o),c=Qe(o),u=i?i.position:s?"fixed":"";!c&&(u==="fixed"||u==="absolute"&&a.position==="static")?n=n.filter(d=>d!==o):i=a,o=ge(o)}return e.set(t,n),n}function Ta(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,o=[...r==="clippingAncestors"?St(e)?[]:Ca(e,this._c):[].concat(r),n],a=Ni(e,o[0],i),c=a.top,u=a.right,l=a.bottom,d=a.left;for(let f=1;f<o.length;f++){let p=Ni(e,o[f],i);c=me(p.top,c),u=vt(p.right,u),l=vt(p.bottom,l),d=me(p.left,d)}return{width:u-d,height:l-c,x:d,y:c}}function Oa(t){let{width:e,height:r}=Mi(t);return{width:e,height:r}}function Ra(t,e,r){let n=ce(e),i=ae(e),s=r==="fixed",o=wt(t,!0,s,e),a={scrollLeft:0,scrollTop:0},c=te(0);if((n||!s)&&((_e(e)!=="body"||xt(i))&&(a=Et(e)),n)){let f=wt(e,!0,s,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}!n&&i&&(c.x=qt(i));let u=i&&!n&&!s?$i(i,a):te(0),l=o.left+a.scrollLeft-c.x-u.x,d=o.top+a.scrollTop-c.y-u.y;return{x:l,y:d,width:o.width,height:o.height}}function Kr(t){return X(t).position==="static"}function Di(t,e){if(!ce(t)||X(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return ae(t)===r&&(r=r.ownerDocument.body),r}function ji(t,e){let r=M(t);if(St(t))return r;if(!ce(t)){let i=ge(t);for(;i&&!Ze(i);){if(Y(i)&&!Kr(i))return i;i=ge(i)}return r}let n=Di(t,e);for(;n&&Pi(n)&&Kr(n);)n=Di(n,e);return n&&Ze(n)&&Kr(n)&&!Qe(n)?r:n||Li(t)||r}var _a=async function(t){let e=this.getOffsetParent||ji,r=this.getDimensions,n=await r(t.floating);return{reference:Ra(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ia(t){return X(t).direction==="rtl"}var Gt={convertOffsetParentRelativeRectToViewportRelativeRect:ba,getDocumentElement:ae,getClippingRect:Ta,getOffsetParent:ji,getElementRects:_a,getClientRects:Aa,getDimensions:Oa,getScale:et,isElement:Y,isRTL:Ia};var Hi=Oi,Bi=Ri;var Vi=(t,e,r)=>{let n=new Map,i=r??{},s={...Gt,...i.platform,_c:n};return Ti(t,e,{...i,platform:s})};function zi(t){return Pa(t)}function qr(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Pa(t){for(let e=t;e;e=qr(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=qr(t);e;e=qr(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Qe(r)||e.tagName==="BODY"))return e}return null}async function Wi(t,e,r){let n;return typeof r=="object"?n=r:n={placement:r},Vi(t,e,{strategy:n.strategy,platform:{...Gt,getOffsetParent:i=>Gt.getOffsetParent(i,zi)},middleware:[Bi({crossAxis:!0}),Hi({allowedPlacements:[n.placement]})]})}var ft=E(T());var An=E(ee());var Ki=E(ee(),1);var Gr=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function qi(t,e){return(0,Ki.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ct(t);try{return JSON.parse(r)}catch{return Ct(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Tt,...e??{}})}function La(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(!Yt(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(!Yt(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=o=>Object.keys(o).filter(a=>o[a]!=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 o=s[n];if(!Yt(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Yt(t,e){try{return La(t,e)}catch{return!1}}function Tt(t,e){return!Yt(t,e)}function Ct(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Xt(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 Gi=E(ee(),1);var Yr=t=>{let e=t??{};return(r,n)=>{var i;let s={hasChanged:Tt,attribute:!1,...e};(0,Gi.property)(s)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(a=>a[n]),store:e.store})}};var Jt=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 Ie=E(ee(),1);var Qt=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 o of n)try{await o()}catch(a){i(a);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 Xi=E(ie(),1);var Zt=globalThis,ka=Zt.ShadowRoot&&(Zt.ShadyCSS===void 0||Zt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Yi=(t,e)=>{if(ka)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=Zt.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}};var er=class extends Xi.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 Yi(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){Gr(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 Ji(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 rt=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},ts,Qi=Symbol("constructorPrototype"),Zi=Symbol("constructorName"),rs=Symbol("exportpartsDebouncer"),es=Symbol("dynamicDependenciesLoaded"),tt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};tt.eventName="exportparts-updated";var re=class extends er{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ts]=new Qt(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[rs].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[Zi]=this.constructor.name,this[Qi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Zi]&&Object.setPrototypeOf(this,this[Qi])}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[es]||(r[es]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(tt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(tt.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 tt)})}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=Ji(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,o,a;let c=f=>f!=null&&f.trim().length>0,u=e.filter(c).map(f=>f.trim());if(u.length===0){this.exportparts=void 0;return}let l=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 p=(s=(i=f.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],h=(a=(o=f.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(g=>g.split(":")[1]))!==null&&a!==void 0?a:[],m=[...p,...h].filter(c).map(g=>g.trim());for(let g of m)l.add(g)}if(l.size===0){this.exportparts=void 0;return}let d=[...l.values()].flatMap(f=>u.map(p=>`${f}:${p}--${f}`));this.exportparts=[...this.part,...d].join(", ")}};ts=rs;rt([(0,Ie.property)()],re.prototype,"exportpartsPrefix",void 0);rt([qi([])],re.prototype,"exportpartsPrefixes",void 0);rt([(0,Ie.property)({reflect:!0})],re.prototype,"exportparts",void 0);rt([(0,Ie.property)()],re.prototype,"customStylesheet",void 0);rt([(0,Ie.property)()],re.prototype,"elementToFocus",void 0);rt([(0,Ie.state)()],re.prototype,"useAdoptedStyleSheets",void 0);function tr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ot=Symbol("internalReduxEventsUnsubscribers"),ve=Symbol("internalStoresUnsubscribers"),Pe=Symbol("internalStores"),Na=Xt(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(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Pe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Pe].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Pe].get(o)}addStore(o,a){var c;a=(c=a??o.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(a),this[Pe].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Pe].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Pe].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 u=this.getStore(o.store);u&&(o.store?this[ve].has(o.store):this[ve].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var c;this[ve].set(o,a.subscribe(()=>this.updateFromStores())),this[Ot].set(o,[]),tr(a)&&a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((u,l)=>{if(typeof this[l]=="function"&&(!u.store||a.name===u.store)){let d=f=>this[l](f);a.addEventListener(u.eventName,d),this[Ot].get(o).push(()=>a.removeEventListener(u.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[ve].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[ve].has(o)&&this[ve].get(o)(),this[ve].delete(o),(a=this[Ot].get(o))===null||a===void 0||a.forEach(c=>c()),this[Ot].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ve,r=Pe,n=Ot,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),ns=class extends Na(re){};function z(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(o){return"'"+o+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ue(t){return!!t&&!!t[C]}function J(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)===Ba})(t)||Array.isArray(t)||!!t[ls]||!!(!((e=t.constructor)===null||e===void 0)&&e[ls])||sn(t)||on(t))}function Le(t,e,r){r===void 0&&(r=!1),st(t)===0?(r?Object.keys:it)(t).forEach((function(n){r&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,i){return e(i,n,t)}))}function st(t){var e=t[C];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:sn(t)?2:on(t)?3:0}function nt(t,e){return st(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Da(t,e){return st(t)===2?t.get(e):t[e]}function ds(t,e,r){var n=st(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function fs(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function sn(t){return ja&&t instanceof Map}function on(t){return Ha&&t instanceof Set}function be(t){return t.o||t.t}function an(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ms(t);delete e[C];for(var r=it(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 cn(t,e){return e===void 0&&(e=!1),un(t)||ue(t)||!J(t)||(st(t)>1&&(t.set=t.add=t.clear=t.delete=Ma),Object.freeze(t),e&&Le(t,(function(r,n){return cn(n,!0)}),!0)),t}function Ma(){z(2)}function un(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ne(t){var e=nn[t];return e||z(18,t),e}function Ua(t,e){nn[t]||(nn[t]=e)}function en(){return _t}function Xr(t,e){e&&(ne("Patches"),t.u=[],t.s=[],t.v=e)}function rr(t){tn(t),t.p.forEach(Fa),t.p=null}function tn(t){t===_t&&(_t=t.l)}function is(t){return _t={p:[],l:_t,h:t,m:!0,_:0}}function Fa(t){var e=t[C];e.i===0||e.i===1?e.j():e.g=!0}function Jr(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||ne("ES5").S(e,t,n),n?(r[C].P&&(rr(e),z(4)),J(t)&&(t=nr(e,t),e.l||ir(e,t)),e.u&&ne("Patches").M(r[C].t,t,e.u,e.s)):t=nr(e,r,[]),rr(e),e.u&&e.v(e.u,e.s),t!==hs?t:void 0}function nr(t,e,r){if(un(e))return e;var n=e[C];if(!n)return Le(e,(function(a,c){return ss(t,n,e,a,c,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return ir(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=an(n.k):n.o,s=i,o=!1;n.i===3&&(s=new Set(i),i.clear(),o=!0),Le(s,(function(a,c){return ss(t,n,i,a,c,r,o)})),ir(t,i,!1),r&&t.u&&ne("Patches").N(n,r,t.u,t.s)}return n.o}function ss(t,e,r,n,i,s,o){if(ue(i)){var a=nr(t,i,s&&e&&e.i!==3&&!nt(e.R,n)?s.concat(n):void 0);if(ds(r,n,a),!ue(a))return;t.m=!1}else o&&r.add(i);if(J(i)&&!un(i)){if(!t.h.D&&t._<1)return;nr(t,i),e&&e.A.l||ir(t,i)}}function ir(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&cn(e,r)}function Qr(t,e){var r=t[C];return(r?be(r):t)[e]}function os(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 Ae(t){t.P||(t.P=!0,t.l&&Ae(t.l))}function Zr(t){t.o||(t.o=an(t.t))}function rn(t,e,r){var n=sn(e)?ne("MapSet").F(e,r):on(e)?ne("MapSet").T(e,r):t.O?(function(i,s){var o=Array.isArray(i),a={i:o?1:0,A:s?s.A:en(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},c=a,u=It;o&&(c=[a],u=Rt);var l=Proxy.revocable(c,u),d=l.revoke,f=l.proxy;return a.k=f,a.j=d,f})(e,r):ne("ES5").J(e,r);return(r?r.A:en()).p.push(n),n}function $a(t){return ue(t)||z(22,t),(function e(r){if(!J(r))return r;var n,i=r[C],s=st(r);if(i){if(!i.P&&(i.i<4||!ne("ES5").K(i)))return i.t;i.I=!0,n=as(r,s),i.I=!1}else n=as(r,s);return Le(n,(function(o,a){i&&Da(i.t,o)===a||ds(n,o,e(a))})),s===3?new Set(n):n})(t)}function as(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return an(t)}function ps(){function t(o,a){var c=s[o];return c?c.enumerable=a:s[o]=c={configurable:!0,enumerable:a,get:function(){var u=this[C];return It.get(u,o)},set:function(u){var l=this[C];It.set(l,o,u)}},c}function e(o){for(var a=o.length-1;a>=0;a--){var c=o[a][C];if(!c.P)switch(c.i){case 5:n(c)&&Ae(c);break;case 4:r(c)&&Ae(c)}}}function r(o){for(var a=o.t,c=o.k,u=it(c),l=u.length-1;l>=0;l--){var d=u[l];if(d!==C){var f=a[d];if(f===void 0&&!nt(a,d))return!0;var p=c[d],h=p&&p[C];if(h?h.t!==f:!fs(p,f))return!0}}var m=!!a[C];return u.length!==it(a).length+(m?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var c=Object.getOwnPropertyDescriptor(a,a.length-1);if(c&&!c.get)return!0;for(var u=0;u<a.length;u++)if(!a.hasOwnProperty(u))return!0;return!1}function i(o){o.g&&z(3,JSON.stringify(be(o)))}var s={};Ua("ES5",{J:function(o,a){var c=Array.isArray(o),u=(function(d,f){if(d){for(var p=Array(f.length),h=0;h<f.length;h++)Object.defineProperty(p,""+h,t(h,!0));return p}var m=ms(f);delete m[C];for(var g=it(m),v=0;v<g.length;v++){var b=g[v];m[b]=t(b,d||!!m[b].enumerable)}return Object.create(Object.getPrototypeOf(f),m)})(c,o),l={i:c?5:4,A:a?a.A:en(),P:!1,I:!1,R:{},l:a,t:o,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,C,{value:l,writable:!0}),u},S:function(o,a,c){c?ue(a)&&a[C].A===o&&e(o.p):(o.u&&(function u(l){if(l&&typeof l=="object"){var d=l[C];if(d){var f=d.t,p=d.k,h=d.R,m=d.i;if(m===4)Le(p,(function(S){S!==C&&(f[S]!==void 0||nt(f,S)?h[S]||u(p[S]):(h[S]=!0,Ae(d)))})),Le(f,(function(S){p[S]!==void 0||nt(p,S)||(h[S]=!1,Ae(d))}));else if(m===5){if(n(d)&&(Ae(d),h.length=!0),p.length<f.length)for(var g=p.length;g<f.length;g++)h[g]=!1;else for(var v=f.length;v<p.length;v++)h[v]=!0;for(var b=Math.min(p.length,f.length),x=0;x<b;x++)p.hasOwnProperty(x)||(h[x]=!0),h[x]===void 0&&u(p[x])}}}})(o.p[0]),e(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}var cs,_t,ln=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ja=typeof Map<"u",Ha=typeof Set<"u",us=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",hs=ln?Symbol.for("immer-nothing"):((cs={})["immer-nothing"]=!0,cs),ls=ln?Symbol.for("immer-draftable"):"__$immer_draftable",C=ln?Symbol.for("immer-state"):"__$immer_state";var Ba=""+Object.prototype.constructor,it=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ms=Object.getOwnPropertyDescriptors||function(t){var e={};return it(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},nn={},It={get:function(t,e){if(e===C)return t;var r=be(t);if(!nt(r,e))return(function(i,s,o){var a,c=os(s,o);return c?"value"in c?c.value:(a=c.get)===null||a===void 0?void 0:a.call(i.k):void 0})(t,r,e);var n=r[e];return t.I||!J(n)?n:n===Qr(t.t,e)?(Zr(t),t.o[e]=rn(t.A.h,n,t)):n},has:function(t,e){return e in be(t)},ownKeys:function(t){return Reflect.ownKeys(be(t))},set:function(t,e,r){var n=os(be(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Qr(be(t),e),s=i?.[C];if(s&&s.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(fs(r,i)&&(r!==void 0||nt(t.t,e)))return!0;Zr(t),Ae(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 Qr(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Zr(t),Ae(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=be(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){z(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){z(12)}},Rt={};Le(It,(function(t,e){Rt[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Rt.deleteProperty=function(t,e){return Rt.set.call(this,t,e,void 0)},Rt.set=function(t,e,r){return It.set.call(this,t[0],e,r,t[0])};var Va=(function(){function t(r){var n=this;this.O=us,this.D=!0,this.produce=function(i,s,o){if(typeof i=="function"&&typeof s!="function"){var a=s;s=i;var c=n;return function(m){var g=this;m===void 0&&(m=a);for(var v=arguments.length,b=Array(v>1?v-1:0),x=1;x<v;x++)b[x-1]=arguments[x];return c.produce(m,(function(S){var I;return(I=s).call.apply(I,[g,S].concat(b))}))}}var u;if(typeof s!="function"&&z(6),o!==void 0&&typeof o!="function"&&z(7),J(i)){var l=is(n),d=rn(n,i,void 0),f=!0;try{u=s(d),f=!1}finally{f?rr(l):tn(l)}return typeof Promise<"u"&&u instanceof Promise?u.then((function(m){return Xr(l,o),Jr(m,l)}),(function(m){throw rr(l),m})):(Xr(l,o),Jr(u,l))}if(!i||typeof i!="object"){if((u=s(i))===void 0&&(u=i),u===hs&&(u=void 0),n.D&&cn(u,!0),o){var p=[],h=[];ne("Patches").M(i,u,p,h),o(p,h)}return u}z(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(u){for(var l=arguments.length,d=Array(l>1?l-1:0),f=1;f<l;f++)d[f-1]=arguments[f];return n.produceWithPatches(u,(function(p){return i.apply(void 0,[p].concat(d))}))};var o,a,c=n.produce(i,s,(function(u,l){o=u,a=l}));return typeof Promise<"u"&&c instanceof Promise?c.then((function(u){return[u,o,a]})):[c,o,a]},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){J(r)||z(8),ue(r)&&(r=$a(r));var n=is(this),i=rn(this,r,void 0);return i[C].C=!0,tn(n),i},e.finishDraft=function(r,n){var i=r&&r[C],s=i.A;return Xr(s,n),Jr(void 0,s)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!us&&z(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 o=ne("Patches").$;return ue(r)?o(r,n):this.produce(r,(function(a){return o(a,n)}))},t})(),$=new Va,za=$.produce,Ju=$.produceWithPatches.bind($),Qu=$.setAutoFreeze.bind($),Zu=$.setUseProxies.bind($),el=$.applyPatches.bind($),tl=$.createDraft.bind($),rl=$.finishDraft.bind($),sr=za;function ke(t){"@babel/helpers - typeof";return ke=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},ke(t)}function ys(t,e){if(ke(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(ke(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function gs(t){var e=ys(t,"string");return ke(e)=="symbol"?e:e+""}function vs(t,e,r){return(e=gs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bs(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 dn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?bs(Object(r),!0).forEach(function(n){vs(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bs(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function k(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var As=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),fn=function(){return Math.random().toString(36).substring(7).split("").join(".")},or={INIT:"@@redux/INIT"+fn(),REPLACE:"@@redux/REPLACE"+fn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fn()}};function Wa(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 pn(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(k(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(k(1));return r(pn)(t,e)}if(typeof t!="function")throw new Error(k(2));var i=t,s=e,o=[],a=o,c=!1;function u(){a===o&&(a=o.slice())}function l(){if(c)throw new Error(k(3));return s}function d(m){if(typeof m!="function")throw new Error(k(4));if(c)throw new Error(k(5));var g=!0;return u(),a.push(m),function(){if(g){if(c)throw new Error(k(6));g=!1,u();var b=a.indexOf(m);a.splice(b,1),o=null}}}function f(m){if(!Wa(m))throw new Error(k(7));if(typeof m.type>"u")throw new Error(k(8));if(c)throw new Error(k(9));try{c=!0,s=i(s,m)}finally{c=!1}for(var g=o=a,v=0;v<g.length;v++){var b=g[v];b()}return m}function p(m){if(typeof m!="function")throw new Error(k(10));i=m,f({type:or.REPLACE})}function h(){var m,g=d;return m={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(k(11));function x(){b.next&&b.next(l())}x();var S=g(x);return{unsubscribe:S}}},m[As]=function(){return this},m}return f({type:or.INIT}),n={dispatch:f,subscribe:d,getState:l,replaceReducer:p},n[As]=h,n}function Ka(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:or.INIT});if(typeof n>"u")throw new Error(k(12));if(typeof r(void 0,{type:or.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(k(13))})}function xs(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),o,a;try{Ka(r)}catch(c){a=c}return function(u,l){if(u===void 0&&(u={}),a)throw a;if(0)var d;for(var f=!1,p={},h=0;h<s.length;h++){var m=s[h],g=r[m],v=u[m],b=g(v,l);if(typeof b>"u"){var x=l&&l.type;throw new Error(k(14))}p[m]=b,f=f||b!==v}return f=f||s.length!==Object.keys(u).length,f?p:u}}function ot(){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 Ss(){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(k(15))},o={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},a=e.map(function(c){return c(o)});return s=ot.apply(void 0,a)(i.dispatch),dn(dn({},i),{},{dispatch:s})}}}function Es(t){var e=function(n){var i=n.dispatch,s=n.getState;return function(o){return function(a){return typeof a=="function"?a(i,s,t):o(a)}}};return e}var ws=Es();ws.withExtraArgument=Es;var hn=ws;var _s=(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)}})(),qa=function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(u[0]===6&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(l){u=[6,l],i=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},at=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},Ga=Object.defineProperty,Ya=Object.defineProperties,Xa=Object.getOwnPropertyDescriptors,Cs=Object.getOwnPropertySymbols,Ja=Object.prototype.hasOwnProperty,Qa=Object.prototype.propertyIsEnumerable,Ts=function(t,e,r){return e in t?Ga(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},xe=function(t,e){for(var r in e||(e={}))Ja.call(e,r)&&Ts(t,r,e[r]);if(Cs)for(var n=0,i=Cs(e);n<i.length;n++){var r=i[n];Qa.call(e,r)&&Ts(t,r,e[r])}return t},mn=function(t,e){return Ya(t,Xa(e))},Za=function(t,e,r){return new Promise(function(n,i){var s=function(c){try{a(r.next(c))}catch(u){i(u)}},o=function(c){try{a(r.throw(c))}catch(u){i(u)}},a=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(s,o)};a((r=r.apply(t,e)).next())})};var ec=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ot:ot.apply(null,arguments)},Al=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function tc(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 xe(xe({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 rc=(function(t){_s(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,at([void 0],r[0].concat(this)))):new(e.bind.apply(e,at([void 0],r.concat(this))))},e})(Array),nc=(function(t){_s(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,at([void 0],r[0].concat(this)))):new(e.bind.apply(e,at([void 0],r.concat(this))))},e})(Array);function vn(t){return J(t)?sr(t,function(){}):t}function ic(t){return typeof t=="boolean"}function sc(){return function(e){return oc(e)}}function oc(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,o=s===void 0?!0:s,a=t.actionCreatorCheck,c=a===void 0?!0:a,u=new rc;if(r&&(ic(r)?u.push(hn):u.push(hn.withExtraArgument(r.extraArgument))),0){if(i)var l;if(o)var d;if(c)var f}return u}var yn=!0;function Is(t){var e=sc(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,s=r.middleware,o=s===void 0?e():s,a=r.devTools,c=a===void 0?!0:a,u=r.preloadedState,l=u===void 0?void 0:u,d=r.enhancers,f=d===void 0?void 0:d,p;if(typeof i=="function")p=i;else if(tc(i))p=xs(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 h=o;if(typeof h=="function"&&(h=h(e),!yn&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!yn&&h.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var m=Ss.apply(void 0,h),g=ot;c&&(g=ec(xe({trace:!yn},typeof c=="object"&&c)));var v=new nc(m),b=v;Array.isArray(f)?b=at([m],f):typeof f=="function"&&(b=f(v));var x=g.apply(void 0,b);return pn(p,l,x)}function Ps(t){var e={},r=[],n,i={addCase:function(s,o){var a=typeof s=="string"?s:s.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[a]=o,i},addMatcher:function(s,o){return r.push({matcher:s,reducer:o}),i},addDefaultCase:function(s){return n=s,i}};return t(i),[e,r,n]}function ac(t){return typeof t=="function"}function cc(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?Ps(e):[e,r,n],s=i[0],o=i[1],a=i[2],c;if(ac(t))c=function(){return vn(t())};else{var u=vn(t);c=function(){return u}}function l(d,f){d===void 0&&(d=c());var p=at([s[f.type]],o.filter(function(h){var m=h.matcher;return m(f)}).map(function(h){var m=h.reducer;return m}));return p.filter(function(h){return!!h}).length===0&&(p=[a]),p.reduce(function(h,m){if(m)if(ue(h)){var g=h,v=m(g,f);return v===void 0?h:v}else{if(J(h))return sr(h,function(b){return m(b,f)});var v=m(h,f);if(v===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}return h},d)}return l.getInitialState=c,l}function uc(t,e){return t+"/"+e}function Ls(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:vn(t.initialState),n=t.reducers||{},i=Object.keys(n),s={},o={},a={};i.forEach(function(l){var d=n[l],f=uc(e,l),p,h;"reducer"in d?(p=d.reducer,h=d.prepare):p=d,s[l]=p,o[f]=p,a[l]=h?Se(f,h):Se(f)});function c(){var l=typeof t.extraReducers=="function"?Ps(t.extraReducers):[t.extraReducers],d=l[0],f=d===void 0?{}:d,p=l[1],h=p===void 0?[]:p,m=l[2],g=m===void 0?void 0:m,v=xe(xe({},f),o);return cc(r,function(b){for(var x in v)b.addCase(x,v[x]);for(var S=0,I=h;S<I.length;S++){var R=I[S];b.addMatcher(R.matcher,R.reducer)}g&&b.addDefaultCase(g)})}var u;return{name:e,reducer:function(l,d){return u||(u=c()),u(l,d)},actions:a,caseReducers:s,getInitialState:function(){return u||(u=c()),u.getInitialState()}}}var lc="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",dc=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=lc[Math.random()*64|0];return e},fc=["name","message","stack","code"],gn=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Os=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),pc=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=fc;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},wl=(function(){function t(e,r,n){var i=Se(e+"/fulfilled",function(l,d,f,p){return{payload:l,meta:mn(xe({},p||{}),{arg:f,requestId:d,requestStatus:"fulfilled"})}}),s=Se(e+"/pending",function(l,d,f){return{payload:void 0,meta:mn(xe({},f||{}),{arg:d,requestId:l,requestStatus:"pending"})}}),o=Se(e+"/rejected",function(l,d,f,p,h){return{payload:p,error:(n&&n.serializeError||pc)(l||"Rejected"),meta:mn(xe({},h||{}),{arg:f,requestId:d,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"})}}),a=!1,c=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 u(l){return function(d,f,p){var h=n?.idGenerator?n.idGenerator(l):dc(),m=new c,g,v=!1;function b(S){g=S,m.abort()}var x=(function(){return Za(this,null,function(){var S,I,R,de,Cr,fe,U;return qa(this,function(B){switch(B.label){case 0:return B.trys.push([0,4,,5]),de=(S=n?.condition)==null?void 0:S.call(n,l,{getState:f,extra:p}),mc(de)?[4,de]:[3,2];case 1:de=B.sent(),B.label=2;case 2:if(de===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return v=!0,Cr=new Promise(function(F,Ee){return m.signal.addEventListener("abort",function(){return Ee({name:"AbortError",message:g||"Aborted"})})}),d(s(h,l,(I=n?.getPendingMeta)==null?void 0:I.call(n,{requestId:h,arg:l},{getState:f,extra:p}))),[4,Promise.race([Cr,Promise.resolve(r(l,{dispatch:d,getState:f,extra:p,requestId:h,signal:m.signal,abort:b,rejectWithValue:function(F,Ee){return new gn(F,Ee)},fulfillWithValue:function(F,Ee){return new Os(F,Ee)}})).then(function(F){if(F instanceof gn)throw F;return F instanceof Os?i(F.payload,h,l,F.meta):i(F,h,l)})])];case 3:return R=B.sent(),[3,5];case 4:return fe=B.sent(),R=fe instanceof gn?o(null,h,l,fe.payload,fe.meta):o(fe,h,l),[3,5];case 5:return U=n&&!n.dispatchConditionRejection&&o.match(R)&&R.meta.condition,U||d(R),[2,R]}})})})();return Object.assign(x,{abort:b,requestId:h,arg:l,unwrap:function(){return x.then(hc)}})}}return Object.assign(u,{pending:s,rejected:o,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t})();function hc(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function mc(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var ks="listener",Ns="completed",Ds="cancelled",Cl="task-"+Ds,Tl="task-"+Ns,Ol=ks+"-"+Ds,Rl=ks+"-"+Ns;var bn="listenerMiddleware";var _l=Se(bn+"/add"),Il=Se(bn+"/removeAll"),Pl=Se(bn+"/remove");var Rs,Ll=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Rs||(Rs=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},yc=function(t){return function(e){setTimeout(e,t)}},kl=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:yc(10);ps();var gc=Xt(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)}}}),ar=class extends gc(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ms=class t extends ar{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(tr(s))return s;if(i==null)return;let o=Ls({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=Is({reducer:(c,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let l=Ct(o.getInitialState());for(let d of u.keeping)l[d]=(c??l)[d];return l}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...u.overwrites};return o.reducer(c,u)}});return window.ftReduxStores[i.name]=new t(o,a,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Jt;let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let c=o,u=s[c];return u?(...l)=>{let d=u(...l.map(i));return this.reduxStore.dispatch(d),d}:l=>{this.setState({[c]: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 cr=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 o=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?c:i?`${a} ${c}`:a}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ur=E(T()),vc="ft-app-info",ct=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ct.eventName="authentication-change";var Pt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Pt.eventName="ui-locale-changed";var bc={session:(t,e)=>{(0,ur.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>w.dispatchEvent(new ct(e.payload)),0))}},w=ur.FtReduxStore.get({name:vc,reducers:bc,initialState:{baseUrl: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 Us=E(T()),lr=function(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},ad=(0,Us.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(w)}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(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?a=>cr.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return lr([(0,An.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),lr([(0,An.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),lr([Yr({store:w.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),lr([Yr({store:w.name})],e.prototype,"uiLocale",void 0),e});var Fs;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Fs||(Fs={}));var $s;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})($s||($s={}));var js;(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"})(js||(js={}));var Hs;(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"})(Hs||(Hs={}));var Bs;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Bs||(Bs={}));var Vs;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Vs||(Vs={}));var zs;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(zs||(zs={}));var Ws;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Ws||(Ws={}));var Ks;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Ks||(Ks={}));var qs;(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"})(qs||(qs={}));var Gs;(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"})(Gs||(Gs={}));var Ys;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Ys||(Ys={}));var Xs;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Xs||(Xs={}));var Js;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Js||(Js={}));var Qs;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Qs||(Qs={}));var Zs;(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"})(Zs||(Zs={}));var eo;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(eo||(eo={}));var to;(function(t){t.ASC="ASC",t.DESC="DESC"})(to||(to={}));var ro;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(ro||(ro={}));var no;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(no||(no={}));var io;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(io||(io={}));var so;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(so||(so={}));var oo;(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"})(oo||(oo={}));var ao;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(ao||(ao={}));var co;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(co||(co={}));var uo;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(uo||(uo={}));var lo;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(lo||(lo={}));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 W;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(W||(W={}));var fo;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(fo||(fo={}));var po;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(po||(po={}));var ho;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(ho||(ho={}));var mo;(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"})(mo||(mo={}));var yo;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(yo||(yo={}));var go;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(go||(go={}));var vo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(vo||(vo={}));var bo;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(bo||(bo={}));var Ao;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Ao||(Ao={}));var xo;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(xo||(xo={}));var So;(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"})(So||(So={}));var Eo;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Eo||(Eo={}));var Ac={[_.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 wo(t,e){return t===e||(Ac[t]??[]).some(r=>wo(r,e))}function Co(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=>wo(n,e))}var mr=E(T());var xn=E(T());var Ne=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=w.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=w.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var ut=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ne.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ne.await()}};var j=class extends ut{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[c])=>a.localeCompare(c)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new xn.CacheRegistry,this.cache=e?i.commonCache:new xn.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 dr=class extends j{async listMySearches(){let{session:e}=w.getState();return Co(e,_.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var fr=class extends j{async listMyBookmarks(){let e=w.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var pr=class extends j{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=w.getState().session;return!!e?.sessionAuthenticated}};var hr=class extends j{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=w.getState().session;return!!e?.sessionAuthenticated}};var xc="ft-user-assets",Sc={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(W).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;En(t,r,[...Sn(t,r),i]),To(t,r,1,n),Oo(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;En(t,r,Sn(t,r).map(i=>i.id===n.id?n:i)),Oo(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;En(t,r,Sn(t,r).filter(s=>s.id!==i)),To(t,r,-1,n)}},Ro={[W.SEARCHES]:"savedSearches",[W.BOOKMARKS]:"bookmarks",[W.BOOKS]:void 0,[W.COLLECTIONS]:void 0},Sn=(t,e)=>{var r;let n=Ro[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},En=(t,e,r)=>{let n=Ro[e];n&&(t[n]=r)},To=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===W.BOOKMARKS&&n)){let s=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},Oo=(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)},D=mr.FtReduxStore.get({name:xc,reducers:Sc,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(W).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),wn=class{constructor(e=new pr,r=new hr){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new fr,this.savedSearchesService=new dr,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=w.getState();(0,mr.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(),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 e=await this.savedSearchesService.listMySearches();D.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();D.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&D.getState().assetCounts.allAsset[e]!==r.count&&D.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&D.getState().assetCounts.bookmarkByMap[e]!==r.count&&D.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(D.getState().assetCounts.bookmarkByMap).length!==0;e===W.BOOKMARKS&&r&&D.actions.clearBookmarkCountByMap(),D.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;D.actions.bookmarks(r)}}},Ec=new wn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ec);var Cn=class{addCommand(e,r=!1){w.commands.add(e,r)}consumeCommand(e){return w.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Cn;var K=E(T());var _o,lt=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},wc=Symbol("clearAfterUnitTest"),yr=class extends(0,K.withEventBus)(j){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[_o]=()=>{this.defaultMessages={},this.cache=new K.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=w.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,K.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(),o=this.resolveContext(s);return new K.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},o).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof K.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 lt({loadedContexts:e})),this.dispatchEvent(new lt({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new lt({loadedContexts:[e]})),this.dispatchEvent(new lt({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,K.delay)(0).then(()=>n()).catch(()=>null)))}};_o=wc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends yr{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends yr{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Lt=window.FluidTopicsI18nService,Tn=window.FluidTopicsCustomI18nService;var Io=E(T()),On=class{highlightHtml(e,r,n){(0,Io.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new On;var Po=E(T());var Rn=class{isDate(e){var r,n,i,s;return(s=(i=((n=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var n,i,s,o;if(e==null)return"";try{return Po.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:w.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Rn;var Lo=E(T());var kt=class{static get(e,r){var n,i,s,o;let a=w.getState(),{lang:c,region:u}=(s=(i=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new Lo.SearchPlaceConverter(a.baseUrl,e??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${c}-${u}`)}};var _n=class{urlToSearchRequest(e){return kt.get().parse(e)}searchRequestToUrl(e){return kt.get().serialize(e)}};window.FluidTopicsUrlService=new _n;var le=E(T());var De=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};De.eventName="change";var In=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))}},ko=new In;var gr=class t extends le.WithEventBus{static build(){return new t(window.history,ko,()=>window.location,!1)}constructor(e,r,n,i){var s,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o: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,le.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new De(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[s,o,a])=>{let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...s,index:c,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[u,o,a]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(De.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(De.eventName,e)}currentItem(){return(0,le.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,le.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,le.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,le.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=gr.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 No=E(ie());var Do=No.css`
|
|
138
|
-
`;var Fo=E(
|
|
137
|
+
`;var bi=["top","right","bottom","left"],vi=["start","end"],Hr=bi.reduce((e,t)=>e.concat(t,t+"-"+vi[0],t+"-"+vi[1]),[]),ve=Math.min,mt=Math.max,be=Math.round;var et=e=>({x:e,y:e}),da={left:"right",right:"left",bottom:"top",top:"bottom"};function Ai(e,t,r){return mt(e,ve(t,r))}function He(e,t){return typeof e=="function"?e(t):e}function Ae(e){return e.split("-")[0]}function yt(e){return e.split("-")[1]}function Br(e){return e==="x"?"y":"x"}function Vr(e){return e==="y"?"height":"width"}function Be(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function zr(e){return Br(Be(e))}function xi(e,t,r){r===void 0&&(r=!1);let n=yt(e),i=zr(e),s=Vr(i),o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=jr(o)),[o,jr(o)]}function Si(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function jr(e){let t=Ae(e);return da[t]+e.slice(t.length)}function fa(e){var t,r,n,i;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(i=e.left)!=null?i:0}}function Ei(e){return typeof e!="number"?fa(e):{top:e,right:e,bottom:e,left:e}}function Ot(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function wi(e,t,r){let{reference:n,floating:i}=e,s=Be(t),o=zr(t),a=Vr(o),c=Ae(t),u=s==="y",l=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,f=n[a]/2-i[a]/2,p;switch(c){case"top":p={x:l,y:n.y-i.height};break;case"bottom":p={x:l,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-i.width,y:d};break;default:p={x:n.x,y:n.y}}let h=yt(t);return h&&(p[o]+=f*(h==="end"?1:-1)*(r&&u?-1:1)),p}async function Ci(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:s,rects:o,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=He(t,e),h=Ei(p),g=a[f?d==="floating"?"reference":"floating":d],v=Ot(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(g)))==null||r?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:l,strategy:c})),b=d==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(x))&&await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1},I=Ot(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:c}):b);return{top:(v.top-I.top+h.top)/S.y,bottom:(I.bottom-v.bottom+h.bottom)/S.y,left:(v.left-I.left+h.left)/S.x,right:(I.right-v.right+h.right)/S.x}}var pa=50,Ti=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:Ci},c=await(o.isRTL==null?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:d}=wi(u,n,c),f=n,p=0,h={};for(let m=0;m<s.length;m++){let g=s[m];if(!g)continue;let{name:v,fn:b}=g,{x,y:S,data:I,reset:R}=await b({x:l,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});l=x??l,d=S??d,h[v]={...h[v],...I},R&&p<pa&&(p++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(u=R.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):R.rects),{x:l,y:d}=wi(u,f,c)),m=-1)}return{x:l,y:d,placement:f,strategy:i,middlewareData:h}};function ha(e,t,r){return(e?[...r.filter(i=>yt(i)===e),...r.filter(i=>yt(i)!==e)]:r.filter(i=>Ae(i)===i)).filter(i=>e?yt(i)===e||(t?Si(i)!==i:!1):!0)}var Oi=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:s,middlewareData:o,placement:a,platform:c,elements:u}=t,{crossAxis:l=!1,alignment:d,allowedPlacements:f=Hr,autoAlignment:p=!0,...h}=He(e,t),m=d!==void 0||f===Hr?ha(d||null,p,f):f,g=((r=o.autoPlacement)==null?void 0:r.index)||0,v=m[g];if(v==null)return{};if(a!==v)return{reset:{placement:m[0]}};let b=await c.detectOverflow(t,h),x=xi(v,s,await(c.isRTL==null?void 0:c.isRTL(u.floating))),S=[b[Ae(v)],b[x[0]],b[x[1]]],I=[...((n=o.autoPlacement)==null?void 0:n.overflows)||[],{placement:v,overflows:S}],R=m[g+1];if(R)return{data:{index:g+1,overflows:I},reset:{placement:R}};let dt=I.map(F=>{let B=yt(F.placement);return[F.placement,B&&l?F.overflows.slice(0,2).reduce(($,Et)=>$+Et,0):F.overflows[0],F.overflows]}).sort((F,B)=>F[1]-B[1]),ft=((i=dt.filter(F=>F[2].slice(0,yt(F[0])?2:3).every(B=>B<=0))[0])==null?void 0:i[0])||dt[0][0];return ft!==a?{data:{index:g+1,overflows:I},reset:{placement:ft}}:{}}}};var Ri=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:b=>{let{x,y:S}=b;return{x,y:S}}},...u}=He(e,t),l={x:r,y:n},d=await s.detectOverflow(t,u),f=Be(i),p=Br(f),h=l[p],m=l[f],g=(b,x)=>Ai(x+d[b==="y"?"top":"left"],x,x-d[b==="y"?"bottom":"right"]);o&&(h=g(p,h)),a&&(m=g(f,m));let v=c.fn({...t,[p]:h,[f]:m});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[p]:o,[f]:a}}}}}};function ze(){return typeof window<"u"}function _t(e){return Ii(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function at(e){var t;return(t=(Ii(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ii(e){return ze()?e instanceof Node||e instanceof M(e).Node:!1}function Y(e){return ze()?e instanceof Element||e instanceof M(e).Element:!1}function ct(e){return ze()?e instanceof HTMLElement||e instanceof M(e).HTMLElement:!1}function _i(e){return!ze()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof M(e).ShadowRoot}function xe(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=X(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function Pi(e){return/^(table|td|th)$/.test(_t(e))}function Se(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var ma=/transform|translate|scale|rotate|perspective|filter/,ya=/paint|layout|strict|content/,Rt=e=>!!e&&e!=="none",Wr;function Qt(e){let t=Y(e)?X(e):e;return Rt(t.transform)||Rt(t.translate)||Rt(t.scale)||Rt(t.rotate)||Rt(t.perspective)||!We()&&(Rt(t.backdropFilter)||Rt(t.filter))||ma.test(t.willChange||"")||ya.test(t.contain||"")}function Li(e){let t=gt(e);for(;ct(t)&&!Zt(t);){if(Qt(t))return t;if(Se(t))return null;t=gt(t)}return null}function We(){return Wr==null&&(Wr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Wr}function Zt(e){return/^(html|body|#document)$/.test(_t(e))}function X(e){return M(e).getComputedStyle(e)}function Ee(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gt(e){if(_t(e)==="html")return e;let t=e.assignedSlot||e.parentNode||_i(e)&&e.host||at(e);return _i(t)?t.host:t}function ki(e){let t=gt(e);return Zt(t)?(e.ownerDocument||e).body:ct(t)&&xe(t)?t:ki(t)}function Ve(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=ki(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=M(i);if(s){let a=Ke(o);return t.concat(o,o.visualViewport||[],xe(i)?i:[],a&&r?Ve(a):[])}else return t.concat(i,Ve(i,[],r))}function Ke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Mi(e){let t=X(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=ct(e),s=i?e.offsetWidth:r,o=i?e.offsetHeight:n,a=be(r)!==s||be(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function Ui(e){return Y(e)?e:e.contextElement}function te(e){let t=Ui(e);if(!ct(t))return et(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:s}=Mi(t),o=(s?be(r.width):r.width)/n,a=(s?be(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var ga=et(0);function Fi(e){let t=M(e);return!We()||!t.visualViewport?ga:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function va(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===M(e)}function we(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),s=Ui(e),o=et(1);t&&(n?Y(n)&&(o=te(n)):o=te(e));let a=va(s,r,n)?Fi(s):et(0),c=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,l=i.width/o.x,d=i.height/o.y;if(s&&n){let f=M(s),p=Y(n)?M(n):n,h=f,m=Ke(h);for(;m&&p!==h;){let g=te(m),v=m.getBoundingClientRect(),b=X(m),x=v.left+(m.clientLeft+parseFloat(b.paddingLeft))*g.x,S=v.top+(m.clientTop+parseFloat(b.paddingTop))*g.y;c*=g.x,u*=g.y,l*=g.x,d*=g.y,c+=x,u+=S,h=M(m),m=Ke(h)}}return Ot({width:l,height:d,x:c,y:u})}function qe(e,t){let r=Ee(e).scrollLeft;return t?t.left+r:we(at(e)).left+r}function $i(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-qe(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function ba(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,s=i==="fixed",o=at(n),a=t?Se(t.floating):!1;if(n===o||a&&s)return r;let c={scrollLeft:0,scrollTop:0},u=et(1),l=et(0),d=ct(n);if((d||!s)&&((_t(n)!=="body"||xe(o))&&(c=Ee(n)),d)){let p=we(n);u=te(n),l.x=p.x+n.clientLeft,l.y=p.y+n.clientTop}let f=o&&!d&&!s?$i(o,c):et(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+l.x+f.x,y:r.y*u.y-c.scrollTop*u.y+l.y+f.y}}function Aa(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function xa(e){let t=Ee(e),r=e.ownerDocument.body,n=mt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=mt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+qe(e),o=-t.scrollTop;return X(r).direction==="rtl"&&(s+=mt(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:s,y:o}}var Sa=25;function Ea(e,t,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=M(e),s=at(e),o=i.visualViewport,a=s.clientWidth,c=s.clientHeight,u=0,l=0;if(o){let f=!We()||t==="fixed";n?f||(u=-o.offsetLeft,l=-o.offsetTop):(a=o.width,c=o.height,f&&(u=o.offsetLeft,l=o.offsetTop))}if(qe(s)<=0){let f=s.ownerDocument,p=f.body,h=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(s.clientWidth-p.clientWidth-m),v=getComputedStyle(s).scrollbarGutter==="stable both-edges"?g/2:g;v<=Sa&&(a-=v)}return{width:a,height:c,x:u,y:l}}function wa(e,t){let r=we(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=te(e),o=e.clientWidth*s.x,a=e.clientHeight*s.y,c=i*s.x,u=n*s.y;return{width:o,height:a,x:c,y:u}}function Ni(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=Ea(e,r,t);else if(t==="document")n=xa(at(e));else if(Y(t))n=wa(t,r);else{let i=Fi(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ot(n)}function Ca(e,t){let r=t.get(e);if(r)return r;let n=Ve(e,[],!1).filter(a=>Y(a)&&_t(a)!=="body"),i=null,s=X(e).position==="fixed",o=s?gt(e):e;for(;Y(o)&&!Zt(o);){let a=X(o),c=Qt(o),u=i?i.position:s?"fixed":"";!c&&(u==="fixed"||u==="absolute"&&a.position==="static")?n=n.filter(d=>d!==o):i=a,o=gt(o)}return t.set(e,n),n}function Ta(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[...r==="clippingAncestors"?Se(t)?[]:Ca(t,this._c):[].concat(r),n],a=Ni(t,o[0],i),c=a.top,u=a.right,l=a.bottom,d=a.left;for(let f=1;f<o.length;f++){let p=Ni(t,o[f],i);c=mt(p.top,c),u=ve(p.right,u),l=ve(p.bottom,l),d=mt(p.left,d)}return{width:u-d,height:l-c,x:d,y:c}}function Oa(e){let{width:t,height:r}=Mi(e);return{width:t,height:r}}function Ra(e,t,r){let n=ct(t),i=at(t),s=r==="fixed",o=we(e,!0,s,t),a={scrollLeft:0,scrollTop:0},c=et(0);if((n||!s)&&((_t(t)!=="body"||xe(i))&&(a=Ee(t)),n)){let f=we(t,!0,s,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}!n&&i&&(c.x=qe(i));let u=i&&!n&&!s?$i(i,a):et(0),l=o.left+a.scrollLeft-c.x-u.x,d=o.top+a.scrollTop-c.y-u.y;return{x:l,y:d,width:o.width,height:o.height}}function Kr(e){return X(e).position==="static"}function Di(e,t){if(!ct(e)||X(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return at(e)===r&&(r=r.ownerDocument.body),r}function ji(e,t){let r=M(e);if(Se(e))return r;if(!ct(e)){let i=gt(e);for(;i&&!Zt(i);){if(Y(i)&&!Kr(i))return i;i=gt(i)}return r}let n=Di(e,t);for(;n&&Pi(n)&&Kr(n);)n=Di(n,t);return n&&Zt(n)&&Kr(n)&&!Qt(n)?r:n||Li(e)||r}var _a=async function(e){let t=this.getOffsetParent||ji,r=this.getDimensions,n=await r(e.floating);return{reference:Ra(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ia(e){return X(e).direction==="rtl"}var Ge={convertOffsetParentRelativeRectToViewportRelativeRect:ba,getDocumentElement:at,getClippingRect:Ta,getOffsetParent:ji,getElementRects:_a,getClientRects:Aa,getDimensions:Oa,getScale:te,isElement:Y,isRTL:Ia};var Hi=Oi,Bi=Ri;var Vi=(e,t,r)=>{let n=new Map,i=r??{},s={...Ge,...i.platform,_c:n};return Ti(e,t,{...i,platform:s})};function zi(e){return Pa(e)}function qr(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Pa(e){for(let t=e;t;t=qr(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=qr(e);t;t=qr(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Qt(r)||t.tagName==="BODY"))return t}return null}async function Wi(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},Vi(e,t,{strategy:n.strategy,platform:{...Ge,getOffsetParent:i=>Ge.getOffsetParent(i,zi)},middleware:[Bi({crossAxis:!0}),Hi({allowedPlacements:[n.placement]})]})}var fe=E(T());var An=E(tt());var Ki=E(tt(),1);var Gr=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function qi(e,t){return(0,Ki.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ce(e);try{return JSON.parse(r)}catch{return Ce(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Te,...t??{}})}function La(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(!Ye(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(!Ye(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=o=>Object.keys(o).filter(a=>o[a]!=null),s=i(e);if(r=s.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){let o=s[n];if(!Ye(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Ye(e,t){try{return La(e,t)}catch{return!1}}function Te(e,t){return!Ye(e,t)}function Ce(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Xe(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let i=t(n);return i[e]=!0,i}}var Gi=E(tt(),1);var Yr=e=>{let t=e??{};return(r,n)=>{var i;let s={hasChanged:Te,attribute:!1,...t};(0,Gi.property)(s)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:(a=>a[n]),store:t.store})}};var Je=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 It=E(tt(),1);var Qe=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){i(a);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 Xi=E(it(),1);var Ze=globalThis,ka=Ze.ShadowRoot&&(Ze.ShadyCSS===void 0||Ze.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Yi=(e,t)=>{if(ka)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=Ze.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var tr=class extends Xi.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 Yi(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){Gr(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 Ji(e,t,...r){var n;let i=e.querySelector(t);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var re=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},es,Qi=Symbol("constructorPrototype"),Zi=Symbol("constructorName"),rs=Symbol("exportpartsDebouncer"),ts=Symbol("dynamicDependenciesLoaded"),ee=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};ee.eventName="exportparts-updated";var rt=class extends tr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[es]=new Qe(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[rs].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[Zi]=this.constructor.name,this[Qi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Zi]&&Object.setPrototypeOf(this,this[Qi])}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[ts]||(r[ts]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(ee.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(ee.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 ee)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=Ji(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.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(t){var r,n,i,s,o,a;let c=f=>f!=null&&f.trim().length>0,u=t.filter(c).map(f=>f.trim());if(u.length===0){this.exportparts=void 0;return}let l=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 p=(s=(i=f.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],h=(a=(o=f.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(g=>g.split(":")[1]))!==null&&a!==void 0?a:[],m=[...p,...h].filter(c).map(g=>g.trim());for(let g of m)l.add(g)}if(l.size===0){this.exportparts=void 0;return}let d=[...l.values()].flatMap(f=>u.map(p=>`${f}:${p}--${f}`));this.exportparts=[...this.part,...d].join(", ")}};es=rs;re([(0,It.property)()],rt.prototype,"exportpartsPrefix",void 0);re([qi([])],rt.prototype,"exportpartsPrefixes",void 0);re([(0,It.property)({reflect:!0})],rt.prototype,"exportparts",void 0);re([(0,It.property)()],rt.prototype,"customStylesheet",void 0);re([(0,It.property)()],rt.prototype,"elementToFocus",void 0);re([(0,It.state)()],rt.prototype,"useAdoptedStyleSheets",void 0);function er(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Oe=Symbol("internalReduxEventsUnsubscribers"),vt=Symbol("internalStoresUnsubscribers"),Pt=Symbol("internalStores"),Na=Xe(Symbol("withRedux"),function(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Pt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Pt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Pt].get(o)}addStore(o,a){var c;a=(c=a??o.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(a),this[Pt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Pt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Pt].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 u=this.getStore(o.store);u&&(o.store?this[vt].has(o.store):this[vt].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var c;this[vt].set(o,a.subscribe(()=>this.updateFromStores())),this[Oe].set(o,[]),er(a)&&a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((u,l)=>{if(typeof this[l]=="function"&&(!u.store||a.name===u.store)){let d=f=>this[l](f);a.addEventListener(u.eventName,d),this[Oe].get(o).push(()=>a.removeEventListener(u.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[vt].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[vt].has(o)&&this[vt].get(o)(),this[vt].delete(o),(a=this[Oe].get(o))===null||a===void 0||a.forEach(c=>c()),this[Oe].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=vt,r=Pt,n=Oe,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),ns=class extends Na(rt){};function z(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,s;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(o){return"'"+o+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ut(e){return!!e&&!!e[C]}function J(e){var t;return!!e&&((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)===Ba})(e)||Array.isArray(e)||!!e[ls]||!!(!((t=e.constructor)===null||t===void 0)&&t[ls])||sn(e)||on(e))}function Lt(e,t,r){r===void 0&&(r=!1),se(e)===0?(r?Object.keys:ie)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function se(e){var t=e[C];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:sn(e)?2:on(e)?3:0}function ne(e,t){return se(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Da(e,t){return se(e)===2?e.get(t):e[t]}function ds(e,t,r){var n=se(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function fs(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function sn(e){return ja&&e instanceof Map}function on(e){return Ha&&e instanceof Set}function bt(e){return e.o||e.t}function an(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ms(e);delete t[C];for(var r=ie(t),n=0;n<r.length;n++){var i=r[n],s=t[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function cn(e,t){return t===void 0&&(t=!1),un(e)||ut(e)||!J(e)||(se(e)>1&&(e.set=e.add=e.clear=e.delete=Ma),Object.freeze(e),t&&Lt(e,(function(r,n){return cn(n,!0)}),!0)),e}function Ma(){z(2)}function un(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function nt(e){var t=nn[e];return t||z(18,e),t}function Ua(e,t){nn[e]||(nn[e]=t)}function tn(){return _e}function Xr(e,t){t&&(nt("Patches"),e.u=[],e.s=[],e.v=t)}function rr(e){en(e),e.p.forEach(Fa),e.p=null}function en(e){e===_e&&(_e=e.l)}function is(e){return _e={p:[],l:_e,h:e,m:!0,_:0}}function Fa(e){var t=e[C];t.i===0||t.i===1?t.j():t.g=!0}function Jr(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||nt("ES5").S(t,e,n),n?(r[C].P&&(rr(t),z(4)),J(e)&&(e=nr(t,e),t.l||ir(t,e)),t.u&&nt("Patches").M(r[C].t,e,t.u,t.s)):e=nr(t,r,[]),rr(t),t.u&&t.v(t.u,t.s),e!==hs?e:void 0}function nr(e,t,r){if(un(t))return t;var n=t[C];if(!n)return Lt(t,(function(a,c){return ss(e,n,t,a,c,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return ir(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=an(n.k):n.o,s=i,o=!1;n.i===3&&(s=new Set(i),i.clear(),o=!0),Lt(s,(function(a,c){return ss(e,n,i,a,c,r,o)})),ir(e,i,!1),r&&e.u&&nt("Patches").N(n,r,e.u,e.s)}return n.o}function ss(e,t,r,n,i,s,o){if(ut(i)){var a=nr(e,i,s&&t&&t.i!==3&&!ne(t.R,n)?s.concat(n):void 0);if(ds(r,n,a),!ut(a))return;e.m=!1}else o&&r.add(i);if(J(i)&&!un(i)){if(!e.h.D&&e._<1)return;nr(e,i),t&&t.A.l||ir(e,i)}}function ir(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&cn(t,r)}function Qr(e,t){var r=e[C];return(r?bt(r):e)[t]}function os(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function At(e){e.P||(e.P=!0,e.l&&At(e.l))}function Zr(e){e.o||(e.o=an(e.t))}function rn(e,t,r){var n=sn(t)?nt("MapSet").F(t,r):on(t)?nt("MapSet").T(t,r):e.O?(function(i,s){var o=Array.isArray(i),a={i:o?1:0,A:s?s.A:tn(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},c=a,u=Ie;o&&(c=[a],u=Re);var l=Proxy.revocable(c,u),d=l.revoke,f=l.proxy;return a.k=f,a.j=d,f})(t,r):nt("ES5").J(t,r);return(r?r.A:tn()).p.push(n),n}function $a(e){return ut(e)||z(22,e),(function t(r){if(!J(r))return r;var n,i=r[C],s=se(r);if(i){if(!i.P&&(i.i<4||!nt("ES5").K(i)))return i.t;i.I=!0,n=as(r,s),i.I=!1}else n=as(r,s);return Lt(n,(function(o,a){i&&Da(i.t,o)===a||ds(n,o,t(a))})),s===3?new Set(n):n})(e)}function as(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return an(e)}function ps(){function e(o,a){var c=s[o];return c?c.enumerable=a:s[o]=c={configurable:!0,enumerable:a,get:function(){var u=this[C];return Ie.get(u,o)},set:function(u){var l=this[C];Ie.set(l,o,u)}},c}function t(o){for(var a=o.length-1;a>=0;a--){var c=o[a][C];if(!c.P)switch(c.i){case 5:n(c)&&At(c);break;case 4:r(c)&&At(c)}}}function r(o){for(var a=o.t,c=o.k,u=ie(c),l=u.length-1;l>=0;l--){var d=u[l];if(d!==C){var f=a[d];if(f===void 0&&!ne(a,d))return!0;var p=c[d],h=p&&p[C];if(h?h.t!==f:!fs(p,f))return!0}}var m=!!a[C];return u.length!==ie(a).length+(m?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var c=Object.getOwnPropertyDescriptor(a,a.length-1);if(c&&!c.get)return!0;for(var u=0;u<a.length;u++)if(!a.hasOwnProperty(u))return!0;return!1}function i(o){o.g&&z(3,JSON.stringify(bt(o)))}var s={};Ua("ES5",{J:function(o,a){var c=Array.isArray(o),u=(function(d,f){if(d){for(var p=Array(f.length),h=0;h<f.length;h++)Object.defineProperty(p,""+h,e(h,!0));return p}var m=ms(f);delete m[C];for(var g=ie(m),v=0;v<g.length;v++){var b=g[v];m[b]=e(b,d||!!m[b].enumerable)}return Object.create(Object.getPrototypeOf(f),m)})(c,o),l={i:c?5:4,A:a?a.A:tn(),P:!1,I:!1,R:{},l:a,t:o,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,C,{value:l,writable:!0}),u},S:function(o,a,c){c?ut(a)&&a[C].A===o&&t(o.p):(o.u&&(function u(l){if(l&&typeof l=="object"){var d=l[C];if(d){var f=d.t,p=d.k,h=d.R,m=d.i;if(m===4)Lt(p,(function(S){S!==C&&(f[S]!==void 0||ne(f,S)?h[S]||u(p[S]):(h[S]=!0,At(d)))})),Lt(f,(function(S){p[S]!==void 0||ne(p,S)||(h[S]=!1,At(d))}));else if(m===5){if(n(d)&&(At(d),h.length=!0),p.length<f.length)for(var g=p.length;g<f.length;g++)h[g]=!1;else for(var v=f.length;v<p.length;v++)h[v]=!0;for(var b=Math.min(p.length,f.length),x=0;x<b;x++)p.hasOwnProperty(x)||(h[x]=!0),h[x]===void 0&&u(p[x])}}}})(o.p[0]),t(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}var cs,_e,ln=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ja=typeof Map<"u",Ha=typeof Set<"u",us=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",hs=ln?Symbol.for("immer-nothing"):((cs={})["immer-nothing"]=!0,cs),ls=ln?Symbol.for("immer-draftable"):"__$immer_draftable",C=ln?Symbol.for("immer-state"):"__$immer_state";var Ba=""+Object.prototype.constructor,ie=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ms=Object.getOwnPropertyDescriptors||function(e){var t={};return ie(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},nn={},Ie={get:function(e,t){if(t===C)return e;var r=bt(e);if(!ne(r,t))return(function(i,s,o){var a,c=os(s,o);return c?"value"in c?c.value:(a=c.get)===null||a===void 0?void 0:a.call(i.k):void 0})(e,r,t);var n=r[t];return e.I||!J(n)?n:n===Qr(e.t,t)?(Zr(e),e.o[t]=rn(e.A.h,n,e)):n},has:function(e,t){return t in bt(e)},ownKeys:function(e){return Reflect.ownKeys(bt(e))},set:function(e,t,r){var n=os(bt(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Qr(bt(e),t),s=i?.[C];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(fs(r,i)&&(r!==void 0||ne(e.t,t)))return!0;Zr(e),At(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Qr(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Zr(e),At(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=bt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){z(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){z(12)}},Re={};Lt(Ie,(function(e,t){Re[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Re.deleteProperty=function(e,t){return Re.set.call(this,e,t,void 0)},Re.set=function(e,t,r){return Ie.set.call(this,e[0],t,r,e[0])};var Va=(function(){function e(r){var n=this;this.O=us,this.D=!0,this.produce=function(i,s,o){if(typeof i=="function"&&typeof s!="function"){var a=s;s=i;var c=n;return function(m){var g=this;m===void 0&&(m=a);for(var v=arguments.length,b=Array(v>1?v-1:0),x=1;x<v;x++)b[x-1]=arguments[x];return c.produce(m,(function(S){var I;return(I=s).call.apply(I,[g,S].concat(b))}))}}var u;if(typeof s!="function"&&z(6),o!==void 0&&typeof o!="function"&&z(7),J(i)){var l=is(n),d=rn(n,i,void 0),f=!0;try{u=s(d),f=!1}finally{f?rr(l):en(l)}return typeof Promise<"u"&&u instanceof Promise?u.then((function(m){return Xr(l,o),Jr(m,l)}),(function(m){throw rr(l),m})):(Xr(l,o),Jr(u,l))}if(!i||typeof i!="object"){if((u=s(i))===void 0&&(u=i),u===hs&&(u=void 0),n.D&&cn(u,!0),o){var p=[],h=[];nt("Patches").M(i,u,p,h),o(p,h)}return u}z(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(u){for(var l=arguments.length,d=Array(l>1?l-1:0),f=1;f<l;f++)d[f-1]=arguments[f];return n.produceWithPatches(u,(function(p){return i.apply(void 0,[p].concat(d))}))};var o,a,c=n.produce(i,s,(function(u,l){o=u,a=l}));return typeof Promise<"u"&&c instanceof Promise?c.then((function(u){return[u,o,a]})):[c,o,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){J(r)||z(8),ut(r)&&(r=$a(r));var n=is(this),i=rn(this,r,void 0);return i[C].C=!0,en(n),i},t.finishDraft=function(r,n){var i=r&&r[C],s=i.A;return Xr(s,n),Jr(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!us&&z(20),this.O=r},t.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 o=nt("Patches").$;return ut(r)?o(r,n):this.produce(r,(function(a){return o(a,n)}))},e})(),j=new Va,za=j.produce,Ju=j.produceWithPatches.bind(j),Qu=j.setAutoFreeze.bind(j),Zu=j.setUseProxies.bind(j),tl=j.applyPatches.bind(j),el=j.createDraft.bind(j),rl=j.finishDraft.bind(j),sr=za;function kt(e){"@babel/helpers - typeof";return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kt(e)}function ys(e,t){if(kt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(kt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gs(e){var t=ys(e,"string");return kt(t)=="symbol"?t:t+""}function vs(e,t,r){return(t=gs(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bs(Object(r),!0).forEach(function(n){vs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function N(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 As=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),fn=function(){return Math.random().toString(36).substring(7).split("").join(".")},or={INIT:"@@redux/INIT"+fn(),REPLACE:"@@redux/REPLACE"+fn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fn()}};function Wa(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function pn(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(N(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(N(1));return r(pn)(e,t)}if(typeof e!="function")throw new Error(N(2));var i=e,s=t,o=[],a=o,c=!1;function u(){a===o&&(a=o.slice())}function l(){if(c)throw new Error(N(3));return s}function d(m){if(typeof m!="function")throw new Error(N(4));if(c)throw new Error(N(5));var g=!0;return u(),a.push(m),function(){if(g){if(c)throw new Error(N(6));g=!1,u();var b=a.indexOf(m);a.splice(b,1),o=null}}}function f(m){if(!Wa(m))throw new Error(N(7));if(typeof m.type>"u")throw new Error(N(8));if(c)throw new Error(N(9));try{c=!0,s=i(s,m)}finally{c=!1}for(var g=o=a,v=0;v<g.length;v++){var b=g[v];b()}return m}function p(m){if(typeof m!="function")throw new Error(N(10));i=m,f({type:or.REPLACE})}function h(){var m,g=d;return m={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(N(11));function x(){b.next&&b.next(l())}x();var S=g(x);return{unsubscribe:S}}},m[As]=function(){return this},m}return f({type:or.INIT}),n={dispatch:f,subscribe:d,getState:l,replaceReducer:p},n[As]=h,n}function Ka(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:or.INIT});if(typeof n>"u")throw new Error(N(12));if(typeof r(void 0,{type:or.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(N(13))})}function xs(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var s=Object.keys(r),o,a;try{Ka(r)}catch(c){a=c}return function(u,l){if(u===void 0&&(u={}),a)throw a;if(0)var d;for(var f=!1,p={},h=0;h<s.length;h++){var m=s[h],g=r[m],v=u[m],b=g(v,l);if(typeof b>"u"){var x=l&&l.type;throw new Error(N(14))}p[m]=b,f=f||b!==v}return f=f||s.length!==Object.keys(u).length,f?p:u}}function oe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Ss(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),s=function(){throw new Error(N(15))},o={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},a=t.map(function(c){return c(o)});return s=oe.apply(void 0,a)(i.dispatch),dn(dn({},i),{},{dispatch:s})}}}function Es(e){var t=function(n){var i=n.dispatch,s=n.getState;return function(o){return function(a){return typeof a=="function"?a(i,s,e):o(a)}}};return t}var ws=Es();ws.withExtraArgument=Es;var hn=ws;var _s=(function(){var e=function(t,r){return e=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])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),qa=function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(u[0]===6&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(l){u=[6,l],i=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ae=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Ga=Object.defineProperty,Ya=Object.defineProperties,Xa=Object.getOwnPropertyDescriptors,Cs=Object.getOwnPropertySymbols,Ja=Object.prototype.hasOwnProperty,Qa=Object.prototype.propertyIsEnumerable,Ts=function(e,t,r){return t in e?Ga(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},xt=function(e,t){for(var r in t||(t={}))Ja.call(t,r)&&Ts(e,r,t[r]);if(Cs)for(var n=0,i=Cs(t);n<i.length;n++){var r=i[n];Qa.call(t,r)&&Ts(e,r,t[r])}return e},mn=function(e,t){return Ya(e,Xa(t))},Za=function(e,t,r){return new Promise(function(n,i){var s=function(c){try{a(r.next(c))}catch(u){i(u)}},o=function(c){try{a(r.throw(c))}catch(u){i(u)}},a=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(s,o)};a((r=r.apply(e,t)).next())})};var tc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?oe:oe.apply(null,arguments)},Al=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function ec(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function St(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var s=t.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return xt(xt({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=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}var rc=(function(e){_s(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.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(t.bind.apply(t,ae([void 0],r[0].concat(this)))):new(t.bind.apply(t,ae([void 0],r.concat(this))))},t})(Array),nc=(function(e){_s(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.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(t.bind.apply(t,ae([void 0],r[0].concat(this)))):new(t.bind.apply(t,ae([void 0],r.concat(this))))},t})(Array);function vn(e){return J(e)?sr(e,function(){}):e}function ic(e){return typeof e=="boolean"}function sc(){return function(t){return oc(t)}}function oc(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,s=e.serializableCheck,o=s===void 0?!0:s,a=e.actionCreatorCheck,c=a===void 0?!0:a,u=new rc;if(r&&(ic(r)?u.push(hn):u.push(hn.withExtraArgument(r.extraArgument))),0){if(i)var l;if(o)var d;if(c)var f}return u}var yn=!0;function Is(e){var t=sc(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,s=r.middleware,o=s===void 0?t():s,a=r.devTools,c=a===void 0?!0:a,u=r.preloadedState,l=u===void 0?void 0:u,d=r.enhancers,f=d===void 0?void 0:d,p;if(typeof i=="function")p=i;else if(ec(i))p=xs(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 h=o;if(typeof h=="function"&&(h=h(t),!yn&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!yn&&h.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var m=Ss.apply(void 0,h),g=oe;c&&(g=tc(xt({trace:!yn},typeof c=="object"&&c)));var v=new nc(m),b=v;Array.isArray(f)?b=ae([m],f):typeof f=="function"&&(b=f(v));var x=g.apply(void 0,b);return pn(p,l,x)}function Ps(e){var t={},r=[],n,i={addCase:function(s,o){var a=typeof s=="string"?s:s.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[a]=o,i},addMatcher:function(s,o){return r.push({matcher:s,reducer:o}),i},addDefaultCase:function(s){return n=s,i}};return e(i),[t,r,n]}function ac(e){return typeof e=="function"}function cc(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?Ps(t):[t,r,n],s=i[0],o=i[1],a=i[2],c;if(ac(e))c=function(){return vn(e())};else{var u=vn(e);c=function(){return u}}function l(d,f){d===void 0&&(d=c());var p=ae([s[f.type]],o.filter(function(h){var m=h.matcher;return m(f)}).map(function(h){var m=h.reducer;return m}));return p.filter(function(h){return!!h}).length===0&&(p=[a]),p.reduce(function(h,m){if(m)if(ut(h)){var g=h,v=m(g,f);return v===void 0?h:v}else{if(J(h))return sr(h,function(b){return m(b,f)});var v=m(h,f);if(v===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}return h},d)}return l.getInitialState=c,l}function uc(e,t){return e+"/"+t}function Ls(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:vn(e.initialState),n=e.reducers||{},i=Object.keys(n),s={},o={},a={};i.forEach(function(l){var d=n[l],f=uc(t,l),p,h;"reducer"in d?(p=d.reducer,h=d.prepare):p=d,s[l]=p,o[f]=p,a[l]=h?St(f,h):St(f)});function c(){var l=typeof e.extraReducers=="function"?Ps(e.extraReducers):[e.extraReducers],d=l[0],f=d===void 0?{}:d,p=l[1],h=p===void 0?[]:p,m=l[2],g=m===void 0?void 0:m,v=xt(xt({},f),o);return cc(r,function(b){for(var x in v)b.addCase(x,v[x]);for(var S=0,I=h;S<I.length;S++){var R=I[S];b.addMatcher(R.matcher,R.reducer)}g&&b.addDefaultCase(g)})}var u;return{name:t,reducer:function(l,d){return u||(u=c()),u(l,d)},actions:a,caseReducers:s,getInitialState:function(){return u||(u=c()),u.getInitialState()}}}var lc="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",dc=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=lc[Math.random()*64|0];return t},fc=["name","message","stack","code"],gn=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),Os=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),pc=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=fc;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},wl=(function(){function e(t,r,n){var i=St(t+"/fulfilled",function(l,d,f,p){return{payload:l,meta:mn(xt({},p||{}),{arg:f,requestId:d,requestStatus:"fulfilled"})}}),s=St(t+"/pending",function(l,d,f){return{payload:void 0,meta:mn(xt({},f||{}),{arg:d,requestId:l,requestStatus:"pending"})}}),o=St(t+"/rejected",function(l,d,f,p,h){return{payload:p,error:(n&&n.serializeError||pc)(l||"Rejected"),meta:mn(xt({},h||{}),{arg:f,requestId:d,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"})}}),a=!1,c=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 u(l){return function(d,f,p){var h=n?.idGenerator?n.idGenerator(l):dc(),m=new c,g,v=!1;function b(S){g=S,m.abort()}var x=(function(){return Za(this,null,function(){var S,I,R,dt,Cr,ft,F;return qa(this,function(B){switch(B.label){case 0:return B.trys.push([0,4,,5]),dt=(S=n?.condition)==null?void 0:S.call(n,l,{getState:f,extra:p}),mc(dt)?[4,dt]:[3,2];case 1:dt=B.sent(),B.label=2;case 2:if(dt===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return v=!0,Cr=new Promise(function($,Et){return m.signal.addEventListener("abort",function(){return Et({name:"AbortError",message:g||"Aborted"})})}),d(s(h,l,(I=n?.getPendingMeta)==null?void 0:I.call(n,{requestId:h,arg:l},{getState:f,extra:p}))),[4,Promise.race([Cr,Promise.resolve(r(l,{dispatch:d,getState:f,extra:p,requestId:h,signal:m.signal,abort:b,rejectWithValue:function($,Et){return new gn($,Et)},fulfillWithValue:function($,Et){return new Os($,Et)}})).then(function($){if($ instanceof gn)throw $;return $ instanceof Os?i($.payload,h,l,$.meta):i($,h,l)})])];case 3:return R=B.sent(),[3,5];case 4:return ft=B.sent(),R=ft instanceof gn?o(null,h,l,ft.payload,ft.meta):o(ft,h,l),[3,5];case 5:return F=n&&!n.dispatchConditionRejection&&o.match(R)&&R.meta.condition,F||d(R),[2,R]}})})})();return Object.assign(x,{abort:b,requestId:h,arg:l,unwrap:function(){return x.then(hc)}})}}return Object.assign(u,{pending:s,rejected:o,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e})();function hc(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function mc(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ks="listener",Ns="completed",Ds="cancelled",Cl="task-"+Ds,Tl="task-"+Ns,Ol=ks+"-"+Ds,Rl=ks+"-"+Ns;var bn="listenerMiddleware";var _l=St(bn+"/add"),Il=St(bn+"/removeAll"),Pl=St(bn+"/remove");var Rs,Ll=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Rs||(Rs=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},yc=function(e){return function(t){setTimeout(t,e)}},kl=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:yc(10);ps();var gc=Xe(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),ar=class extends gc(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ms=class e extends ar{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if(er(s))return s;if(i==null)return;let o=Ls({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=Is({reducer:(c,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let l=Ce(o.getInitialState());for(let d of u.keeping)l[d]=(c??l)[d];return l}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...u.overwrites};return o.reducer(c,u)}});return window.ftReduxStores[i.name]=new e(o,a,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Je;let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let c=o,u=s[c];return u?(...l)=>{let d=u(...l.map(i));return this.reduxStore.dispatch(d),d}:l=>{this.setState({[c]:i(l)})}}}),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()}};var cr=class{static format(t,r,n,i,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(t,r,n,i,!!s)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,i,s){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 s?c:i?`${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 ur=E(T()),vc="ft-app-info",ce=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};ce.eventName="authentication-change";var Pe=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Pe.eventName="ui-locale-changed";var bc={session:(e,t)=>{(0,ur.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new ce(t.payload)),0))}},w=ur.FtReduxStore.get({name:vc,reducers:bc,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 Us=E(T()),lr=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ad=(0,Us.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,s;return((s=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?a=>cr.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return lr([(0,An.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),lr([(0,An.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),lr([Yr({store:w.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),lr([Yr({store:w.name})],t.prototype,"uiLocale",void 0),t});var Fs;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Fs||(Fs={}));var $s;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})($s||($s={}));var js;(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"})(js||(js={}));var Hs;(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"})(Hs||(Hs={}));var Bs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Bs||(Bs={}));var Vs;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Vs||(Vs={}));var zs;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(zs||(zs={}));var Ws;(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"})(Ws||(Ws={}));var Ks;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Ks||(Ks={}));var qs;(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"})(qs||(qs={}));var Gs;(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"})(Gs||(Gs={}));var Ys;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Ys||(Ys={}));var Xs;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Xs||(Xs={}));var Js;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Js||(Js={}));var Qs;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Qs||(Qs={}));var Zs;(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"})(Zs||(Zs={}));var to;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(to||(to={}));var eo;(function(e){e.ASC="ASC",e.DESC="DESC"})(eo||(eo={}));var ro;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(ro||(ro={}));var no;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(no||(no={}));var io;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(io||(io={}));var so;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(so||(so={}));var oo;(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"})(oo||(oo={}));var ao;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ao||(ao={}));var co;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(co||(co={}));var uo;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(uo||(uo={}));var lo;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(lo||(lo={}));var _;(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"})(_||(_={}));var W;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(W||(W={}));var fo;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(fo||(fo={}));var po;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(po||(po={}));var ho;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ho||(ho={}));var mo;(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"})(mo||(mo={}));var yo;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(yo||(yo={}));var go;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(go||(go={}));var vo;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(vo||(vo={}));var bo;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(bo||(bo={}));var Ao;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Ao||(Ao={}));var xo;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(xo||(xo={}));var So;(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"})(So||(So={}));var Eo;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Eo||(Eo={}));var Ac={[_.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 wo(e,t){return e===t||(Ac[e]??[]).some(r=>wo(r,t))}function Co(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=>wo(n,t))}var mr=E(T());var xn=E(T());var Nt=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=w.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=w.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var ue=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Nt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Nt.await()}};var H=class extends ue{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[c])=>a.localeCompare(c)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new xn.CacheRegistry,this.cache=t?i.commonCache:new xn.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 dr=class extends H{async listMySearches(){let{session:t}=w.getState();return Co(t,_.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var fr=class extends H{async listMyBookmarks(){let t=w.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var pr=class extends H{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=w.getState().session;return!!t?.sessionAuthenticated}};var hr=class extends H{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=w.getState().session;return!!t?.sessionAuthenticated}};var xc="ft-user-assets",Sc={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(W).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:i}=t.payload;En(e,r,[...Sn(e,r),i]),To(e,r,1,n),Oo(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;En(e,r,Sn(e,r).map(i=>i.id===n.id?n:i)),Oo(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;En(e,r,Sn(e,r).filter(s=>s.id!==i)),To(e,r,-1,n)}},Ro={[W.SEARCHES]:"savedSearches",[W.BOOKMARKS]:"bookmarks",[W.BOOKS]:void 0,[W.COLLECTIONS]:void 0},Sn=(e,t)=>{var r;let n=Ro[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},En=(e,t,r)=>{let n=Ro[t];n&&(e[n]=r)},To=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===W.BOOKMARKS&&n)){let s=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},Oo=(e,t)=>{let r=e.assetLabels.map(i=>i.title),n=t.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));e.assetLabels.push(...n)},D=mr.FtReduxStore.get({name:xc,reducers:Sc,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(W).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),wn=class{constructor(t=new pr,r=new hr){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new fr,this.savedSearchesService=new dr,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,mr.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===W.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)}}},Ec=new wn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ec);var Cn=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Cn;var K=E(T());var _o,le=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},wc=Symbol("clearAfterUnitTest"),yr=class extends(0,K.withEventBus)(H){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[_o]=()=>{this.defaultMessages={},this.cache=new K.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=w.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,K.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let s=t.toLowerCase(),o=this.resolveContext(s);return new K.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},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(i){!(i instanceof K.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new le({loadedContexts:t})),this.dispatchEvent(new le({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new le({loadedContexts:[t]})),this.dispatchEvent(new le({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,K.delay)(0).then(()=>n()).catch(()=>null)))}};_o=wc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends yr{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends yr{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Le=window.FluidTopicsI18nService,Tn=window.FluidTopicsCustomI18nService;var Io=E(T()),On=class{highlightHtml(t,r,n){(0,Io.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new On;var Po=E(T());var Rn=class{isDate(t){var r,n,i,s;return(s=(i=((n=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===t))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(t,r){var n,i,s,o;if(t==null)return"";try{return Po.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:w.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(s=r?.withTime)!==null&&s!==void 0?s:!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 Rn;var Lo=E(T());var ke=class{static get(t,r){var n,i,s,o;let a=w.getState(),{lang:c,region:u}=(s=(i=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new Lo.SearchPlaceConverter(a.baseUrl,t??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${c}-${u}`)}};var _n=class{urlToSearchRequest(t){return ke.get().parse(t)}searchRequestToUrl(t){return ke.get().serialize(t)}};window.FluidTopicsUrlService=new _n;var lt=E(T());var Dt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Dt.eventName="change";var In=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))}},ko=new In;var gr=class e extends lt.WithEventBus{static build(){return new e(window.history,ko,()=>window.location,!1)}constructor(t,r,n,i){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,lt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Dt(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[s,o,a])=>{let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...s,index:c,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[u,o,a]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Dt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Dt.eventName,t)}currentItem(){return(0,lt.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,lt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,lt.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,lt.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,s=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=gr.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 No=E(it());var Do=No.css`
|
|
138
|
+
`;var Fo=E(it()),U=E(tt()),Ft=E(T());var Mt=E(T());function Mo(e,t){let{authenticationRequired:r,session:n}=w.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var vr=class extends ue{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Pn=class e extends Mt.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new Mt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new vr,this.cleanSessionDebouncer=new Mt.Debouncer,this.reloadDebouncer=new Mt.Debouncer(500),this.apiProvider=r??(()=>Nt.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(ce.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",()=>Mo(()=>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){this.userLocaleService.updateUiLocale({uiLocale:t}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Pe(r)))}).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)}},Uo=Pn.build();var Ut=class extends Event{constructor(t,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var Ne=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:i,callbackRef:s}of n){let o=i.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new Ut(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,i=this.pendingContextRequests.get(t.context);i===void 0&&this.pendingContextRequests.set(t.context,i={callbacks:new WeakMap,requests:[]});let s=i.callbacks.get(r);s===void 0&&i.callbacks.set(r,s=new WeakSet),s.has(n)||(s.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var L=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},O=class extends Ft.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=Uo,this.contextRoot=new Ne}render(){return Fo.html`
|
|
139
139
|
<slot></slot>
|
|
140
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(
|
|
141
|
-
`;var Sr=E(
|
|
140
|
+
`}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())}};O.elementDefinitions={};O.styles=Do;L([(0,U.property)()],O.prototype,"baseUrl",void 0);L([(0,U.property)()],O.prototype,"tenantId",void 0);L([(0,U.property)()],O.prototype,"apiIntegrationIdentifier",void 0);L([(0,U.property)()],O.prototype,"apiIntegrationAppVersion",void 0);L([(0,U.property)()],O.prototype,"uiLocale",void 0);L([(0,Ft.jsonProperty)(null)],O.prototype,"availableUiLocales",void 0);L([(0,Ft.jsonProperty)(null)],O.prototype,"metadataConfiguration",void 0);L([(0,U.property)({type:Boolean})],O.prototype,"editorMode",void 0);L([(0,U.property)({type:Boolean})],O.prototype,"noCustom",void 0);L([(0,U.property)({type:Boolean})],O.prototype,"openExternalDocumentInNewTab",void 0);L([(0,U.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],O.prototype,"noCustomComponent",void 0);L([(0,U.property)({type:Boolean})],O.prototype,"withManualResources",void 0);L([(0,U.property)({type:Boolean})],O.prototype,"navigatorOnline",void 0);L([(0,U.property)({type:Boolean})],O.prototype,"forcedOffline",void 0);L([(0,U.property)({type:Boolean})],O.prototype,"authenticationRequired",void 0);L([(0,Ft.jsonProperty)([])],O.prototype,"messageContexts",void 0);L([(0,Ft.jsonProperty)(void 0)],O.prototype,"session",void 0);var jo=E(T());var $o={"ft-app-context":O};(0,jo.customElements)($o);var Ho=E(tt());var Ln=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-]+$/)}},de=new Ln;var Oc=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Me=Symbol("i18nAttributes"),Bo=Symbol("i18nListAttributes"),Vo=Symbol("i18nProperties"),br=Symbol("i18nContexts"),De=Symbol("i18nUnsubs"),zo=(0,fe.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(s){return s??this.useCustomMessageContexts?Tn:Le}i18n(s){let{context:o,key:a,message:c}=s,{custom:u,args:l,argsProvider:d}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,u);let f=l??(d?d(this):[]);return this.getI18nService(u).resolveMessage(o,a,...f)}return c}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(de.isI18nKey(s)){let[a,c]=s.split(".");return this.i18n({custom:!0,context:a,key:c,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,c)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,c)=>{var u;return((u=c?.context)===null||u===void 0?void 0:u.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let c=this,u=(l,d,f)=>f?.context&&f.key&&s(l,d,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...l})}:f;(o=this[Me])===null||o===void 0||o.forEach((l,d)=>c[d]=u(l,d,c[d])),(a=this[Bo])===null||a===void 0||a.forEach((l,d)=>{var f;return c[d]=(f=c[d])===null||f===void 0?void 0:f.map(p=>u(l,d,p))})}updateI18nProperties(s){var o;(o=this[Vo])===null||o===void 0||o.forEach((a,c)=>{s(a,c)&&(this[c]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let c=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[br].set(c,{isCustomContext:a}),this[De].has(c)||this[De].set(c,this.getI18nService(a).subscribe(c,()=>this.onI18nUpdate(c))),this.getI18nService(a).prepareContext(c,o)}hasI18nContext(s){return this[br].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[br].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[De].forEach(s=>s()),this[De].clear()}}return t=br,r=De,Oc([(0,Ho.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Ar=class extends zo(fe.FtLitElement){},xr=class extends zo(fe.FtLitElementRedux){};var Wo=E(T());var kn=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?de.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Rc=new kn;var Ko=(e,t)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:Wo.hasChanged,converter:de,...t}),r[Me]=(i=r[Me])!==null&&i!==void 0?i:new Map,r[Me].set(n,e??{})};var qo=E(it());var Go=qo.css`
|
|
141
|
+
`;var Sr=E(it()),Er=E(tt()),wr=E(T());var Ue=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Q=class extends xr{constructor(){super(),this.editorMode=!1,this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Sr.nothing:Sr.html`
|
|
142
142
|
<span class="ft-i18n">
|
|
143
143
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
144
144
|
</span>
|
|
145
|
-
`}update(
|
|
145
|
+
`}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:""})}};Q.elementDefinitions={};Q.styles=Go;Ue([(0,wr.redux)()],Q.prototype,"editorMode",void 0);Ue([(0,Er.property)()],Q.prototype,"context",void 0);Ue([(0,Er.property)()],Q.prototype,"key",void 0);Ue([(0,wr.jsonProperty)([])],Q.prototype,"args",void 0);Ue([(0,Er.property)()],Q.prototype,"defaultMessage",void 0);var Xo=E(T());var Yo={"ft-i18n":Q};(0,Xo.customElements)(Yo);var Z=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},k=class extends Ar{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new q.Debouncer,this.revealDebouncer=new q.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)?this.matchesIgnored(t)&&this.hide():this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,r;return Jo.html`
|
|
146
146
|
<div part="container"
|
|
147
147
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
148
148
|
<slot part="slot"></slot>
|
|
@@ -151,13 +151,13 @@
|
|
|
151
151
|
popover="manual">
|
|
152
152
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
153
153
|
<slot name="text"></slot>
|
|
154
|
-
<ft-typography variant="${
|
|
154
|
+
<ft-typography variant="${Ht.caption}" ?hidden=${!(!((t=this.text)===null||t===void 0)&&t.message)}>
|
|
155
155
|
${(r=this.text)===null||r===void 0?void 0:r.message}
|
|
156
156
|
</ft-typography>
|
|
157
157
|
</div>
|
|
158
158
|
</div>
|
|
159
159
|
</div>
|
|
160
|
-
`}setupFor(
|
|
160
|
+
`}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:t},await this.show(r),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Wi(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${q.designSystemVariables.transitionDuration}, left ${q.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,q.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};k.elementDefinitions={"ft-typography":ot};k.styles=gi;Z([Ko()],k.prototype,"text",void 0);Z([(0,G.property)({type:Boolean})],k.prototype,"manual",void 0);Z([(0,G.property)({type:Boolean})],k.prototype,"inline",void 0);Z([(0,q.numberProperty)()],k.prototype,"delay",void 0);Z([(0,G.property)()],k.prototype,"position",void 0);Z([(0,q.jsonProperty)([])],k.prototype,"ignoreMatchingElements",void 0);Z([(0,G.queryAssignedNodes)()],k.prototype,"slotNodes",void 0);Z([(0,G.query)(".ft-tooltip--container")],k.prototype,"container",void 0);Z([(0,G.query)(".ft-tooltip")],k.prototype,"tooltip",void 0);Z([(0,G.query)(".ft-tooltip--content")],k.prototype,"tooltipContent",void 0);Z([(0,G.state)()],k.prototype,"visible",void 0);var Qo={"ft-tooltip":k};(0,Zo.customElements)(Qo);})();
|
|
161
161
|
/*! Bundled license information:
|
|
162
162
|
|
|
163
163
|
lit-html/lit-html.js:
|