@fluid-topics/ft-filter 2.1.23 → 2.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-filter.light.js +121 -123
- package/build/ft-filter.min.js +132 -134
- package/package.json +10 -10
package/build/ft-filter.light.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var Lc=Object.create;var to=Object.defineProperty;var Pc=Object.getOwnPropertyDescriptor;var kc=Object.getOwnPropertyNames;var Dc=Object.getPrototypeOf,Nc=Object.prototype.hasOwnProperty;var Ft=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Ic=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of kc(e))!Nc.call(t,i)&&i!==r&&to(t,i,{get:()=>e[i],enumerable:!(n=Pc(e,i))||n.enumerable});return t};var f=(t,e,r)=>(r=t!=null?Lc(Dc(t)):{},Ic(e||!t||!t.__esModule?to(r,"default",{value:t,enumerable:!0}):r,t));var E=Ft((sd,ro)=>{ro.exports=ftGlobals.wcUtils});var L=Ft((ad,no)=>{no.exports=ftGlobals.lit});var z=Ft((ld,io)=>{io.exports=ftGlobals.litDecorators});var Uo=Ft((Ld,$o)=>{$o.exports=ftGlobals.litRepeat});var Qt=Ft((Pd,Bo)=>{Bo.exports=ftGlobals.litClassMap});var Ml=Ft((Ay,Il)=>{Il.exports=ftGlobals.litUnsafeHTML});var Rc=f(E());var Ht=f(L()),
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),co=/'/g,uo=/"/g,mo=/^(?:script|style|textarea|title)$/i,Xn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),vo=Xn(1),yo=Xn(2),go=Xn(3),gr=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),po=new WeakMap,Et=Ct.createTreeWalker(Ct,129);function bo(t,e){if(!Yn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return so!==void 0?so.createHTML(e):e}var Uc=(t,e)=>{let r=t.length-1,n=[],i,o=e===2?"<svg>":e===3?"<math>":"",s=vr;for(let a=0;a<r;a++){let l=t[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===vr?u[1]==="!--"?s=ao:u[1]!==void 0?s=lo:u[2]!==void 0?(mo.test(u[2])&&(i=RegExp("</"+u[2],"g")),s=St):u[3]!==void 0&&(s=St):s===St?u[0]===">"?(s=i??vr,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?St:u[3]==='"'?uo:co):s===uo||s===co?s=St:s===ao||s===lo?s=vr:(s=St,i=void 0);let h=s===St&&t[a+1].startsWith("/>")?" ":"";o+=s===vr?l+Mc:d>=0?(n.push(c),l.slice(0,d)+fo+l.slice(d)+it+h):l+it+(d===-2?a:h)}return[bo(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},br=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=Uc(e,r);if(this.el=t.createElement(c,n),Et.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=Et.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(fo)){let p=u[s++],h=i.getAttribute(d).split(it),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?zn:m[1]==="?"?Wn:m[1]==="@"?Kn:zt}),i.removeAttribute(d)}else d.startsWith(it)&&(l.push({type:6,index:o}),i.removeAttribute(d));if(mo.test(i.tagName)){let d=i.textContent.split(it),p=d.length-1;if(p>0){i.textContent=Gr?Gr.emptyScript:"";for(let h=0;h<p;h++)i.append(d[h],qr()),Et.nextNode(),l.push({type:2,index:++o});i.append(d[p],qr())}}}else if(i.nodeType===8)if(i.data===ho)l.push({type:2,index:o});else{let d=-1;for(;(d=i.data.indexOf(it,d+1))!==-1;)l.push({type:7,index:o}),d+=it.length-1}o++}}static createElement(e,r){let n=Ct.createElement("template");return n.innerHTML=e,n}};function Vt(t,e,r=t,n){if(e===gr)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=yr(e)?void 0:e._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=Vt(t,i._$AS(t,e.values),i,n)),e}var Vn=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??Ct).importNode(r,!0);Et.currentNode=i;let o=Et.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Yr(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new Gn(o,this,e)),this._$AV.push(c),l=n[++a]}s!==l?.index&&(o=Et.nextNode(),s++)}return Et.currentNode=Ct,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++}},Yr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=W,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=Vt(this,e,r),yr(e)?e===W||e==null||e===""?(this._$AH!==W&&this._$AR(),this._$AH=W):e!==this._$AH&&e!==gr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):$c(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!==W&&yr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ct.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=br.createElement(bo(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new Vn(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=po.get(e.strings);return r===void 0&&po.set(e.strings,r=new br(e)),r}k(e){Yn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of e)i===r.length?r.push(n=new t(this.O(qr()),this.O(qr()),this,this.options)):n=r[i],n._$AI(o),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=oo(e).nextSibling;oo(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},zt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,o){this.type=1,this._$AH=W,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=W}_$AI(e,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)e=Vt(this,e,r,0),s=!yr(e)||e!==this._$AH&&e!==gr,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Vt(this,a[n+l],r,l),c===gr&&(c=this._$AH[l]),s||=!yr(c)||c!==this._$AH[l],c===W?e=W:e!==W&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!i&&this.j(e)}j(e){e===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},zn=class extends zt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===W?void 0:e}},Wn=class extends zt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==W)}},Kn=class extends zt{constructor(e,r,n,i,o){super(e,r,n,i,o),this.type=5}_$AI(e,r=this){if((e=Vt(this,e,r,0)??W)===gr)return;let n=this._$AH,i=e===W&&n!==W||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==W&&(n===W||i);i&&this.element.removeEventListener(this.name,this,n),o&&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)}},Gn=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){Vt(this,e)}};var Bc=qn.litHtmlPolyfillSupport;Bc?.(br,Yr),(qn.litHtmlVersions??=[]).push("3.3.3");var Ao=Symbol.for(""),Hc=t=>{if(t?.r===Ao)return t?._$litStatic$},Jn=t=>({_$litStatic$:t,r:Ao});var xo=new Map,Zn=t=>(e,...r)=>{let n=r.length,i,o,s=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&(o=r[c],(i=Hc(o))!==void 0);)l+=i+e[++c],u=!0;c!==n&&a.push(o),s.push(l),c++}if(c===n&&s.push(e[n]),u){let d=s.join("$$lit$$");(e=xo.get(d))===void 0&&(s.raw=s,xo.set(d,e=s)),r=a}return t(e,...r)},Qn=Zn(vo),dd=Zn(yo),pd=Zn(go);var ei=f(z()),No=f(E());var Q;(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"})(Q||(Q={}));var Ce=f(L()),g=f(E()),So=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.titleFont),Xe=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),A={fontFamily:Xe,fontSize:g.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:g.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:g.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:g.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:g.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Wt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-font-family","",So),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit")},Kt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",So),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit")},Gt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit")},qt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit")},Yt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit")},ye={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit")},Xt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit")},Jt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit")},Zt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase")},ze={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase")},Eo=Ce.css`
|
|
1
|
+
"use strict";(()=>{var Lc=Object.create;var to=Object.defineProperty;var Pc=Object.getOwnPropertyDescriptor;var kc=Object.getOwnPropertyNames;var Dc=Object.getPrototypeOf,Nc=Object.prototype.hasOwnProperty;var Ft=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Ic=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of kc(e))!Nc.call(t,i)&&i!==r&&to(t,i,{get:()=>e[i],enumerable:!(n=Pc(e,i))||n.enumerable});return t};var f=(t,e,r)=>(r=t!=null?Lc(Dc(t)):{},Ic(e||!t||!t.__esModule?to(r,"default",{value:t,enumerable:!0}):r,t));var E=Ft((sd,ro)=>{ro.exports=ftGlobals.wcUtils});var L=Ft((ad,no)=>{no.exports=ftGlobals.lit});var z=Ft((ld,io)=>{io.exports=ftGlobals.litDecorators});var Uo=Ft((Ld,$o)=>{$o.exports=ftGlobals.litRepeat});var Qt=Ft((Pd,Bo)=>{Bo.exports=ftGlobals.litClassMap});var Ml=Ft((Ay,Il)=>{Il.exports=ftGlobals.litUnsafeHTML});var Rc=f(E());var Ht=f(L()),I=f(z()),F=f(E());var Xn=globalThis,oo=t=>t,Yr=Xn.trustedTypes,so=Yr?Yr.createPolicy("lit-html",{createHTML:t=>t}):void 0,fo="$lit$",it=`lit$${Math.random().toFixed(9).slice(2)}$`,ho="?"+it,Mc=`<${ho}>`,Ct=document,Xr=()=>Ct.createComment(""),gr=t=>t===null||typeof t!="object"&&typeof t!="function",Jn=Array.isArray,$c=t=>Jn(t)||typeof t?.[Symbol.iterator]=="function",zn=`[
|
|
2
|
+
\f\r]`,yr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ao=/-->/g,lo=/>/g,St=RegExp(`>|${zn}(?:([^\\s"'>=/]+)(${zn}*=${zn}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),co=/'/g,uo=/"/g,mo=/^(?:script|style|textarea|title)$/i,Zn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),vo=Zn(1),yo=Zn(2),go=Zn(3),br=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),po=new WeakMap,Et=Ct.createTreeWalker(Ct,129);function bo(t,e){if(!Jn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return so!==void 0?so.createHTML(e):e}var Uc=(t,e)=>{let r=t.length-1,n=[],i,o=e===2?"<svg>":e===3?"<math>":"",s=yr;for(let a=0;a<r;a++){let l=t[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===yr?u[1]==="!--"?s=ao:u[1]!==void 0?s=lo:u[2]!==void 0?(mo.test(u[2])&&(i=RegExp("</"+u[2],"g")),s=St):u[3]!==void 0&&(s=St):s===St?u[0]===">"?(s=i??yr,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?St:u[3]==='"'?uo:co):s===uo||s===co?s=St:s===ao||s===lo?s=yr:(s=St,i=void 0);let h=s===St&&t[a+1].startsWith("/>")?" ":"";o+=s===yr?l+Mc:d>=0?(n.push(c),l.slice(0,d)+fo+l.slice(d)+it+h):l+it+(d===-2?a:h)}return[bo(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},xr=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=Uc(e,r);if(this.el=t.createElement(c,n),Et.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=Et.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(fo)){let p=u[s++],h=i.getAttribute(d).split(it),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?Kn:m[1]==="?"?Gn:m[1]==="@"?qn:zt}),i.removeAttribute(d)}else d.startsWith(it)&&(l.push({type:6,index:o}),i.removeAttribute(d));if(mo.test(i.tagName)){let d=i.textContent.split(it),p=d.length-1;if(p>0){i.textContent=Yr?Yr.emptyScript:"";for(let h=0;h<p;h++)i.append(d[h],Xr()),Et.nextNode(),l.push({type:2,index:++o});i.append(d[p],Xr())}}}else if(i.nodeType===8)if(i.data===ho)l.push({type:2,index:o});else{let d=-1;for(;(d=i.data.indexOf(it,d+1))!==-1;)l.push({type:7,index:o}),d+=it.length-1}o++}}static createElement(e,r){let n=Ct.createElement("template");return n.innerHTML=e,n}};function Vt(t,e,r=t,n){if(e===br)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=gr(e)?void 0:e._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=Vt(t,i._$AS(t,e.values),i,n)),e}var Wn=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??Ct).importNode(r,!0);Et.currentNode=i;let o=Et.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Jr(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new Yn(o,this,e)),this._$AV.push(c),l=n[++a]}s!==l?.index&&(o=Et.nextNode(),s++)}return Et.currentNode=Ct,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++}},Jr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=W,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=Vt(this,e,r),gr(e)?e===W||e==null||e===""?(this._$AH!==W&&this._$AR(),this._$AH=W):e!==this._$AH&&e!==br&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):$c(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!==W&&gr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ct.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=xr.createElement(bo(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new Wn(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=po.get(e.strings);return r===void 0&&po.set(e.strings,r=new xr(e)),r}k(e){Jn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of e)i===r.length?r.push(n=new t(this.O(Xr()),this.O(Xr()),this,this.options)):n=r[i],n._$AI(o),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=oo(e).nextSibling;oo(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},zt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,o){this.type=1,this._$AH=W,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=W}_$AI(e,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)e=Vt(this,e,r,0),s=!gr(e)||e!==this._$AH&&e!==br,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Vt(this,a[n+l],r,l),c===br&&(c=this._$AH[l]),s||=!gr(c)||c!==this._$AH[l],c===W?e=W:e!==W&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!i&&this.j(e)}j(e){e===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Kn=class extends zt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===W?void 0:e}},Gn=class extends zt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==W)}},qn=class extends zt{constructor(e,r,n,i,o){super(e,r,n,i,o),this.type=5}_$AI(e,r=this){if((e=Vt(this,e,r,0)??W)===br)return;let n=this._$AH,i=e===W&&n!==W||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==W&&(n===W||i);i&&this.element.removeEventListener(this.name,this,n),o&&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)}},Yn=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){Vt(this,e)}};var Bc=Xn.litHtmlPolyfillSupport;Bc?.(xr,Jr),(Xn.litHtmlVersions??=[]).push("3.3.3");var Ao=Symbol.for(""),Hc=t=>{if(t?.r===Ao)return t?._$litStatic$},Qn=t=>({_$litStatic$:t,r:Ao});var xo=new Map,ei=t=>(e,...r)=>{let n=r.length,i,o,s=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&(o=r[c],(i=Hc(o))!==void 0);)l+=i+e[++c],u=!0;c!==n&&a.push(o),s.push(l),c++}if(c===n&&s.push(e[n]),u){let d=s.join("$$lit$$");(e=xo.get(d))===void 0&&(s.raw=s,xo.set(d,e=s)),r=a}return t(e,...r)},ti=ei(vo),dd=ei(yo),pd=ei(go);var ri=f(z()),No=f(E());var Q;(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"})(Q||(Q={}));var Ce=f(L()),g=f(E()),So=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.titleFont),Xe=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),A={fontFamily:Xe,fontSize:g.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:g.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:g.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:g.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:g.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Wt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-font-family","",So),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit")},Kt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",So),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit")},Gt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit")},qt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit")},Yt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit")},ye={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit")},Xt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit")},Jt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit")},Zt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase")},Fe={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Xe),fontSize:g.FtCssVariableFactory.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase")},Eo=Ce.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
5
|
font-family: ${Wt.fontFamily};
|
|
6
6
|
font-size: ${Wt.fontSize};
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
line-height: ${ye.lineHeight};
|
|
56
56
|
text-transform: ${ye.textTransform};
|
|
57
57
|
}
|
|
58
|
-
`,
|
|
58
|
+
`,Zr=Ce.css`
|
|
59
59
|
.ft-typography--caption {
|
|
60
60
|
font-family: ${Xt.fontFamily};
|
|
61
61
|
font-size: ${Xt.fontSize};
|
|
@@ -84,26 +84,26 @@
|
|
|
84
84
|
}
|
|
85
85
|
`,Po=Ce.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: ${Fe.fontFamily};
|
|
88
|
+
font-size: ${Fe.fontSize};
|
|
89
|
+
font-weight: ${Fe.fontWeight};
|
|
90
|
+
letter-spacing: ${Fe.letterSpacing};
|
|
91
|
+
line-height: ${Fe.lineHeight};
|
|
92
|
+
text-transform: ${Fe.textTransform};
|
|
93
93
|
}
|
|
94
94
|
`,ko=Ce.css`
|
|
95
95
|
.ft-typography {
|
|
96
96
|
vertical-align: inherit;
|
|
97
97
|
}
|
|
98
|
-
`;var Do=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Y=class extends No.FtLitElement{constructor(){super(...arguments),this.variant=Q.body1}render(){return this.element?
|
|
99
|
-
<${
|
|
98
|
+
`;var Do=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Y=class extends No.FtLitElement{constructor(){super(...arguments),this.variant=Q.body1}render(){return this.element?ti`
|
|
99
|
+
<${Qn(this.element)}
|
|
100
100
|
part="text"
|
|
101
101
|
class="ft-typography ft-typography--${this.variant}">
|
|
102
102
|
<slot></slot>
|
|
103
|
-
</${
|
|
104
|
-
`:
|
|
103
|
+
</${Qn(this.element)}>
|
|
104
|
+
`:ti`
|
|
105
105
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
106
|
-
`}};Y.styles=[Eo,Co,Oo,wo,To,_o,
|
|
106
|
+
`}};Y.styles=[Eo,Co,Oo,wo,To,_o,Zr,Ro,Lo,Po,ko];Do([(0,ri.property)()],Y.prototype,"element",void 0);Do([(0,ri.property)()],Y.prototype,"variant",void 0);var Mo=f(E());var Io={"ft-typography":Y};(0,Mo.customElements)(Io);var Ae=f(L()),J=f(z()),gc=f(Uo()),he=f(E());var Ge=f(E());var Go=f(L()),ee=f(z()),qo=f(Qt()),Ar=f(E());var Wo=f(L()),K=f(E()),Ho=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorContent),ce={color:Ho,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ho),opacityContentOnSurfacePressed:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:K.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},jo=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorPrimary),Fo={color:jo,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",jo)},Vo=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorSecondary),zo={color:Vo,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",Vo)},Ko=Wo.css`
|
|
107
107
|
:host {
|
|
108
108
|
display: contents;
|
|
109
109
|
}
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
opacity: ${ce.opacityContentOnSurfacePressed};
|
|
216
216
|
transform: translate(-50%, -50%) scale(1);
|
|
217
217
|
}
|
|
218
|
-
`;var ue=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},P=class extends
|
|
218
|
+
`;var ue=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},P=class extends Ar.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Ar.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Ar.Debouncer(10),this.moveRipple=e=>{var r,n;let{x:i,y:o}=this.getCoordinates(e),s=(n=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Go.html`
|
|
219
219
|
<style>
|
|
220
220
|
.ft-ripple .ft-ripple--effect {
|
|
221
221
|
left: ${this.originX}px;
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
<div class="ft-ripple--background"></div>
|
|
227
227
|
<div class="ft-ripple--effect"></div>
|
|
228
228
|
</div>
|
|
229
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",i,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",i,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,n=e,i,o;return r.x!=null?{x:i,y:o}=r:n.touches!=null&&(i=n.touches[0].clientX,o=n.touches[0].clientY),{x:i,y:o}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};P.elementDefinitions={};P.styles=Ko;ue([(0,ee.property)({type:Boolean})],P.prototype,"primary",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"secondary",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"unbounded",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"activated",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"selected",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"disabled",void 0);ue([(0,ee.state)()],P.prototype,"hovered",void 0);ue([(0,ee.state)()],P.prototype,"focused",void 0);ue([(0,ee.state)()],P.prototype,"pressed",void 0);ue([(0,ee.state)()],P.prototype,"rippling",void 0);ue([(0,ee.state)()],P.prototype,"originX",void 0);ue([(0,ee.state)()],P.prototype,"originY",void 0);ue([(0,ee.query)(".ft-ripple")],P.prototype,"ripple",void 0);ue([(0,ee.query)(".ft-ripple--effect")],P.prototype,"rippleEffect",void 0);var Xo=f(E());var Yo={"ft-ripple":P};(0,Xo.customElements)(Yo);var Ll=f(L()),Re=f(z()),_e=f(E());var Jo=f(L()),ot=f(E()),
|
|
229
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",i,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",i,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,n=e,i,o;return r.x!=null?{x:i,y:o}=r:n.touches!=null&&(i=n.touches[0].clientX,o=n.touches[0].clientY),{x:i,y:o}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};P.elementDefinitions={};P.styles=Ko;ue([(0,ee.property)({type:Boolean})],P.prototype,"primary",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"secondary",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"unbounded",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"activated",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"selected",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"disabled",void 0);ue([(0,ee.state)()],P.prototype,"hovered",void 0);ue([(0,ee.state)()],P.prototype,"focused",void 0);ue([(0,ee.state)()],P.prototype,"pressed",void 0);ue([(0,ee.state)()],P.prototype,"rippling",void 0);ue([(0,ee.state)()],P.prototype,"originX",void 0);ue([(0,ee.state)()],P.prototype,"originY",void 0);ue([(0,ee.query)(".ft-ripple")],P.prototype,"ripple",void 0);ue([(0,ee.query)(".ft-ripple--effect")],P.prototype,"rippleEffect",void 0);var Xo=f(E());var Yo={"ft-ripple":P};(0,Xo.customElements)(Yo);var Ll=f(L()),Re=f(z()),_e=f(E());var Jo=f(L()),ot=f(E()),Sr={distance:ot.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:ot.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:ot.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:ot.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",ot.designSystemVariables.borderRadiusS),maxWidth:ot.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Zo=Jo.css`
|
|
230
230
|
.ft-tooltip--container {
|
|
231
231
|
display: block;
|
|
232
232
|
}
|
|
@@ -244,28 +244,28 @@
|
|
|
244
244
|
box-sizing: border-box;
|
|
245
245
|
overflow: hidden;
|
|
246
246
|
width: max-content;
|
|
247
|
-
max-width: ${
|
|
247
|
+
max-width: ${Sr.maxWidth};
|
|
248
248
|
text-align: center;
|
|
249
|
-
padding: ${
|
|
249
|
+
padding: ${Sr.distance};
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
.ft-tooltip--content {
|
|
253
253
|
padding: 4px 8px;
|
|
254
|
-
border-radius: ${
|
|
255
|
-
background-color: ${
|
|
256
|
-
color: ${
|
|
254
|
+
border-radius: ${Sr.borderRadiusS};
|
|
255
|
+
background-color: ${Sr.backgroundColor};
|
|
256
|
+
color: ${Sr.color};
|
|
257
257
|
position: relative;
|
|
258
258
|
word-break: break-word;
|
|
259
259
|
}
|
|
260
|
-
`;var es=["top","right","bottom","left"],Qo=["start","end"],ri=es.reduce((t,e)=>t.concat(e,e+"-"+Qo[0],e+"-"+Qo[1]),[]),Sr=Math.min,st=Math.max,Er=Math.round;var We=t=>({x:t,y:t}),jc={left:"right",right:"left",bottom:"top",top:"bottom"};function ts(t,e,r){return st(t,Sr(e,r))}function Jr(t,e){return typeof t=="function"?t(e):t}function Cr(t){return t.split("-")[0]}function at(t){return t.split("-")[1]}function ni(t){return t==="x"?"y":"x"}function ii(t){return t==="y"?"height":"width"}function Zr(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function oi(t){return ni(Zr(t))}function rs(t,e,r){r===void 0&&(r=!1);let n=at(t),i=oi(t),o=ii(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=ti(s)),[s,ti(s)]}function ns(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function ti(t){let e=Cr(t);return jc[e]+t.slice(e.length)}function Fc(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 is(t){return typeof t!="number"?Fc(t):{top:t,right:t,bottom:t,left:t}}function Ot(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 os(t,e,r){let{reference:n,floating:i}=t,o=Zr(e),s=oi(e),a=ii(s),l=Cr(e),c=o==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2,h;switch(l){case"top":h={x:u,y:n.y-i.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-i.width,y:d};break;default:h={x:n.x,y:n.y}}let m=at(e);return m&&(h[s]+=p*(m==="end"?1:-1)*(r&&c?-1:1)),h}async function ss(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=Jr(e,t),m=is(h),b=a[p?d==="floating"?"reference":"floating":d],x=Ot(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(b)))==null||r?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),S=d==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),w=await(o.isElement==null?void 0:o.isElement(C))&&await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1},q=Ot(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:C,strategy:l}):S);return{top:(x.top-q.top+m.top)/w.y,bottom:(q.bottom-x.bottom+m.bottom)/w.y,left:(x.left-q.left+m.left)/w.x,right:(q.right-x.right+m.right)/w.x}}var Vc=50,as=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:ss},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=os(c,n,l),p=n,h=0,m={};for(let v=0;v<o.length;v++){let b=o[v];if(!b)continue;let{name:x,fn:S}=b,{x:C,y:w,data:q,reset:V}=await S({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:m,rects:c,platform:a,elements:{reference:t,floating:e}});u=C??u,d=w??d,m[x]={...m[x],...q},V&&h<Vc&&(h++,typeof V=="object"&&(V.placement&&(p=V.placement),V.rects&&(c=V.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):V.rects),{x:u,y:d}=os(c,p,l)),v=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:m}};function zc(t,e,r){return(t?[...r.filter(i=>at(i)===t),...r.filter(i=>at(i)!==t)]:r.filter(i=>Cr(i)===i)).filter(i=>t?at(i)===t||(e?ns(i)!==i:!1):!0)}var ls=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=ri,autoAlignment:h=!0,...m}=Jr(t,e),v=d!==void 0||p===ri?zc(d||null,h,p):p,b=((r=s.autoPlacement)==null?void 0:r.index)||0,x=v[b];if(x==null)return{};if(a!==x)return{reset:{placement:v[0]}};let S=await l.detectOverflow(e,m),C=rs(x,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),w=[S[Cr(x)],S[C[0]],S[C[1]]],q=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:x,overflows:w}],V=v[b+1];if(V)return{data:{index:b+1,overflows:q},reset:{placement:V}};let rt=q.map(me=>{let Ee=at(me.placement);return[me.placement,Ee&&u?me.overflows.slice(0,2).reduce((ve,At)=>ve+At,0):me.overflows[0],me.overflows]}).sort((me,Ee)=>me[1]-Ee[1]),nt=((i=rt.filter(me=>me[2].slice(0,at(me[0])?2:3).every(Ee=>Ee<=0))[0])==null?void 0:i[0])||rt[0][0];return nt!==a?{data:{index:b+1,overflows:q},reset:{placement:nt}}:{}}}};var cs=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:S=>{let{x:C,y:w}=S;return{x:C,y:w}}},...c}=Jr(t,e),u={x:r,y:n},d=await o.detectOverflow(e,c),p=Zr(i),h=ni(p),m=u[h],v=u[p],b=(S,C)=>ts(C+d[S==="y"?"top":"left"],C,C-d[S==="y"?"bottom":"right"]);s&&(m=b(h,m)),a&&(v=b(p,v));let x=l.fn({...e,[h]:m,[p]:v});return{...x,data:{x:x.x-r,y:x.y-n,enabled:{[h]:s,[p]:a}}}}}};function en(){return typeof window<"u"}function Tt(t){return ds(t)?(t.nodeName||"").toLowerCase():"#document"}function de(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Je(t){var e;return(e=(ds(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ds(t){return en()?t instanceof Node||t instanceof de(t).Node:!1}function ke(t){return en()?t instanceof Element||t instanceof de(t).Element:!1}function Ze(t){return en()?t instanceof HTMLElement||t instanceof de(t).HTMLElement:!1}function us(t){return!en()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof de(t).ShadowRoot}function Or(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=De(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&i!=="inline"&&i!=="contents"}function ps(t){return/^(table|td|th)$/.test(Tt(t))}function wr(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Wc=/transform|translate|scale|rotate|perspective|filter/,Kc=/paint|layout|strict|content/,wt=t=>!!t&&t!=="none",si;function er(t){let e=ke(t)?De(t):t;return wt(e.transform)||wt(e.translate)||wt(e.scale)||wt(e.rotate)||wt(e.perspective)||!tn()&&(wt(e.backdropFilter)||wt(e.filter))||Wc.test(e.willChange||"")||Kc.test(e.contain||"")}function fs(t){let e=lt(t);for(;Ze(e)&&!tr(e);){if(er(e))return e;if(wr(e))return null;e=lt(e)}return null}function tn(){return si==null&&(si=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),si}function tr(t){return/^(html|body|#document)$/.test(Tt(t))}function De(t){return de(t).getComputedStyle(t)}function Tr(t){return ke(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function lt(t){if(Tt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||us(t)&&t.host||Je(t);return us(e)?e.host:e}function hs(t){let e=lt(t);return tr(e)?(t.ownerDocument||t).body:Ze(e)&&Or(e)?e:hs(e)}function Qr(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=hs(t),o=i===((n=t.ownerDocument)==null?void 0:n.body),s=de(i);if(o){let a=rn(s);return e.concat(s,s.visualViewport||[],Or(i)?i:[],a&&r?Qr(a):[])}else return e.concat(i,Qr(i,[],r))}function rn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ys(t){let e=De(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=Ze(t),o=i?t.offsetWidth:r,s=i?t.offsetHeight:n,a=Er(r)!==o||Er(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function gs(t){return ke(t)?t:t.contextElement}function rr(t){let e=gs(t);if(!Ze(e))return We(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:o}=ys(e),s=(o?Er(r.width):r.width)/n,a=(o?Er(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Gc=We(0);function bs(t){let e=de(t);return!tn()||!e.visualViewport?Gc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qc(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===de(t)}function _r(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),o=gs(t),s=We(1);e&&(n?ke(n)&&(s=rr(n)):s=rr(t));let a=qc(o,r,n)?bs(o):We(0),l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o&&n){let p=de(o),h=ke(n)?de(n):n,m=p,v=rn(m);for(;v&&h!==m;){let b=rr(v),x=v.getBoundingClientRect(),S=De(v),C=x.left+(v.clientLeft+parseFloat(S.paddingLeft))*b.x,w=x.top+(v.clientTop+parseFloat(S.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=C,c+=w,m=de(v),v=rn(m)}}return Ot({width:u,height:d,x:l,y:c})}function nn(t,e){let r=Tr(t).scrollLeft;return e?e.left+r:_r(Je(t)).left+r}function xs(t,e){let r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-nn(t,r),i=r.top+e.scrollTop;return{x:n,y:i}}function Yc(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t,o=i==="fixed",s=Je(n),a=e?wr(e.floating):!1;if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=We(1),u=We(0),d=Ze(n);if((d||!o)&&((Tt(n)!=="body"||Or(s))&&(l=Tr(n)),d)){let h=_r(n);c=rr(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}let p=s&&!d&&!o?xs(s,l):We(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function Xc(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Jc(t){let e=Tr(t),r=t.ownerDocument.body,n=st(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=st(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+nn(t),s=-e.scrollTop;return De(r).direction==="rtl"&&(o+=st(t.clientWidth,r.clientWidth)-n),{width:n,height:i,x:o,y:s}}var Zc=25;function Qc(t,e,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=de(t),o=Je(t),s=i.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!tn()||e==="fixed";n?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(nn(o)<=0){let p=o.ownerDocument,h=p.body,m=getComputedStyle(h),v=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(o.clientWidth-h.clientWidth-v),x=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;x<=Zc&&(a-=x)}return{width:a,height:l,x:c,y:u}}function eu(t,e){let r=_r(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,o=rr(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=i*o.x,c=n*o.y;return{width:s,height:a,x:l,y:c}}function ms(t,e,r){let n;if(e==="viewport"||e==="layoutViewport")n=Qc(t,r,e);else if(e==="document")n=Jc(Je(t));else if(ke(e))n=eu(e,r);else{let i=bs(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Ot(n)}function tu(t,e){let r=e.get(t);if(r)return r;let n=Qr(t,[],!1).filter(a=>ke(a)&&Tt(a)!=="body"),i=null,o=De(t).position==="fixed",s=o?lt(t):t;for(;ke(s)&&!tr(s);){let a=De(s),l=er(s),c=i?i.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(d=>d!==s):i=a,s=lt(s)}return e.set(t,n),n}function ru(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,s=[...r==="clippingAncestors"?wr(e)?[]:tu(e,this._c):[].concat(r),n],a=ms(e,s[0],i),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let h=ms(e,s[p],i);l=st(h.top,l),c=Sr(h.right,c),u=Sr(h.bottom,u),d=st(h.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function nu(t){let{width:e,height:r}=ys(t);return{width:e,height:r}}function iu(t,e,r){let n=Ze(e),i=Je(e),o=r==="fixed",s=_r(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=We(0);if((n||!o)&&((Tt(e)!=="body"||Or(i))&&(a=Tr(e)),n)){let p=_r(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!n&&i&&(l.x=nn(i));let c=i&&!n&&!o?xs(i,a):We(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function ai(t){return De(t).position==="static"}function vs(t,e){if(!Ze(t)||De(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Je(t)===r&&(r=r.ownerDocument.body),r}function As(t,e){let r=de(t);if(wr(t))return r;if(!Ze(t)){let i=lt(t);for(;i&&!tr(i);){if(ke(i)&&!ai(i))return i;i=lt(i)}return r}let n=vs(t,e);for(;n&&ps(n)&&ai(n);)n=vs(n,e);return n&&tr(n)&&ai(n)&&!er(n)?r:n||fs(t)||r}var ou=async function(t){let e=this.getOffsetParent||As,r=this.getDimensions,n=await r(t.floating);return{reference:iu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function su(t){return De(t).direction==="rtl"}var on={convertOffsetParentRelativeRectToViewportRelativeRect:Yc,getDocumentElement:Je,getClippingRect:ru,getOffsetParent:As,getElementRects:ou,getClientRects:Xc,getDimensions:nu,getScale:rr,isElement:ke,isRTL:su};var Ss=ls,Es=cs;var Cs=(t,e,r)=>{let n=new Map,i=r??{},o={...on,...i.platform,_c:n};return as(t,e,{...i,platform:o})};function Os(t){return au(t)}function li(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function au(t){for(let e=t;e;e=li(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=li(t);e;e=li(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||er(r)||e.tagName==="BODY"))return e}return null}async function ws(t,e,r){let n;return typeof r=="object"?n=r:n={placement:r},Cs(t,e,{strategy:n.strategy,platform:{...on,getOffsetParent:i=>on.getOffsetParent(i,Os)},middleware:[Es({crossAxis:!0}),Ss({allowedPlacements:[n.placement]})]})}var hr=f(E());var Ni=f(z());var Ts=f(z(),1);var ci=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function _s(t,e){return(0,Ts.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Rr(t);try{return JSON.parse(r)}catch{return Rr(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Lr,...e??{}})}function lu(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(!sn(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(!sn(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=s=>Object.keys(s).filter(a=>s[a]!=null),o=i(t);if(r=o.length,r!==i(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[n]))return!1;for(n=r;n--!==0;){let s=o[n];if(!sn(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function sn(t,e){try{return lu(t,e)}catch{return!1}}function Lr(t,e){return!sn(t,e)}function Rr(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function an(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 Rs=f(z(),1);var ui=t=>{let e=t??{};return(r,n)=>{var i;let o={hasChanged:Lr,attribute:!1,...e};(0,Rs.property)(o)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(a=>a[n]),store:e.store})}};var ln=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 _t=f(z(),1);var cn=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),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of n)try{await s()}catch(a){i(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ps=f(L(),1);var un=globalThis,cu=un.ShadowRoot&&(un.ShadyCSS===void 0||un.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Ls=(t,e)=>{if(cu)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=un.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}};var dn=class extends Ps.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 Ls(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){ci(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 ks(t,e,...r){var n;let i=t.querySelector(e);for(let o of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(o);return i}var ir=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Ms,Ds=Symbol("constructorPrototype"),Ns=Symbol("constructorName"),$s=Symbol("exportpartsDebouncer"),Is=Symbol("dynamicDependenciesLoaded"),nr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};nr.eventName="exportparts-updated";var Ke=class extends dn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ms]=new cn(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[$s].run(()=>{var i,o;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ns]=this.constructor.name,this[Ds]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ns]&&Object.setPrototypeOf(this,this[Ds])}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[Is]||(r[Is]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(nr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(nr.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 nr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let o=[...i??[],n];r=ks(this.shadowRoot,...o)}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(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,n,i,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=e.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let h=(o=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],m=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],v=[...h,...m].filter(l).map(b=>b.trim());for(let b of v)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(h=>`${p}:${h}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Ms=$s;ir([(0,_t.property)()],Ke.prototype,"exportpartsPrefix",void 0);ir([_s([])],Ke.prototype,"exportpartsPrefixes",void 0);ir([(0,_t.property)({reflect:!0})],Ke.prototype,"exportparts",void 0);ir([(0,_t.property)()],Ke.prototype,"customStylesheet",void 0);ir([(0,_t.property)()],Ke.prototype,"elementToFocus",void 0);ir([(0,_t.state)()],Ke.prototype,"useAdoptedStyleSheets",void 0);function pn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Pr=Symbol("internalReduxEventsUnsubscribers"),ct=Symbol("internalStoresUnsubscribers"),Rt=Symbol("internalStores"),uu=an(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(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Rt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Rt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Rt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Rt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Rt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Rt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[ct].has(s.store):this[ct].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[ct].set(s,a.subscribe(()=>this.updateFromStores())),this[Pr].set(s,[]),pn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[Pr].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ct].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[ct].has(s)&&this[ct].get(s)(),this[ct].delete(s),(a=this[Pr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Pr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ct,r=Rt,n=Pr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Us=class extends uu(Ke){};function Oe(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,o;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Qe(t){return!!t&&!!t[U]}function Ne(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)===gu})(t)||Array.isArray(t)||!!t[Ws]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ws])||bi(t)||xi(t))}function Lt(t,e,r){r===void 0&&(r=!1),ar(t)===0?(r?Object.keys:sr)(t).forEach((function(n){r&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,i){return e(i,n,t)}))}function ar(t){var e=t[U];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:bi(t)?2:xi(t)?3:0}function or(t,e){return ar(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function du(t,e){return ar(t)===2?t.get(e):t[e]}function Ks(t,e,r){var n=ar(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Gs(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function bi(t){return vu&&t instanceof Map}function xi(t){return yu&&t instanceof Set}function ut(t){return t.o||t.t}function Ai(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Xs(t);delete e[U];for(var r=sr(e),n=0;n<r.length;n++){var i=r[n],o=e[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Si(t,e){return e===void 0&&(e=!1),Ei(t)||Qe(t)||!Ne(t)||(ar(t)>1&&(t.set=t.add=t.clear=t.delete=pu),Object.freeze(t),e&&Lt(t,(function(r,n){return Si(n,!0)}),!0)),t}function pu(){Oe(2)}function Ei(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ge(t){var e=gi[t];return e||Oe(18,t),e}function fu(t,e){gi[t]||(gi[t]=e)}function mi(){return Dr}function di(t,e){e&&(Ge("Patches"),t.u=[],t.s=[],t.v=e)}function fn(t){vi(t),t.p.forEach(hu),t.p=null}function vi(t){t===Dr&&(Dr=t.l)}function Bs(t){return Dr={p:[],l:Dr,h:t,m:!0,_:0}}function hu(t){var e=t[U];e.i===0||e.i===1?e.j():e.g=!0}function pi(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Ge("ES5").S(e,t,n),n?(r[U].P&&(fn(e),Oe(4)),Ne(t)&&(t=hn(e,t),e.l||mn(e,t)),e.u&&Ge("Patches").M(r[U].t,t,e.u,e.s)):t=hn(e,r,[]),fn(e),e.u&&e.v(e.u,e.s),t!==Ys?t:void 0}function hn(t,e,r){if(Ei(e))return e;var n=e[U];if(!n)return Lt(e,(function(a,l){return Hs(t,n,e,a,l,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return mn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ai(n.k):n.o,o=i,s=!1;n.i===3&&(o=new Set(i),i.clear(),s=!0),Lt(o,(function(a,l){return Hs(t,n,i,a,l,r,s)})),mn(t,i,!1),r&&t.u&&Ge("Patches").N(n,r,t.u,t.s)}return n.o}function Hs(t,e,r,n,i,o,s){if(Qe(i)){var a=hn(t,i,o&&e&&e.i!==3&&!or(e.R,n)?o.concat(n):void 0);if(Ks(r,n,a),!Qe(a))return;t.m=!1}else s&&r.add(i);if(Ne(i)&&!Ei(i)){if(!t.h.D&&t._<1)return;hn(t,i),e&&e.A.l||mn(t,i)}}function mn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Si(e,r)}function fi(t,e){var r=t[U];return(r?ut(r):t)[e]}function js(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 dt(t){t.P||(t.P=!0,t.l&&dt(t.l))}function hi(t){t.o||(t.o=Ai(t.t))}function yi(t,e,r){var n=bi(e)?Ge("MapSet").F(e,r):xi(e)?Ge("MapSet").T(e,r):t.O?(function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:mi(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,c=Nr;s&&(l=[a],c=kr);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(e,r):Ge("ES5").J(e,r);return(r?r.A:mi()).p.push(n),n}function mu(t){return Qe(t)||Oe(22,t),(function e(r){if(!Ne(r))return r;var n,i=r[U],o=ar(r);if(i){if(!i.P&&(i.i<4||!Ge("ES5").K(i)))return i.t;i.I=!0,n=Fs(r,o),i.I=!1}else n=Fs(r,o);return Lt(n,(function(s,a){i&&du(i.t,s)===a||Ks(n,s,e(a))})),o===3?new Set(n):n})(t)}function Fs(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ai(t)}function qs(){function t(s,a){var l=o[s];return l?l.enumerable=a:o[s]=l={configurable:!0,enumerable:a,get:function(){var c=this[U];return Nr.get(c,s)},set:function(c){var u=this[U];Nr.set(u,s,c)}},l}function e(s){for(var a=s.length-1;a>=0;a--){var l=s[a][U];if(!l.P)switch(l.i){case 5:n(l)&&dt(l);break;case 4:r(l)&&dt(l)}}}function r(s){for(var a=s.t,l=s.k,c=sr(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==U){var p=a[d];if(p===void 0&&!or(a,d))return!0;var h=l[d],m=h&&h[U];if(m?m.t!==p:!Gs(h,p))return!0}}var v=!!a[U];return c.length!==sr(a).length+(v?0:1)}function n(s){var a=s.k;if(a.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function i(s){s.g&&Oe(3,JSON.stringify(ut(s)))}var o={};fu("ES5",{J:function(s,a){var l=Array.isArray(s),c=(function(d,p){if(d){for(var h=Array(p.length),m=0;m<p.length;m++)Object.defineProperty(h,""+m,t(m,!0));return h}var v=Xs(p);delete v[U];for(var b=sr(v),x=0;x<b.length;x++){var S=b[x];v[S]=t(S,d||!!v[S].enumerable)}return Object.create(Object.getPrototypeOf(p),v)})(l,s),u={i:l?5:4,A:a?a.A:mi(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,U,{value:u,writable:!0}),c},S:function(s,a,l){l?Qe(a)&&a[U].A===s&&e(s.p):(s.u&&(function c(u){if(u&&typeof u=="object"){var d=u[U];if(d){var p=d.t,h=d.k,m=d.R,v=d.i;if(v===4)Lt(h,(function(w){w!==U&&(p[w]!==void 0||or(p,w)?m[w]||c(h[w]):(m[w]=!0,dt(d)))})),Lt(p,(function(w){h[w]!==void 0||or(h,w)||(m[w]=!1,dt(d))}));else if(v===5){if(n(d)&&(dt(d),m.length=!0),h.length<p.length)for(var b=h.length;b<p.length;b++)m[b]=!1;else for(var x=p.length;x<h.length;x++)m[x]=!0;for(var S=Math.min(h.length,p.length),C=0;C<S;C++)h.hasOwnProperty(C)||(m[C]=!0),m[C]===void 0&&c(h[C])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Vs,Dr,Ci=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",vu=typeof Map<"u",yu=typeof Set<"u",zs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ys=Ci?Symbol.for("immer-nothing"):((Vs={})["immer-nothing"]=!0,Vs),Ws=Ci?Symbol.for("immer-draftable"):"__$immer_draftable",U=Ci?Symbol.for("immer-state"):"__$immer_state";var gu=""+Object.prototype.constructor,sr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Xs=Object.getOwnPropertyDescriptors||function(t){var e={};return sr(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},gi={},Nr={get:function(t,e){if(e===U)return t;var r=ut(t);if(!or(r,e))return(function(i,o,s){var a,l=js(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(i.k):void 0})(t,r,e);var n=r[e];return t.I||!Ne(n)?n:n===fi(t.t,e)?(hi(t),t.o[e]=yi(t.A.h,n,t)):n},has:function(t,e){return e in ut(t)},ownKeys:function(t){return Reflect.ownKeys(ut(t))},set:function(t,e,r){var n=js(ut(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=fi(ut(t),e),o=i?.[U];if(o&&o.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Gs(r,i)&&(r!==void 0||or(t.t,e)))return!0;hi(t),dt(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 fi(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,hi(t),dt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ut(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Oe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Oe(12)}},kr={};Lt(Nr,(function(t,e){kr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),kr.deleteProperty=function(t,e){return kr.set.call(this,t,e,void 0)},kr.set=function(t,e,r){return Nr.set.call(this,t[0],e,r,t[0])};var bu=(function(){function t(r){var n=this;this.O=zs,this.D=!0,this.produce=function(i,o,s){if(typeof i=="function"&&typeof o!="function"){var a=o;o=i;var l=n;return function(v){var b=this;v===void 0&&(v=a);for(var x=arguments.length,S=Array(x>1?x-1:0),C=1;C<x;C++)S[C-1]=arguments[C];return l.produce(v,(function(w){var q;return(q=o).call.apply(q,[b,w].concat(S))}))}}var c;if(typeof o!="function"&&Oe(6),s!==void 0&&typeof s!="function"&&Oe(7),Ne(i)){var u=Bs(n),d=yi(n,i,void 0),p=!0;try{c=o(d),p=!1}finally{p?fn(u):vi(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(v){return di(u,s),pi(v,u)}),(function(v){throw fn(u),v})):(di(u,s),pi(c,u))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===Ys&&(c=void 0),n.D&&Si(c,!0),s){var h=[],m=[];Ge("Patches").M(i,c,h,m),s(h,m)}return c}Oe(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,(function(h){return i.apply(void 0,[h].concat(d))}))};var s,a,l=n.produce(i,o,(function(c,u){s=c,a=u}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,s,a]})):[l,s,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){Ne(r)||Oe(8),Qe(r)&&(r=mu(r));var n=Bs(this),i=yi(this,r,void 0);return i[U].C=!0,vi(n),i},e.finishDraft=function(r,n){var i=r&&r[U],o=i.A;return di(o,n),pi(void 0,o)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!zs&&Oe(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var s=Ge("Patches").$;return Qe(r)?s(r,n):this.produce(r,(function(a){return s(a,n)}))},t})(),ge=new bu,xu=ge.produce,Hp=ge.produceWithPatches.bind(ge),jp=ge.setAutoFreeze.bind(ge),Fp=ge.setUseProxies.bind(ge),Vp=ge.applyPatches.bind(ge),zp=ge.createDraft.bind(ge),Wp=ge.finishDraft.bind(ge),vn=xu;function Pt(t){"@babel/helpers - typeof";return Pt=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},Pt(t)}function Js(t,e){if(Pt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Pt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Zs(t){var e=Js(t,"string");return Pt(e)=="symbol"?e:e+""}function Qs(t,e,r){return(e=Zs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ea(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 Oi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ea(Object(r),!0).forEach(function(n){Qs(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ea(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function oe(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 ta=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),wi=function(){return Math.random().toString(36).substring(7).split("").join(".")},yn={INIT:"@@redux/INIT"+wi(),REPLACE:"@@redux/REPLACE"+wi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wi()}};function Au(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 Ti(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(oe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(oe(1));return r(Ti)(t,e)}if(typeof t!="function")throw new Error(oe(2));var i=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(oe(3));return o}function d(v){if(typeof v!="function")throw new Error(oe(4));if(l)throw new Error(oe(5));var b=!0;return c(),a.push(v),function(){if(b){if(l)throw new Error(oe(6));b=!1,c();var S=a.indexOf(v);a.splice(S,1),s=null}}}function p(v){if(!Au(v))throw new Error(oe(7));if(typeof v.type>"u")throw new Error(oe(8));if(l)throw new Error(oe(9));try{l=!0,o=i(o,v)}finally{l=!1}for(var b=s=a,x=0;x<b.length;x++){var S=b[x];S()}return v}function h(v){if(typeof v!="function")throw new Error(oe(10));i=v,p({type:yn.REPLACE})}function m(){var v,b=d;return v={subscribe:function(S){if(typeof S!="object"||S===null)throw new Error(oe(11));function C(){S.next&&S.next(u())}C();var w=b(C);return{unsubscribe:w}}},v[ta]=function(){return this},v}return p({type:yn.INIT}),n={dispatch:p,subscribe:d,getState:u,replaceReducer:h},n[ta]=m,n}function Su(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:yn.INIT});if(typeof n>"u")throw new Error(oe(12));if(typeof r(void 0,{type:yn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(oe(13))})}function ra(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 o=Object.keys(r),s,a;try{Su(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var p=!1,h={},m=0;m<o.length;m++){var v=o[m],b=r[v],x=c[v],S=b(x,u);if(typeof S>"u"){var C=u&&u.type;throw new Error(oe(14))}h[v]=S,p=p||S!==x}return p=p||o.length!==Object.keys(c).length,p?h:c}}function lr(){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 na(){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),o=function(){throw new Error(oe(15))},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=lr.apply(void 0,a)(i.dispatch),Oi(Oi({},i),{},{dispatch:o})}}}function ia(t){var e=function(n){var i=n.dispatch,o=n.getState;return function(s){return function(a){return typeof a=="function"?a(i,o,t):s(a)}}};return e}var oa=ia();oa.withExtraArgument=ia;var _i=oa;var ua=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},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)}})(),Eu=function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},cr=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},Cu=Object.defineProperty,Ou=Object.defineProperties,wu=Object.getOwnPropertyDescriptors,sa=Object.getOwnPropertySymbols,Tu=Object.prototype.hasOwnProperty,_u=Object.prototype.propertyIsEnumerable,aa=function(t,e,r){return e in t?Cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},pt=function(t,e){for(var r in e||(e={}))Tu.call(e,r)&&aa(t,r,e[r]);if(sa)for(var n=0,i=sa(e);n<i.length;n++){var r=i[n];_u.call(e,r)&&aa(t,r,e[r])}return t},Ri=function(t,e){return Ou(t,wu(e))},Ru=function(t,e,r){return new Promise(function(n,i){var o=function(l){try{a(r.next(l))}catch(c){i(c)}},s=function(l){try{a(r.throw(l))}catch(c){i(c)}},a=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(o,s)};a((r=r.apply(t,e)).next())})};var Lu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?lr:lr.apply(null,arguments)},uf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Pu(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 ft(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var o=e.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return pt(pt({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.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 ku=(function(t){ua(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,cr([void 0],r[0].concat(this)))):new(e.bind.apply(e,cr([void 0],r.concat(this))))},e})(Array),Du=(function(t){ua(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,cr([void 0],r[0].concat(this)))):new(e.bind.apply(e,cr([void 0],r.concat(this))))},e})(Array);function ki(t){return Ne(t)?vn(t,function(){}):t}function Nu(t){return typeof t=="boolean"}function Iu(){return function(e){return Mu(e)}}function Mu(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,o=t.serializableCheck,s=o===void 0?!0:o,a=t.actionCreatorCheck,l=a===void 0?!0:a,c=new ku;if(r&&(Nu(r)?c.push(_i):c.push(_i.withExtraArgument(r.extraArgument))),0){if(i)var u;if(s)var d;if(l)var p}return c}var Li=!0;function da(t){var e=Iu(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,o=r.middleware,s=o===void 0?e():o,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,u=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,h;if(typeof i=="function")h=i;else if(Pu(i))h=ra(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 m=s;if(typeof m=="function"&&(m=m(e),!Li&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Li&&m.some(function(w){return typeof w!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=na.apply(void 0,m),b=lr;l&&(b=Lu(pt({trace:!Li},typeof l=="object"&&l)));var x=new Du(v),S=x;Array.isArray(p)?S=cr([v],p):typeof p=="function"&&(S=p(x));var C=b.apply(void 0,S);return Ti(h,u,C)}function pa(t){var e={},r=[],n,i={addCase:function(o,s){var a=typeof o=="string"?o:o.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]=s,i},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),i},addDefaultCase:function(o){return n=o,i}};return t(i),[e,r,n]}function $u(t){return typeof t=="function"}function Uu(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?pa(e):[e,r,n],o=i[0],s=i[1],a=i[2],l;if($u(t))l=function(){return ki(t())};else{var c=ki(t);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var h=cr([o[p.type]],s.filter(function(m){var v=m.matcher;return v(p)}).map(function(m){var v=m.reducer;return v}));return h.filter(function(m){return!!m}).length===0&&(h=[a]),h.reduce(function(m,v){if(v)if(Qe(m)){var b=m,x=v(b,p);return x===void 0?m:x}else{if(Ne(m))return vn(m,function(S){return v(S,p)});var x=v(m,p);if(x===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}return m},d)}return u.getInitialState=l,u}function Bu(t,e){return t+"/"+e}function fa(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:ki(t.initialState),n=t.reducers||{},i=Object.keys(n),o={},s={},a={};i.forEach(function(u){var d=n[u],p=Bu(e,u),h,m;"reducer"in d?(h=d.reducer,m=d.prepare):h=d,o[u]=h,s[p]=h,a[u]=m?ft(p,m):ft(p)});function l(){var u=typeof t.extraReducers=="function"?pa(t.extraReducers):[t.extraReducers],d=u[0],p=d===void 0?{}:d,h=u[1],m=h===void 0?[]:h,v=u[2],b=v===void 0?void 0:v,x=pt(pt({},p),s);return Uu(r,function(S){for(var C in x)S.addCase(C,x[C]);for(var w=0,q=m;w<q.length;w++){var V=q[w];S.addMatcher(V.matcher,V.reducer)}b&&S.addDefaultCase(b)})}var c;return{name:e,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var Hu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ju=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Hu[Math.random()*64|0];return e},Fu=["name","message","stack","code"],Pi=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),la=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Vu=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Fu;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},hf=(function(){function t(e,r,n){var i=ft(e+"/fulfilled",function(u,d,p,h){return{payload:u,meta:Ri(pt({},h||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),o=ft(e+"/pending",function(u,d,p){return{payload:void 0,meta:Ri(pt({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),s=ft(e+"/rejected",function(u,d,p,h,m){return{payload:h,error:(n&&n.serializeError||Vu)(u||"Rejected"),meta:Ri(pt({},m||{}),{arg:p,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u})();function c(u){return function(d,p,h){var m=n?.idGenerator?n.idGenerator(u):ju(),v=new l,b,x=!1;function S(w){b=w,v.abort()}var C=(function(){return Ru(this,null,function(){var w,q,V,rt,jn,nt,me;return Eu(this,function(Ee){switch(Ee.label){case 0:return Ee.trys.push([0,4,,5]),rt=(w=n?.condition)==null?void 0:w.call(n,u,{getState:p,extra:h}),Wu(rt)?[4,rt]:[3,2];case 1:rt=Ee.sent(),Ee.label=2;case 2:if(rt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return x=!0,jn=new Promise(function(ve,At){return v.signal.addEventListener("abort",function(){return At({name:"AbortError",message:b||"Aborted"})})}),d(o(m,u,(q=n?.getPendingMeta)==null?void 0:q.call(n,{requestId:m,arg:u},{getState:p,extra:h}))),[4,Promise.race([jn,Promise.resolve(r(u,{dispatch:d,getState:p,extra:h,requestId:m,signal:v.signal,abort:S,rejectWithValue:function(ve,At){return new Pi(ve,At)},fulfillWithValue:function(ve,At){return new la(ve,At)}})).then(function(ve){if(ve instanceof Pi)throw ve;return ve instanceof la?i(ve.payload,m,u,ve.meta):i(ve,m,u)})])];case 3:return V=Ee.sent(),[3,5];case 4:return nt=Ee.sent(),V=nt instanceof Pi?s(null,m,u,nt.payload,nt.meta):s(nt,m,u),[3,5];case 5:return me=n&&!n.dispatchConditionRejection&&s.match(V)&&V.meta.condition,me||d(V),[2,V]}})})})();return Object.assign(C,{abort:S,requestId:m,arg:u,unwrap:function(){return C.then(zu)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t})();function zu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Wu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var ha="listener",ma="completed",va="cancelled",mf="task-"+va,vf="task-"+ma,yf=ha+"-"+va,gf=ha+"-"+ma;var Di="listenerMiddleware";var bf=ft(Di+"/add"),xf=ft(Di+"/removeAll"),Af=ft(Di+"/remove");var ca,Sf=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ca||(ca=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Ku=function(t){return function(e){setTimeout(e,t)}},Ef=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ku(10);qs();var Gu=an(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)}}}),gn=class extends Gu(Object){};window.ftReduxStores||(window.ftReduxStores={});var ya=class t extends gn{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,o=window.ftReduxStores[n];if(pn(o))return o;if(i==null)return;let s=fa({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=da({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Rr(s.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[i.name]=new t(s,a,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new ln;let i=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(i));return this.reduxStore.dispatch(d),d}:u=>{this.setState({[l]:i(u)})}}}),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 bn=class{static format(e,r,n,i,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i,!!o)):this.getIntlDateTime(e,r,n,i,!!o)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:i?`${a} ${l}`:a}static getTimezoneAsString(){let 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 xn=f(E()),qu="ft-app-info",ur=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ur.eventName="authentication-change";var Ir=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ir.eventName="ui-locale-changed";var Yu={session:(t,e)=>{(0,xn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>T.dispatchEvent(new ur(e.payload)),0))}},T=xn.FtReduxStore.get({name:qu,reducers:Yu,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 ga=f(E()),An=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Jf=(0,ga.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(T)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,o;return((o=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1)?a=>bn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return An([(0,Ni.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),An([(0,Ni.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),An([ui({store:T.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),An([ui({store:T.name})],e.prototype,"uiLocale",void 0),e});var ba;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ba||(ba={}));var xa;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(xa||(xa={}));var Aa;(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"})(Aa||(Aa={}));var Sa;(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"})(Sa||(Sa={}));var Ea;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ea||(Ea={}));var Ca;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ca||(Ca={}));var Oa;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Oa||(Oa={}));var wa;(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"})(wa||(wa={}));var Ta;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Ta||(Ta={}));var _a;(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"})(_a||(_a={}));var Ra;(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"})(Ra||(Ra={}));var La;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(La||(La={}));var Pa;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Pa||(Pa={}));var ka;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ka||(ka={}));var Da;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Da||(Da={}));var Na;(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"})(Na||(Na={}));var Ia;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ia||(Ia={}));var Ma;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ma||(Ma={}));var $a;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})($a||($a={}));var Ua;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ua||(Ua={}));var Ba;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ba||(Ba={}));var Ha;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ha||(Ha={}));var ja;(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"})(ja||(ja={}));var Fa;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Fa||(Fa={}));var Va;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Va||(Va={}));var za;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(za||(za={}));var Wa;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wa||(Wa={}));var G;(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"})(G||(G={}));var we;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(we||(we={}));var Ka;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Ka||(Ka={}));var Ga;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Ga||(Ga={}));var qa;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(qa||(qa={}));var Ya;(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"})(Ya||(Ya={}));var Xa;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Xa||(Xa={}));var Ja;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ja||(Ja={}));var Za;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Za||(Za={}));var Qa;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Qa||(Qa={}));var el;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(el||(el={}));var tl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(tl||(tl={}));var rl;(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"})(rl||(rl={}));var nl;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(nl||(nl={}));var Xu={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN,G.BEHAVIOR_DATA_USER],[G.GENERATIVE_AI_EXPORT_USER]:[G.GENERATIVE_AI_USER]};function il(t,e){return t===e||(Xu[t]??[]).some(r=>il(r,e))}function ol(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=>il(n,e))}var wn=f(E());var Ii=f(E());var kt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=T.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=T.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var dr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:kt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):kt.await()}};var be=class extends dr{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Ii.CacheRegistry,this.cache=e?i.commonCache:new Ii.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 Sn=class extends be{async listMySearches(){let{session:e}=T.getState();return ol(e,G.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var En=class extends be{async listMyBookmarks(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Cn=class extends be{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=T.getState().session;return!!e?.sessionAuthenticated}};var On=class extends be{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=T.getState().session;return!!e?.sessionAuthenticated}};var Ju="ft-user-assets",Zu={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(we).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;$i(t,r,[...Mi(t,r),i]),sl(t,r,1,n),al(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;$i(t,r,Mi(t,r).map(i=>i.id===n.id?n:i)),al(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;$i(t,r,Mi(t,r).filter(o=>o.id!==i)),sl(t,r,-1,n)}},ll={[we.SEARCHES]:"savedSearches",[we.BOOKMARKS]:"bookmarks",[we.BOOKS]:void 0,[we.COLLECTIONS]:void 0},Mi=(t,e)=>{var r;let n=ll[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},$i=(t,e,r)=>{let n=ll[e];n&&(t[n]=r)},sl=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===we.BOOKMARKS&&n)){let o=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,o+r)}},al=(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)},ae=wn.FtReduxStore.get({name:Ju,reducers:Zu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(we).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ui=class{constructor(e=new Cn,r=new On){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new En,this.savedSearchesService=new Sn,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=T.getState();(0,wn.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(),ae.actions.clearAssetCount(),ae.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ae.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ae.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ae.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ae.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ae.getState().assetCounts.allAsset[e]!==r.count&&ae.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ae.getState().assetCounts.bookmarkByMap[e]!==r.count&&ae.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ae.getState().assetCounts.bookmarkByMap).length!==0;e===we.BOOKMARKS&&r&&ae.actions.clearBookmarkCountByMap(),ae.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;ae.actions.bookmarks(r)}}},Qu=new Ui;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Qu);var Bi=class{addCommand(e,r=!1){T.commands.add(e,r)}consumeCommand(e){return T.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Bi;var Te=f(E());var cl,pr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},ed=Symbol("clearAfterUnitTest"),Tn=class extends(0,Te.withEventBus)(be){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[cl]=()=>{this.defaultMessages={},this.cache=new Te.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=T.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,Te.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 o=e.toLowerCase(),s=this.resolveContext(o);return new Te.ParametrizedLabelResolver((i=this.defaultMessages[o])!==null&&i!==void 0?i:{},s).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 Te.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 pr({loadedContexts:e})),this.dispatchEvent(new pr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new pr({loadedContexts:[e]})),this.dispatchEvent(new pr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,Te.delay)(0).then(()=>n()).catch(()=>null)))}};cl=ed;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Tn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Tn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Mr=window.FluidTopicsI18nService,Hi=window.FluidTopicsCustomI18nService;var ul=f(E()),ji=class{highlightHtml(e,r,n){(0,ul.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new ji;var dl=f(E());var Fi=class{isDate(e){var r,n,i,o;return(o=(i=((n=(r=T.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&&o!==void 0?o:!1}format(e,r){var n,i,o,s;if(e==null)return"";try{return dl.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Fi;var pl=f(E());var $r=class{static get(e,r){var n,i,o,s;let a=T.getState(),{lang:l,region:c}=(o=(i=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new pl.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var Vi=class{urlToSearchRequest(e){return $r.get().parse(e)}searchRequestToUrl(e){return $r.get().serialize(e)}};window.FluidTopicsUrlService=new Vi;var et=f(E());var Dt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Dt.eventName="change";var zi=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))}},fl=new zi;var _n=class t extends et.WithEventBus{static build(){return new t(window.history,fl,()=>window.location,!1)}constructor(e,r,n,i){var o,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,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,et.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 e=r=>(n,i,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[c,s,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Dt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Dt.eventName,e)}currentItem(){return(0,et.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,et.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,et.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,et.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,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,n);)this.hasState(o)&&(i=o),o++;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,o=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return o==null||o!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=_n.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 hl=f(L());var ml=hl.css`
|
|
261
|
-
`;var gl=f(L()),pe=f(z()),Mt=f(E());var Nt=f(E());function vl(t,e){let{authenticationRequired:r,session:n}=T.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var
|
|
260
|
+
`;var es=["top","right","bottom","left"],Qo=["start","end"],ii=es.reduce((t,e)=>t.concat(e,e+"-"+Qo[0],e+"-"+Qo[1]),[]),Er=Math.min,st=Math.max,Cr=Math.round;var Ve=t=>({x:t,y:t}),jc={left:"right",right:"left",bottom:"top",top:"bottom"};function ts(t,e,r){return st(t,Er(e,r))}function Qr(t,e){return typeof t=="function"?t(e):t}function Or(t){return t.split("-")[0]}function at(t){return t.split("-")[1]}function oi(t){return t==="x"?"y":"x"}function si(t){return t==="y"?"height":"width"}function en(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function ai(t){return oi(en(t))}function rs(t,e,r){r===void 0&&(r=!1);let n=at(t),i=ai(t),o=si(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=ni(s)),[s,ni(s)]}function ns(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function ni(t){let e=Or(t);return jc[e]+t.slice(e.length)}function Fc(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 is(t){return typeof t!="number"?Fc(t):{top:t,right:t,bottom:t,left:t}}function Ot(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 os(t,e,r){let{reference:n,floating:i}=t,o=en(e),s=ai(e),a=si(s),l=Or(e),c=o==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2,h;switch(l){case"top":h={x:u,y:n.y-i.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-i.width,y:d};break;default:h={x:n.x,y:n.y}}let m=at(e);return m&&(h[s]+=p*(m==="end"?1:-1)*(r&&c?-1:1)),h}async function ss(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=Qr(e,t),m=is(h),b=a[p?d==="floating"?"reference":"floating":d],x=Ot(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(b)))==null||r?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),S=d==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),w=await(o.isElement==null?void 0:o.isElement(C))&&await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1},q=Ot(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:C,strategy:l}):S);return{top:(x.top-q.top+m.top)/w.y,bottom:(q.bottom-x.bottom+m.bottom)/w.y,left:(x.left-q.left+m.left)/w.x,right:(q.right-x.right+m.right)/w.x}}var Vc=50,as=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:ss},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=os(c,n,l),p=n,h=0,m={};for(let v=0;v<o.length;v++){let b=o[v];if(!b)continue;let{name:x,fn:S}=b,{x:C,y:w,data:q,reset:V}=await S({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:m,rects:c,platform:a,elements:{reference:t,floating:e}});u=C??u,d=w??d,m[x]={...m[x],...q},V&&h<Vc&&(h++,typeof V=="object"&&(V.placement&&(p=V.placement),V.rects&&(c=V.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):V.rects),{x:u,y:d}=os(c,p,l)),v=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:m}};function zc(t,e,r){return(t?[...r.filter(i=>at(i)===t),...r.filter(i=>at(i)!==t)]:r.filter(i=>Or(i)===i)).filter(i=>t?at(i)===t||(e?ns(i)!==i:!1):!0)}var ls=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=ii,autoAlignment:h=!0,...m}=Qr(t,e),v=d!==void 0||p===ii?zc(d||null,h,p):p,b=((r=s.autoPlacement)==null?void 0:r.index)||0,x=v[b];if(x==null)return{};if(a!==x)return{reset:{placement:v[0]}};let S=await l.detectOverflow(e,m),C=rs(x,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),w=[S[Or(x)],S[C[0]],S[C[1]]],q=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:x,overflows:w}],V=v[b+1];if(V)return{data:{index:b+1,overflows:q},reset:{placement:V}};let rt=q.map(me=>{let Ee=at(me.placement);return[me.placement,Ee&&u?me.overflows.slice(0,2).reduce((ve,At)=>ve+At,0):me.overflows[0],me.overflows]}).sort((me,Ee)=>me[1]-Ee[1]),nt=((i=rt.filter(me=>me[2].slice(0,at(me[0])?2:3).every(Ee=>Ee<=0))[0])==null?void 0:i[0])||rt[0][0];return nt!==a?{data:{index:b+1,overflows:q},reset:{placement:nt}}:{}}}};var cs=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:S=>{let{x:C,y:w}=S;return{x:C,y:w}}},...c}=Qr(t,e),u={x:r,y:n},d=await o.detectOverflow(e,c),p=en(i),h=oi(p),m=u[h],v=u[p],b=(S,C)=>ts(C+d[S==="y"?"top":"left"],C,C-d[S==="y"?"bottom":"right"]);s&&(m=b(h,m)),a&&(v=b(p,v));let x=l.fn({...e,[h]:m,[p]:v});return{...x,data:{x:x.x-r,y:x.y-n,enabled:{[h]:s,[p]:a}}}}}};function rn(){return typeof window<"u"}function Tt(t){return ds(t)?(t.nodeName||"").toLowerCase():"#document"}function de(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Je(t){var e;return(e=(ds(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ds(t){return rn()?t instanceof Node||t instanceof de(t).Node:!1}function Pe(t){return rn()?t instanceof Element||t instanceof de(t).Element:!1}function Ze(t){return rn()?t instanceof HTMLElement||t instanceof de(t).HTMLElement:!1}function us(t){return!rn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof de(t).ShadowRoot}function wr(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=ke(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&i!=="inline"&&i!=="contents"}function ps(t){return/^(table|td|th)$/.test(Tt(t))}function Tr(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Wc=/transform|translate|scale|rotate|perspective|filter/,Kc=/paint|layout|strict|content/,wt=t=>!!t&&t!=="none",li;function er(t){let e=Pe(t)?ke(t):t;return wt(e.transform)||wt(e.translate)||wt(e.scale)||wt(e.rotate)||wt(e.perspective)||!nn()&&(wt(e.backdropFilter)||wt(e.filter))||Wc.test(e.willChange||"")||Kc.test(e.contain||"")}function fs(t){let e=lt(t);for(;Ze(e)&&!tr(e);){if(er(e))return e;if(Tr(e))return null;e=lt(e)}return null}function nn(){return li==null&&(li=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),li}function tr(t){return/^(html|body|#document)$/.test(Tt(t))}function ke(t){return de(t).getComputedStyle(t)}function _r(t){return Pe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function lt(t){if(Tt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||us(t)&&t.host||Je(t);return us(e)?e.host:e}function hs(t){let e=lt(t);return tr(e)?(t.ownerDocument||t).body:Ze(e)&&wr(e)?e:hs(e)}function tn(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=hs(t),o=i===((n=t.ownerDocument)==null?void 0:n.body),s=de(i);if(o){let a=on(s);return e.concat(s,s.visualViewport||[],wr(i)?i:[],a&&r?tn(a):[])}else return e.concat(i,tn(i,[],r))}function on(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ys(t){let e=ke(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=Ze(t),o=i?t.offsetWidth:r,s=i?t.offsetHeight:n,a=Cr(r)!==o||Cr(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function gs(t){return Pe(t)?t:t.contextElement}function rr(t){let e=gs(t);if(!Ze(e))return Ve(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:o}=ys(e),s=(o?Cr(r.width):r.width)/n,a=(o?Cr(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Gc=Ve(0);function bs(t){let e=de(t);return!nn()||!e.visualViewport?Gc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qc(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===de(t)}function Rr(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),o=gs(t),s=Ve(1);e&&(n?Pe(n)&&(s=rr(n)):s=rr(t));let a=qc(o,r,n)?bs(o):Ve(0),l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o&&n){let p=de(o),h=Pe(n)?de(n):n,m=p,v=on(m);for(;v&&h!==m;){let b=rr(v),x=v.getBoundingClientRect(),S=ke(v),C=x.left+(v.clientLeft+parseFloat(S.paddingLeft))*b.x,w=x.top+(v.clientTop+parseFloat(S.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=C,c+=w,m=de(v),v=on(m)}}return Ot({width:u,height:d,x:l,y:c})}function sn(t,e){let r=_r(t).scrollLeft;return e?e.left+r:Rr(Je(t)).left+r}function xs(t,e){let r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-sn(t,r),i=r.top+e.scrollTop;return{x:n,y:i}}function Yc(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t,o=i==="fixed",s=Je(n),a=e?Tr(e.floating):!1;if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=Ve(1),u=Ve(0),d=Ze(n);if((d||!o)&&((Tt(n)!=="body"||wr(s))&&(l=_r(n)),d)){let h=Rr(n);c=rr(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}let p=s&&!d&&!o?xs(s,l):Ve(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function Xc(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Jc(t){let e=_r(t),r=t.ownerDocument.body,n=st(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=st(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+sn(t),s=-e.scrollTop;return ke(r).direction==="rtl"&&(o+=st(t.clientWidth,r.clientWidth)-n),{width:n,height:i,x:o,y:s}}var Zc=25;function Qc(t,e,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=de(t),o=Je(t),s=i.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!nn()||e==="fixed";n?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(sn(o)<=0){let p=o.ownerDocument,h=p.body,m=getComputedStyle(h),v=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(o.clientWidth-h.clientWidth-v),x=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;x<=Zc&&(a-=x)}return{width:a,height:l,x:c,y:u}}function eu(t,e){let r=Rr(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,o=rr(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=i*o.x,c=n*o.y;return{width:s,height:a,x:l,y:c}}function ms(t,e,r){let n;if(e==="viewport"||e==="layoutViewport")n=Qc(t,r,e);else if(e==="document")n=Jc(Je(t));else if(Pe(e))n=eu(e,r);else{let i=bs(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Ot(n)}function tu(t,e){let r=e.get(t);if(r)return r;let n=tn(t,[],!1).filter(a=>Pe(a)&&Tt(a)!=="body"),i=null,o=ke(t).position==="fixed",s=o?lt(t):t;for(;Pe(s)&&!tr(s);){let a=ke(s),l=er(s),c=i?i.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(d=>d!==s):i=a,s=lt(s)}return e.set(t,n),n}function ru(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,s=[...r==="clippingAncestors"?Tr(e)?[]:tu(e,this._c):[].concat(r),n],a=ms(e,s[0],i),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let h=ms(e,s[p],i);l=st(h.top,l),c=Er(h.right,c),u=Er(h.bottom,u),d=st(h.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function nu(t){let{width:e,height:r}=ys(t);return{width:e,height:r}}function iu(t,e,r){let n=Ze(e),i=Je(e),o=r==="fixed",s=Rr(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Ve(0);if((n||!o)&&((Tt(e)!=="body"||wr(i))&&(a=_r(e)),n)){let p=Rr(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!n&&i&&(l.x=sn(i));let c=i&&!n&&!o?xs(i,a):Ve(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function ci(t){return ke(t).position==="static"}function vs(t,e){if(!Ze(t)||ke(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Je(t)===r&&(r=r.ownerDocument.body),r}function As(t,e){let r=de(t);if(Tr(t))return r;if(!Ze(t)){let i=lt(t);for(;i&&!tr(i);){if(Pe(i)&&!ci(i))return i;i=lt(i)}return r}let n=vs(t,e);for(;n&&ps(n)&&ci(n);)n=vs(n,e);return n&&tr(n)&&ci(n)&&!er(n)?r:n||fs(t)||r}var ou=async function(t){let e=this.getOffsetParent||As,r=this.getDimensions,n=await r(t.floating);return{reference:iu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function su(t){return ke(t).direction==="rtl"}var an={convertOffsetParentRelativeRectToViewportRelativeRect:Yc,getDocumentElement:Je,getClippingRect:ru,getOffsetParent:As,getElementRects:ou,getClientRects:Xc,getDimensions:nu,getScale:rr,isElement:Pe,isRTL:su};var Ss=ls,Es=cs;var Cs=(t,e,r)=>{let n=new Map,i=r??{},o={...an,...i.platform,_c:n};return as(t,e,{...i,platform:o})};function Os(t){return au(t)}function ui(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function au(t){for(let e=t;e;e=ui(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ui(t);e;e=ui(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||er(r)||e.tagName==="BODY"))return e}return null}async function ws(t,e,r){let n;return typeof r=="object"?n=r:n={placement:r},Cs(t,e,{strategy:n.strategy,platform:{...an,getOffsetParent:i=>an.getOffsetParent(i,Os)},middleware:[Es({crossAxis:!0}),Ss({allowedPlacements:[n.placement]})]})}var mr=f(E());var Mi=f(z());var Ts=f(z(),1);var di=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function _s(t,e){return(0,Ts.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Lr(t);try{return JSON.parse(r)}catch{return Lr(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Pr,...e??{}})}function lu(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(!nr(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(!nr(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=s=>Object.keys(s).filter(a=>s[a]!=null),o=i(t);if(r=o.length,r!==i(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[n]))return!1;for(n=r;n--!==0;){let s=o[n];if(!nr(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function nr(t,e){try{return lu(t,e)}catch{return!1}}function Pr(t,e){return!nr(t,e)}function Lr(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ln(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 Rs=f(z(),1);var pi=t=>{let e=t??{};return(r,n)=>{var i;let o={hasChanged:Pr,attribute:!1,...e};(0,Rs.property)(o)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(a=>a[n]),store:e.store})}};var cn=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 _t=f(z(),1);var un=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),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of n)try{await s()}catch(a){i(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ps=f(L(),1);var dn=globalThis,cu=dn.ShadowRoot&&(dn.ShadyCSS===void 0||dn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Ls=(t,e)=>{if(cu)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=dn.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}};var pn=class extends Ps.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 Ls(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){di(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 ks(t,e,...r){var n;let i=t.querySelector(e);for(let o of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(o);return i}var or=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Ms,Ds=Symbol("constructorPrototype"),Ns=Symbol("constructorName"),$s=Symbol("exportpartsDebouncer"),Is=Symbol("dynamicDependenciesLoaded"),ir=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};ir.eventName="exportparts-updated";var ze=class extends pn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ms]=new un(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[$s].run(()=>{var i,o;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ns]=this.constructor.name,this[Ds]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ns]&&Object.setPrototypeOf(this,this[Ds])}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[Is]||(r[Is]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ir.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ir.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 ir)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let o=[...i??[],n];r=ks(this.shadowRoot,...o)}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(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,n,i,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=e.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let h=(o=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],m=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],v=[...h,...m].filter(l).map(b=>b.trim());for(let b of v)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(h=>`${p}:${h}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Ms=$s;or([(0,_t.property)()],ze.prototype,"exportpartsPrefix",void 0);or([_s([])],ze.prototype,"exportpartsPrefixes",void 0);or([(0,_t.property)({reflect:!0})],ze.prototype,"exportparts",void 0);or([(0,_t.property)()],ze.prototype,"customStylesheet",void 0);or([(0,_t.property)()],ze.prototype,"elementToFocus",void 0);or([(0,_t.state)()],ze.prototype,"useAdoptedStyleSheets",void 0);function fn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var kr=Symbol("internalReduxEventsUnsubscribers"),ct=Symbol("internalStoresUnsubscribers"),Rt=Symbol("internalStores"),uu=ln(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(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Rt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Rt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Rt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Rt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Rt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Rt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[ct].has(s.store):this[ct].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[ct].set(s,a.subscribe(()=>this.updateFromStores())),this[kr].set(s,[]),fn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[kr].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ct].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[ct].has(s)&&this[ct].get(s)(),this[ct].delete(s),(a=this[kr].get(s))===null||a===void 0||a.forEach(l=>l()),this[kr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ct,r=Rt,n=kr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Us=class extends uu(ze){};function Oe(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,o;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Qe(t){return!!t&&!!t[B]}function De(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)===gu})(t)||Array.isArray(t)||!!t[Ws]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ws])||Ai(t)||Si(t))}function Lt(t,e,r){r===void 0&&(r=!1),lr(t)===0?(r?Object.keys:ar)(t).forEach((function(n){r&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,i){return e(i,n,t)}))}function lr(t){var e=t[B];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ai(t)?2:Si(t)?3:0}function sr(t,e){return lr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function du(t,e){return lr(t)===2?t.get(e):t[e]}function Ks(t,e,r){var n=lr(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Gs(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ai(t){return vu&&t instanceof Map}function Si(t){return yu&&t instanceof Set}function ut(t){return t.o||t.t}function Ei(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Xs(t);delete e[B];for(var r=ar(e),n=0;n<r.length;n++){var i=r[n],o=e[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Ci(t,e){return e===void 0&&(e=!1),Oi(t)||Qe(t)||!De(t)||(lr(t)>1&&(t.set=t.add=t.clear=t.delete=pu),Object.freeze(t),e&&Lt(t,(function(r,n){return Ci(n,!0)}),!0)),t}function pu(){Oe(2)}function Oi(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function We(t){var e=xi[t];return e||Oe(18,t),e}function fu(t,e){xi[t]||(xi[t]=e)}function yi(){return Nr}function fi(t,e){e&&(We("Patches"),t.u=[],t.s=[],t.v=e)}function hn(t){gi(t),t.p.forEach(hu),t.p=null}function gi(t){t===Nr&&(Nr=t.l)}function Bs(t){return Nr={p:[],l:Nr,h:t,m:!0,_:0}}function hu(t){var e=t[B];e.i===0||e.i===1?e.j():e.g=!0}function hi(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||We("ES5").S(e,t,n),n?(r[B].P&&(hn(e),Oe(4)),De(t)&&(t=mn(e,t),e.l||vn(e,t)),e.u&&We("Patches").M(r[B].t,t,e.u,e.s)):t=mn(e,r,[]),hn(e),e.u&&e.v(e.u,e.s),t!==Ys?t:void 0}function mn(t,e,r){if(Oi(e))return e;var n=e[B];if(!n)return Lt(e,(function(a,l){return Hs(t,n,e,a,l,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return vn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ei(n.k):n.o,o=i,s=!1;n.i===3&&(o=new Set(i),i.clear(),s=!0),Lt(o,(function(a,l){return Hs(t,n,i,a,l,r,s)})),vn(t,i,!1),r&&t.u&&We("Patches").N(n,r,t.u,t.s)}return n.o}function Hs(t,e,r,n,i,o,s){if(Qe(i)){var a=mn(t,i,o&&e&&e.i!==3&&!sr(e.R,n)?o.concat(n):void 0);if(Ks(r,n,a),!Qe(a))return;t.m=!1}else s&&r.add(i);if(De(i)&&!Oi(i)){if(!t.h.D&&t._<1)return;mn(t,i),e&&e.A.l||vn(t,i)}}function vn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ci(e,r)}function mi(t,e){var r=t[B];return(r?ut(r):t)[e]}function js(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 dt(t){t.P||(t.P=!0,t.l&&dt(t.l))}function vi(t){t.o||(t.o=Ei(t.t))}function bi(t,e,r){var n=Ai(e)?We("MapSet").F(e,r):Si(e)?We("MapSet").T(e,r):t.O?(function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:yi(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,c=Ir;s&&(l=[a],c=Dr);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(e,r):We("ES5").J(e,r);return(r?r.A:yi()).p.push(n),n}function mu(t){return Qe(t)||Oe(22,t),(function e(r){if(!De(r))return r;var n,i=r[B],o=lr(r);if(i){if(!i.P&&(i.i<4||!We("ES5").K(i)))return i.t;i.I=!0,n=Fs(r,o),i.I=!1}else n=Fs(r,o);return Lt(n,(function(s,a){i&&du(i.t,s)===a||Ks(n,s,e(a))})),o===3?new Set(n):n})(t)}function Fs(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ei(t)}function qs(){function t(s,a){var l=o[s];return l?l.enumerable=a:o[s]=l={configurable:!0,enumerable:a,get:function(){var c=this[B];return Ir.get(c,s)},set:function(c){var u=this[B];Ir.set(u,s,c)}},l}function e(s){for(var a=s.length-1;a>=0;a--){var l=s[a][B];if(!l.P)switch(l.i){case 5:n(l)&&dt(l);break;case 4:r(l)&&dt(l)}}}function r(s){for(var a=s.t,l=s.k,c=ar(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==B){var p=a[d];if(p===void 0&&!sr(a,d))return!0;var h=l[d],m=h&&h[B];if(m?m.t!==p:!Gs(h,p))return!0}}var v=!!a[B];return c.length!==ar(a).length+(v?0:1)}function n(s){var a=s.k;if(a.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function i(s){s.g&&Oe(3,JSON.stringify(ut(s)))}var o={};fu("ES5",{J:function(s,a){var l=Array.isArray(s),c=(function(d,p){if(d){for(var h=Array(p.length),m=0;m<p.length;m++)Object.defineProperty(h,""+m,t(m,!0));return h}var v=Xs(p);delete v[B];for(var b=ar(v),x=0;x<b.length;x++){var S=b[x];v[S]=t(S,d||!!v[S].enumerable)}return Object.create(Object.getPrototypeOf(p),v)})(l,s),u={i:l?5:4,A:a?a.A:yi(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,B,{value:u,writable:!0}),c},S:function(s,a,l){l?Qe(a)&&a[B].A===s&&e(s.p):(s.u&&(function c(u){if(u&&typeof u=="object"){var d=u[B];if(d){var p=d.t,h=d.k,m=d.R,v=d.i;if(v===4)Lt(h,(function(w){w!==B&&(p[w]!==void 0||sr(p,w)?m[w]||c(h[w]):(m[w]=!0,dt(d)))})),Lt(p,(function(w){h[w]!==void 0||sr(h,w)||(m[w]=!1,dt(d))}));else if(v===5){if(n(d)&&(dt(d),m.length=!0),h.length<p.length)for(var b=h.length;b<p.length;b++)m[b]=!1;else for(var x=p.length;x<h.length;x++)m[x]=!0;for(var S=Math.min(h.length,p.length),C=0;C<S;C++)h.hasOwnProperty(C)||(m[C]=!0),m[C]===void 0&&c(h[C])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Vs,Nr,wi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",vu=typeof Map<"u",yu=typeof Set<"u",zs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ys=wi?Symbol.for("immer-nothing"):((Vs={})["immer-nothing"]=!0,Vs),Ws=wi?Symbol.for("immer-draftable"):"__$immer_draftable",B=wi?Symbol.for("immer-state"):"__$immer_state";var gu=""+Object.prototype.constructor,ar=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Xs=Object.getOwnPropertyDescriptors||function(t){var e={};return ar(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},xi={},Ir={get:function(t,e){if(e===B)return t;var r=ut(t);if(!sr(r,e))return(function(i,o,s){var a,l=js(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(i.k):void 0})(t,r,e);var n=r[e];return t.I||!De(n)?n:n===mi(t.t,e)?(vi(t),t.o[e]=bi(t.A.h,n,t)):n},has:function(t,e){return e in ut(t)},ownKeys:function(t){return Reflect.ownKeys(ut(t))},set:function(t,e,r){var n=js(ut(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=mi(ut(t),e),o=i?.[B];if(o&&o.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Gs(r,i)&&(r!==void 0||sr(t.t,e)))return!0;vi(t),dt(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 mi(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,vi(t),dt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ut(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Oe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Oe(12)}},Dr={};Lt(Ir,(function(t,e){Dr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Dr.deleteProperty=function(t,e){return Dr.set.call(this,t,e,void 0)},Dr.set=function(t,e,r){return Ir.set.call(this,t[0],e,r,t[0])};var bu=(function(){function t(r){var n=this;this.O=zs,this.D=!0,this.produce=function(i,o,s){if(typeof i=="function"&&typeof o!="function"){var a=o;o=i;var l=n;return function(v){var b=this;v===void 0&&(v=a);for(var x=arguments.length,S=Array(x>1?x-1:0),C=1;C<x;C++)S[C-1]=arguments[C];return l.produce(v,(function(w){var q;return(q=o).call.apply(q,[b,w].concat(S))}))}}var c;if(typeof o!="function"&&Oe(6),s!==void 0&&typeof s!="function"&&Oe(7),De(i)){var u=Bs(n),d=bi(n,i,void 0),p=!0;try{c=o(d),p=!1}finally{p?hn(u):gi(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(v){return fi(u,s),hi(v,u)}),(function(v){throw hn(u),v})):(fi(u,s),hi(c,u))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===Ys&&(c=void 0),n.D&&Ci(c,!0),s){var h=[],m=[];We("Patches").M(i,c,h,m),s(h,m)}return c}Oe(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,(function(h){return i.apply(void 0,[h].concat(d))}))};var s,a,l=n.produce(i,o,(function(c,u){s=c,a=u}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,s,a]})):[l,s,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){De(r)||Oe(8),Qe(r)&&(r=mu(r));var n=Bs(this),i=bi(this,r,void 0);return i[B].C=!0,gi(n),i},e.finishDraft=function(r,n){var i=r&&r[B],o=i.A;return fi(o,n),hi(void 0,o)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!zs&&Oe(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var s=We("Patches").$;return Qe(r)?s(r,n):this.produce(r,(function(a){return s(a,n)}))},t})(),ge=new bu,xu=ge.produce,Hp=ge.produceWithPatches.bind(ge),jp=ge.setAutoFreeze.bind(ge),Fp=ge.setUseProxies.bind(ge),Vp=ge.applyPatches.bind(ge),zp=ge.createDraft.bind(ge),Wp=ge.finishDraft.bind(ge),yn=xu;function Pt(t){"@babel/helpers - typeof";return Pt=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},Pt(t)}function Js(t,e){if(Pt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Pt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Zs(t){var e=Js(t,"string");return Pt(e)=="symbol"?e:e+""}function Qs(t,e,r){return(e=Zs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ea(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 Ti(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ea(Object(r),!0).forEach(function(n){Qs(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ea(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function oe(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 ta=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),_i=function(){return Math.random().toString(36).substring(7).split("").join(".")},gn={INIT:"@@redux/INIT"+_i(),REPLACE:"@@redux/REPLACE"+_i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+_i()}};function Au(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 Ri(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(oe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(oe(1));return r(Ri)(t,e)}if(typeof t!="function")throw new Error(oe(2));var i=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(oe(3));return o}function d(v){if(typeof v!="function")throw new Error(oe(4));if(l)throw new Error(oe(5));var b=!0;return c(),a.push(v),function(){if(b){if(l)throw new Error(oe(6));b=!1,c();var S=a.indexOf(v);a.splice(S,1),s=null}}}function p(v){if(!Au(v))throw new Error(oe(7));if(typeof v.type>"u")throw new Error(oe(8));if(l)throw new Error(oe(9));try{l=!0,o=i(o,v)}finally{l=!1}for(var b=s=a,x=0;x<b.length;x++){var S=b[x];S()}return v}function h(v){if(typeof v!="function")throw new Error(oe(10));i=v,p({type:gn.REPLACE})}function m(){var v,b=d;return v={subscribe:function(S){if(typeof S!="object"||S===null)throw new Error(oe(11));function C(){S.next&&S.next(u())}C();var w=b(C);return{unsubscribe:w}}},v[ta]=function(){return this},v}return p({type:gn.INIT}),n={dispatch:p,subscribe:d,getState:u,replaceReducer:h},n[ta]=m,n}function Su(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:gn.INIT});if(typeof n>"u")throw new Error(oe(12));if(typeof r(void 0,{type:gn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(oe(13))})}function ra(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 o=Object.keys(r),s,a;try{Su(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var p=!1,h={},m=0;m<o.length;m++){var v=o[m],b=r[v],x=c[v],S=b(x,u);if(typeof S>"u"){var C=u&&u.type;throw new Error(oe(14))}h[v]=S,p=p||S!==x}return p=p||o.length!==Object.keys(c).length,p?h:c}}function cr(){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 na(){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),o=function(){throw new Error(oe(15))},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=cr.apply(void 0,a)(i.dispatch),Ti(Ti({},i),{},{dispatch:o})}}}function ia(t){var e=function(n){var i=n.dispatch,o=n.getState;return function(s){return function(a){return typeof a=="function"?a(i,o,t):s(a)}}};return e}var oa=ia();oa.withExtraArgument=ia;var Li=oa;var ua=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},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)}})(),Eu=function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ur=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},Cu=Object.defineProperty,Ou=Object.defineProperties,wu=Object.getOwnPropertyDescriptors,sa=Object.getOwnPropertySymbols,Tu=Object.prototype.hasOwnProperty,_u=Object.prototype.propertyIsEnumerable,aa=function(t,e,r){return e in t?Cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},pt=function(t,e){for(var r in e||(e={}))Tu.call(e,r)&&aa(t,r,e[r]);if(sa)for(var n=0,i=sa(e);n<i.length;n++){var r=i[n];_u.call(e,r)&&aa(t,r,e[r])}return t},Pi=function(t,e){return Ou(t,wu(e))},Ru=function(t,e,r){return new Promise(function(n,i){var o=function(l){try{a(r.next(l))}catch(c){i(c)}},s=function(l){try{a(r.throw(l))}catch(c){i(c)}},a=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(o,s)};a((r=r.apply(t,e)).next())})};var Lu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?cr:cr.apply(null,arguments)},uf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Pu(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 ft(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var o=e.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return pt(pt({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.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 ku=(function(t){ua(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,ur([void 0],r[0].concat(this)))):new(e.bind.apply(e,ur([void 0],r.concat(this))))},e})(Array),Du=(function(t){ua(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,ur([void 0],r[0].concat(this)))):new(e.bind.apply(e,ur([void 0],r.concat(this))))},e})(Array);function Ni(t){return De(t)?yn(t,function(){}):t}function Nu(t){return typeof t=="boolean"}function Iu(){return function(e){return Mu(e)}}function Mu(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,o=t.serializableCheck,s=o===void 0?!0:o,a=t.actionCreatorCheck,l=a===void 0?!0:a,c=new ku;if(r&&(Nu(r)?c.push(Li):c.push(Li.withExtraArgument(r.extraArgument))),0){if(i)var u;if(s)var d;if(l)var p}return c}var ki=!0;function da(t){var e=Iu(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,o=r.middleware,s=o===void 0?e():o,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,u=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,h;if(typeof i=="function")h=i;else if(Pu(i))h=ra(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 m=s;if(typeof m=="function"&&(m=m(e),!ki&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ki&&m.some(function(w){return typeof w!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=na.apply(void 0,m),b=cr;l&&(b=Lu(pt({trace:!ki},typeof l=="object"&&l)));var x=new Du(v),S=x;Array.isArray(p)?S=ur([v],p):typeof p=="function"&&(S=p(x));var C=b.apply(void 0,S);return Ri(h,u,C)}function pa(t){var e={},r=[],n,i={addCase:function(o,s){var a=typeof o=="string"?o:o.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]=s,i},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),i},addDefaultCase:function(o){return n=o,i}};return t(i),[e,r,n]}function $u(t){return typeof t=="function"}function Uu(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?pa(e):[e,r,n],o=i[0],s=i[1],a=i[2],l;if($u(t))l=function(){return Ni(t())};else{var c=Ni(t);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var h=ur([o[p.type]],s.filter(function(m){var v=m.matcher;return v(p)}).map(function(m){var v=m.reducer;return v}));return h.filter(function(m){return!!m}).length===0&&(h=[a]),h.reduce(function(m,v){if(v)if(Qe(m)){var b=m,x=v(b,p);return x===void 0?m:x}else{if(De(m))return yn(m,function(S){return v(S,p)});var x=v(m,p);if(x===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}return m},d)}return u.getInitialState=l,u}function Bu(t,e){return t+"/"+e}function fa(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:Ni(t.initialState),n=t.reducers||{},i=Object.keys(n),o={},s={},a={};i.forEach(function(u){var d=n[u],p=Bu(e,u),h,m;"reducer"in d?(h=d.reducer,m=d.prepare):h=d,o[u]=h,s[p]=h,a[u]=m?ft(p,m):ft(p)});function l(){var u=typeof t.extraReducers=="function"?pa(t.extraReducers):[t.extraReducers],d=u[0],p=d===void 0?{}:d,h=u[1],m=h===void 0?[]:h,v=u[2],b=v===void 0?void 0:v,x=pt(pt({},p),s);return Uu(r,function(S){for(var C in x)S.addCase(C,x[C]);for(var w=0,q=m;w<q.length;w++){var V=q[w];S.addMatcher(V.matcher,V.reducer)}b&&S.addDefaultCase(b)})}var c;return{name:e,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var Hu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ju=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Hu[Math.random()*64|0];return e},Fu=["name","message","stack","code"],Di=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),la=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Vu=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Fu;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},hf=(function(){function t(e,r,n){var i=ft(e+"/fulfilled",function(u,d,p,h){return{payload:u,meta:Pi(pt({},h||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),o=ft(e+"/pending",function(u,d,p){return{payload:void 0,meta:Pi(pt({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),s=ft(e+"/rejected",function(u,d,p,h,m){return{payload:h,error:(n&&n.serializeError||Vu)(u||"Rejected"),meta:Pi(pt({},m||{}),{arg:p,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u})();function c(u){return function(d,p,h){var m=n?.idGenerator?n.idGenerator(u):ju(),v=new l,b,x=!1;function S(w){b=w,v.abort()}var C=(function(){return Ru(this,null,function(){var w,q,V,rt,Vn,nt,me;return Eu(this,function(Ee){switch(Ee.label){case 0:return Ee.trys.push([0,4,,5]),rt=(w=n?.condition)==null?void 0:w.call(n,u,{getState:p,extra:h}),Wu(rt)?[4,rt]:[3,2];case 1:rt=Ee.sent(),Ee.label=2;case 2:if(rt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return x=!0,Vn=new Promise(function(ve,At){return v.signal.addEventListener("abort",function(){return At({name:"AbortError",message:b||"Aborted"})})}),d(o(m,u,(q=n?.getPendingMeta)==null?void 0:q.call(n,{requestId:m,arg:u},{getState:p,extra:h}))),[4,Promise.race([Vn,Promise.resolve(r(u,{dispatch:d,getState:p,extra:h,requestId:m,signal:v.signal,abort:S,rejectWithValue:function(ve,At){return new Di(ve,At)},fulfillWithValue:function(ve,At){return new la(ve,At)}})).then(function(ve){if(ve instanceof Di)throw ve;return ve instanceof la?i(ve.payload,m,u,ve.meta):i(ve,m,u)})])];case 3:return V=Ee.sent(),[3,5];case 4:return nt=Ee.sent(),V=nt instanceof Di?s(null,m,u,nt.payload,nt.meta):s(nt,m,u),[3,5];case 5:return me=n&&!n.dispatchConditionRejection&&s.match(V)&&V.meta.condition,me||d(V),[2,V]}})})})();return Object.assign(C,{abort:S,requestId:m,arg:u,unwrap:function(){return C.then(zu)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t})();function zu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Wu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var ha="listener",ma="completed",va="cancelled",mf="task-"+va,vf="task-"+ma,yf=ha+"-"+va,gf=ha+"-"+ma;var Ii="listenerMiddleware";var bf=ft(Ii+"/add"),xf=ft(Ii+"/removeAll"),Af=ft(Ii+"/remove");var ca,Sf=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ca||(ca=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Ku=function(t){return function(e){setTimeout(e,t)}},Ef=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ku(10);qs();var Gu=ln(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)}}}),bn=class extends Gu(Object){};window.ftReduxStores||(window.ftReduxStores={});var ya=class t extends bn{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,o=window.ftReduxStores[n];if(fn(o))return o;if(i==null)return;let s=fa({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=da({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Lr(s.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[i.name]=new t(s,a,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new cn;let i=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(i));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];nr(p,u)||this.setState({[d]:i(u)})}}}),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 xn=class{static format(e,r,n,i,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i,!!o)):this.getIntlDateTime(e,r,n,i,!!o)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:i?`${a} ${l}`:a}static getTimezoneAsString(){let 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 An=f(E()),qu="ft-app-info",dr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};dr.eventName="authentication-change";var Mr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Mr.eventName="ui-locale-changed";var Yu={session:(t,e)=>{(0,An.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>T.dispatchEvent(new dr(e.payload)),0))}},T=An.FtReduxStore.get({name:qu,reducers:Yu,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 ga=f(E()),Sn=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Jf=(0,ga.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(T)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,o;return((o=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1)?a=>xn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Sn([(0,Mi.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Sn([(0,Mi.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Sn([pi({store:T.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),Sn([pi({store:T.name})],e.prototype,"uiLocale",void 0),e});var ba;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ba||(ba={}));var xa;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(xa||(xa={}));var Aa;(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"})(Aa||(Aa={}));var Sa;(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"})(Sa||(Sa={}));var Ea;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ea||(Ea={}));var Ca;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ca||(Ca={}));var Oa;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Oa||(Oa={}));var wa;(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"})(wa||(wa={}));var Ta;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Ta||(Ta={}));var _a;(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"})(_a||(_a={}));var Ra;(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"})(Ra||(Ra={}));var La;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(La||(La={}));var Pa;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Pa||(Pa={}));var ka;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ka||(ka={}));var Da;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Da||(Da={}));var Na;(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"})(Na||(Na={}));var Ia;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ia||(Ia={}));var Ma;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ma||(Ma={}));var $a;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})($a||($a={}));var Ua;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ua||(Ua={}));var Ba;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ba||(Ba={}));var Ha;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ha||(Ha={}));var ja;(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"})(ja||(ja={}));var Fa;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Fa||(Fa={}));var Va;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Va||(Va={}));var za;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(za||(za={}));var Wa;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wa||(Wa={}));var G;(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"})(G||(G={}));var we;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(we||(we={}));var Ka;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Ka||(Ka={}));var Ga;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Ga||(Ga={}));var qa;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(qa||(qa={}));var Ya;(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"})(Ya||(Ya={}));var Xa;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Xa||(Xa={}));var Ja;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ja||(Ja={}));var Za;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Za||(Za={}));var Qa;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Qa||(Qa={}));var el;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(el||(el={}));var tl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(tl||(tl={}));var rl;(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"})(rl||(rl={}));var nl;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(nl||(nl={}));var Xu={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN,G.BEHAVIOR_DATA_USER],[G.GENERATIVE_AI_EXPORT_USER]:[G.GENERATIVE_AI_USER]};function il(t,e){return t===e||(Xu[t]??[]).some(r=>il(r,e))}function ol(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=>il(n,e))}var Tn=f(E());var $i=f(E());var kt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=T.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=T.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var pr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:kt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):kt.await()}};var be=class extends pr{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new $i.CacheRegistry,this.cache=e?i.commonCache:new $i.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 En=class extends be{async listMySearches(){let{session:e}=T.getState();return ol(e,G.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Cn=class extends be{async listMyBookmarks(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var On=class extends be{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=T.getState().session;return!!e?.sessionAuthenticated}};var wn=class extends be{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=T.getState().session;return!!e?.sessionAuthenticated}};var Ju="ft-user-assets",Zu={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(we).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;Bi(t,r,[...Ui(t,r),i]),sl(t,r,1,n),al(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Bi(t,r,Ui(t,r).map(i=>i.id===n.id?n:i)),al(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;Bi(t,r,Ui(t,r).filter(o=>o.id!==i)),sl(t,r,-1,n)}},ll={[we.SEARCHES]:"savedSearches",[we.BOOKMARKS]:"bookmarks",[we.BOOKS]:void 0,[we.COLLECTIONS]:void 0},Ui=(t,e)=>{var r;let n=ll[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Bi=(t,e,r)=>{let n=ll[e];n&&(t[n]=r)},sl=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===we.BOOKMARKS&&n)){let o=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,o+r)}},al=(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)},ae=Tn.FtReduxStore.get({name:Ju,reducers:Zu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(we).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Hi=class{constructor(e=new On,r=new wn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Cn,this.savedSearchesService=new En,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=T.getState();(0,Tn.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(),ae.actions.clearAssetCount(),ae.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ae.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ae.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ae.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ae.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ae.getState().assetCounts.allAsset[e]!==r.count&&ae.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ae.getState().assetCounts.bookmarkByMap[e]!==r.count&&ae.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ae.getState().assetCounts.bookmarkByMap).length!==0;e===we.BOOKMARKS&&r&&ae.actions.clearBookmarkCountByMap(),ae.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;ae.actions.bookmarks(r)}}},Qu=new Hi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Qu);var ji=class{addCommand(e,r=!1){T.commands.add(e,r)}consumeCommand(e){return T.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ji;var Te=f(E());var cl,fr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},ed=Symbol("clearAfterUnitTest"),_n=class extends(0,Te.withEventBus)(be){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[cl]=()=>{this.defaultMessages={},this.cache=new Te.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=T.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,Te.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 o=e.toLowerCase(),s=this.resolveContext(o);return new Te.ParametrizedLabelResolver((i=this.defaultMessages[o])!==null&&i!==void 0?i:{},s).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 Te.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 fr({loadedContexts:e})),this.dispatchEvent(new fr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new fr({loadedContexts:[e]})),this.dispatchEvent(new fr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,Te.delay)(0).then(()=>n()).catch(()=>null)))}};cl=ed;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends _n{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends _n{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var $r=window.FluidTopicsI18nService,Fi=window.FluidTopicsCustomI18nService;var ul=f(E()),Vi=class{highlightHtml(e,r,n){(0,ul.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Vi;var dl=f(E());var zi=class{isDate(e){var r,n,i,o;return(o=(i=((n=(r=T.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&&o!==void 0?o:!1}format(e,r){var n,i,o,s;if(e==null)return"";try{return dl.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new zi;var pl=f(E());var Ur=class{static get(e,r){var n,i,o,s;let a=T.getState(),{lang:l,region:c}=(o=(i=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new pl.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var Wi=class{urlToSearchRequest(e){return Ur.get().parse(e)}searchRequestToUrl(e){return Ur.get().serialize(e)}};window.FluidTopicsUrlService=new Wi;var et=f(E());var Dt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Dt.eventName="change";var Ki=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))}},fl=new Ki;var Rn=class t extends et.WithEventBus{static build(){return new t(window.history,fl,()=>window.location,!1)}constructor(e,r,n,i){var o,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,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,et.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 e=r=>(n,i,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[c,s,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Dt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Dt.eventName,e)}currentItem(){return(0,et.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,et.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,et.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,et.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,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,n);)this.hasState(o)&&(i=o),o++;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,o=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return o==null||o!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Rn.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 hl=f(L());var ml=hl.css`
|
|
261
|
+
`;var gl=f(L()),pe=f(z()),Mt=f(E());var Nt=f(E());function vl(t,e){let{authenticationRequired:r,session:n}=T.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var Ln=class extends pr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Gi=class t extends Nt.FtStateManager{static build(e){return new t(T,e)}constructor(e,r){super(),this.store=e,this.cache=new Nt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Ln,this.cleanSessionDebouncer=new Nt.Debouncer,this.reloadDebouncer=new Nt.Debouncer(500),this.apiProvider=r??(()=>kt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(dr.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let 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(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>vl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Mr(n)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},yl=Gi.build();var It=class extends Event{constructor(e,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var Br=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:n}=r;for(let{elementRef:i,callbackRef:o}of n){let s=i.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new It(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],n=e.callback,i=this.pendingContextRequests.get(e.context);i===void 0&&this.pendingContextRequests.set(e.context,i={callbacks:new WeakMap,requests:[]});let o=i.callbacks.get(r);o===void 0&&i.callbacks.set(r,o=new WeakSet),o.has(n)||(o.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var te=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},H=class extends Mt.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=yl,this.contextRoot=new Br}render(){return gl.html`
|
|
262
262
|
<slot></slot>
|
|
263
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n
|
|
264
|
-
`;var
|
|
263
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>$r.addContext(n)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};H.elementDefinitions={};H.styles=ml;te([(0,pe.property)()],H.prototype,"baseUrl",void 0);te([(0,pe.property)()],H.prototype,"tenantId",void 0);te([(0,pe.property)()],H.prototype,"apiIntegrationIdentifier",void 0);te([(0,pe.property)()],H.prototype,"apiIntegrationAppVersion",void 0);te([(0,pe.property)()],H.prototype,"uiLocale",void 0);te([(0,Mt.jsonProperty)(null)],H.prototype,"availableUiLocales",void 0);te([(0,Mt.jsonProperty)(null)],H.prototype,"metadataConfiguration",void 0);te([(0,pe.property)({type:Boolean})],H.prototype,"editorMode",void 0);te([(0,pe.property)({type:Boolean})],H.prototype,"noCustom",void 0);te([(0,pe.property)({type:Boolean})],H.prototype,"openExternalDocumentInNewTab",void 0);te([(0,pe.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],H.prototype,"noCustomComponent",void 0);te([(0,pe.property)({type:Boolean})],H.prototype,"withManualResources",void 0);te([(0,pe.property)({type:Boolean})],H.prototype,"navigatorOnline",void 0);te([(0,pe.property)({type:Boolean})],H.prototype,"forcedOffline",void 0);te([(0,pe.property)({type:Boolean})],H.prototype,"authenticationRequired",void 0);te([(0,Mt.jsonProperty)([])],H.prototype,"messageContexts",void 0);te([(0,Mt.jsonProperty)(void 0)],H.prototype,"session",void 0);var xl=f(E());var bl={"ft-app-context":H};(0,xl.customElements)(bl);var Al=f(z());var qi=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,n]=e.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},hr=new qi;var nd=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},jr=Symbol("i18nAttributes"),Sl=Symbol("i18nListAttributes"),El=Symbol("i18nProperties"),Pn=Symbol("i18nContexts"),Hr=Symbol("i18nUnsubs"),Nn=(0,mr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?Fi:$r}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:u,argsProvider:d}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(s,a,...p)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(hr.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&o(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(s=this[jr])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Sl])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(h=>c(u,d,h))})}updateI18nProperties(o){var s;(s=this[El])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[Pn].set(l,{isCustomContext:a}),this[Hr].has(l)||this[Hr].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[Pn].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Pn].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Hr].forEach(o=>o()),this[Hr].clear()}}return e=Pn,r=Hr,nd([(0,Al.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),kn=class extends Nn(mr.FtLitElement){},Dn=class extends Nn(mr.FtLitElementRedux){};var Cl=f(E());var Yi=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(n=>typeof n=="string"?hr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},id=new Yi;var Ol=(t,e)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:Cl.hasChanged,converter:hr,...e}),r[jr]=(i=r[jr])!==null&&i!==void 0?i:new Map,r[jr].set(n,t??{})};var wl=f(L());var Tl=wl.css`
|
|
264
|
+
`;var In=f(L()),Mn=f(z()),$n=f(E());var Fr=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Ne=class extends Dn{constructor(){super(),this.editorMode=!1,this.addStore(T)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":In.nothing:In.html`
|
|
265
265
|
<span class="ft-i18n">
|
|
266
266
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
267
267
|
</span>
|
|
268
|
-
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};
|
|
268
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Ne.elementDefinitions={};Ne.styles=Tl;Fr([(0,$n.redux)()],Ne.prototype,"editorMode",void 0);Fr([(0,Mn.property)()],Ne.prototype,"context",void 0);Fr([(0,Mn.property)()],Ne.prototype,"key",void 0);Fr([(0,$n.jsonProperty)([])],Ne.prototype,"args",void 0);Fr([(0,Mn.property)()],Ne.prototype,"defaultMessage",void 0);var Rl=f(E());var _l={"ft-i18n":Ne};(0,Rl.customElements)(_l);var Ie=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},X=class extends kn{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new _e.Debouncer,this.revealDebouncer=new _e.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return Ll.html`
|
|
269
269
|
<div part="container"
|
|
270
270
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
271
271
|
<slot part="slot"></slot>
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
</div>
|
|
281
281
|
</div>
|
|
282
282
|
</div>
|
|
283
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,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(e){var r,n;e.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(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:e},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 e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&ws(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${_e.designSystemVariables.transitionDuration}, left ${_e.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,_e.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};X.elementDefinitions={"ft-typography":Y};X.styles=Zo;
|
|
283
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,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(e){var r,n;e.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(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:e},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 e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&ws(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${_e.designSystemVariables.transitionDuration}, left ${_e.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,_e.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};X.elementDefinitions={"ft-typography":Y};X.styles=Zo;Ie([Ol()],X.prototype,"text",void 0);Ie([(0,Re.property)({type:Boolean})],X.prototype,"manual",void 0);Ie([(0,Re.property)({type:Boolean})],X.prototype,"inline",void 0);Ie([(0,_e.numberProperty)()],X.prototype,"delay",void 0);Ie([(0,Re.property)()],X.prototype,"position",void 0);Ie([(0,_e.jsonProperty)([])],X.prototype,"ignoreMatchingElements",void 0);Ie([(0,Re.queryAssignedNodes)()],X.prototype,"slotNodes",void 0);Ie([(0,Re.query)(".ft-tooltip--container")],X.prototype,"container",void 0);Ie([(0,Re.query)(".ft-tooltip")],X.prototype,"tooltip",void 0);Ie([(0,Re.query)(".ft-tooltip--content")],X.prototype,"tooltipContent",void 0);Ie([(0,Re.state)()],X.prototype,"visible",void 0);var kl=f(E());var Pl={"ft-tooltip":X};(0,kl.customElements)(Pl);var Dl=f(L()),$e=f(E()),Me={size:$e.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:$e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",$e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:$e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",$e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:$e.FtCssVariableFactory.extend("--ft-icon-material-font-family","",$e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:$e.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Nl=[Dl.css`
|
|
284
284
|
:host, i.ft-icon {
|
|
285
285
|
display: inline-flex;
|
|
286
286
|
align-items: center;
|
|
@@ -289,14 +289,14 @@
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
:host {
|
|
292
|
-
width: ${
|
|
293
|
-
height: ${
|
|
292
|
+
width: ${Me.size};
|
|
293
|
+
height: ${Me.size};
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
i.ft-icon {
|
|
297
297
|
width: 100%;
|
|
298
298
|
height: 100%;
|
|
299
|
-
font-size: ${
|
|
299
|
+
font-size: ${Me.size};
|
|
300
300
|
line-height: 1;
|
|
301
301
|
font-weight: normal;
|
|
302
302
|
text-transform: none;
|
|
@@ -307,33 +307,33 @@
|
|
|
307
307
|
text-rendering: auto;
|
|
308
308
|
-webkit-font-smoothing: antialiased;
|
|
309
309
|
-moz-osx-font-smoothing: grayscale;
|
|
310
|
-
vertical-align: ${
|
|
310
|
+
vertical-align: ${Me.verticalAlign};
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
i.ft-icon.ft-icon--fluid-topics {
|
|
314
|
-
font-family: ${
|
|
314
|
+
font-family: ${Me.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
315
315
|
|
|
316
316
|
/* Ugly fix because font is broken */
|
|
317
|
-
font-size: calc(0.75 * ${
|
|
318
|
-
line-height: ${
|
|
317
|
+
font-size: calc(0.75 * ${Me.size});
|
|
318
|
+
line-height: ${Me.size};
|
|
319
319
|
position: relative;
|
|
320
320
|
top: -4%;
|
|
321
321
|
justify-content: center;
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
.ft-icon--file-format {
|
|
325
|
-
font-family: ${
|
|
325
|
+
font-family: ${Me.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
.ft-icon--material {
|
|
329
|
-
font-family: ${
|
|
329
|
+
font-family: ${Me.materialFontFamily}, "Material Icons", sans-serif;
|
|
330
330
|
}
|
|
331
|
-
|
|
331
|
+
`,$e.noTextSelect];var ht;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(ht||(ht={}));var Vr=f(L()),mt=f(z()),$l=f(E()),Ul=f(Ml());var Un;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(Un||(Un={}));var y;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(y||(y={}));var Sy=new Map([...["abw"].map(t=>[t,y.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,y.AUDIO]),...["avi"].map(t=>[t,y.AVI]),...["chm","xhs"].map(t=>[t,y.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,y.CODE]),...["csv"].map(t=>[t,y.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,y.DITA]),...["epub"].map(t=>[t,y.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,y.EXCEL]),...["flac"].map(t=>[t,y.FLAC]),...["gif"].map(t=>[t,y.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,y.GZIP]),...["html","htm","xhtml"].map(t=>[t,y.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,y.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,y.JPEG]),...["json"].map(t=>[t,y.JSON]),...["m4a","m4p"].map(t=>[t,y.M4A]),...["mov","qt"].map(t=>[t,y.MOV]),...["mp3"].map(t=>[t,y.MP3]),...["mp4","m4v"].map(t=>[t,y.MP4]),...["ogg","oga"].map(t=>[t,y.OGG]),...["pdf","ps"].map(t=>[t,y.PDF]),...["png"].map(t=>[t,y.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,y.POWERPOINT]),...["rar"].map(t=>[t,y.RAR]),...["stp"].map(t=>[t,y.STP]),...["txt","rtf","md","mdown"].map(t=>[t,y.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,y.VIDEO]),...["wav"].map(t=>[t,y.WAV]),...["wma"].map(t=>[t,y.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,y.WORD]),...["xml","xsl","rdf"].map(t=>[t,y.XML]),...["yaml","yml","x-yaml"].map(t=>[t,y.YAML]),...["zip"].map(t=>[t,y.ZIP])]);var Ey={[y.ABW]:"#91ABC6",[y.AUDIO]:"#1795E3",[y.AVI]:"#E63324",[y.CHM]:"#71C3EB",[y.CODE]:"#71C3EB",[y.CSV]:"#1F7345",[y.DITA]:"#71C3EB",[y.EPUB]:"#85B926",[y.EXCEL]:"#1F7345",[y.FLAC]:"#1795E3",[y.GIF]:"#59B031",[y.GZIP]:"#F8AB36",[y.HTML]:"#71C3EB",[y.IMAGE]:"#59B031",[y.JPEG]:"#59B031",[y.JSON]:"#71C3EB",[y.M4A]:"#1795E3",[y.MOV]:"#E63324",[y.MP3]:"#1795E3",[y.MP4]:"#E63324",[y.OGG]:"#1795E3",[y.PDF]:"#E44948",[y.PNG]:"#59B031",[y.POWERPOINT]:"#B54A2B",[y.RAR]:"#F8AB36",[y.STP]:"#3764B1",[y.TEXT]:"#3162AB",[y.UNKNOWN]:"#999999",[y.VIDEO]:"#E63324",[y.WAV]:"#1795E3",[y.WMA]:"#1795E3",[y.WORD]:"#3162AB",[y.XML]:"#71C3EB",[y.YAML]:"#71C3EB",[y.ZIP]:"#F8AB36"};var zr=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},le=class extends $l.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Vr.nothing}render(){let e=this.variant&&Object.values(ht).includes(this.variant)?this.variant:ht.fluid_topics,r=e!==ht.material||!!this.value;return Vr.html`
|
|
332
332
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
333
333
|
${(0,Ul.unsafeHTML)(this.resolvedIcon)}
|
|
334
334
|
<slot ?hidden=${r}></slot>
|
|
335
335
|
</i>
|
|
336
|
-
`}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let n=this.value||this.getTextContent();switch(this.variant){case ht.file_format:this.resolvedIcon=(e=y[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case ht.material:this.resolvedIcon=this.value||
|
|
336
|
+
`}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let n=this.value||this.getTextContent();switch(this.variant){case ht.file_format:this.resolvedIcon=(e=y[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case ht.material:this.resolvedIcon=this.value||Vr.nothing;break;default:this.resolvedIcon=(r=Un[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};le.elementDefinitions={};le.styles=Nl;zr([(0,mt.property)()],le.prototype,"variant",void 0);zr([(0,mt.property)()],le.prototype,"value",void 0);zr([(0,mt.property)({reflect:!0,attribute:"aria-hidden"})],le.prototype,"ariaHidden",void 0);zr([(0,mt.state)()],le.prototype,"resolvedIcon",void 0);zr([(0,mt.query)("slot")],le.prototype,"slottedContent",void 0);var Hl=f(E());var Bl={"ft-icon":le};(0,Hl.customElements)(Bl);var jl=f(L()),Wr=f(E()),$t={color:Wr.FtCssVariableFactory.extend("--ft-loader-color","",Wr.designSystemVariables.colorPrimary),size:Wr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Fl=jl.css`
|
|
337
337
|
:host {
|
|
338
338
|
line-height: 0;
|
|
339
339
|
}
|
|
@@ -409,7 +409,7 @@
|
|
|
409
409
|
<div></div>
|
|
410
410
|
<div></div>
|
|
411
411
|
</div>
|
|
412
|
-
`}};Ut.styles=Fl;var Kl=f(E());var Wl={"ft-loader":Ut};(0,Kl.customElements)(Wl);var vt=f(L()),
|
|
412
|
+
`}};Ut.styles=Fl;var Kl=f(E());var Wl={"ft-loader":Ut};(0,Kl.customElements)(Wl);var vt=f(L()),Bn=f(Qt()),k=f(z());var Kr=t=>t??W;var Yl=f(L()),O=f(E());var Gl=O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorPrimary),D={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorSurface),borderRadius:O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusL),color:Gl,fontSize:O.FtCssVariableFactory.extend("--ft-button-font-size","",Fe.fontSize),iconSize:O.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:O.FtCssVariableFactory.extend("--ft-button-ripple-color","",Gl),verticalPadding:O.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:O.FtCssVariableFactory.external(O.designSystemVariables.colorOpacityDisabled,"Design system")},ql=O.FtCssVariableFactory.extend("--ft-button-primary-color","",O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorOnPrimary)),Xi={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-primary-background-color","",O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorPrimary)),color:ql,rippleColor:O.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ql)},Ke={borderRadius:O.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusM)),verticalPadding:O.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Xl=Yl.css`
|
|
413
413
|
:host {
|
|
414
414
|
display: inline-block;
|
|
415
415
|
max-width: 100%;
|
|
@@ -420,7 +420,7 @@
|
|
|
420
420
|
box-shadow: 0px 0px 0px transparent;
|
|
421
421
|
border: 0px solid transparent;
|
|
422
422
|
text-shadow: 0px 0px 0px transparent;
|
|
423
|
-
font-size: ${
|
|
423
|
+
font-size: ${D.fontSize};
|
|
424
424
|
text-decoration: none;
|
|
425
425
|
}
|
|
426
426
|
|
|
@@ -454,32 +454,31 @@
|
|
|
454
454
|
border: none;
|
|
455
455
|
pointer-events: auto;
|
|
456
456
|
|
|
457
|
-
--button-internal-line-height: max(calc(${
|
|
458
|
-
--button-internal-color: ${
|
|
459
|
-
${(0,O.setVariable)(
|
|
460
|
-
${(0,O.setVariable)(ce.color,
|
|
461
|
-
${(0,O.setVariable)(ce.borderRadius,
|
|
457
|
+
--button-internal-line-height: max(calc(${D.fontSize} + 2px), ${D.iconSize});
|
|
458
|
+
--button-internal-color: ${D.color};
|
|
459
|
+
${(0,O.setVariable)(Me.size,D.iconSize)};
|
|
460
|
+
${(0,O.setVariable)(ce.color,D.rippleColor)};
|
|
461
|
+
${(0,O.setVariable)(ce.borderRadius,D.borderRadius)};
|
|
462
462
|
|
|
463
|
-
border-radius: ${
|
|
464
|
-
padding: ${
|
|
465
|
-
background-color: ${
|
|
463
|
+
border-radius: ${D.borderRadius};
|
|
464
|
+
padding: ${D.verticalPadding} ${D.horizontalPadding};
|
|
465
|
+
background-color: ${D.backgroundColor};
|
|
466
466
|
color: var(--button-internal-color);
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
.ft-button.ft-button--outlined {
|
|
470
470
|
border: 1px solid var(--button-internal-color);
|
|
471
|
-
padding: calc(${
|
|
471
|
+
padding: calc(${D.verticalPadding} - 1px) calc(${D.horizontalPadding} - 1px);
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
.ft-button.ft-button--dense {
|
|
475
|
-
padding: ${
|
|
476
|
-
border-radius: ${
|
|
477
|
-
|
|
478
|
-
${(0,O.setVariable)(ce.borderRadius,Be.borderRadius)};
|
|
475
|
+
padding: ${Ke.verticalPadding} ${Ke.horizontalPadding};
|
|
476
|
+
border-radius: ${Ke.borderRadius};
|
|
477
|
+
${(0,O.setVariable)(ce.borderRadius,Ke.borderRadius)};
|
|
479
478
|
}
|
|
480
479
|
|
|
481
480
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
482
|
-
padding: calc(${
|
|
481
|
+
padding: calc(${Ke.verticalPadding} - 1px) calc(${Ke.horizontalPadding} - 1px);
|
|
483
482
|
}
|
|
484
483
|
|
|
485
484
|
.ft-button:not([disabled]):hover {
|
|
@@ -487,22 +486,22 @@
|
|
|
487
486
|
}
|
|
488
487
|
|
|
489
488
|
.ft-button--round {
|
|
490
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
489
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${D.verticalPadding});
|
|
491
490
|
}
|
|
492
491
|
|
|
493
492
|
.ft-button--round.ft-button--dense {
|
|
494
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
493
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${Ke.verticalPadding});
|
|
495
494
|
}
|
|
496
495
|
|
|
497
496
|
.ft-button[disabled] {
|
|
498
497
|
filter: grayscale(1);
|
|
499
|
-
opacity: ${
|
|
498
|
+
opacity: ${D.opacityDisabled};
|
|
500
499
|
}
|
|
501
500
|
|
|
502
501
|
.ft-button.ft-button--primary {
|
|
503
|
-
background-color: ${
|
|
504
|
-
--button-internal-color: ${
|
|
505
|
-
${(0,O.setVariable)(ce.color,
|
|
502
|
+
background-color: ${Xi.backgroundColor};
|
|
503
|
+
--button-internal-color: ${Xi.color};
|
|
504
|
+
${(0,O.setVariable)(ce.color,Xi.rippleColor)};
|
|
506
505
|
}
|
|
507
506
|
|
|
508
507
|
.ft-button--label {
|
|
@@ -511,17 +510,17 @@
|
|
|
511
510
|
white-space: nowrap;
|
|
512
511
|
text-overflow: ellipsis;
|
|
513
512
|
display: block;
|
|
514
|
-
margin: 0 ${
|
|
515
|
-
${(0,O.setVariable)(
|
|
516
|
-
${(0,O.setVariable)(
|
|
513
|
+
margin: 0 ${D.iconPadding};
|
|
514
|
+
${(0,O.setVariable)(Fe.fontSize,"1em")};
|
|
515
|
+
${(0,O.setVariable)(Fe.lineHeight,"var(--button-internal-line-height)")};
|
|
517
516
|
}
|
|
518
517
|
|
|
519
518
|
.ft-button--dense .ft-button--label {
|
|
520
|
-
margin: 0 ${
|
|
519
|
+
margin: 0 ${Ke.iconPadding};
|
|
521
520
|
}
|
|
522
521
|
|
|
523
|
-
.ft-button--label
|
|
524
|
-
|
|
522
|
+
.ft-button--label.ft-button--label-no-text {
|
|
523
|
+
margin: 0;
|
|
525
524
|
}
|
|
526
525
|
|
|
527
526
|
[part="icon"] {
|
|
@@ -530,13 +529,13 @@
|
|
|
530
529
|
}
|
|
531
530
|
|
|
532
531
|
.ft-button--label[hidden] + [part="icon"] {
|
|
533
|
-
margin: 0 calc(${
|
|
534
|
-
padding: 0 ${
|
|
532
|
+
margin: 0 calc(${D.horizontalPadding} * -1);
|
|
533
|
+
padding: 0 ${D.verticalPadding};
|
|
535
534
|
}
|
|
536
535
|
|
|
537
536
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
538
|
-
margin: 0 calc(${
|
|
539
|
-
padding: 0 ${
|
|
537
|
+
margin: 0 calc(${Ke.horizontalPadding} * -1);
|
|
538
|
+
padding: 0 ${Ke.verticalPadding};
|
|
540
539
|
}
|
|
541
540
|
|
|
542
541
|
.ft-button:not(.ft-button--trailing-icon) [part="label"] {
|
|
@@ -544,10 +543,10 @@
|
|
|
544
543
|
}
|
|
545
544
|
|
|
546
545
|
ft-loader {
|
|
547
|
-
${(0,O.setVariable)($t.size,
|
|
546
|
+
${(0,O.setVariable)($t.size,D.iconSize)};
|
|
548
547
|
${(0,O.setVariable)($t.color,"var(--button-internal-color)")};
|
|
549
548
|
}
|
|
550
|
-
`;var
|
|
549
|
+
`;var M=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},_=class t extends(0,Ge.toFtFormComponent)(Ge.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,n;let i={"ft-button--label":!0,"ft-safari-ellipsis-fix":Ge.isSafari,"ft-button--label-no-text":!this.hasTextContent},o=vt.html`
|
|
551
550
|
<ft-ripple part="ripple"
|
|
552
551
|
?disabled=${this.isDisabled()}
|
|
553
552
|
?activated=${this.activated}
|
|
@@ -555,32 +554,31 @@
|
|
|
555
554
|
<ft-typography part="label"
|
|
556
555
|
variant="${Q.button}"
|
|
557
556
|
element="span"
|
|
558
|
-
class="
|
|
559
|
-
|
|
560
|
-
<slot @slotchange=${this.onSlotchange}></slot>
|
|
557
|
+
class="${(0,Bn.classMap)(i)}">
|
|
558
|
+
<slot></slot>
|
|
561
559
|
</ft-typography>
|
|
562
560
|
${this.resolveIcon()}
|
|
563
|
-
`,
|
|
564
|
-
<a href="${
|
|
561
|
+
`,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?vt.html`
|
|
562
|
+
<a href="${s}"
|
|
565
563
|
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
566
564
|
part="button"
|
|
567
|
-
class="${(0,
|
|
568
|
-
aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.
|
|
565
|
+
class="${(0,Bn.classMap)(this.buttonClasses)}"
|
|
566
|
+
aria-label="${Kr((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
|
|
569
567
|
?disabled=${this.isDisabled()}>
|
|
570
|
-
${
|
|
568
|
+
${o}
|
|
571
569
|
</a>
|
|
572
570
|
`:vt.html`
|
|
573
571
|
<button part="button"
|
|
574
|
-
class="${(0,
|
|
575
|
-
aria-label="${(n=this.ariaLabel)!==null&&n!==void 0?n:this.
|
|
576
|
-
aria-haspopup="${
|
|
577
|
-
aria-pressed="${
|
|
572
|
+
class="${(0,Bn.classMap)(this.buttonClasses)}"
|
|
573
|
+
aria-label="${Kr((n=this.ariaLabel)!==null&&n!==void 0?n:this.label)}"
|
|
574
|
+
aria-haspopup="${Kr(this.ariaHasPopup)}"
|
|
575
|
+
aria-pressed="${Kr(this.ariaPressed)}"
|
|
578
576
|
?disabled=${this.isDisabled()}>
|
|
579
|
-
${
|
|
577
|
+
${o}
|
|
580
578
|
</button>
|
|
581
|
-
`)}addTooltipIfNeeded(e){return this.
|
|
579
|
+
`)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?vt.html`
|
|
582
580
|
<ft-tooltip part="tooltip"
|
|
583
|
-
text="${this.
|
|
581
|
+
text="${this.label}"
|
|
584
582
|
position="${this.tooltipPosition}">
|
|
585
583
|
${e}
|
|
586
584
|
</ft-tooltip>
|
|
@@ -589,7 +587,7 @@
|
|
|
589
587
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
590
588
|
`:vt.html`
|
|
591
589
|
<slot part="icon" name="icon"></slot>
|
|
592
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}
|
|
590
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};_.elementDefinitions={"ft-ripple":P,"ft-tooltip":X,"ft-icon":le,"ft-loader":Ut,"ft-typography":Y};_.styles=[Ge.safariEllipsisFix,Xl,Ge.noTextSelect];_.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:_.labelsObserver.unobserve(e.target)}});M([(0,k.property)({type:Boolean})],_.prototype,"primary",void 0);M([(0,k.property)({type:Boolean})],_.prototype,"outlined",void 0);M([(0,k.property)({type:Boolean})],_.prototype,"dense",void 0);M([(0,k.property)({type:Boolean})],_.prototype,"round",void 0);M([(0,k.property)({type:Boolean})],_.prototype,"disabled",void 0);M([(0,k.property)()],_.prototype,"icon",void 0);M([(0,k.property)()],_.prototype,"iconVariant",void 0);M([(0,k.property)({type:Boolean})],_.prototype,"trailingIcon",void 0);M([(0,k.property)()],_.prototype,"label",void 0);M([(0,k.property)()],_.prototype,"type",void 0);M([(0,k.property)()],_.prototype,"href",void 0);M([(0,k.property)()],_.prototype,"target",void 0);M([(0,k.property)({type:Boolean})],_.prototype,"loading",void 0);M([(0,k.property)({attribute:"aria-label"})],_.prototype,"ariaLabel",void 0);M([(0,k.property)()],_.prototype,"ariaHasPopup",void 0);M([(0,k.property)({attribute:"aria-pressed"})],_.prototype,"ariaPressed",void 0);M([(0,k.property)()],_.prototype,"tooltipPosition",void 0);M([(0,k.property)({type:Boolean})],_.prototype,"hideTooltip",void 0);M([(0,k.property)({type:Boolean})],_.prototype,"forceTooltip",void 0);M([(0,k.property)({type:Boolean})],_.prototype,"activated",void 0);M([(0,k.query)(".ft-button")],_.prototype,"button",void 0);M([(0,k.query)(".ft-button--label")],_.prototype,"labelContainer",void 0);M([(0,k.state)()],_.prototype,"hasTextContent",void 0);M([(0,k.query)(".ft-button--label slot")],_.prototype,"slottedContent",void 0);M([(0,k.query)("[part=tooltip]")],_.prototype,"tooltip",void 0);var Zl=f(E());var Jl={"ft-button":_};(0,Zl.customElements)(Jl);var Hn=f(L()),Ue=f(z()),tc=f(E()),rc=f(Qt());var re=f(E()),Ql=f(L());var xe={textColor:re.FtCssVariableFactory.extend("--ft-checkbox-text-color","",re.designSystemVariables.colorOnSurfaceHigh),fontSize:re.FtCssVariableFactory.extend("--ft-checkbox-font-size","",A.fontSize),activeColor:re.FtCssVariableFactory.extend("--ft-checkbox-active-color","",re.designSystemVariables.colorPrimary),checkColor:re.FtCssVariableFactory.extend("--ft-checkbox-check-color","",re.designSystemVariables.colorOnPrimary),borderColor:re.FtCssVariableFactory.extend("--ft-checkbox-border-color","",re.designSystemVariables.colorOnSurfaceMedium),disabledColor:re.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",re.designSystemVariables.colorOnSurfaceDisabled),errorColor:re.FtCssVariableFactory.extend("--ft-checkbox-error-color","",re.designSystemVariables.colorError)},ec=Ql.css`
|
|
593
591
|
* {
|
|
594
592
|
box-sizing: border-box;
|
|
595
593
|
}
|
|
@@ -682,7 +680,7 @@
|
|
|
682
680
|
}
|
|
683
681
|
}
|
|
684
682
|
}
|
|
685
|
-
`;var tt=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Ji=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ne=class extends tc.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return
|
|
683
|
+
`;var tt=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Ji=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ne=class extends tc.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return Hn.html`
|
|
686
684
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
687
685
|
<ft-ripple part="checkbox-ripple"
|
|
688
686
|
?disabled=${this.disabled}
|
|
@@ -704,19 +702,19 @@
|
|
|
704
702
|
@change=${this.onChange}
|
|
705
703
|
>
|
|
706
704
|
</div>
|
|
707
|
-
`}render(){return
|
|
705
|
+
`}render(){return Hn.html`
|
|
708
706
|
<label class="${(0,rc.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
|
|
709
707
|
${this.renderBoxContainer()}
|
|
710
708
|
<ft-typography variant="${Q.body2}" part="checkbox-body">
|
|
711
709
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
712
710
|
</ft-typography>
|
|
713
711
|
</label>
|
|
714
|
-
`}renderBoxIcon(){return
|
|
712
|
+
`}renderBoxIcon(){return Hn.html`
|
|
715
713
|
<svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
|
|
716
714
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
717
715
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
718
716
|
</svg>
|
|
719
|
-
`}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new Ji(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};ne.elementDefinitions={"ft-ripple":P,"ft-typography":Y};ne.styles=ec;tt([(0,
|
|
717
|
+
`}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new Ji(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};ne.elementDefinitions={"ft-ripple":P,"ft-typography":Y};ne.styles=ec;tt([(0,Ue.property)()],ne.prototype,"name",void 0);tt([(0,Ue.property)()],ne.prototype,"value",void 0);tt([(0,Ue.property)({type:Boolean,reflect:!0})],ne.prototype,"checked",void 0);tt([(0,Ue.property)({type:Boolean})],ne.prototype,"indeterminate",void 0);tt([(0,Ue.property)({type:Boolean})],ne.prototype,"disabled",void 0);tt([(0,Ue.property)({type:Boolean})],ne.prototype,"error",void 0);tt([(0,Ue.query)(".ft-checkbox")],ne.prototype,"container",void 0);tt([(0,Ue.query)("ft-ripple")],ne.prototype,"ripple",void 0);tt([(0,Ue.query)("input")],ne.prototype,"input",void 0);var ic=f(E());var nc={"ft-checkbox":ne};(0,ic.customElements)(nc);var ac=f(L()),qe=f(z()),lc=f(E()),cc=f(Qt());var oc=f(L()),fe=f(E());var yt={textColor:fe.FtCssVariableFactory.extend("--ft-radio-text-color","",fe.designSystemVariables.colorOnSurfaceHigh),fontSize:fe.FtCssVariableFactory.extend("--ft-radio-font-size","",A.fontSize),colorPrimary:fe.FtCssVariableFactory.external(fe.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:fe.FtCssVariableFactory.external(fe.designSystemVariables.colorOnPrimary,"Design system"),borderColor:fe.FtCssVariableFactory.extend("--ft-radio-border-color","",fe.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:fe.FtCssVariableFactory.external(fe.designSystemVariables.colorOnSurfaceDisabled,"Design system")},sc=oc.css`
|
|
720
718
|
* {
|
|
721
719
|
box-sizing: border-box;
|
|
722
720
|
}
|
|
@@ -805,7 +803,7 @@
|
|
|
805
803
|
.ft-radio ft-typography {
|
|
806
804
|
padding-right: 2px;
|
|
807
805
|
}
|
|
808
|
-
`;var gt=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},
|
|
806
|
+
`;var gt=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},jn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},se=class extends lc.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return ac.html`
|
|
809
807
|
<div class="${(0,cc.classMap)(this.radioClasses)}"
|
|
810
808
|
@click=${this.onClick}>
|
|
811
809
|
<div class="ft-radio--box-container">
|
|
@@ -831,7 +829,7 @@
|
|
|
831
829
|
</ft-typography>
|
|
832
830
|
</label>
|
|
833
831
|
</div>
|
|
834
|
-
`}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new
|
|
832
|
+
`}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new jn(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new jn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};se.elementDefinitions={"ft-ripple":P,"ft-typography":Y};se.styles=sc;gt([(0,qe.property)()],se.prototype,"name",void 0);gt([(0,qe.property)()],se.prototype,"value",void 0);gt([(0,qe.property)({type:Boolean,reflect:!0})],se.prototype,"checked",void 0);gt([(0,qe.property)({attribute:"aria-checked",reflect:!0})],se.prototype,"ariaChecked",void 0);gt([(0,qe.property)({type:Boolean})],se.prototype,"disabled",void 0);gt([(0,qe.query)(".ft-radio")],se.prototype,"container",void 0);gt([(0,qe.query)("ft-ripple")],se.prototype,"ripple",void 0);gt([(0,qe.query)("input")],se.prototype,"input",void 0);var pc=f(E()),bt=f(z()),fc=f(L());var uc=f(L());var dc=uc.css`
|
|
835
833
|
:host {
|
|
836
834
|
display: block;
|
|
837
835
|
}
|
|
@@ -839,12 +837,12 @@
|
|
|
839
837
|
:host(:focus-visible) {
|
|
840
838
|
outline: none;
|
|
841
839
|
}
|
|
842
|
-
`;var
|
|
840
|
+
`;var Gr=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Be=class extends pc.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(n=>n.matches("ft-radio,ftds-radio")?[n]:[...n.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return fc.html`
|
|
843
841
|
<slot @slotchange=${this.onSlotChange}
|
|
844
842
|
@change=${this.onChange}
|
|
845
843
|
@keydown=${this.onKeyDown}
|
|
846
844
|
></slot>
|
|
847
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};
|
|
845
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Be.elementDefinitions={};Be.styles=dc;Gr([(0,bt.property)()],Be.prototype,"name",void 0);Gr([(0,bt.property)({reflect:!0,attribute:"role"})],Be.prototype,"role",void 0);Gr([(0,bt.property)({reflect:!0,attribute:"aria-labelledby"})],Be.prototype,"ariaLabelledBy",void 0);Gr([(0,bt.queryAssignedElements)()],Be.prototype,"assignedElements",void 0);Gr([(0,bt.state)()],Be.prototype,"currentSelectedIndex",void 0);var mc=f(E());var hc={"ft-radio":se,"ft-radio-group":Be};(0,mc.customElements)(hc);var vc=f(L()),N=f(E());var qr={buttonMoreColor:N.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",N.designSystemVariables.colorOnSurface),borderRadiusM:N.FtCssVariableFactory.external(N.designSystemVariables.borderRadiusM,"Design system"),colorOutline:N.FtCssVariableFactory.external(N.designSystemVariables.colorOutline,"Design system"),colorOnSurface:N.FtCssVariableFactory.external(N.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:N.FtCssVariableFactory.external(N.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:N.FtCssVariableFactory.external(N.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:N.FtCssVariableFactory.external(N.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:N.FtCssVariableFactory.external(N.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:N.FtCssVariableFactory.external(ye.fontFamily,"Body2 typography"),fontSize:N.FtCssVariableFactory.external(ye.fontSize,"Body2 typography"),fontWeight:N.FtCssVariableFactory.external(ye.fontWeight,"Body2 typography"),letterSpacing:N.FtCssVariableFactory.external(ye.letterSpacing,"Body2 typography"),lineHeight:N.FtCssVariableFactory.external(ye.lineHeight,"Body2 typography"),textTransform:N.FtCssVariableFactory.external(ye.textTransform,"Body2 typography")},yc=vc.css`
|
|
848
846
|
.ft-filter-level--container {
|
|
849
847
|
display: flex;
|
|
850
848
|
flex-direction: column;
|
|
@@ -859,14 +857,14 @@
|
|
|
859
857
|
flex-shrink: 0;
|
|
860
858
|
text-decoration: none;
|
|
861
859
|
position: relative;
|
|
862
|
-
border-radius: ${
|
|
860
|
+
border-radius: ${qr.borderRadiusM};
|
|
863
861
|
overflow: hidden;
|
|
864
862
|
display: flex;
|
|
865
863
|
align-items: center;
|
|
866
864
|
padding: 4px 4px;
|
|
867
865
|
gap: 4px;
|
|
868
866
|
cursor: pointer;
|
|
869
|
-
color: ${
|
|
867
|
+
color: ${qr.colorOnSurface};
|
|
870
868
|
}
|
|
871
869
|
|
|
872
870
|
.ft-filter-level--go-back:focus {
|
|
@@ -895,11 +893,11 @@
|
|
|
895
893
|
}
|
|
896
894
|
|
|
897
895
|
ft-button {
|
|
898
|
-
${(0,
|
|
896
|
+
${(0,N.setVariable)(D.color,qr.colorOnSurface)};
|
|
899
897
|
}
|
|
900
898
|
|
|
901
899
|
ft-button.ft-filter-level--display-more {
|
|
902
|
-
${(0,
|
|
900
|
+
${(0,N.setVariable)(D.color,qr.buttonMoreColor)};
|
|
903
901
|
}
|
|
904
902
|
|
|
905
903
|
ft-radio, ft-checkbox {
|
|
@@ -913,9 +911,9 @@
|
|
|
913
911
|
|
|
914
912
|
.ft-filter-level--no-values {
|
|
915
913
|
margin: 10px 0;
|
|
916
|
-
color: ${
|
|
914
|
+
color: ${qr.colorOnSurfaceMedium};
|
|
917
915
|
}
|
|
918
|
-
`;var ie=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Zi={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},j=class extends(0,he.withAnalytics)(
|
|
916
|
+
`;var ie=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Zi={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},j=class extends(0,he.withAnalytics)(Nn((0,he.withAriaNotification)(he.FtLitElement)),Zi){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new he.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return Ae.html`
|
|
919
917
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
920
918
|
${this.parent==null?null:Ae.html`
|
|
921
919
|
<div tabindex="0"
|
|
@@ -983,7 +981,7 @@
|
|
|
983
981
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
984
982
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
985
983
|
</ft-radio>
|
|
986
|
-
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};j.elementDefinitions={"ft-button":_,"ft-ripple":P,"ft-typography":Y,"ft-checkbox":ne,"ft-icon":le,"ft-radio":se};j.styles=yc;ie([(0,J.property)({type:String})],j.prototype,"filterId",void 0);ie([(0,J.property)({type:Object})],j.prototype,"parent",void 0);ie([(0,J.property)({type:Array,hasChanged:he.hasChanged})],j.prototype,"options",void 0);ie([(0,J.property)({type:Boolean})],j.prototype,"multivalued",void 0);ie([(0,J.property)({type:Boolean})],j.prototype,"disabled",void 0);ie([(0,J.property)({type:Boolean})],j.prototype,"hideSelectedOptions",void 0);ie([(0,J.property)({type:Boolean})],j.prototype,"displayCount",void 0);ie([(0,J.property)({type:Boolean})],j.prototype,"preventNavigation",void 0);ie([(0,J.property)({type:String})],j.prototype,"filter",void 0);ie([(0,J.property)({type:String})],j.prototype,"moreValuesButtonLabel",void 0);ie([(0,J.property)({type:String})],j.prototype,"noValuesLabel",void 0);ie([(0,J.property)()],j.prototype,"filteredOptionsNumberAriaNotification",void 0);ie([(0,he.numberProperty)()],j.prototype,"displayedValuesLimit",void 0);ie([(0,J.query)(".ft-filter-level--container")],j.prototype,"container",void 0);ie([(0,J.state)()],j.prototype,"radios",void 0);ie([(0,J.state)()],j.prototype,"displayedPages",void 0);ie([(0,J.state)()],j.prototype,"filteredOptions",void 0);var Ac=f(L()),Se=f(z()),Bt=f(E());var Sc=f(Qt());var bc=f(L()),
|
|
984
|
+
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};j.elementDefinitions={"ft-button":_,"ft-ripple":P,"ft-typography":Y,"ft-checkbox":ne,"ft-icon":le,"ft-radio":se};j.styles=yc;ie([(0,J.property)({type:String})],j.prototype,"filterId",void 0);ie([(0,J.property)({type:Object})],j.prototype,"parent",void 0);ie([(0,J.property)({type:Array,hasChanged:he.hasChanged})],j.prototype,"options",void 0);ie([(0,J.property)({type:Boolean})],j.prototype,"multivalued",void 0);ie([(0,J.property)({type:Boolean})],j.prototype,"disabled",void 0);ie([(0,J.property)({type:Boolean})],j.prototype,"hideSelectedOptions",void 0);ie([(0,J.property)({type:Boolean})],j.prototype,"displayCount",void 0);ie([(0,J.property)({type:Boolean})],j.prototype,"preventNavigation",void 0);ie([(0,J.property)({type:String})],j.prototype,"filter",void 0);ie([(0,J.property)({type:String})],j.prototype,"moreValuesButtonLabel",void 0);ie([(0,J.property)({type:String})],j.prototype,"noValuesLabel",void 0);ie([(0,J.property)()],j.prototype,"filteredOptionsNumberAriaNotification",void 0);ie([(0,he.numberProperty)()],j.prototype,"displayedValuesLimit",void 0);ie([(0,J.query)(".ft-filter-level--container")],j.prototype,"container",void 0);ie([(0,J.state)()],j.prototype,"radios",void 0);ie([(0,J.state)()],j.prototype,"displayedPages",void 0);ie([(0,J.state)()],j.prototype,"filteredOptions",void 0);var Ac=f(L()),Se=f(z()),Bt=f(E());var Sc=f(Qt());var bc=f(L()),He=f(E());var xt={buttonsColor:He.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",He.designSystemVariables.colorPrimary),buttonsZIndex:He.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:He.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:He.FtCssVariableFactory.external(He.designSystemVariables.colorSurface,"Design system")},xc=bc.css`
|
|
987
985
|
.ft-snap-scroll {
|
|
988
986
|
box-sizing: border-box;
|
|
989
987
|
position: relative;
|
|
@@ -1064,8 +1062,8 @@
|
|
|
1064
1062
|
z-index: ${xt.buttonsZIndex};
|
|
1065
1063
|
opacity: 1;
|
|
1066
1064
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1067
|
-
${(0,
|
|
1068
|
-
${(0,
|
|
1065
|
+
${(0,He.setVariable)(D.backgroundColor,"transparent")};
|
|
1066
|
+
${(0,He.setVariable)(D.color,xt.buttonsColor)};
|
|
1069
1067
|
}
|
|
1070
1068
|
|
|
1071
1069
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1132,7 +1130,7 @@
|
|
|
1132
1130
|
@click=${this.next}
|
|
1133
1131
|
></ft-button>
|
|
1134
1132
|
</div>
|
|
1135
|
-
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Qi(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,n;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(n=this.contentSlot)===null||n===void 0||n.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(n=>n))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};Z.elementDefinitions={"ft-button":_};Z.styles=xc;Ye([(0,Se.property)({type:Boolean})],Z.prototype,"horizontal",void 0);Ye([(0,Se.property)({type:Boolean})],Z.prototype,"hideScrollbar",void 0);Ye([(0,Se.property)({type:Boolean})],Z.prototype,"controls",void 0);Ye([(0,Se.property)({type:Boolean})],Z.prototype,"limitSize",void 0);Ye([(0,Se.state)()],Z.prototype,"elements",void 0);Ye([(0,Se.state)()],Z.prototype,"currentElement",void 0);Ye([(0,Se.state)()],Z.prototype,"withScroll",void 0);Ye([(0,Se.state)()],Z.prototype,"startReached",void 0);Ye([(0,Se.state)()],Z.prototype,"endReached",void 0);Ye([(0,Se.query)(".ft-snap-scroll--content")],Z.prototype,"contentSlot",void 0);var Cc=f(E());var Ec={"ft-snap-scroll":Z};(0,Cc.customElements)(Ec);var Oc=f(L())
|
|
1133
|
+
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Qi(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,n;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(n=this.contentSlot)===null||n===void 0||n.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(n=>n))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};Z.elementDefinitions={"ft-button":_};Z.styles=xc;Ye([(0,Se.property)({type:Boolean})],Z.prototype,"horizontal",void 0);Ye([(0,Se.property)({type:Boolean})],Z.prototype,"hideScrollbar",void 0);Ye([(0,Se.property)({type:Boolean})],Z.prototype,"controls",void 0);Ye([(0,Se.property)({type:Boolean})],Z.prototype,"limitSize",void 0);Ye([(0,Se.state)()],Z.prototype,"elements",void 0);Ye([(0,Se.state)()],Z.prototype,"currentElement",void 0);Ye([(0,Se.state)()],Z.prototype,"withScroll",void 0);Ye([(0,Se.state)()],Z.prototype,"startReached",void 0);Ye([(0,Se.state)()],Z.prototype,"endReached",void 0);Ye([(0,Se.query)(".ft-snap-scroll--content")],Z.prototype,"contentSlot",void 0);var Cc=f(E());var Ec={"ft-snap-scroll":Z};(0,Cc.customElements)(Ec);var Oc=f(L()),$=f(E());var Le={colorOutline:$.FtCssVariableFactory.external($.designSystemVariables.colorOutline,"Design system"),colorOnSurface:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:$.FtCssVariableFactory.external($.designSystemVariables.colorPrimary,"Design system"),colorSurface:$.FtCssVariableFactory.external($.designSystemVariables.colorSurface,"Design system"),transitionDuration:$.FtCssVariableFactory.external($.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:$.FtCssVariableFactory.external($.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:$.FtCssVariableFactory.extend("--ft-filter-label-color","",$.designSystemVariables.colorOnSurface),labelFontSize:$.FtCssVariableFactory.extend("--ft-filter-label-font-size","",A.fontSize,"16px")},wc=[Zr,$.noTextInputDefaultClearButton,Oc.css`
|
|
1136
1134
|
:host {
|
|
1137
1135
|
display: flex;
|
|
1138
1136
|
max-height: 100%;
|
|
@@ -1160,7 +1158,7 @@
|
|
|
1160
1158
|
.ft-filter--header ft-button {
|
|
1161
1159
|
flex-shrink: 0;
|
|
1162
1160
|
margin-left: auto;
|
|
1163
|
-
${(0
|
|
1161
|
+
${(0,$.setVariable)(D.iconSize,"18px")};
|
|
1164
1162
|
}
|
|
1165
1163
|
|
|
1166
1164
|
.filter-label {
|
|
@@ -1172,10 +1170,10 @@
|
|
|
1172
1170
|
flex-shrink: 1;
|
|
1173
1171
|
flex-grow: 1;
|
|
1174
1172
|
word-break: break-word;
|
|
1175
|
-
color: ${
|
|
1176
|
-
font-size: ${
|
|
1177
|
-
${(0
|
|
1178
|
-
${(0
|
|
1173
|
+
color: ${Le.labelColor};
|
|
1174
|
+
font-size: ${Le.labelFontSize};
|
|
1175
|
+
${(0,$.setVariable)(A.lineHeight,"22px")};
|
|
1176
|
+
${(0,$.setVariable)(A.fontWeight,"bold")};
|
|
1179
1177
|
}
|
|
1180
1178
|
|
|
1181
1179
|
.ft-filter--filter {
|
|
@@ -1186,8 +1184,8 @@
|
|
|
1186
1184
|
padding: 0 10px;
|
|
1187
1185
|
overflow: hidden;
|
|
1188
1186
|
height: 32px;
|
|
1189
|
-
transition: height ${
|
|
1190
|
-
margin ${
|
|
1187
|
+
transition: height ${Le.transitionDuration} ${Le.transitionTimingFunction},
|
|
1188
|
+
margin ${Le.transitionDuration} ${Le.transitionTimingFunction};
|
|
1191
1189
|
transition-delay: 500ms;
|
|
1192
1190
|
}
|
|
1193
1191
|
|
|
@@ -1200,15 +1198,15 @@
|
|
|
1200
1198
|
display: block;
|
|
1201
1199
|
width: 100%;
|
|
1202
1200
|
border-radius: 4px;
|
|
1203
|
-
border: 1px solid ${
|
|
1201
|
+
border: 1px solid ${Le.colorOutline};
|
|
1204
1202
|
padding: 4px;
|
|
1205
|
-
background-color: ${
|
|
1206
|
-
color: ${
|
|
1207
|
-
outline-color: ${
|
|
1203
|
+
background-color: ${Le.colorSurface};
|
|
1204
|
+
color: ${Le.colorOnSurface};
|
|
1205
|
+
outline-color: ${Le.colorPrimary};
|
|
1208
1206
|
}
|
|
1209
1207
|
|
|
1210
1208
|
input::placeholder {
|
|
1211
|
-
color: ${
|
|
1209
|
+
color: ${Le.colorOnSurfaceMedium};
|
|
1212
1210
|
}
|
|
1213
1211
|
|
|
1214
1212
|
input:placeholder-shown {
|
|
@@ -1224,7 +1222,7 @@
|
|
|
1224
1222
|
}
|
|
1225
1223
|
|
|
1226
1224
|
.ft-filter--separator {
|
|
1227
|
-
border-top: 1px solid ${
|
|
1225
|
+
border-top: 1px solid ${Le.colorOutline};
|
|
1228
1226
|
margin: 4px 10px;
|
|
1229
1227
|
}
|
|
1230
1228
|
|
|
@@ -1249,7 +1247,7 @@
|
|
|
1249
1247
|
slot:not([name]) {
|
|
1250
1248
|
display: none;
|
|
1251
1249
|
}
|
|
1252
|
-
`];var
|
|
1250
|
+
`];var U=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},eo=class extends CustomEvent{constructor(e){super("change",{detail:e})}},R=class extends(0,F.withAnalytics)(F.FtLitElement,Zi){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new F.Debouncer(300),this.changeDebouncer=new F.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,F.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,F.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(i=>i.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,n=this.filterPlaceHolder.replace("{0}",this.label);return Ht.html`
|
|
1253
1251
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1254
1252
|
part="container">
|
|
1255
1253
|
${!this.label&&!e?null:Ht.html`
|
|
@@ -1333,9 +1331,9 @@
|
|
|
1333
1331
|
noValuesLabel="${this.noValuesLabel}"
|
|
1334
1332
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
1335
1333
|
></ft-filter-level>
|
|
1336
|
-
`}goBack(e){this.slideOut=e.detail.value,(0,F.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let n=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");n?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,F.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let n=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");n?.focusOnBackButton()})}focusOnFirstOption(){(0,F.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let n=this.flatOptions.find(o=>o.value===e.detail.value);n.selected=!n.selected;let i=o=>{var s;o!==n&&(o.selected=!1),(s=o.subOptions)===null||s===void 0||s.forEach(i)};this.multivalued?(r=n.subOptions)===null||r===void 0||r.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,F.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new eo(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};R.elementDefinitions={"ft-button":_,"ft-filter-level":j,"ft-snap-scroll":Z,"ft-typography":Y};R.styles=wc
|
|
1334
|
+
`}goBack(e){this.slideOut=e.detail.value,(0,F.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let n=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");n?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,F.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let n=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");n?.focusOnBackButton()})}focusOnFirstOption(){(0,F.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let n=this.flatOptions.find(o=>o.value===e.detail.value);n.selected=!n.selected;let i=o=>{var s;o!==n&&(o.selected=!1),(s=o.subOptions)===null||s===void 0||s.forEach(i)};this.multivalued?(r=n.subOptions)===null||r===void 0||r.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,F.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new eo(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};R.elementDefinitions={"ft-button":_,"ft-filter-level":j,"ft-snap-scroll":Z,"ft-typography":Y};R.styles=wc;U([(0,I.property)({type:String})],R.prototype,"id",void 0);U([(0,I.property)({type:String})],R.prototype,"label",void 0);U([(0,I.property)({type:String})],R.prototype,"filterPlaceHolder",void 0);U([(0,I.property)({type:String})],R.prototype,"clearButtonLabel",void 0);U([(0,I.property)({type:String})],R.prototype,"moreValuesButtonLabel",void 0);U([(0,I.property)({type:String})],R.prototype,"noValuesLabel",void 0);U([(0,F.jsonProperty)([])],R.prototype,"options",void 0);U([(0,I.property)({type:Boolean})],R.prototype,"multivalued",void 0);U([(0,I.property)({type:Boolean})],R.prototype,"disabled",void 0);U([(0,I.property)({type:Boolean})],R.prototype,"raiseSelectedOptions",void 0);U([(0,I.property)({type:Boolean})],R.prototype,"displayCount",void 0);U([(0,F.numberProperty)()],R.prototype,"displayedValuesLimit",void 0);U([(0,F.jsonProperty)(void 0)],R.prototype,"filteredOptionsNumberAriaNotification",void 0);U([(0,I.property)({type:Boolean})],R.prototype,"hideClearButton",void 0);U([(0,I.query)(".ft-filter--slot")],R.prototype,"slotElement",void 0);U([(0,I.query)(".ft-filter--container")],R.prototype,"container",void 0);U([(0,I.query)(".ft-filter--values")],R.prototype,"valuesContainer",void 0);U([(0,I.query)(".ft-filter--levels")],R.prototype,"levelsContainer",void 0);U([(0,I.state)()],R.prototype,"lastLevelHasHiddenvalues",void 0);U([(0,I.query)(".ft-filter--filter input")],R.prototype,"filterInput",void 0);U([(0,I.queryAll)(".ft-filter--levels ft-filter-level")],R.prototype,"levels",void 0);U([(0,I.state)()],R.prototype,"withScroll",void 0);U([(0,I.state)()],R.prototype,"filter",void 0);U([(0,I.state)()],R.prototype,"slideIn",void 0);U([(0,I.state)()],R.prototype,"slideOut",void 0);var Fn=f(E()),jt=f(z()),Tc=f(L()),vr=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},je=class extends Fn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Tc.html`
|
|
1337
1335
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1338
|
-
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};
|
|
1336
|
+
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};je.elementDefinitions={};vr([(0,jt.property)({type:String})],je.prototype,"label",void 0);vr([(0,jt.property)({type:Object,converter:t=>t})],je.prototype,"value",void 0);vr([(0,jt.property)({type:Boolean,reflect:!0})],je.prototype,"selected",void 0);vr([(0,jt.property)({type:Object})],je.prototype,"subOptions",void 0);vr([(0,Fn.jsonProperty)({})],je.prototype,"renderOption",void 0);vr([(0,jt.query)(".ft-filter-option--slot")],je.prototype,"slotElement",void 0);var _c={"ft-filter":R,"ft-filter-option":je};(0,Rc.customElements)(_c);})();
|
|
1339
1337
|
/*! Bundled license information:
|
|
1340
1338
|
|
|
1341
1339
|
lit-html/lit-html.js:
|