@fluid-topics/ft-filter 2.2.1 → 2.2.3
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 +48 -48
- package/build/ft-filter.min.js +72 -72
- package/package.json +10 -10
package/build/ft-filter.light.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var jc=Object.create;var as=Object.defineProperty;var Wc=Object.getOwnPropertyDescriptor;var Kc=Object.getOwnPropertyNames;var Gc=Object.getPrototypeOf,qc=Object.prototype.hasOwnProperty;var $t=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Yc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Kc(t))!qc.call(e,s)&&s!==r&&as(e,s,{get:()=>t[s],enumerable:!(n=Wc(t,s))||n.enumerable});return e};var f=(e,t,r)=>(r=e!=null?jc(Gc(e)):{},Yc(t||!e||!e.__esModule?as(r,"default",{value:e,enumerable:!0}):r,e));var S=$t((
|
|
1
|
+
"use strict";(()=>{var jc=Object.create;var as=Object.defineProperty;var Wc=Object.getOwnPropertyDescriptor;var Kc=Object.getOwnPropertyNames;var Gc=Object.getPrototypeOf,qc=Object.prototype.hasOwnProperty;var $t=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Yc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Kc(t))!qc.call(e,s)&&s!==r&&as(e,s,{get:()=>t[s],enumerable:!(n=Wc(t,s))||n.enumerable});return e};var f=(e,t,r)=>(r=e!=null?jc(Gc(e)):{},Yc(t||!e||!e.__esModule?as(r,"default",{value:e,enumerable:!0}):r,e));var S=$t((Nd,ls)=>{ls.exports=ftGlobals.wcUtils});var k=$t((Pd,cs)=>{cs.exports=ftGlobals.lit});var K=$t((Dd,us)=>{us.exports=ftGlobals.litDecorators});var zs=$t((rp,Vs)=>{Vs.exports=ftGlobals.litRepeat});var qt=$t((np,js)=>{js.exports=ftGlobals.litClassMap});var ql=$t((Tg,Gl)=>{Gl.exports=ftGlobals.litUnsafeHTML});var Fc=f(S());var Mt=f(k()),I=f(K()),W=f(S());var oi=globalThis,ds=e=>e,Wr=oi.trustedTypes,ps=Wr?Wr.createPolicy("lit-html",{createHTML:e=>e}):void 0,vs="$lit$",nt=`lit$${Math.random().toFixed(9).slice(2)}$`,bs="?"+nt,Xc=`<${bs}>`,xt=document,Kr=()=>xt.createComment(""),dr=e=>e===null||typeof e!="object"&&typeof e!="function",ai=Array.isArray,Jc=e=>ai(e)||typeof e?.[Symbol.iterator]=="function",ei=`[
|
|
2
2
|
\f\r]`,ur=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fs=/-->/g,hs=/>/g,vt=RegExp(`>|${ei}(?:([^\\s"'>=/]+)(${ei}*=${ei}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ms=/'/g,ys=/"/g,xs=/^(?:script|style|textarea|title)$/i,li=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Ss=li(1),Es=li(2),As=li(3),pr=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),gs=new WeakMap,bt=xt.createTreeWalker(xt,129);function _s(e,t){if(!ai(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ps!==void 0?ps.createHTML(t):t}var Zc=(e,t)=>{let r=e.length-1,n=[],s,i=t===2?"<svg>":t===3?"<math>":"",o=ur;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,u=o.exec(l),u!==null);)p=o.lastIndex,o===ur?u[1]==="!--"?o=fs:u[1]!==void 0?o=hs:u[2]!==void 0?(xs.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=vt):u[3]!==void 0&&(o=vt):o===vt?u[0]===">"?(o=s??ur,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?vt:u[3]==='"'?ys:ms):o===ys||o===ms?o=vt:o===fs||o===hs?o=ur:(o=vt,s=void 0);let y=o===vt&&e[a+1].startsWith("/>")?" ":"";i+=o===ur?l+Xc:d>=0?(n.push(c),l.slice(0,d)+vs+l.slice(d)+nt+y):l+nt+(d===-2?a:y)}return[_s(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},fr=class e{constructor({strings:t,_$litType$:r},n){let s;this.parts=[];let i=0,o=0,a=t.length-1,l=this.parts,[c,u]=Zc(t,r);if(this.el=e.createElement(c,n),bt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=bt.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith(vs)){let p=u[o++],y=s.getAttribute(d).split(nt),b=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:b[2],strings:y,ctor:b[1]==="."?ri:b[1]==="?"?ni:b[1]==="@"?ii:Bt}),s.removeAttribute(d)}else d.startsWith(nt)&&(l.push({type:6,index:i}),s.removeAttribute(d));if(xs.test(s.tagName)){let d=s.textContent.split(nt),p=d.length-1;if(p>0){s.textContent=Wr?Wr.emptyScript:"";for(let y=0;y<p;y++)s.append(d[y],Kr()),bt.nextNode(),l.push({type:2,index:++i});s.append(d[p],Kr())}}}else if(s.nodeType===8)if(s.data===bs)l.push({type:2,index:i});else{let d=-1;for(;(d=s.data.indexOf(nt,d+1))!==-1;)l.push({type:7,index:i}),d+=nt.length-1}i++}}static createElement(t,r){let n=xt.createElement("template");return n.innerHTML=t,n}};function Ut(e,t,r=e,n){if(t===pr)return t;let s=n!==void 0?r._$Co?.[n]:r._$Cl,i=dr(t)?void 0:t._$litDirective$;return s?.constructor!==i&&(s?._$AO?.(!1),i===void 0?s=void 0:(s=new i(e),s._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=s:r._$Cl=s),s!==void 0&&(t=Ut(e,s._$AS(e,t.values),s,n)),t}var ti=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,s=(t?.creationScope??xt).importNode(r,!0);bt.currentNode=s;let i=bt.nextNode(),o=0,a=0,l=n[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Gr(i,i.nextSibling,this,t):l.type===1?c=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(c=new si(i,this,t)),this._$AV.push(c),l=n[++a]}o!==l?.index&&(i=bt.nextNode(),o++)}return bt.currentNode=xt,s}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},Gr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,s){this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Ut(this,t,r),dr(t)?t===G||t==null||t===""?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==pr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Jc(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==G&&dr(this._$AH)?this._$AA.nextSibling.data=t:this.T(xt.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,s=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=fr.createElement(_s(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===s)this._$AH.p(r);else{let i=new ti(s,this),o=i.u(this.options);i.p(r),this.T(o),this._$AH=i}}_$AC(t){let r=gs.get(t.strings);return r===void 0&&gs.set(t.strings,r=new fr(t)),r}k(t){ai(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,s=0;for(let i of t)s===r.length?r.push(n=new e(this.O(Kr()),this.O(Kr()),this,this.options)):n=r[s],n._$AI(i),s++;s<r.length&&(this._$AR(n&&n._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=ds(t).nextSibling;ds(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Bt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,s,i){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=G}_$AI(t,r=this,n,s){let i=this.strings,o=!1;if(i===void 0)t=Ut(this,t,r,0),o=!dr(t)||t!==this._$AH&&t!==pr,o&&(this._$AH=t);else{let a=t,l,c;for(t=i[0],l=0;l<i.length-1;l++)c=Ut(this,a[n+l],r,l),c===pr&&(c=this._$AH[l]),o||=!dr(c)||c!==this._$AH[l],c===G?t=G:t!==G&&(t+=(c??"")+i[l+1]),this._$AH[l]=c}o&&!s&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ri=class extends Bt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}},ni=class extends Bt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==G)}},ii=class extends Bt{constructor(t,r,n,s,i){super(t,r,n,s,i),this.type=5}_$AI(t,r=this){if((t=Ut(this,t,r,0)??G)===pr)return;let n=this._$AH,s=t===G&&n!==G||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==G&&(n===G||s);s&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},si=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Ut(this,t)}};var Qc=oi.litHtmlPolyfillSupport;Qc?.(fr,Gr),(oi.litHtmlVersions??=[]).push("3.3.3");var ws=Symbol.for(""),eu=e=>{if(e?.r===ws)return e?._$litStatic$},ci=e=>({_$litStatic$:e,r:ws});var Cs=new Map,ui=e=>(t,...r)=>{let n=r.length,s,i,o=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=t[c];c<n&&(i=r[c],(s=eu(i))!==void 0);)l+=s+t[++c],u=!0;c!==n&&a.push(i),o.push(l),c++}if(c===n&&o.push(t[n]),u){let d=o.join("$$lit$$");(t=Cs.get(d))===void 0&&(o.raw=o,Cs.set(d,t=o)),r=a}return e(t,...r)},di=ui(Ss),Id=ui(Es),$d=ui(As);var pi=f(K()),Bs=f(S());var ee;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(ee||(ee={}));var Ce=f(k()),m=f(S()),Os=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),Xe=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),g={fontFamily:Xe,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ht={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Os),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit")},Ft={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Os),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit")},Vt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit")},zt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit")},jt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit")},ge={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit")},Wt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit")},Kt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit")},Gt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase")},Ve={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase")},Ts=Ce.css`
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ms=/'/g,ys=/"/g,xs=/^(?:script|style|textarea|title)$/i,li=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Ss=li(1),Es=li(2),As=li(3),pr=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),gs=new WeakMap,bt=xt.createTreeWalker(xt,129);function _s(e,t){if(!ai(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ps!==void 0?ps.createHTML(t):t}var Zc=(e,t)=>{let r=e.length-1,n=[],s,i=t===2?"<svg>":t===3?"<math>":"",o=ur;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,u=o.exec(l),u!==null);)p=o.lastIndex,o===ur?u[1]==="!--"?o=fs:u[1]!==void 0?o=hs:u[2]!==void 0?(xs.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=vt):u[3]!==void 0&&(o=vt):o===vt?u[0]===">"?(o=s??ur,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?vt:u[3]==='"'?ys:ms):o===ys||o===ms?o=vt:o===fs||o===hs?o=ur:(o=vt,s=void 0);let y=o===vt&&e[a+1].startsWith("/>")?" ":"";i+=o===ur?l+Xc:d>=0?(n.push(c),l.slice(0,d)+vs+l.slice(d)+nt+y):l+nt+(d===-2?a:y)}return[_s(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},fr=class e{constructor({strings:t,_$litType$:r},n){let s;this.parts=[];let i=0,o=0,a=t.length-1,l=this.parts,[c,u]=Zc(t,r);if(this.el=e.createElement(c,n),bt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=bt.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith(vs)){let p=u[o++],y=s.getAttribute(d).split(nt),b=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:b[2],strings:y,ctor:b[1]==="."?ri:b[1]==="?"?ni:b[1]==="@"?ii:Bt}),s.removeAttribute(d)}else d.startsWith(nt)&&(l.push({type:6,index:i}),s.removeAttribute(d));if(xs.test(s.tagName)){let d=s.textContent.split(nt),p=d.length-1;if(p>0){s.textContent=Wr?Wr.emptyScript:"";for(let y=0;y<p;y++)s.append(d[y],Kr()),bt.nextNode(),l.push({type:2,index:++i});s.append(d[p],Kr())}}}else if(s.nodeType===8)if(s.data===bs)l.push({type:2,index:i});else{let d=-1;for(;(d=s.data.indexOf(nt,d+1))!==-1;)l.push({type:7,index:i}),d+=nt.length-1}i++}}static createElement(t,r){let n=xt.createElement("template");return n.innerHTML=t,n}};function Ut(e,t,r=e,n){if(t===pr)return t;let s=n!==void 0?r._$Co?.[n]:r._$Cl,i=dr(t)?void 0:t._$litDirective$;return s?.constructor!==i&&(s?._$AO?.(!1),i===void 0?s=void 0:(s=new i(e),s._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=s:r._$Cl=s),s!==void 0&&(t=Ut(e,s._$AS(e,t.values),s,n)),t}var ti=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,s=(t?.creationScope??xt).importNode(r,!0);bt.currentNode=s;let i=bt.nextNode(),o=0,a=0,l=n[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Gr(i,i.nextSibling,this,t):l.type===1?c=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(c=new si(i,this,t)),this._$AV.push(c),l=n[++a]}o!==l?.index&&(i=bt.nextNode(),o++)}return bt.currentNode=xt,s}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},Gr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,s){this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Ut(this,t,r),dr(t)?t===G||t==null||t===""?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==pr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Jc(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==G&&dr(this._$AH)?this._$AA.nextSibling.data=t:this.T(xt.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,s=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=fr.createElement(_s(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===s)this._$AH.p(r);else{let i=new ti(s,this),o=i.u(this.options);i.p(r),this.T(o),this._$AH=i}}_$AC(t){let r=gs.get(t.strings);return r===void 0&&gs.set(t.strings,r=new fr(t)),r}k(t){ai(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,s=0;for(let i of t)s===r.length?r.push(n=new e(this.O(Kr()),this.O(Kr()),this,this.options)):n=r[s],n._$AI(i),s++;s<r.length&&(this._$AR(n&&n._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=ds(t).nextSibling;ds(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Bt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,s,i){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=G}_$AI(t,r=this,n,s){let i=this.strings,o=!1;if(i===void 0)t=Ut(this,t,r,0),o=!dr(t)||t!==this._$AH&&t!==pr,o&&(this._$AH=t);else{let a=t,l,c;for(t=i[0],l=0;l<i.length-1;l++)c=Ut(this,a[n+l],r,l),c===pr&&(c=this._$AH[l]),o||=!dr(c)||c!==this._$AH[l],c===G?t=G:t!==G&&(t+=(c??"")+i[l+1]),this._$AH[l]=c}o&&!s&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ri=class extends Bt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}},ni=class extends Bt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==G)}},ii=class extends Bt{constructor(t,r,n,s,i){super(t,r,n,s,i),this.type=5}_$AI(t,r=this){if((t=Ut(this,t,r,0)??G)===pr)return;let n=this._$AH,s=t===G&&n!==G||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==G&&(n===G||s);s&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},si=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Ut(this,t)}};var Qc=oi.litHtmlPolyfillSupport;Qc?.(fr,Gr),(oi.litHtmlVersions??=[]).push("3.3.3");var ws=Symbol.for(""),eu=e=>{if(e?.r===ws)return e?._$litStatic$},ci=e=>({_$litStatic$:e,r:ws});var Cs=new Map,ui=e=>(t,...r)=>{let n=r.length,s,i,o=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=t[c];c<n&&(i=r[c],(s=eu(i))!==void 0);)l+=s+t[++c],u=!0;c!==n&&a.push(i),o.push(l),c++}if(c===n&&o.push(t[n]),u){let d=o.join("$$lit$$");(t=Cs.get(d))===void 0&&(o.raw=o,Cs.set(d,t=o)),r=a}return e(t,...r)},di=ui(Ss),$d=ui(Es),Ud=ui(As);var pi=f(K()),Bs=f(S());var te;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(te||(te={}));var Ce=f(k()),m=f(S()),Os=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),Xe=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),g={fontFamily:Xe,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ht={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Os),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit")},Ft={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Os),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit")},Vt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit")},zt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit")},jt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit")},ge={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit")},Wt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit")},Kt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit")},Gt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase")},Ve={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Xe),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase")},Ts=Ce.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
5
|
font-family: ${Ht.fontFamily};
|
|
6
6
|
font-size: ${Ht.fontSize};
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
text-transform: ${zt.textTransform};
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
`,
|
|
40
|
+
`,Ns=Ce.css`
|
|
41
41
|
.ft-typography--body1 {
|
|
42
42
|
font-family: ${jt.fontFamily};
|
|
43
43
|
font-size: ${jt.fontSize};
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
line-height: ${jt.lineHeight};
|
|
47
47
|
text-transform: ${jt.textTransform};
|
|
48
48
|
}
|
|
49
|
-
`,
|
|
49
|
+
`,Ps=Ce.css`
|
|
50
50
|
.ft-typography--body2 {
|
|
51
51
|
font-family: ${ge.fontFamily};
|
|
52
52
|
font-size: ${ge.fontSize};
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
.ft-typography {
|
|
96
96
|
vertical-align: inherit;
|
|
97
97
|
}
|
|
98
|
-
`;var Us=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},X=class extends Bs.FtLitElement{constructor(){super(...arguments),this.variant=
|
|
98
|
+
`;var Us=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},X=class extends Bs.FtLitElement{constructor(){super(...arguments),this.variant=te.body1}render(){return this.element?di`
|
|
99
99
|
<${ci(this.element)}
|
|
100
100
|
part="text"
|
|
101
101
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
</${ci(this.element)}>
|
|
104
104
|
`:di`
|
|
105
105
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
106
|
-
`}};X.styles=[Ts,Rs,Ls,ks,Ps,
|
|
106
|
+
`}};X.styles=[Ts,Rs,Ls,ks,Ns,Ps,qr,Ds,Ms,Is,$s];Us([(0,pi.property)()],X.prototype,"element",void 0);Us([(0,pi.property)()],X.prototype,"variant",void 0);var Fs=f(S());var Hs={"ft-typography":X};(0,Fs.customElements)(Hs);var Ee=f(k()),Z=f(K()),Lc=f(zs()),ye=f(S());var Ge=f(S());var Zs=f(k()),re=f(K()),Qs=f(qt()),hr=f(S());var Xs=f(k()),q=f(S()),Ws=q.FtCssVariableFactory.extend("--ft-ripple-color","",q.designSystemVariables.colorContent),pe={color:Ws,backgroundColor:q.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ws),opacityContentOnSurfacePressed:q.FtCssVariableFactory.external(q.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:q.FtCssVariableFactory.external(q.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:q.FtCssVariableFactory.external(q.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:q.FtCssVariableFactory.external(q.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:q.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ks=q.FtCssVariableFactory.extend("--ft-ripple-color","",q.designSystemVariables.colorPrimary),Gs={color:Ks,backgroundColor:q.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ks)},qs=q.FtCssVariableFactory.extend("--ft-ripple-color","",q.designSystemVariables.colorSecondary),Ys={color:qs,backgroundColor:q.FtCssVariableFactory.extend("--ft-ripple-background-color","",qs)},Js=Xs.css`
|
|
107
107
|
:host {
|
|
108
108
|
display: contents;
|
|
109
109
|
}
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
|
|
117
117
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
118
118
|
overflow: hidden;
|
|
119
|
-
border-radius: ${
|
|
119
|
+
border-radius: ${pe.borderRadius};
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.ft-ripple .ft-ripple--background,
|
|
@@ -150,11 +150,11 @@
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
.ft-ripple .ft-ripple--background {
|
|
153
|
-
background-color: ${
|
|
153
|
+
background-color: ${pe.backgroundColor};
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.ft-ripple .ft-ripple--effect {
|
|
157
|
-
background-color: ${
|
|
157
|
+
background-color: ${pe.color};
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
@@ -200,22 +200,22 @@
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
203
|
-
opacity: ${
|
|
203
|
+
opacity: ${pe.opacityContentOnSurfaceHover};
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
207
|
-
opacity: ${
|
|
207
|
+
opacity: ${pe.opacityContentOnSurfaceSelected};
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
211
|
-
opacity: ${
|
|
211
|
+
opacity: ${pe.opacityContentOnSurfaceFocused};
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
215
|
-
opacity: ${
|
|
215
|
+
opacity: ${pe.opacityContentOnSurfacePressed};
|
|
216
216
|
transform: translate(-50%, -50%) scale(1);
|
|
217
217
|
}
|
|
218
|
-
`;var
|
|
218
|
+
`;var fe=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},N=class extends hr.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 hr.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new hr.Debouncer(10),this.moveRipple=t=>{var r,n;let{x:s,y:i}=this.getCoordinates(t),o=(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(s!=null?s-o.x:o.width/2),this.originY=Math.round(i!=null?i-o.y:o.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Zs.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(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),s=r("touchend","touchcancel"),i=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};t.addEventListener("mouseover",this.startHover,o),t.addEventListener("mousemove",this.moveRipple,o),t.addEventListener("mouseleave",this.endHover,o),t.addEventListener("mousedown",n,o),t.addEventListener("touchstart",s,o),t.addEventListener("touchmove",this.moveRipple,o),t.addEventListener("keydown",i,o),t.addEventListener("focus",this.startFocus,o),t.addEventListener("blur",this.endFocus,o),t.addEventListener("focusin",this.startFocus,o),t.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,o),t.removeEventListener("mousemove",this.moveRipple,o),t.removeEventListener("mouseleave",this.endHover,o),t.removeEventListener("mousedown",n,o),t.removeEventListener("touchstart",s,o),t.removeEventListener("touchmove",this.moveRipple,o),t.removeEventListener("keydown",i,o),t.removeEventListener("focus",this.startFocus,o),t.removeEventListener("blur",this.endFocus,o),t.removeEventListener("focusin",this.startFocus,o),t.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,n=t,s,i;return r.x!=null?{x:s,y:i}=r:n.touches!=null&&(s=n.touches[0].clientX,i=n.touches[0].clientY),{x:s,y:i}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};
|
|
229
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),s=r("touchend","touchcancel"),i=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};t.addEventListener("mouseover",this.startHover,o),t.addEventListener("mousemove",this.moveRipple,o),t.addEventListener("mouseleave",this.endHover,o),t.addEventListener("mousedown",n,o),t.addEventListener("touchstart",s,o),t.addEventListener("touchmove",this.moveRipple,o),t.addEventListener("keydown",i,o),t.addEventListener("focus",this.startFocus,o),t.addEventListener("blur",this.endFocus,o),t.addEventListener("focusin",this.startFocus,o),t.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,o),t.removeEventListener("mousemove",this.moveRipple,o),t.removeEventListener("mouseleave",this.endHover,o),t.removeEventListener("mousedown",n,o),t.removeEventListener("touchstart",s,o),t.removeEventListener("touchmove",this.moveRipple,o),t.removeEventListener("keydown",i,o),t.removeEventListener("focus",this.startFocus,o),t.removeEventListener("blur",this.endFocus,o),t.removeEventListener("focusin",this.startFocus,o),t.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,n=t,s,i;return r.x!=null?{x:s,y:i}=r:n.touches!=null&&(s=n.touches[0].clientX,i=n.touches[0].clientY),{x:s,y:i}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};N.elementDefinitions={};N.styles=Js;fe([(0,re.property)({type:Boolean})],N.prototype,"primary",void 0);fe([(0,re.property)({type:Boolean})],N.prototype,"secondary",void 0);fe([(0,re.property)({type:Boolean})],N.prototype,"unbounded",void 0);fe([(0,re.property)({type:Boolean})],N.prototype,"activated",void 0);fe([(0,re.property)({type:Boolean})],N.prototype,"selected",void 0);fe([(0,re.property)({type:Boolean})],N.prototype,"disabled",void 0);fe([(0,re.state)()],N.prototype,"hovered",void 0);fe([(0,re.state)()],N.prototype,"focused",void 0);fe([(0,re.state)()],N.prototype,"pressed",void 0);fe([(0,re.state)()],N.prototype,"rippling",void 0);fe([(0,re.state)()],N.prototype,"originX",void 0);fe([(0,re.state)()],N.prototype,"originY",void 0);fe([(0,re.query)(".ft-ripple")],N.prototype,"ripple",void 0);fe([(0,re.query)(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0);var to=f(S());var eo={"ft-ripple":N};(0,to.customElements)(eo);var Vl=f(k()),Re=f(K()),Te=f(S());var ro=f(k()),it=f(S()),mr={distance:it.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:it.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:it.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:it.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",it.designSystemVariables.borderRadiusS),maxWidth:it.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},no=ro.css`
|
|
230
230
|
.ft-tooltip--container {
|
|
231
231
|
display: block;
|
|
232
232
|
}
|
|
@@ -257,10 +257,10 @@
|
|
|
257
257
|
position: relative;
|
|
258
258
|
word-break: break-word;
|
|
259
259
|
}
|
|
260
|
-
`;var so=["top","right","bottom","left"],io=["start","end"],hi=so.reduce((e,t)=>e.concat(t,t+"-"+io[0],t+"-"+io[1]),[]),yr=Math.min,st=Math.max,gr=Math.round;var ze=e=>({x:e,y:e}),tu={left:"right",right:"left",bottom:"top",top:"bottom"};function oo(e,t,r){return st(e,yr(t,r))}function Yr(e,t){return typeof e=="function"?e(t):e}function vr(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function mi(e){return e==="x"?"y":"x"}function yi(e){return e==="y"?"height":"width"}function Xr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function gi(e){return mi(Xr(e))}function ao(e,t,r){r===void 0&&(r=!1);let n=ot(e),s=gi(e),i=yi(s),o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=fi(o)),[o,fi(o)]}function lo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function fi(e){let t=vr(e);return tu[t]+e.slice(t.length)}function ru(e){var t,r,n,s;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(s=e.left)!=null?s:0}}function co(e){return typeof e!="number"?ru(e):{top:e,right:e,bottom:e,left:e}}function St(e){let{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function uo(e,t,r){let{reference:n,floating:s}=e,i=Xr(t),o=gi(t),a=yi(o),l=vr(t),c=i==="y",u=n.x+n.width/2-s.width/2,d=n.y+n.height/2-s.height/2,p=n[a]/2-s[a]/2,y;switch(l){case"top":y={x:u,y:n.y-s.height};break;case"bottom":y={x:u,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:d};break;case"left":y={x:n.x-s.width,y:d};break;default:y={x:n.x,y:n.y}}let b=ot(t);return b&&(y[o]+=p*(b==="end"?1:-1)*(r&&c?-1:1)),y}async function po(e,t){var r;t===void 0&&(t={});let{x:n,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=Yr(t,e),b=co(y),v=a[p?d==="floating"?"reference":"floating":d],A=St(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(v)))==null||r?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),L=d==="floating"?{x:n,y:s,width:o.floating.width,height:o.floating.height}:o.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(x))&&await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1},T=St(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:L,offsetParent:x,strategy:l}):L);return{top:(A.top-T.top+b.top)/C.y,bottom:(T.bottom-A.bottom+b.bottom)/C.y,left:(A.left-T.left+b.left)/C.x,right:(T.right-A.right+b.right)/C.x}}var nu=50,fo=async(e,t,r)=>{let{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:po},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=uo(c,n,l),p=n,y=0,b={};for(let E=0;E<i.length;E++){let v=i[E];if(!v)continue;let{name:A,fn:L}=v,{x,y:C,data:T,reset:z}=await L({x:u,y:d,initialPlacement:n,placement:p,strategy:s,middlewareData:b,rects:c,platform:a,elements:{reference:e,floating:t}});u=x??u,d=C??d,b[A]={...b[A],...T},z&&y<nu&&(y++,typeof z=="object"&&(z.placement&&(p=z.placement),z.rects&&(c=z.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):z.rects),{x:u,y:d}=uo(c,p,l)),E=-1)}return{x:u,y:d,placement:p,strategy:s,middlewareData:b}};function iu(e,t,r){return(e?[...r.filter(s=>ot(s)===e),...r.filter(s=>ot(s)!==e)]:r.filter(s=>vr(s)===s)).filter(s=>e?ot(s)===e||(t?lo(s)!==s:!1):!0)}var ho=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,s;let{rects:i,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=hi,autoAlignment:y=!0,...b}=Yr(e,t),E=d!==void 0||p===hi?iu(d||null,y,p):p,v=((r=o.autoPlacement)==null?void 0:r.index)||0,A=E[v];if(A==null)return{};if(a!==A)return{reset:{placement:E[0]}};let L=await l.detectOverflow(t,b),x=ao(A,i,await(l.isRTL==null?void 0:l.isRTL(c.floating))),C=[L[vr(A)],L[x[0]],L[x[1]]],T=[...((n=o.autoPlacement)==null?void 0:n.overflows)||[],{placement:A,overflows:C}],z=E[v+1];if(z)return{data:{index:v+1,overflows:T},reset:{placement:z}};let $=T.map(_e=>{let gt=ot(_e.placement);return[_e.placement,gt&&u?_e.overflows.slice(0,2).reduce((Vc,zc)=>Vc+zc,0):_e.overflows[0],_e.overflows]}).sort((_e,gt)=>_e[1]-gt[1]),cr=((s=$.filter(_e=>_e[2].slice(0,ot(_e[0])?2:3).every(gt=>gt<=0))[0])==null?void 0:s[0])||$[0][0];return cr!==a?{data:{index:v+1,overflows:T},reset:{placement:cr}}:{}}}};var mo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:s,platform:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:L=>{let{x,y:C}=L;return{x,y:C}}},...c}=Yr(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),p=Xr(s),y=mi(p),b=u[y],E=u[p],v=(L,x)=>oo(x+d[L==="y"?"top":"left"],x,x-d[L==="y"?"bottom":"right"]);o&&(b=v(y,b)),a&&(E=v(p,E));let A=l.fn({...t,[y]:b,[p]:E});return{...A,data:{x:A.x-r,y:A.y-n,enabled:{[y]:o,[p]:a}}}}}};function Zr(){return typeof window<"u"}function At(e){return go(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Je(e){var t;return(t=(go(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function go(e){return Zr()?e instanceof Node||e instanceof fe(e).Node:!1}function ke(e){return Zr()?e instanceof Element||e instanceof fe(e).Element:!1}function Ze(e){return Zr()?e instanceof HTMLElement||e instanceof fe(e).HTMLElement:!1}function yo(e){return!Zr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}function br(e){let{overflow:t,overflowX:r,overflowY:n,display:s}=Pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&s!=="inline"&&s!=="contents"}function vo(e){return/^(table|td|th)$/.test(At(e))}function xr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var su=/transform|translate|scale|rotate|perspective|filter/,ou=/paint|layout|strict|content/,Et=e=>!!e&&e!=="none",vi;function Yt(e){let t=ke(e)?Pe(e):e;return Et(t.transform)||Et(t.translate)||Et(t.scale)||Et(t.rotate)||Et(t.perspective)||!Qr()&&(Et(t.backdropFilter)||Et(t.filter))||su.test(t.willChange||"")||ou.test(t.contain||"")}function bo(e){let t=at(e);for(;Ze(t)&&!Xt(t);){if(Yt(t))return t;if(xr(t))return null;t=at(t)}return null}function Qr(){return vi==null&&(vi=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),vi}function Xt(e){return/^(html|body|#document)$/.test(At(e))}function Pe(e){return fe(e).getComputedStyle(e)}function Sr(e){return ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function at(e){if(At(e)==="html")return e;let t=e.assignedSlot||e.parentNode||yo(e)&&e.host||Je(e);return yo(t)?t.host:t}function xo(e){let t=at(e);return Xt(t)?(e.ownerDocument||e).body:Ze(t)&&br(t)?t:xo(t)}function Jr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let s=xo(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=fe(s);if(i){let a=en(o);return t.concat(o,o.visualViewport||[],br(s)?s:[],a&&r?Jr(a):[])}else return t.concat(s,Jr(s,[],r))}function en(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ao(e){let t=Pe(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,s=Ze(e),i=s?e.offsetWidth:r,o=s?e.offsetHeight:n,a=gr(r)!==i||gr(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function _o(e){return ke(e)?e:e.contextElement}function Jt(e){let t=_o(e);if(!Ze(t))return ze(1);let r=t.getBoundingClientRect(),{width:n,height:s,$:i}=Ao(t),o=(i?gr(r.width):r.width)/n,a=(i?gr(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var au=ze(0);function Co(e){let t=fe(e);return!Qr()||!t.visualViewport?au:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function lu(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===fe(e)}function Er(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let s=e.getBoundingClientRect(),i=_o(e),o=ze(1);t&&(n?ke(n)&&(o=Jt(n)):o=Jt(e));let a=lu(i,r,n)?Co(i):ze(0),l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i&&n){let p=fe(i),y=ke(n)?fe(n):n,b=p,E=en(b);for(;E&&y!==b;){let v=Jt(E),A=E.getBoundingClientRect(),L=Pe(E),x=A.left+(E.clientLeft+parseFloat(L.paddingLeft))*v.x,C=A.top+(E.clientTop+parseFloat(L.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=x,c+=C,b=fe(E),E=en(b)}}return St({width:u,height:d,x:l,y:c})}function tn(e,t){let r=Sr(e).scrollLeft;return t?t.left+r:Er(Je(e)).left+r}function wo(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-tn(e,r),s=r.top+t.scrollTop;return{x:n,y:s}}function cu(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e,i=s==="fixed",o=Je(n),a=t?xr(t.floating):!1;if(n===o||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=ze(1),u=ze(0),d=Ze(n);if((d||!i)&&((At(n)!=="body"||br(o))&&(l=Sr(n)),d)){let y=Er(n);c=Jt(n),u.x=y.x+n.clientLeft,u.y=y.y+n.clientTop}let p=o&&!d&&!i?wo(o,l):ze(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 uu(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function du(e){let t=Sr(e),r=e.ownerDocument.body,n=st(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=st(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),i=-t.scrollLeft+tn(e),o=-t.scrollTop;return Pe(r).direction==="rtl"&&(i+=st(e.clientWidth,r.clientWidth)-n),{width:n,height:s,x:i,y:o}}var pu=25;function fu(e,t,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",s=fe(e),i=Je(e),o=s.visualViewport,a=i.clientWidth,l=i.clientHeight,c=0,u=0;if(o){let p=!Qr()||t==="fixed";n?p||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,u=o.offsetTop))}if(tn(i)<=0){let p=i.ownerDocument,y=p.body,b=getComputedStyle(y),E=p.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,v=Math.abs(i.clientWidth-y.clientWidth-E),A=getComputedStyle(i).scrollbarGutter==="stable both-edges"?v/2:v;A<=pu&&(a-=A)}return{width:a,height:l,x:c,y:u}}function hu(e,t){let r=Er(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,i=Jt(e),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,c=n*i.y;return{width:o,height:a,x:l,y:c}}function So(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=fu(e,r,t);else if(t==="document")n=du(Je(e));else if(ke(t))n=hu(t,r);else{let s=Co(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return St(n)}function mu(e,t){let r=t.get(e);if(r)return r;let n=Jr(e,[],!1).filter(a=>ke(a)&&At(a)!=="body"),s=null,i=Pe(e).position==="fixed",o=i?at(e):e;for(;ke(o)&&!Xt(o);){let a=Pe(o),l=Yt(o),c=s?s.position:i?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(d=>d!==o):s=a,o=at(o)}return t.set(e,n),n}function yu(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e,o=[...r==="clippingAncestors"?xr(t)?[]:mu(t,this._c):[].concat(r),n],a=So(t,o[0],s),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let y=So(t,o[p],s);l=st(y.top,l),c=yr(y.right,c),u=yr(y.bottom,u),d=st(y.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function gu(e){let{width:t,height:r}=Ao(e);return{width:t,height:r}}function vu(e,t,r){let n=Ze(t),s=Je(t),i=r==="fixed",o=Er(e,!0,i,t),a={scrollLeft:0,scrollTop:0},l=ze(0);if((n||!i)&&((At(t)!=="body"||br(s))&&(a=Sr(t)),n)){let p=Er(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!n&&s&&(l.x=tn(s));let c=s&&!n&&!i?wo(s,a):ze(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function bi(e){return Pe(e).position==="static"}function Eo(e,t){if(!Ze(e)||Pe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Je(e)===r&&(r=r.ownerDocument.body),r}function Oo(e,t){let r=fe(e);if(xr(e))return r;if(!Ze(e)){let s=at(e);for(;s&&!Xt(s);){if(ke(s)&&!bi(s))return s;s=at(s)}return r}let n=Eo(e,t);for(;n&&vo(n)&&bi(n);)n=Eo(n,t);return n&&Xt(n)&&bi(n)&&!Yt(n)?r:n||bo(e)||r}var bu=async function(e){let t=this.getOffsetParent||Oo,r=this.getDimensions,n=await r(e.floating);return{reference:vu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function xu(e){return Pe(e).direction==="rtl"}var rn={convertOffsetParentRelativeRectToViewportRelativeRect:cu,getDocumentElement:Je,getClippingRect:yu,getOffsetParent:Oo,getElementRects:bu,getClientRects:uu,getDimensions:gu,getScale:Jt,isElement:ke,isRTL:xu};var To=ho,Ro=mo;var Lo=(e,t,r)=>{let n=new Map,s=r??{},i={...rn,...s.platform,_c:n};return fo(e,t,{...s,platform:i})};function ko(e){return Su(e)}function xi(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Su(e){for(let t=e;t;t=xi(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=xi(e);t;t=xi(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Yt(r)||t.tagName==="BODY"))return t}return null}async function Po(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},Lo(e,t,{strategy:n.strategy,platform:{...rn,getOffsetParent:s=>rn.getOffsetParent(s,ko)},middleware:[Ro({crossAxis:!0}),To({allowedPlacements:[n.placement]})]})}var ar=f(S());var Vi=f(K());var No=f(K(),1);var Si=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function Do(e,t){return(0,No.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ar(e);try{return JSON.parse(r)}catch{return Ar(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:_r,...t??{}})}function Eu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Zt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Zt(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let s=o=>Object.keys(o).filter(a=>o[a]!=null),i=s(e);if(r=i.length,r!==s(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let o=i[n];if(!Zt(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Zt(e,t){try{return Eu(e,t)}catch{return!1}}function _r(e,t){return!Zt(e,t)}function Ar(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function nn(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let s=t(n);return s[e]=!0,s}}var Mo=f(K(),1);var Ei=e=>{let t=e??{};return(r,n)=>{var s;let i={hasChanged:_r,attribute:!1,...t};(0,Mo.property)(i)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(s=t.selector)!==null&&s!==void 0?s:(a=>a[n]),store:t.store})}};var sn=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var _t=f(K(),1);var on=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let s=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),i=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){s(a);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var $o=f(k(),1);var an=globalThis,Au=an.ShadowRoot&&(an.ShadyCSS===void 0||an.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Io=(e,t)=>{if(Au)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),s=an.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=r.cssText,e.appendChild(n)}};var ln=class extends $o.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Io(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){Si(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Uo(e,t,...r){var n;let s=e.querySelector(t);for(let i of r)s=(n=s?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return s}var er=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Vo,Bo=Symbol("constructorPrototype"),Ho=Symbol("constructorName"),zo=Symbol("exportpartsDebouncer"),Fo=Symbol("dynamicDependenciesLoaded"),Qt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Qt.eventName="exportparts-updated";var je=class extends ln{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Vo]=new on(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[zo].run(()=>{var s,i;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ho]=this.constructor.name,this[Bo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ho]&&Object.setPrototypeOf(this,this[Bo])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Fo]||(r[Fo]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Qt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:s}=this.elementToFocus;if(n!=null){let i=[...s??[],n];r=Uo(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,s;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var r,n,s,i,o,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let y=(i=(s=p.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&i!==void 0?i:[],b=(a=(o=p.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],E=[...y,...b].filter(l).map(v=>v.trim());for(let v of E)u.add(v)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(y=>`${p}:${y}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Vo=zo;er([(0,_t.property)()],je.prototype,"exportpartsPrefix",void 0);er([Do([])],je.prototype,"exportpartsPrefixes",void 0);er([(0,_t.property)({reflect:!0})],je.prototype,"exportparts",void 0);er([(0,_t.property)()],je.prototype,"customStylesheet",void 0);er([(0,_t.property)()],je.prototype,"elementToFocus",void 0);er([(0,_t.state)()],je.prototype,"useAdoptedStyleSheets",void 0);function cn(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Cr=Symbol("internalReduxEventsUnsubscribers"),lt=Symbol("internalStoresUnsubscribers"),Ct=Symbol("internalStores"),_u=nn(Symbol("withRedux"),function(e){var t,r,n;class s extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Ct].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ct].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Ct].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ct].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Ct].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ct].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[lt].has(o.store):this[lt].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l;this[lt].set(o,a.subscribe(()=>this.updateFromStores())),this[Cr].set(o,[]),cn(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[Cr].get(o).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[lt].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[lt].has(o)&&this[lt].get(o)(),this[lt].delete(o),(a=this[Cr].get(o))===null||a===void 0||a.forEach(l=>l()),this[Cr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=lt,r=Ct,n=Cr,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),jo=class extends _u(je){};function re(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Cu=typeof Symbol=="function"&&Symbol.observable||"@@observable",Wo=Cu,Ai=()=>Math.random().toString(36).substring(7).split("").join("."),wu={INIT:`@@redux/INIT${Ai()}`,REPLACE:`@@redux/REPLACE${Ai()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ai()}`},un=wu;function dn(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function _i(e,t,r){if(typeof e!="function")throw new Error(re(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(re(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(re(1));return r(_i)(e,t)}let n=e,s=t,i=new Map,o=i,a=0,l=!1;function c(){o===i&&(o=new Map,i.forEach((v,A)=>{o.set(A,v)}))}function u(){if(l)throw new Error(re(3));return s}function d(v){if(typeof v!="function")throw new Error(re(4));if(l)throw new Error(re(5));let A=!0;c();let L=a++;return o.set(L,v),function(){if(A){if(l)throw new Error(re(6));A=!1,c(),o.delete(L),i=null}}}function p(v){if(!dn(v))throw new Error(re(7));if(typeof v.type>"u")throw new Error(re(8));if(typeof v.type!="string")throw new Error(re(17));if(l)throw new Error(re(9));try{l=!0,s=n(s,v)}finally{l=!1}return(i=o).forEach(L=>{L()}),v}function y(v){if(typeof v!="function")throw new Error(re(10));n=v,p({type:un.REPLACE})}function b(){let v=d;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(re(11));function L(){let C=A;C.next&&C.next(u())}return L(),{unsubscribe:v(L)}},[Wo](){return this}}}return p({type:un.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:y,[Wo]:b}}function Ou(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:un.INIT})>"u")throw new Error(re(12));if(typeof r(void 0,{type:un.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(re(13))})}function Ko(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let n=Object.keys(r),s,i;try{Ou(r)}catch(o){i=o}return function(a={},l){if(i)throw i;let c=!1,u={};for(let d=0;d<n.length;d++){let p=n[d],y=r[p],b=a[p],E=y(b,l);if(typeof E>"u"){let v=l&&l.type;throw new Error(re(14))}u[p]=E,c=c||E!==b}return c=c||n.length!==Object.keys(a).length,c?u:a}}function wr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Go(...e){return t=>(r,n)=>{let s=t(r,n),i=()=>{throw new Error(re(15))},o={getState:s.getState,dispatch:(l,...c)=>i(l,...c)},a=e.map(l=>l(o));return i=wr(...a)(s.dispatch),{...s,dispatch:i}}}function qo(e){return dn(e)&&"type"in e&&typeof e.type=="string"}var na=Symbol.for("immer-nothing"),Yo=Symbol.for("immer-draftable"),ae=Symbol.for("immer-state");function Ne(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ve=Object,rr=ve.getPrototypeOf,mn="constructor",Sn="prototype",Ti="configurable",yn="enumerable",fn="writable",Or="value",We=e=>!!e&&!!e[ae];function be(e){return e?ia(e)||An(e)||!!e[Yo]||!!e[mn]?.[Yo]||_n(e)||Cn(e):!1}var Tu=ve[Sn][mn].toString(),Xo=new WeakMap;function ia(e){if(!e||!Ii(e))return!1;let t=rr(e);if(t===null||t===ve[Sn])return!0;let r=ve.hasOwnProperty.call(t,mn)&&t[mn];if(r===Object)return!0;if(!tr(r))return!1;let n=Xo.get(r);return n===void 0&&(n=Function.toString.call(r),Xo.set(r,n)),n===Tu}function En(e,t,r=!0){Lr(e)===0?(r?Reflect.ownKeys(e):ve.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((n,s)=>t(s,n,e))}function Lr(e){let t=e[ae];return t?t.type_:An(e)?1:_n(e)?2:Cn(e)?3:0}var Ci=(e,t,r=Lr(e))=>r===2?e.has(t):ve[Sn].hasOwnProperty.call(e,t),Ri=(e,t,r=Lr(e))=>r===2?e.get(t):e[t],gn=(e,t,r,n=Lr(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function Ru(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var An=Array.isArray,_n=e=>e instanceof Map,Cn=e=>e instanceof Set,Ii=e=>typeof e=="object",tr=e=>typeof e=="function",wi=e=>typeof e=="boolean";function Lu(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Qe=e=>e.copy_||e.base_;var $i=e=>e.modified_?e.copy_:e.base_;function Li(e,t){if(_n(e))return new Map(e);if(Cn(e))return new Set(e);if(An(e))return Array[Sn].slice.call(e);let r=ia(e);if(t===!0||t==="class_only"&&!r){let n=ve.getOwnPropertyDescriptors(e);delete n[ae];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){let o=s[i],a=n[o];a[fn]===!1&&(a[fn]=!0,a[Ti]=!0),(a.get||a.set)&&(n[o]={[Ti]:!0,[fn]:!0,[yn]:a[yn],[Or]:e[o]})}return ve.create(rr(e),n)}else{let n=rr(e);if(n!==null&&r)return{...e};let s=ve.create(n);return ve.assign(s,e)}}function Ui(e,t=!1){return wn(e)||We(e)||!be(e)||(Lr(e)>1&&ve.defineProperties(e,{set:pn,add:pn,clear:pn,delete:pn}),ve.freeze(e),t&&En(e,(r,n)=>{Ui(n,!0)},!1)),e}function ku(){Ne(2)}var pn={[Or]:ku};function wn(e){return e===null||!Ii(e)?!0:ve.isFrozen(e)}var vn="MapSet",ki="Patches",Jo="ArrayMethods",sa={};function wt(e){let t=sa[e];return t||Ne(0,e),t}var Zo=e=>!!sa[e];var Tr,oa=()=>Tr,Pu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Zo(vn)?wt(vn):void 0,arrayMethodsPlugin_:Zo(Jo)?wt(Jo):void 0});function Qo(e,t){t&&(e.patchPlugin_=wt(ki),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Pi(e){Ni(e),e.drafts_.forEach(Nu),e.drafts_=null}function Ni(e){e===Tr&&(Tr=e.parent_)}var ea=e=>Tr=Pu(Tr,e);function Nu(e){let t=e[ae];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ta(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[ae].modified_&&(Pi(t),Ne(4)),be(e)&&(e=ra(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[ae].base_,e,t)}else e=ra(t,r);return Du(t,e,!0),Pi(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==na?e:void 0}function ra(e,t){if(wn(t))return t;let r=t[ae];if(!r)return bn(t,e.handledSet_,e);if(!On(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);ca(r,e)}return r.copy_}function Du(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ui(t,r)}function aa(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var On=(e,t)=>e.scope_===t,Mu=[];function la(e,t,r,n){let s=Qe(e),i=e.type_;if(n!==void 0&&Ri(s,n,i)===t){gn(s,n,r,i);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;En(s,(l,c)=>{if(We(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=e.draftLocations_.get(t)??Mu;for(let a of o)gn(s,a,r,i)}function Iu(e,t,r){e.callbacks_.push(function(s){let i=t;if(!i||!On(i,s))return;s.mapSetPlugin_?.fixSetContents(i);let o=$i(i);la(e,i.draft_??i,o,r),ca(i,s)})}function ca(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let s=n.getPath(e);s&&n.generatePatches_(e,s,t)}aa(e)}}function $u(e,t,r){let{scope_:n}=e;if(We(r)){let s=r[ae];On(s,n)&&s.callbacks_.push(function(){hn(e);let o=$i(s);la(e,r,o,t)})}else be(r)&&e.callbacks_.push(function(){let i=Qe(e);e.type_===3?i.has(r)&&bn(r,n.handledSet_,n):Ri(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&bn(Ri(e.copy_,t,e.type_),n.handledSet_,n)})}function bn(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||We(e)||t.has(e)||!be(e)||wn(e)||(t.add(e),En(e,(n,s)=>{if(We(s)){let i=s[ae];if(On(i,r)){let o=$i(i);gn(e,n,o,e.type_),aa(i)}}else be(s)&&bn(s,t,r)})),e}function Uu(e,t){let r=An(e),n={type_:r?1:0,scope_:t?t.scope_:oa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=n,i=xn;r&&(s=[n],i=Rr);let{revoke:o,proxy:a}=Proxy.revocable(s,i);return n.draft_=a,n.revoke_=o,[a,n]}var xn={get(e,t){if(t===ae)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let s=Qe(e);if(!Ci(s,t,e.type_))return Hu(e,s,t);let i=s[t];if(e.finalized_||!be(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Lu(t))return i;if(i===Oi(e.base_,t)||Bu(e,t,i)){hn(e);let o=e.type_===1?+t:t,a=Mi(e.scope_,i,e,o);return e.copy_[o]=a}return i},has(e,t){return t in Qe(e)},ownKeys(e){return Reflect.ownKeys(Qe(e))},set(e,t,r){let n=ua(Qe(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let s=Oi(Qe(e),t),i=s?.[ae];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(Ru(r,s)&&(r!==void 0||Ci(e.base_,t,e.type_)))return!0;hn(e),Di(e)}return e.copy_[t]===r&&(r!==void 0||Ci(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),$u(e,t,r)),!0},deleteProperty(e,t){return hn(e),Oi(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Di(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Qe(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[fn]:!0,[Ti]:e.type_!==1||t!=="length",[yn]:n[yn],[Or]:r[t]}},defineProperty(){Ne(11)},getPrototypeOf(e){return rr(e.base_)},setPrototypeOf(){Ne(12)}},Rr={};for(let e in xn){let t=xn[e];Rr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Rr.deleteProperty=function(e,t){return Rr.set.call(this,e,t,void 0)};Rr.set=function(e,t,r){return xn.set.call(this,e[0],t,r,e[0])};function Oi(e,t){let r=e[ae];return(r?Qe(r):e)[t]}function Bu(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!be(r)||r[ae]?!1:e.baseRefs_.has(r)}function Hu(e,t,r){let n=ua(t,r);return n?Or in n?n[Or]:n.get?.call(e.draft_):void 0}function ua(e,t){if(!(t in e))return;let r=rr(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=rr(r)}}function Di(e){e.modified_||(e.modified_=!0,e.parent_&&Di(e.parent_))}function hn(e){e.copy_||(e.assigned_=new Map,e.copy_=Li(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Fu=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(tr(t)&&!tr(r)){let i=r;r=t;let o=this;return function(l=i,...c){return o.produce(l,u=>r.call(this,u,...c))}}tr(r)||Ne(6),n!==void 0&&!tr(n)&&Ne(7);let s;if(be(t)){let i=ea(this),o=Mi(i,t,void 0),a=!0;try{s=r(o),a=!1}finally{a?Pi(i):Ni(i)}return Qo(i,n),ta(s,i)}else if(!t||!Ii(t)){if(s=r(t),s===void 0&&(s=t),s===na&&(s=void 0),this.autoFreeze_&&Ui(s,!0),n){let i=[],o=[];wt(ki).generateReplacementPatches_(t,s,{patches_:i,inversePatches_:o}),n(i,o)}return s}else Ne(1,t)},this.produceWithPatches=(t,r)=>{if(tr(t))return(o,...a)=>this.produceWithPatches(o,l=>t(l,...a));let n,s;return[this.produce(t,r,(o,a)=>{n=o,s=a}),n,s]},wi(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),wi(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),wi(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){be(e)||Ne(8),We(e)&&(e=da(e));let t=ea(this),r=Mi(t,e,void 0);return r[ae].isManual_=!0,Ni(t),r}finishDraft(e,t){let r=e&&e[ae];(!r||!r.isManual_)&&Ne(9);let{scope_:n}=r;return Qo(n,t),ta(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));let n=wt(ki).applyPatches_;return We(e)?n(e,t):this.produce(e,s=>n(s,t))}};function Mi(e,t,r,n){let[s,i]=_n(t)?wt(vn).proxyMap_(t,r):Cn(t)?wt(vn).proxySet_(t,r):Uu(t,r);return(r?.scope_??oa()).drafts_.push(s),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?Iu(r,i,n):i.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:c}=l;i.modified_&&c&&c.generatePatches_(i,[],l)}),s}function da(e){return We(e)||Ne(10,e),pa(e)}function pa(e){if(!be(e)||wn(e))return e;let t=e[ae],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Li(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Li(e,!0);return En(r,(s,i)=>{gn(r,s,pa(i))},n),t&&(t.finalized_=!1),r}var Vu=new Fu,Bi=Vu.produce;function fa(e){return({dispatch:r,getState:n})=>s=>i=>typeof i=="function"?i(r,n,e):s(i)}var ha=fa(),ma=fa;var zu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?wr:wr.apply(null,arguments)},bf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},ju=e=>e&&typeof e.match=="function";function ct(e,t){function r(...n){if(t){let s=t(...n);if(!s)throw new Error(et(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>qo(n)&&n.type===e,r}var xa=class kr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,kr.prototype)}static get[Symbol.species](){return kr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new kr(...t[0].concat(this)):new kr(...t.concat(this))}};function ya(e){return be(e)?Bi(e,()=>{}):e}function Tn(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Wu(e){return typeof e=="boolean"}var Ku=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{},o=new xa;return r&&(Wu(r)?o.push(ha):o.push(ma(r.extraArgument))),o},Gu="RTK_autoBatch";var ga=e=>t=>{setTimeout(t,e)},qu=(e,t)=>r=>{let n=!1,s=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(o),r())},i=e(s),o=setTimeout(s,t)},Yu=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),s=!0,i=!1,o=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?qu(window.requestAnimationFrame,100):ga(10):e.type==="callback"?e.queueNotification:ga(e.timeout),c=()=>{o=!1,i&&(i=!1,a.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let d=()=>s&&u(),p=n.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return s=!u?.meta?.[Gu],i=!s,i&&(o||(o=!0,l(c))),n.dispatch(u)}finally{s=!0}}})},Xu=e=>function(r){let{autoBatch:n=!0}=r??{},s=new xa(e);return n&&s.push(Yu(typeof n=="object"?n:void 0)),s};function Sa(e){let t=Ku(),{reducer:r=void 0,middleware:n,devTools:s=!0,duplicateMiddlewareCheck:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(dn(r))l=Ko(r);else throw new Error(et(1));let c;typeof n=="function"?c=n(t):c=t();let u=wr;s&&(u=zu({trace:!1,...typeof s=="object"&&s}));let d=Go(...c),p=Xu(d),y=typeof a=="function"?a(p):p(),b=u(...y);return _i(l,o,b)}function Ea(e){let t={},r=[],n,s={addCase(i,o){let a=typeof i=="string"?i:i.type;if(!a)throw new Error(et(28));if(a in t)throw new Error(et(29));return t[a]=o,s},addAsyncThunk(i,o){return o.pending&&(t[i.pending.type]=o.pending),o.rejected&&(t[i.rejected.type]=o.rejected),o.fulfilled&&(t[i.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:i.settled,reducer:o.settled}),s},addMatcher(i,o){return r.push({matcher:i,reducer:o}),s},addDefaultCase(i){return n=i,s}};return e(s),[t,r,n]}function Ju(e){return typeof e=="function"}function Zu(e,t){let[r,n,s]=Ea(t),i;if(Ju(e))i=()=>ya(e());else{let a=ya(e);i=()=>a}function o(a=i(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[s]),c.reduce((u,d)=>{if(d)if(We(u)){let y=d(u,l);return y===void 0?u:y}else{if(be(u))return Bi(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},a)}return o.getInitialState=i,o}var Qu=(e,t)=>ju(e)?e.match(t):e(t);function ed(...e){return t=>e.some(r=>Qu(r,t))}var td="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",rd=(e=21)=>{let t="",r=e;for(;r--;)t+=td[Math.random()*64|0];return t},nd=["name","message","stack","code"],Hi=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},va=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},id=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of nd)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},ba="External signal was aborted",sd=(()=>{function e(t,r,n){let s=ct(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),i=ct(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=ct(t+"/rejected",(l,c,u,d,p)=>({payload:d,error:(n&&n.serializeError||id)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let y=n?.idGenerator?n.idGenerator(l):rd(),b=new AbortController,E,v;function A(x){v=x,b.abort()}c&&(c.aborted?A(ba):c.addEventListener("abort",()=>A(ba),{once:!0}));let L=(async function(){let x;try{let T=n?.condition?.(l,{getState:d,extra:p});if(ad(T)&&(T=await T),T===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let z=new Promise(($,j)=>{E=()=>{j({name:"AbortError",message:v||"Aborted"})},b.signal.addEventListener("abort",E,{once:!0})});u(i(y,l,n?.getPendingMeta?.({requestId:y,arg:l},{getState:d,extra:p}))),x=await Promise.race([z,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:y,signal:b.signal,abort:A,rejectWithValue:(($,j)=>new Hi($,j)),fulfillWithValue:(($,j)=>new va($,j))})).then($=>{if($ instanceof Hi)throw $;return $ instanceof va?s($.payload,y,l,$.meta):s($,y,l)})])}catch(T){x=T instanceof Hi?o(null,y,l,T.payload,T.meta):o(T,y,l)}finally{E&&b.signal.removeEventListener("abort",E)}return n&&!n.dispatchConditionRejection&&o.match(x)&&x.meta.condition||u(x),x})();return Object.assign(L,{abort:A,requestId:y,arg:l,unwrap(){return L.then(od)}})}}return Object.assign(a,{pending:i,rejected:o,fulfilled:s,settled:ed(o,s),typePrefix:t})}return e.withTypes=()=>e,e})();function od(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ad(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Aa=Symbol.for("rtk-slice-createasyncthunk"),Sf={[Aa]:sd};function ld(e,t){return`${e}/${t}`}function cd({creators:e}={}){let t=e?.asyncThunk?.[Aa];return function(n){let{name:s,reducerPath:i=s}=n;if(!s)throw new Error(et(11));typeof process<"u";let o=(typeof n.reducers=="function"?n.reducers(dd()):n.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(x,C){let T=typeof x=="string"?x:x.type;if(!T)throw new Error(et(12));if(T in l.sliceCaseReducersByType)throw new Error(et(13));return l.sliceCaseReducersByType[T]=C,c},addMatcher(x,C){return l.sliceMatchers.push({matcher:x,reducer:C}),c},exposeAction(x,C){return l.actionCreators[x]=C,c},exposeCaseReducer(x,C){return l.sliceCaseReducersByName[x]=C,c}};a.forEach(x=>{let C=o[x],T={reducerName:x,type:ld(s,x),createNotation:typeof n.reducers=="function"};fd(C)?md(T,C,c,t):pd(T,C,c)});function u(){let[x={},C=[],T=void 0]=typeof n.extraReducers=="function"?Ea(n.extraReducers):[n.extraReducers],z={...x,...l.sliceCaseReducersByType};return Zu(n.initialState,$=>{for(let j in z)$.addCase(j,z[j]);for(let j of l.sliceMatchers)$.addMatcher(j.matcher,j.reducer);for(let j of C)$.addMatcher(j.matcher,j.reducer);T&&$.addDefaultCase(T)})}let d=x=>x,p=new Map,y=new WeakMap,b;function E(x,C){return b||(b=u()),b(x,C)}function v(){return b||(b=u()),b.getInitialState()}function A(x,C=!1){function T($){let j=$[x];return typeof j>"u"&&C&&(j=Tn(y,T,v)),j}function z($=d){let j=Tn(p,C,()=>new WeakMap);return Tn(j,$,()=>{let cr={};for(let[_e,gt]of Object.entries(n.selectors??{}))cr[_e]=ud(gt,$,()=>Tn(y,$,v),C);return cr})}return{reducerPath:x,getSelectors:z,get selectors(){return z(T)},selectSlice:T}}let L={name:s,reducer:E,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...A(i),injectInto(x,{reducerPath:C,...T}={}){let z=C??i;return x.inject({reducerPath:z,reducer:E},T),{...L,...A(z,!0)}}};return L}}function ud(e,t,r,n){function s(i,...o){let a=t(i);return typeof a>"u"&&n&&(a=r()),e(a,...o)}return s.unwrapped=e,s}var _a=cd();function dd(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function pd({type:e,reducerName:t,createNotation:r},n,s){let i,o;if("reducer"in n){if(r&&!hd(n))throw new Error(et(17));i=n.reducer,o=n.prepare}else i=n;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?ct(e,o):ct(e))}function fd(e){return e._reducerDefinitionType==="asyncThunk"}function hd(e){return e._reducerDefinitionType==="reducerWithPrepare"}function md({type:e,reducerName:t},r,n,s){if(!s)throw new Error(et(18));let{payloadCreator:i,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,d=s(e,i,u);n.exposeAction(t,d),o&&n.addCase(d.fulfilled,o),a&&n.addCase(d.pending,a),l&&n.addCase(d.rejected,l),c&&n.addMatcher(d.settled,c),n.exposeCaseReducer(t,{fulfilled:o||Rn,pending:a||Rn,rejected:l||Rn,settled:c||Rn})}function Rn(){}var Ca="listener",wa="completed",Oa="cancelled",Ef=`task-${Oa}`,Af=`task-${wa}`,_f=`${Ca}-${Oa}`,Cf=`${Ca}-${wa}`;var{assign:Ta}=Object;var Fi="listenerMiddleware";var yd=Ta(ct(`${Fi}/add`),{withTypes:()=>yd}),wf=ct(`${Fi}/removeAll`),gd=Ta(ct(`${Fi}/remove`),{withTypes:()=>gd});function et(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var vd=nn(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,s){this.eventBus.addEventListener(r,n,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,s){this.eventBus.removeEventListener(r,n,s)}}}),Ln=class extends vd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ra=class e extends Ln{static get(t){var r;let n=typeof t=="string"?t:t.name,s=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(cn(i))return i;if(s==null)return;let o=_a({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=Sa({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Ar(o.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 o.reducer(l,c)}});return window.ftReduxStores[s.name]=new e(o,a,s.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new sn,this.injectInto=(i,o)=>this.reduxSlice.injectInto(i,o),this.selectSlice=i=>this.reduxSlice.selectSlice(i);let s=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,o,a)=>{let l=o,c=i[l];return c?(...u)=>{let d=c(...u.map(s));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Zt(p,u)||this.setState({[d]:s(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var kn=class{static format(t,r,n,s,i){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,s,!!i)):this.getIntlDateTime(t,r,n,s,!!i)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,s,i){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return i?l:s?`${a} ${l}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Pn=f(S()),bd="ft-app-info",nr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};nr.eventName="authentication-change";var Pr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Pr.eventName="ui-locale-changed";var xd={session:(e,t)=>{(0,Pn.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new nr(t.payload)),0))}},w=Pn.FtReduxStore.get({name:bd,reducers:xd,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 La=f(S()),Nn=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},rh=(0,La.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var s,i;return((i=(s=this.metadataDescriptors.find(a=>a.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?a=>kn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Nn([(0,Vi.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Nn([(0,Vi.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Nn([Ei({store:w.name,selector:r=>{var n,s;return(s=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&s!==void 0?s:[]}})],t.prototype,"metadataDescriptors",void 0),Nn([Ei({store:w.name})],t.prototype,"uiLocale",void 0),t});var ka;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(ka||(ka={}));var Pa;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Pa||(Pa={}));var Na;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Na||(Na={}));var Da;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Da||(Da={}));var Ma;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ma||(Ma={}));var Ia;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ia||(Ia={}));var $a;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})($a||($a={}));var Ua;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Ua||(Ua={}));var Ba;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Ba||(Ba={}));var Ha;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Ha||(Ha={}));var Fa;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(Fa||(Fa={}));var Va;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Va||(Va={}));var za;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(za||(za={}));var ja;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ja||(ja={}));var Wa;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Wa||(Wa={}));var Ka;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Ka||(Ka={}));var Ga;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Ga||(Ga={}));var qa;(function(e){e.ASC="ASC",e.DESC="DESC"})(qa||(qa={}));var Ya;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Ya||(Ya={}));var Xa;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Xa||(Xa={}));var Ja;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Ja||(Ja={}));var Za;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Za||(Za={}));var Qa;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Qa||(Qa={}));var el;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(el||(el={}));var tl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(tl||(tl={}));var rl;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(rl||(rl={}));var nl;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(nl||(nl={}));var Y;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(Y||(Y={}));var we;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(we||(we={}));var il;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(il||(il={}));var sl;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(sl||(sl={}));var ol;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ol||(ol={}));var al;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(al||(al={}));var ll;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(ll||(ll={}));var cl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(cl||(cl={}));var ul;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ul||(ul={}));var dl;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(dl||(dl={}));var pl;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(pl||(pl={}));var fl;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(fl||(fl={}));var hl;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(hl||(hl={}));var ml;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(ml||(ml={}));var Sd={[Y.PERSONAL_BOOK_SHARE_USER]:[Y.PERSONAL_BOOK_USER],[Y.HTML_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.PDF_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.KHUB_ADMIN]:[Y.CONTENT_PUBLISHER],[Y.ADMIN]:[Y.KHUB_ADMIN,Y.USERS_ADMIN,Y.PORTAL_ADMIN,Y.BEHAVIOR_DATA_USER],[Y.GENERATIVE_AI_EXPORT_USER]:[Y.GENERATIVE_AI_USER]};function yl(e,t){return e===t||(Sd[e]??[]).some(r=>yl(r,t))}function gl(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>yl(n,t))}var Un=f(S());var zi=f(S());var Ot=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=w.getState(),s=t??n;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let s=w.subscribe(()=>{n=e.get(t),n&&(s(),r(n))})}})}};var ir=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Ot.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ot.await()}};var xe=class extends ir{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new zi.CacheRegistry,this.cache=t?s.commonCache:new zi.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Dn=class extends xe{async listMySearches(){let{session:t}=w.getState();return gl(t,Y.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Mn=class extends xe{async listMyBookmarks(){let t=w.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var In=class extends xe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=w.getState().session;return!!t?.sessionAuthenticated}};var $n=class extends xe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=w.getState().session;return!!t?.sessionAuthenticated}};var Ed="ft-user-assets",Ad={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(we).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:s}=t.payload;Wi(e,r,[...ji(e,r),s]),vl(e,r,1,n),bl(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Wi(e,r,ji(e,r).map(s=>s.id===n.id?n:s)),bl(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:s}=t.payload;Wi(e,r,ji(e,r).filter(i=>i.id!==s)),vl(e,r,-1,n)}},xl={[we.SEARCHES]:"savedSearches",[we.BOOKMARKS]:"bookmarks",[we.BOOKS]:void 0,[we.COLLECTIONS]:void 0},ji=(e,t)=>{var r;let n=xl[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Wi=(e,t,r)=>{let n=xl[t];n&&(e[n]=r)},vl=(e,t,r,n)=>{let s=e.assetCounts.allAsset[t];if(s!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,s+r),t===we.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},bl=(e,t)=>{let r=e.assetLabels.map(s=>s.title),n=t.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));e.assetLabels.push(...n)},ce=Un.FtReduxStore.get({name:Ed,reducers:Ad,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(we).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ki=class{constructor(t=new In,r=new $n){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Mn,this.savedSearchesService=new Dn,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,Un.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ce.actions.clearAssetCount(),ce.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ce.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ce.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ce.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ce.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&ce.getState().assetCounts.allAsset[t]!==r.count&&ce.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&ce.getState().assetCounts.bookmarkByMap[t]!==r.count&&ce.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(ce.getState().assetCounts.bookmarkByMap).length!==0;t===we.BOOKMARKS&&r&&ce.actions.clearBookmarkCountByMap(),ce.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ce.actions.bookmarks(r)}}},_d=new Ki;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=_d);var Gi=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Gi;var Oe=f(S());var Sl,sr=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Cd=Symbol("clearAfterUnitTest"),Bn=class extends(0,Oe.withEventBus)(xe){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Sl]=()=>{this.defaultMessages={},this.cache=new Oe.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=w.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let s={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,Oe.deepEqual)(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var s;let i=t.toLowerCase(),o=this.resolveContext(i);return new Oe.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},o).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(s){!(s instanceof Oe.CanceledPromiseError)&&r&&console.error(s)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var s;return(s=this.listeners[t])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new sr({loadedContexts:t})),this.dispatchEvent(new sr({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new sr({loadedContexts:[t]})),this.dispatchEvent(new sr({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Oe.delay)(0).then(()=>n()).catch(()=>null)))}};Sl=Cd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Bn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Bn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Nr=window.FluidTopicsI18nService,qi=window.FluidTopicsCustomI18nService;var El=f(S()),Yi=class{highlightHtml(t,r,n){(0,El.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Yi;var Al=f(S());var Xi=class{isDate(t){var r,n,s,i;return(i=(s=((n=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===t))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1}format(t,r){var n,s,i,o;if(t==null)return"";try{return Al.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:w.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new Xi;var _l=f(S());var Dr=class{static get(t,r){var n,s,i,o;let a=w.getState(),{lang:l,region:c}=(i=(s=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new _l.SearchPlaceConverter(a.baseUrl,t??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${c}`)}};var Ji=class{urlToSearchRequest(t){return Dr.get().parse(t)}searchRequestToUrl(t){return Dr.get().serialize(t)}};window.FluidTopicsUrlService=new Ji;var tt=f(S());var Tt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Tt.eventName="change";var Zi=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Cl=new Zi;var Hn=class e extends tt.WithEventBus{static build(){return new e(window.history,Cl,()=>window.location,!1)}constructor(t,r,n,s){var i,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,tt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Tt(this.currentItem())),0)}installProxies(){let t=r=>(n,s,[i,o,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...i,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(s,[c,o,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Tt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Tt.eventName,t)}currentItem(){return(0,tt.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,tt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,tt.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,tt.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let s=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(s=i),i++;return s}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let s=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Hn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var wl=f(k());var Ol=wl.css`
|
|
261
|
-
`;var Ll=f(k()),
|
|
260
|
+
`;var so=["top","right","bottom","left"],io=["start","end"],hi=so.reduce((e,t)=>e.concat(t,t+"-"+io[0],t+"-"+io[1]),[]),yr=Math.min,st=Math.max,gr=Math.round;var ze=e=>({x:e,y:e}),tu={left:"right",right:"left",bottom:"top",top:"bottom"};function oo(e,t,r){return st(e,yr(t,r))}function Yr(e,t){return typeof e=="function"?e(t):e}function vr(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function mi(e){return e==="x"?"y":"x"}function yi(e){return e==="y"?"height":"width"}function Xr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function gi(e){return mi(Xr(e))}function ao(e,t,r){r===void 0&&(r=!1);let n=ot(e),s=gi(e),i=yi(s),o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=fi(o)),[o,fi(o)]}function lo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function fi(e){let t=vr(e);return tu[t]+e.slice(t.length)}function ru(e){var t,r,n,s;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(s=e.left)!=null?s:0}}function co(e){return typeof e!="number"?ru(e):{top:e,right:e,bottom:e,left:e}}function St(e){let{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function uo(e,t,r){let{reference:n,floating:s}=e,i=Xr(t),o=gi(t),a=yi(o),l=vr(t),c=i==="y",u=n.x+n.width/2-s.width/2,d=n.y+n.height/2-s.height/2,p=n[a]/2-s[a]/2,y;switch(l){case"top":y={x:u,y:n.y-s.height};break;case"bottom":y={x:u,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:d};break;case"left":y={x:n.x-s.width,y:d};break;default:y={x:n.x,y:n.y}}let b=ot(t);return b&&(y[o]+=p*(b==="end"?1:-1)*(r&&c?-1:1)),y}async function po(e,t){var r;t===void 0&&(t={});let{x:n,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=Yr(t,e),b=co(y),v=a[p?d==="floating"?"reference":"floating":d],A=St(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(v)))==null||r?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),L=d==="floating"?{x:n,y:s,width:o.floating.width,height:o.floating.height}:o.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(x))&&await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1},T=St(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:L,offsetParent:x,strategy:l}):L);return{top:(A.top-T.top+b.top)/C.y,bottom:(T.bottom-A.bottom+b.bottom)/C.y,left:(A.left-T.left+b.left)/C.x,right:(T.right-A.right+b.right)/C.x}}var nu=50,fo=async(e,t,r)=>{let{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:po},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=uo(c,n,l),p=n,y=0,b={};for(let E=0;E<i.length;E++){let v=i[E];if(!v)continue;let{name:A,fn:L}=v,{x,y:C,data:T,reset:z}=await L({x:u,y:d,initialPlacement:n,placement:p,strategy:s,middlewareData:b,rects:c,platform:a,elements:{reference:e,floating:t}});u=x??u,d=C??d,b[A]={...b[A],...T},z&&y<nu&&(y++,typeof z=="object"&&(z.placement&&(p=z.placement),z.rects&&(c=z.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):z.rects),{x:u,y:d}=uo(c,p,l)),E=-1)}return{x:u,y:d,placement:p,strategy:s,middlewareData:b}};function iu(e,t,r){return(e?[...r.filter(s=>ot(s)===e),...r.filter(s=>ot(s)!==e)]:r.filter(s=>vr(s)===s)).filter(s=>e?ot(s)===e||(t?lo(s)!==s:!1):!0)}var ho=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,s;let{rects:i,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=hi,autoAlignment:y=!0,...b}=Yr(e,t),E=d!==void 0||p===hi?iu(d||null,y,p):p,v=((r=o.autoPlacement)==null?void 0:r.index)||0,A=E[v];if(A==null)return{};if(a!==A)return{reset:{placement:E[0]}};let L=await l.detectOverflow(t,b),x=ao(A,i,await(l.isRTL==null?void 0:l.isRTL(c.floating))),C=[L[vr(A)],L[x[0]],L[x[1]]],T=[...((n=o.autoPlacement)==null?void 0:n.overflows)||[],{placement:A,overflows:C}],z=E[v+1];if(z)return{data:{index:v+1,overflows:T},reset:{placement:z}};let $=T.map(_e=>{let gt=ot(_e.placement);return[_e.placement,gt&&u?_e.overflows.slice(0,2).reduce((Vc,zc)=>Vc+zc,0):_e.overflows[0],_e.overflows]}).sort((_e,gt)=>_e[1]-gt[1]),cr=((s=$.filter(_e=>_e[2].slice(0,ot(_e[0])?2:3).every(gt=>gt<=0))[0])==null?void 0:s[0])||$[0][0];return cr!==a?{data:{index:v+1,overflows:T},reset:{placement:cr}}:{}}}};var mo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:s,platform:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:L=>{let{x,y:C}=L;return{x,y:C}}},...c}=Yr(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),p=Xr(s),y=mi(p),b=u[y],E=u[p],v=(L,x)=>oo(x+d[L==="y"?"top":"left"],x,x-d[L==="y"?"bottom":"right"]);o&&(b=v(y,b)),a&&(E=v(p,E));let A=l.fn({...t,[y]:b,[p]:E});return{...A,data:{x:A.x-r,y:A.y-n,enabled:{[y]:o,[p]:a}}}}}};function Zr(){return typeof window<"u"}function At(e){return go(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Je(e){var t;return(t=(go(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function go(e){return Zr()?e instanceof Node||e instanceof he(e).Node:!1}function ke(e){return Zr()?e instanceof Element||e instanceof he(e).Element:!1}function Ze(e){return Zr()?e instanceof HTMLElement||e instanceof he(e).HTMLElement:!1}function yo(e){return!Zr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot}function br(e){let{overflow:t,overflowX:r,overflowY:n,display:s}=Ne(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&s!=="inline"&&s!=="contents"}function vo(e){return/^(table|td|th)$/.test(At(e))}function xr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var su=/transform|translate|scale|rotate|perspective|filter/,ou=/paint|layout|strict|content/,Et=e=>!!e&&e!=="none",vi;function Yt(e){let t=ke(e)?Ne(e):e;return Et(t.transform)||Et(t.translate)||Et(t.scale)||Et(t.rotate)||Et(t.perspective)||!Qr()&&(Et(t.backdropFilter)||Et(t.filter))||su.test(t.willChange||"")||ou.test(t.contain||"")}function bo(e){let t=at(e);for(;Ze(t)&&!Xt(t);){if(Yt(t))return t;if(xr(t))return null;t=at(t)}return null}function Qr(){return vi==null&&(vi=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),vi}function Xt(e){return/^(html|body|#document)$/.test(At(e))}function Ne(e){return he(e).getComputedStyle(e)}function Sr(e){return ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function at(e){if(At(e)==="html")return e;let t=e.assignedSlot||e.parentNode||yo(e)&&e.host||Je(e);return yo(t)?t.host:t}function xo(e){let t=at(e);return Xt(t)?(e.ownerDocument||e).body:Ze(t)&&br(t)?t:xo(t)}function Jr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let s=xo(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=he(s);if(i){let a=en(o);return t.concat(o,o.visualViewport||[],br(s)?s:[],a&&r?Jr(a):[])}else return t.concat(s,Jr(s,[],r))}function en(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ao(e){let t=Ne(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,s=Ze(e),i=s?e.offsetWidth:r,o=s?e.offsetHeight:n,a=gr(r)!==i||gr(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function _o(e){return ke(e)?e:e.contextElement}function Jt(e){let t=_o(e);if(!Ze(t))return ze(1);let r=t.getBoundingClientRect(),{width:n,height:s,$:i}=Ao(t),o=(i?gr(r.width):r.width)/n,a=(i?gr(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var au=ze(0);function Co(e){let t=he(e);return!Qr()||!t.visualViewport?au:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function lu(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===he(e)}function Er(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let s=e.getBoundingClientRect(),i=_o(e),o=ze(1);t&&(n?ke(n)&&(o=Jt(n)):o=Jt(e));let a=lu(i,r,n)?Co(i):ze(0),l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i&&n){let p=he(i),y=ke(n)?he(n):n,b=p,E=en(b);for(;E&&y!==b;){let v=Jt(E),A=E.getBoundingClientRect(),L=Ne(E),x=A.left+(E.clientLeft+parseFloat(L.paddingLeft))*v.x,C=A.top+(E.clientTop+parseFloat(L.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=x,c+=C,b=he(E),E=en(b)}}return St({width:u,height:d,x:l,y:c})}function tn(e,t){let r=Sr(e).scrollLeft;return t?t.left+r:Er(Je(e)).left+r}function wo(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-tn(e,r),s=r.top+t.scrollTop;return{x:n,y:s}}function cu(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e,i=s==="fixed",o=Je(n),a=t?xr(t.floating):!1;if(n===o||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=ze(1),u=ze(0),d=Ze(n);if((d||!i)&&((At(n)!=="body"||br(o))&&(l=Sr(n)),d)){let y=Er(n);c=Jt(n),u.x=y.x+n.clientLeft,u.y=y.y+n.clientTop}let p=o&&!d&&!i?wo(o,l):ze(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 uu(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function du(e){let t=Sr(e),r=e.ownerDocument.body,n=st(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=st(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),i=-t.scrollLeft+tn(e),o=-t.scrollTop;return Ne(r).direction==="rtl"&&(i+=st(e.clientWidth,r.clientWidth)-n),{width:n,height:s,x:i,y:o}}var pu=25;function fu(e,t,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",s=he(e),i=Je(e),o=s.visualViewport,a=i.clientWidth,l=i.clientHeight,c=0,u=0;if(o){let p=!Qr()||t==="fixed";n?p||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,u=o.offsetTop))}if(tn(i)<=0){let p=i.ownerDocument,y=p.body,b=getComputedStyle(y),E=p.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,v=Math.abs(i.clientWidth-y.clientWidth-E),A=getComputedStyle(i).scrollbarGutter==="stable both-edges"?v/2:v;A<=pu&&(a-=A)}return{width:a,height:l,x:c,y:u}}function hu(e,t){let r=Er(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,i=Jt(e),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,c=n*i.y;return{width:o,height:a,x:l,y:c}}function So(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=fu(e,r,t);else if(t==="document")n=du(Je(e));else if(ke(t))n=hu(t,r);else{let s=Co(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return St(n)}function mu(e,t){let r=t.get(e);if(r)return r;let n=Jr(e,[],!1).filter(a=>ke(a)&&At(a)!=="body"),s=null,i=Ne(e).position==="fixed",o=i?at(e):e;for(;ke(o)&&!Xt(o);){let a=Ne(o),l=Yt(o),c=s?s.position:i?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(d=>d!==o):s=a,o=at(o)}return t.set(e,n),n}function yu(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e,o=[...r==="clippingAncestors"?xr(t)?[]:mu(t,this._c):[].concat(r),n],a=So(t,o[0],s),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let y=So(t,o[p],s);l=st(y.top,l),c=yr(y.right,c),u=yr(y.bottom,u),d=st(y.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function gu(e){let{width:t,height:r}=Ao(e);return{width:t,height:r}}function vu(e,t,r){let n=Ze(t),s=Je(t),i=r==="fixed",o=Er(e,!0,i,t),a={scrollLeft:0,scrollTop:0},l=ze(0);if((n||!i)&&((At(t)!=="body"||br(s))&&(a=Sr(t)),n)){let p=Er(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!n&&s&&(l.x=tn(s));let c=s&&!n&&!i?wo(s,a):ze(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function bi(e){return Ne(e).position==="static"}function Eo(e,t){if(!Ze(e)||Ne(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Je(e)===r&&(r=r.ownerDocument.body),r}function Oo(e,t){let r=he(e);if(xr(e))return r;if(!Ze(e)){let s=at(e);for(;s&&!Xt(s);){if(ke(s)&&!bi(s))return s;s=at(s)}return r}let n=Eo(e,t);for(;n&&vo(n)&&bi(n);)n=Eo(n,t);return n&&Xt(n)&&bi(n)&&!Yt(n)?r:n||bo(e)||r}var bu=async function(e){let t=this.getOffsetParent||Oo,r=this.getDimensions,n=await r(e.floating);return{reference:vu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function xu(e){return Ne(e).direction==="rtl"}var rn={convertOffsetParentRelativeRectToViewportRelativeRect:cu,getDocumentElement:Je,getClippingRect:yu,getOffsetParent:Oo,getElementRects:bu,getClientRects:uu,getDimensions:gu,getScale:Jt,isElement:ke,isRTL:xu};var To=ho,Ro=mo;var Lo=(e,t,r)=>{let n=new Map,s=r??{},i={...rn,...s.platform,_c:n};return fo(e,t,{...s,platform:i})};function ko(e){return Su(e)}function xi(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Su(e){for(let t=e;t;t=xi(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=xi(e);t;t=xi(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Yt(r)||t.tagName==="BODY"))return t}return null}async function No(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},Lo(e,t,{strategy:n.strategy,platform:{...rn,getOffsetParent:s=>rn.getOffsetParent(s,ko)},middleware:[Ro({crossAxis:!0}),To({allowedPlacements:[n.placement]})]})}var ar=f(S());var Vi=f(K());var Po=f(K(),1);var Si=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function Do(e,t){return(0,Po.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ar(e);try{return JSON.parse(r)}catch{return Ar(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:_r,...t??{}})}function Eu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Zt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Zt(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let s=o=>Object.keys(o).filter(a=>o[a]!=null),i=s(e);if(r=i.length,r!==s(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let o=i[n];if(!Zt(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Zt(e,t){try{return Eu(e,t)}catch{return!1}}function _r(e,t){return!Zt(e,t)}function Ar(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function nn(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let s=t(n);return s[e]=!0,s}}var Mo=f(K(),1);var Ei=e=>{let t=e??{};return(r,n)=>{var s;let i={hasChanged:_r,attribute:!1,...t};(0,Mo.property)(i)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(s=t.selector)!==null&&s!==void 0?s:(a=>a[n]),store:t.store})}};var sn=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var _t=f(K(),1);var on=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let s=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),i=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){s(a);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var $o=f(k(),1);var an=globalThis,Au=an.ShadowRoot&&(an.ShadyCSS===void 0||an.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Io=(e,t)=>{if(Au)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),s=an.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=r.cssText,e.appendChild(n)}};var ln=class extends $o.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Io(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){Si(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Uo(e,t,...r){var n;let s=e.querySelector(t);for(let i of r)s=(n=s?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return s}var er=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Vo,Bo=Symbol("constructorPrototype"),Ho=Symbol("constructorName"),zo=Symbol("exportpartsDebouncer"),Fo=Symbol("dynamicDependenciesLoaded"),Qt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Qt.eventName="exportparts-updated";var je=class extends ln{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Vo]=new on(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[zo].run(()=>{var s,i;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ho]=this.constructor.name,this[Bo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ho]&&Object.setPrototypeOf(this,this[Bo])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Fo]||(r[Fo]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Qt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:s}=this.elementToFocus;if(n!=null){let i=[...s??[],n];r=Uo(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,s;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var r,n,s,i,o,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let y=(i=(s=p.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&i!==void 0?i:[],b=(a=(o=p.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],E=[...y,...b].filter(l).map(v=>v.trim());for(let v of E)u.add(v)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(y=>`${p}:${y}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Vo=zo;er([(0,_t.property)()],je.prototype,"exportpartsPrefix",void 0);er([Do([])],je.prototype,"exportpartsPrefixes",void 0);er([(0,_t.property)({reflect:!0})],je.prototype,"exportparts",void 0);er([(0,_t.property)()],je.prototype,"customStylesheet",void 0);er([(0,_t.property)()],je.prototype,"elementToFocus",void 0);er([(0,_t.state)()],je.prototype,"useAdoptedStyleSheets",void 0);function cn(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Cr=Symbol("internalReduxEventsUnsubscribers"),lt=Symbol("internalStoresUnsubscribers"),Ct=Symbol("internalStores"),_u=nn(Symbol("withRedux"),function(e){var t,r,n;class s extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Ct].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ct].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Ct].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ct].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Ct].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ct].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[lt].has(o.store):this[lt].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l;this[lt].set(o,a.subscribe(()=>this.updateFromStores())),this[Cr].set(o,[]),cn(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[Cr].get(o).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[lt].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[lt].has(o)&&this[lt].get(o)(),this[lt].delete(o),(a=this[Cr].get(o))===null||a===void 0||a.forEach(l=>l()),this[Cr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=lt,r=Ct,n=Cr,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),jo=class extends _u(je){};function ne(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Cu=typeof Symbol=="function"&&Symbol.observable||"@@observable",Wo=Cu,Ai=()=>Math.random().toString(36).substring(7).split("").join("."),wu={INIT:`@@redux/INIT${Ai()}`,REPLACE:`@@redux/REPLACE${Ai()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ai()}`},un=wu;function dn(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function _i(e,t,r){if(typeof e!="function")throw new Error(ne(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ne(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ne(1));return r(_i)(e,t)}let n=e,s=t,i=new Map,o=i,a=0,l=!1;function c(){o===i&&(o=new Map,i.forEach((v,A)=>{o.set(A,v)}))}function u(){if(l)throw new Error(ne(3));return s}function d(v){if(typeof v!="function")throw new Error(ne(4));if(l)throw new Error(ne(5));let A=!0;c();let L=a++;return o.set(L,v),function(){if(A){if(l)throw new Error(ne(6));A=!1,c(),o.delete(L),i=null}}}function p(v){if(!dn(v))throw new Error(ne(7));if(typeof v.type>"u")throw new Error(ne(8));if(typeof v.type!="string")throw new Error(ne(17));if(l)throw new Error(ne(9));try{l=!0,s=n(s,v)}finally{l=!1}return(i=o).forEach(L=>{L()}),v}function y(v){if(typeof v!="function")throw new Error(ne(10));n=v,p({type:un.REPLACE})}function b(){let v=d;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(ne(11));function L(){let C=A;C.next&&C.next(u())}return L(),{unsubscribe:v(L)}},[Wo](){return this}}}return p({type:un.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:y,[Wo]:b}}function Ou(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:un.INIT})>"u")throw new Error(ne(12));if(typeof r(void 0,{type:un.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ne(13))})}function Ko(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let n=Object.keys(r),s,i;try{Ou(r)}catch(o){i=o}return function(a={},l){if(i)throw i;let c=!1,u={};for(let d=0;d<n.length;d++){let p=n[d],y=r[p],b=a[p],E=y(b,l);if(typeof E>"u"){let v=l&&l.type;throw new Error(ne(14))}u[p]=E,c=c||E!==b}return c=c||n.length!==Object.keys(a).length,c?u:a}}function wr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Go(...e){return t=>(r,n)=>{let s=t(r,n),i=()=>{throw new Error(ne(15))},o={getState:s.getState,dispatch:(l,...c)=>i(l,...c)},a=e.map(l=>l(o));return i=wr(...a)(s.dispatch),{...s,dispatch:i}}}function qo(e){return dn(e)&&"type"in e&&typeof e.type=="string"}var na=Symbol.for("immer-nothing"),Yo=Symbol.for("immer-draftable"),ae=Symbol.for("immer-state");function Pe(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ve=Object,rr=ve.getPrototypeOf,mn="constructor",Sn="prototype",Ti="configurable",yn="enumerable",fn="writable",Or="value",We=e=>!!e&&!!e[ae];function be(e){return e?ia(e)||An(e)||!!e[Yo]||!!e[mn]?.[Yo]||_n(e)||Cn(e):!1}var Tu=ve[Sn][mn].toString(),Xo=new WeakMap;function ia(e){if(!e||!Ii(e))return!1;let t=rr(e);if(t===null||t===ve[Sn])return!0;let r=ve.hasOwnProperty.call(t,mn)&&t[mn];if(r===Object)return!0;if(!tr(r))return!1;let n=Xo.get(r);return n===void 0&&(n=Function.toString.call(r),Xo.set(r,n)),n===Tu}function En(e,t,r=!0){Lr(e)===0?(r?Reflect.ownKeys(e):ve.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((n,s)=>t(s,n,e))}function Lr(e){let t=e[ae];return t?t.type_:An(e)?1:_n(e)?2:Cn(e)?3:0}var Ci=(e,t,r=Lr(e))=>r===2?e.has(t):ve[Sn].hasOwnProperty.call(e,t),Ri=(e,t,r=Lr(e))=>r===2?e.get(t):e[t],gn=(e,t,r,n=Lr(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function Ru(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var An=Array.isArray,_n=e=>e instanceof Map,Cn=e=>e instanceof Set,Ii=e=>typeof e=="object",tr=e=>typeof e=="function",wi=e=>typeof e=="boolean";function Lu(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Qe=e=>e.copy_||e.base_;var $i=e=>e.modified_?e.copy_:e.base_;function Li(e,t){if(_n(e))return new Map(e);if(Cn(e))return new Set(e);if(An(e))return Array[Sn].slice.call(e);let r=ia(e);if(t===!0||t==="class_only"&&!r){let n=ve.getOwnPropertyDescriptors(e);delete n[ae];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){let o=s[i],a=n[o];a[fn]===!1&&(a[fn]=!0,a[Ti]=!0),(a.get||a.set)&&(n[o]={[Ti]:!0,[fn]:!0,[yn]:a[yn],[Or]:e[o]})}return ve.create(rr(e),n)}else{let n=rr(e);if(n!==null&&r)return{...e};let s=ve.create(n);return ve.assign(s,e)}}function Ui(e,t=!1){return wn(e)||We(e)||!be(e)||(Lr(e)>1&&ve.defineProperties(e,{set:pn,add:pn,clear:pn,delete:pn}),ve.freeze(e),t&&En(e,(r,n)=>{Ui(n,!0)},!1)),e}function ku(){Pe(2)}var pn={[Or]:ku};function wn(e){return e===null||!Ii(e)?!0:ve.isFrozen(e)}var vn="MapSet",ki="Patches",Jo="ArrayMethods",sa={};function wt(e){let t=sa[e];return t||Pe(0,e),t}var Zo=e=>!!sa[e];var Tr,oa=()=>Tr,Nu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Zo(vn)?wt(vn):void 0,arrayMethodsPlugin_:Zo(Jo)?wt(Jo):void 0});function Qo(e,t){t&&(e.patchPlugin_=wt(ki),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ni(e){Pi(e),e.drafts_.forEach(Pu),e.drafts_=null}function Pi(e){e===Tr&&(Tr=e.parent_)}var ea=e=>Tr=Nu(Tr,e);function Pu(e){let t=e[ae];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ta(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[ae].modified_&&(Ni(t),Pe(4)),be(e)&&(e=ra(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[ae].base_,e,t)}else e=ra(t,r);return Du(t,e,!0),Ni(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==na?e:void 0}function ra(e,t){if(wn(t))return t;let r=t[ae];if(!r)return bn(t,e.handledSet_,e);if(!On(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);ca(r,e)}return r.copy_}function Du(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ui(t,r)}function aa(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var On=(e,t)=>e.scope_===t,Mu=[];function la(e,t,r,n){let s=Qe(e),i=e.type_;if(n!==void 0&&Ri(s,n,i)===t){gn(s,n,r,i);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;En(s,(l,c)=>{if(We(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=e.draftLocations_.get(t)??Mu;for(let a of o)gn(s,a,r,i)}function Iu(e,t,r){e.callbacks_.push(function(s){let i=t;if(!i||!On(i,s))return;s.mapSetPlugin_?.fixSetContents(i);let o=$i(i);la(e,i.draft_??i,o,r),ca(i,s)})}function ca(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let s=n.getPath(e);s&&n.generatePatches_(e,s,t)}aa(e)}}function $u(e,t,r){let{scope_:n}=e;if(We(r)){let s=r[ae];On(s,n)&&s.callbacks_.push(function(){hn(e);let o=$i(s);la(e,r,o,t)})}else be(r)&&e.callbacks_.push(function(){let i=Qe(e);e.type_===3?i.has(r)&&bn(r,n.handledSet_,n):Ri(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&bn(Ri(e.copy_,t,e.type_),n.handledSet_,n)})}function bn(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||We(e)||t.has(e)||!be(e)||wn(e)||(t.add(e),En(e,(n,s)=>{if(We(s)){let i=s[ae];if(On(i,r)){let o=$i(i);gn(e,n,o,e.type_),aa(i)}}else be(s)&&bn(s,t,r)})),e}function Uu(e,t){let r=An(e),n={type_:r?1:0,scope_:t?t.scope_:oa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=n,i=xn;r&&(s=[n],i=Rr);let{revoke:o,proxy:a}=Proxy.revocable(s,i);return n.draft_=a,n.revoke_=o,[a,n]}var xn={get(e,t){if(t===ae)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let s=Qe(e);if(!Ci(s,t,e.type_))return Hu(e,s,t);let i=s[t];if(e.finalized_||!be(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Lu(t))return i;if(i===Oi(e.base_,t)||Bu(e,t,i)){hn(e);let o=e.type_===1?+t:t,a=Mi(e.scope_,i,e,o);return e.copy_[o]=a}return i},has(e,t){return t in Qe(e)},ownKeys(e){return Reflect.ownKeys(Qe(e))},set(e,t,r){let n=ua(Qe(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let s=Oi(Qe(e),t),i=s?.[ae];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(Ru(r,s)&&(r!==void 0||Ci(e.base_,t,e.type_)))return!0;hn(e),Di(e)}return e.copy_[t]===r&&(r!==void 0||Ci(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),$u(e,t,r)),!0},deleteProperty(e,t){return hn(e),Oi(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Di(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Qe(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[fn]:!0,[Ti]:e.type_!==1||t!=="length",[yn]:n[yn],[Or]:r[t]}},defineProperty(){Pe(11)},getPrototypeOf(e){return rr(e.base_)},setPrototypeOf(){Pe(12)}},Rr={};for(let e in xn){let t=xn[e];Rr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Rr.deleteProperty=function(e,t){return Rr.set.call(this,e,t,void 0)};Rr.set=function(e,t,r){return xn.set.call(this,e[0],t,r,e[0])};function Oi(e,t){let r=e[ae];return(r?Qe(r):e)[t]}function Bu(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!be(r)||r[ae]?!1:e.baseRefs_.has(r)}function Hu(e,t,r){let n=ua(t,r);return n?Or in n?n[Or]:n.get?.call(e.draft_):void 0}function ua(e,t){if(!(t in e))return;let r=rr(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=rr(r)}}function Di(e){e.modified_||(e.modified_=!0,e.parent_&&Di(e.parent_))}function hn(e){e.copy_||(e.assigned_=new Map,e.copy_=Li(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Fu=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(tr(t)&&!tr(r)){let i=r;r=t;let o=this;return function(l=i,...c){return o.produce(l,u=>r.call(this,u,...c))}}tr(r)||Pe(6),n!==void 0&&!tr(n)&&Pe(7);let s;if(be(t)){let i=ea(this),o=Mi(i,t,void 0),a=!0;try{s=r(o),a=!1}finally{a?Ni(i):Pi(i)}return Qo(i,n),ta(s,i)}else if(!t||!Ii(t)){if(s=r(t),s===void 0&&(s=t),s===na&&(s=void 0),this.autoFreeze_&&Ui(s,!0),n){let i=[],o=[];wt(ki).generateReplacementPatches_(t,s,{patches_:i,inversePatches_:o}),n(i,o)}return s}else Pe(1,t)},this.produceWithPatches=(t,r)=>{if(tr(t))return(o,...a)=>this.produceWithPatches(o,l=>t(l,...a));let n,s;return[this.produce(t,r,(o,a)=>{n=o,s=a}),n,s]},wi(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),wi(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),wi(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){be(e)||Pe(8),We(e)&&(e=da(e));let t=ea(this),r=Mi(t,e,void 0);return r[ae].isManual_=!0,Pi(t),r}finishDraft(e,t){let r=e&&e[ae];(!r||!r.isManual_)&&Pe(9);let{scope_:n}=r;return Qo(n,t),ta(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));let n=wt(ki).applyPatches_;return We(e)?n(e,t):this.produce(e,s=>n(s,t))}};function Mi(e,t,r,n){let[s,i]=_n(t)?wt(vn).proxyMap_(t,r):Cn(t)?wt(vn).proxySet_(t,r):Uu(t,r);return(r?.scope_??oa()).drafts_.push(s),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?Iu(r,i,n):i.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:c}=l;i.modified_&&c&&c.generatePatches_(i,[],l)}),s}function da(e){return We(e)||Pe(10,e),pa(e)}function pa(e){if(!be(e)||wn(e))return e;let t=e[ae],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Li(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Li(e,!0);return En(r,(s,i)=>{gn(r,s,pa(i))},n),t&&(t.finalized_=!1),r}var Vu=globalThis.Iterator,hf=typeof Vu?.from=="function";var zu=new Fu,Bi=zu.produce;function fa(e){return({dispatch:r,getState:n})=>s=>i=>typeof i=="function"?i(r,n,e):s(i)}var ha=fa(),ma=fa;var ju=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?wr:wr.apply(null,arguments)},Sf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Wu=e=>e&&typeof e.match=="function";function ct(e,t){function r(...n){if(t){let s=t(...n);if(!s)throw new Error(et(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>qo(n)&&n.type===e,r}var xa=class kr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,kr.prototype)}static get[Symbol.species](){return kr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new kr(...t[0].concat(this)):new kr(...t.concat(this))}};function ya(e){return be(e)?Bi(e,()=>{}):e}function Tn(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Ku(e){return typeof e=="boolean"}var Gu=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{},o=new xa;return r&&(Ku(r)?o.push(ha):o.push(ma(r.extraArgument))),o},qu="RTK_autoBatch";var ga=e=>t=>{setTimeout(t,e)},Yu=(e,t)=>r=>{let n=!1,s=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(o),r())},i=e(s),o=setTimeout(s,t)},Xu=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),s=!0,i=!1,o=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Yu(window.requestAnimationFrame,100):ga(10):e.type==="callback"?e.queueNotification:ga(e.timeout),c=()=>{o=!1,i&&(i=!1,a.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let d=()=>s&&u(),p=n.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return s=!u?.meta?.[qu],i=!s,i&&(o||(o=!0,l(c))),n.dispatch(u)}finally{s=!0}}})},Ju=e=>function(r){let{autoBatch:n=!0}=r??{},s=new xa(e);return n&&s.push(Xu(typeof n=="object"?n:void 0)),s};function Sa(e){let t=Gu(),{reducer:r=void 0,middleware:n,devTools:s=!0,duplicateMiddlewareCheck:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(dn(r))l=Ko(r);else throw new Error(et(1));let c;typeof n=="function"?c=n(t):c=t();let u=wr;s&&(u=ju({trace:!1,...typeof s=="object"&&s}));let d=Go(...c),p=Ju(d),y=typeof a=="function"?a(p):p(),b=u(...y);return _i(l,o,b)}function Ea(e){let t={},r=[],n,s={addCase(i,o){let a=typeof i=="string"?i:i.type;if(!a)throw new Error(et(28));if(a in t)throw new Error(et(29));return t[a]=o,s},addAsyncThunk(i,o){return o.pending&&(t[i.pending.type]=o.pending),o.rejected&&(t[i.rejected.type]=o.rejected),o.fulfilled&&(t[i.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:i.settled,reducer:o.settled}),s},addMatcher(i,o){return r.push({matcher:i,reducer:o}),s},addDefaultCase(i){return n=i,s}};return e(s),[t,r,n]}function Zu(e){return typeof e=="function"}function Qu(e,t){let[r,n,s]=Ea(t),i;if(Zu(e))i=()=>ya(e());else{let a=ya(e);i=()=>a}function o(a=i(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[s]),c.reduce((u,d)=>{if(d)if(We(u)){let y=d(u,l);return y===void 0?u:y}else{if(be(u))return Bi(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},a)}return o.getInitialState=i,o}var ed=(e,t)=>Wu(e)?e.match(t):e(t);function td(...e){return t=>e.some(r=>ed(r,t))}var rd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nd=(e=21)=>{let t="",r=e;for(;r--;)t+=rd[Math.random()*64|0];return t},id=["name","message","stack","code"],Hi=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},va=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},sd=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of id)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},ba="External signal was aborted",od=(()=>{function e(t,r,n){let s=ct(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),i=ct(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=ct(t+"/rejected",(l,c,u,d,p)=>({payload:d,error:(n&&n.serializeError||sd)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let y=n?.idGenerator?n.idGenerator(l):nd(),b=new AbortController,E,v;function A(x){v=x,b.abort()}c&&(c.aborted?A(ba):c.addEventListener("abort",()=>A(ba),{once:!0}));let L=(async function(){let x;try{let T=n?.condition?.(l,{getState:d,extra:p});if(ld(T)&&(T=await T),T===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let z=new Promise(($,j)=>{E=()=>{j({name:"AbortError",message:v||"Aborted"})},b.signal.addEventListener("abort",E,{once:!0})});u(i(y,l,n?.getPendingMeta?.({requestId:y,arg:l},{getState:d,extra:p}))),x=await Promise.race([z,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:y,signal:b.signal,abort:A,rejectWithValue:(($,j)=>new Hi($,j)),fulfillWithValue:(($,j)=>new va($,j))})).then($=>{if($ instanceof Hi)throw $;return $ instanceof va?s($.payload,y,l,$.meta):s($,y,l)})])}catch(T){x=T instanceof Hi?o(null,y,l,T.payload,T.meta):o(T,y,l)}finally{E&&b.signal.removeEventListener("abort",E)}return n&&!n.dispatchConditionRejection&&o.match(x)&&x.meta.condition||u(x),x})();return Object.assign(L,{abort:A,requestId:y,arg:l,unwrap(){return L.then(ad)}})}}return Object.assign(a,{pending:i,rejected:o,fulfilled:s,settled:td(o,s),typePrefix:t})}return e.withTypes=()=>e,e})();function ad(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ld(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Aa=Symbol.for("rtk-slice-createasyncthunk"),Af={[Aa]:od};function cd(e,t){return`${e}/${t}`}function ud({creators:e}={}){let t=e?.asyncThunk?.[Aa];return function(n){let{name:s,reducerPath:i=s}=n;if(!s)throw new Error(et(11));typeof process<"u";let o=(typeof n.reducers=="function"?n.reducers(pd()):n.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(x,C){let T=typeof x=="string"?x:x.type;if(!T)throw new Error(et(12));if(T in l.sliceCaseReducersByType)throw new Error(et(13));return l.sliceCaseReducersByType[T]=C,c},addMatcher(x,C){return l.sliceMatchers.push({matcher:x,reducer:C}),c},exposeAction(x,C){return l.actionCreators[x]=C,c},exposeCaseReducer(x,C){return l.sliceCaseReducersByName[x]=C,c}};a.forEach(x=>{let C=o[x],T={reducerName:x,type:cd(s,x),createNotation:typeof n.reducers=="function"};hd(C)?yd(T,C,c,t):fd(T,C,c)});function u(){let[x={},C=[],T=void 0]=typeof n.extraReducers=="function"?Ea(n.extraReducers):[n.extraReducers],z={...x,...l.sliceCaseReducersByType};return Qu(n.initialState,$=>{for(let j in z)$.addCase(j,z[j]);for(let j of l.sliceMatchers)$.addMatcher(j.matcher,j.reducer);for(let j of C)$.addMatcher(j.matcher,j.reducer);T&&$.addDefaultCase(T)})}let d=x=>x,p=new Map,y=new WeakMap,b;function E(x,C){return b||(b=u()),b(x,C)}function v(){return b||(b=u()),b.getInitialState()}function A(x,C=!1){function T($){let j=$[x];return typeof j>"u"&&C&&(j=Tn(y,T,v)),j}function z($=d){let j=Tn(p,C,()=>new WeakMap);return Tn(j,$,()=>{let cr={};for(let[_e,gt]of Object.entries(n.selectors??{}))cr[_e]=dd(gt,$,()=>Tn(y,$,v),C);return cr})}return{reducerPath:x,getSelectors:z,get selectors(){return z(T)},selectSlice:T}}let L={name:s,reducer:E,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...A(i),injectInto(x,{reducerPath:C,...T}={}){let z=C??i;return x.inject({reducerPath:z,reducer:E},T),{...L,...A(z,!0)}}};return L}}function dd(e,t,r,n){function s(i,...o){let a=t(i);return typeof a>"u"&&n&&(a=r()),e(a,...o)}return s.unwrapped=e,s}var _a=ud();function pd(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function fd({type:e,reducerName:t,createNotation:r},n,s){let i,o;if("reducer"in n){if(r&&!md(n))throw new Error(et(17));i=n.reducer,o=n.prepare}else i=n;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?ct(e,o):ct(e))}function hd(e){return e._reducerDefinitionType==="asyncThunk"}function md(e){return e._reducerDefinitionType==="reducerWithPrepare"}function yd({type:e,reducerName:t},r,n,s){if(!s)throw new Error(et(18));let{payloadCreator:i,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,d=s(e,i,u);n.exposeAction(t,d),o&&n.addCase(d.fulfilled,o),a&&n.addCase(d.pending,a),l&&n.addCase(d.rejected,l),c&&n.addMatcher(d.settled,c),n.exposeCaseReducer(t,{fulfilled:o||Rn,pending:a||Rn,rejected:l||Rn,settled:c||Rn})}function Rn(){}var Ca="listener",wa="completed",Oa="cancelled",_f=`task-${Oa}`,Cf=`task-${wa}`,wf=`${Ca}-${Oa}`,Of=`${Ca}-${wa}`;var{assign:Ta}=Object;var Fi="listenerMiddleware";var gd=Ta(ct(`${Fi}/add`),{withTypes:()=>gd}),Tf=ct(`${Fi}/removeAll`),vd=Ta(ct(`${Fi}/remove`),{withTypes:()=>vd});function et(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var bd=nn(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,s){this.eventBus.addEventListener(r,n,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,s){this.eventBus.removeEventListener(r,n,s)}}}),Ln=class extends bd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ra=class e extends Ln{static get(t){var r;let n=typeof t=="string"?t:t.name,s=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(cn(i))return i;if(s==null)return;let o=_a({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=Sa({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Ar(o.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 o.reducer(l,c)}});return window.ftReduxStores[s.name]=new e(o,a,s.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new sn,this.injectInto=(i,o)=>this.reduxSlice.injectInto(i,o),this.selectSlice=i=>this.reduxSlice.selectSlice(i);let s=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,o,a)=>{let l=o,c=i[l];return c?(...u)=>{let d=c(...u.map(s));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Zt(p,u)||this.setState({[d]:s(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var kn=class{static format(t,r,n,s,i){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,s,!!i)):this.getIntlDateTime(t,r,n,s,!!i)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,s,i){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return i?l:s?`${a} ${l}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Nn=f(S()),xd="ft-app-info",nr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};nr.eventName="authentication-change";var Nr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Nr.eventName="ui-locale-changed";var Sd={session:(e,t)=>{(0,Nn.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new nr(t.payload)),0))}},w=Nn.FtReduxStore.get({name:xd,reducers:Sd,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var La=f(S()),Pn=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},ih=(0,La.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var s,i;return((i=(s=this.metadataDescriptors.find(a=>a.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?a=>kn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Pn([(0,Vi.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Pn([(0,Vi.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Pn([Ei({store:w.name,selector:r=>{var n,s;return(s=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&s!==void 0?s:[]}})],t.prototype,"metadataDescriptors",void 0),Pn([Ei({store:w.name})],t.prototype,"uiLocale",void 0),t});var ka;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(ka||(ka={}));var Na;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Na||(Na={}));var Pa;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Pa||(Pa={}));var Da;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Da||(Da={}));var Ma;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ma||(Ma={}));var Ia;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ia||(Ia={}));var $a;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})($a||($a={}));var Ua;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Ua||(Ua={}));var Ba;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Ba||(Ba={}));var Ha;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Ha||(Ha={}));var Fa;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(Fa||(Fa={}));var Va;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Va||(Va={}));var za;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(za||(za={}));var ja;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ja||(ja={}));var Wa;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Wa||(Wa={}));var Ka;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Ka||(Ka={}));var Ga;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Ga||(Ga={}));var qa;(function(e){e.ASC="ASC",e.DESC="DESC"})(qa||(qa={}));var Ya;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Ya||(Ya={}));var Xa;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Xa||(Xa={}));var Ja;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Ja||(Ja={}));var Za;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Za||(Za={}));var Qa;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Qa||(Qa={}));var el;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(el||(el={}));var tl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(tl||(tl={}));var rl;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(rl||(rl={}));var nl;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(nl||(nl={}));var Y;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(Y||(Y={}));var we;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(we||(we={}));var il;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(il||(il={}));var sl;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(sl||(sl={}));var ol;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ol||(ol={}));var al;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(al||(al={}));var ll;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(ll||(ll={}));var cl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(cl||(cl={}));var ul;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ul||(ul={}));var dl;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(dl||(dl={}));var pl;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(pl||(pl={}));var fl;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(fl||(fl={}));var hl;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(hl||(hl={}));var ml;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(ml||(ml={}));var Ed={[Y.PERSONAL_BOOK_SHARE_USER]:[Y.PERSONAL_BOOK_USER],[Y.HTML_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.PDF_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.KHUB_ADMIN]:[Y.CONTENT_PUBLISHER],[Y.ADMIN]:[Y.KHUB_ADMIN,Y.USERS_ADMIN,Y.PORTAL_ADMIN,Y.BEHAVIOR_DATA_USER],[Y.GENERATIVE_AI_EXPORT_USER]:[Y.GENERATIVE_AI_USER]};function yl(e,t){return e===t||(Ed[e]??[]).some(r=>yl(r,t))}function gl(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>yl(n,t))}var Un=f(S());var zi=f(S());var Ot=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=w.getState(),s=t??n;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let s=w.subscribe(()=>{n=e.get(t),n&&(s(),r(n))})}})}};var ir=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Ot.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ot.await()}};var xe=class extends ir{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new zi.CacheRegistry,this.cache=t?s.commonCache:new zi.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Dn=class extends xe{async listMySearches(){let{session:t}=w.getState();return gl(t,Y.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Mn=class extends xe{async listMyBookmarks(){let t=w.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var In=class extends xe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=w.getState().session;return!!t?.sessionAuthenticated}};var $n=class extends xe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=w.getState().session;return!!t?.sessionAuthenticated}};var Ad="ft-user-assets",_d={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(we).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:s}=t.payload;Wi(e,r,[...ji(e,r),s]),vl(e,r,1,n),bl(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Wi(e,r,ji(e,r).map(s=>s.id===n.id?n:s)),bl(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:s}=t.payload;Wi(e,r,ji(e,r).filter(i=>i.id!==s)),vl(e,r,-1,n)}},xl={[we.SEARCHES]:"savedSearches",[we.BOOKMARKS]:"bookmarks",[we.BOOKS]:void 0,[we.COLLECTIONS]:void 0},ji=(e,t)=>{var r;let n=xl[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Wi=(e,t,r)=>{let n=xl[t];n&&(e[n]=r)},vl=(e,t,r,n)=>{let s=e.assetCounts.allAsset[t];if(s!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,s+r),t===we.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},bl=(e,t)=>{let r=e.assetLabels.map(s=>s.title),n=t.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));e.assetLabels.push(...n)},ce=Un.FtReduxStore.get({name:Ad,reducers:_d,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(we).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ki=class{constructor(t=new In,r=new $n){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Mn,this.savedSearchesService=new Dn,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,Un.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ce.actions.clearAssetCount(),ce.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ce.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ce.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ce.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ce.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&ce.getState().assetCounts.allAsset[t]!==r.count&&ce.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&ce.getState().assetCounts.bookmarkByMap[t]!==r.count&&ce.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(ce.getState().assetCounts.bookmarkByMap).length!==0;t===we.BOOKMARKS&&r&&ce.actions.clearBookmarkCountByMap(),ce.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ce.actions.bookmarks(r)}}},Cd=new Ki;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Cd);var Gi=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Gi;var Oe=f(S());var Sl,sr=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},wd=Symbol("clearAfterUnitTest"),Bn=class extends(0,Oe.withEventBus)(xe){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Sl]=()=>{this.defaultMessages={},this.cache=new Oe.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=w.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let s={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,Oe.deepEqual)(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var s;let i=t.toLowerCase(),o=this.resolveContext(i);return new Oe.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},o).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(s){!(s instanceof Oe.CanceledPromiseError)&&r&&console.error(s)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var s;return(s=this.listeners[t])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new sr({loadedContexts:t})),this.dispatchEvent(new sr({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new sr({loadedContexts:[t]})),this.dispatchEvent(new sr({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Oe.delay)(0).then(()=>n()).catch(()=>null)))}};Sl=wd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Bn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Bn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Pr=window.FluidTopicsI18nService,qi=window.FluidTopicsCustomI18nService;var El=f(S()),Yi=class{highlightHtml(t,r,n){(0,El.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Yi;var Al=f(S());var Xi=class{isDate(t){var r,n,s,i;return(i=(s=((n=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===t))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1}format(t,r){var n,s,i,o;if(t==null)return"";try{return Al.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:w.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new Xi;var _l=f(S());var Dr=class{static get(t,r){var n,s,i,o;let a=w.getState(),{lang:l,region:c}=(i=(s=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new _l.SearchPlaceConverter(a.baseUrl,t??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${c}`)}};var Ji=class{urlToSearchRequest(t){return Dr.get().parse(t)}searchRequestToUrl(t){return Dr.get().serialize(t)}};window.FluidTopicsUrlService=new Ji;var tt=f(S());var Tt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Tt.eventName="change";var Zi=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Cl=new Zi;var Hn=class e extends tt.WithEventBus{static build(){return new e(window.history,Cl,()=>window.location,!1)}constructor(t,r,n,s){var i,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,tt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Tt(this.currentItem())),0)}installProxies(){let t=r=>(n,s,[i,o,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...i,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(s,[c,o,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Tt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Tt.eventName,t)}currentItem(){return(0,tt.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,tt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,tt.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,tt.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let s=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(s=i),i++;return s}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let s=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Hn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var wl=f(k());var Ol=wl.css`
|
|
261
|
+
`;var Ll=f(k()),ue=f(K()),kt=f(S());var Rt=f(S());function Tl(e,t){let{authenticationRequired:r,session:n}=w.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var Fn=class extends ir{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Qi=class e extends Rt.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new Rt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Fn,this.cleanSessionDebouncer=new Rt.Debouncer,this.reloadDebouncer=new Rt.Debouncer(500),this.apiProvider=r??(()=>Ot.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(nr.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>Tl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}reloadConfiguration(){var t;(t=this.cache)===null||t===void 0||t.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Nr(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setNoCustomCode(t){this.store.actions.noCustomCode(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},Rl=Qi.build();var Lt=class extends Event{constructor(t,r,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=s??!1}};var Mr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:s,callbackRef:i}of n){let o=s.deref(),a=i.deref();o===void 0||a===void 0||o.dispatchEvent(new Lt(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,s=this.pendingContextRequests.get(t.context);s===void 0&&this.pendingContextRequests.set(t.context,s={callbacks:new WeakMap,requests:[]});let i=s.callbacks.get(r);i===void 0&&s.callbacks.set(r,i=new WeakSet),i.has(n)||(i.add(n),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var Q=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},F=class extends kt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Rl,this.contextRoot=new Mr}render(){return Ll.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(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>
|
|
263
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Pr.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};F.elementDefinitions={};F.styles=Ol;Q([(0,ue.property)()],F.prototype,"baseUrl",void 0);Q([(0,ue.property)()],F.prototype,"tenantId",void 0);Q([(0,ue.property)()],F.prototype,"apiIntegrationIdentifier",void 0);Q([(0,ue.property)()],F.prototype,"apiIntegrationAppVersion",void 0);Q([(0,ue.property)()],F.prototype,"uiLocale",void 0);Q([(0,kt.jsonProperty)(null)],F.prototype,"availableUiLocales",void 0);Q([(0,kt.jsonProperty)(null)],F.prototype,"metadataConfiguration",void 0);Q([(0,ue.property)({type:Boolean})],F.prototype,"editorMode",void 0);Q([(0,ue.property)({type:Boolean})],F.prototype,"noCustom",void 0);Q([(0,ue.property)({type:Boolean})],F.prototype,"openExternalDocumentInNewTab",void 0);Q([(0,ue.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],F.prototype,"noCustomComponent",void 0);Q([(0,ue.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],F.prototype,"noCustomCode",void 0);Q([(0,ue.property)({type:Boolean})],F.prototype,"withManualResources",void 0);Q([(0,ue.property)({type:Boolean})],F.prototype,"navigatorOnline",void 0);Q([(0,ue.property)({type:Boolean})],F.prototype,"forcedOffline",void 0);Q([(0,ue.property)({type:Boolean})],F.prototype,"authenticationRequired",void 0);Q([(0,kt.jsonProperty)([])],F.prototype,"messageContexts",void 0);Q([(0,kt.jsonProperty)(void 0)],F.prototype,"session",void 0);var Nl=f(S());var kl={"ft-app-context":F};(0,Nl.customElements)(kl);var Pl=f(K());var es=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,n]=t.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},or=new es;var Rd=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},$r=Symbol("i18nAttributes"),Dl=Symbol("i18nListAttributes"),Ml=Symbol("i18nProperties"),Vn=Symbol("i18nContexts"),Ir=Symbol("i18nUnsubs"),Wn=(0,ar.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?qi:Pr}i18n(i){let{context:o,key:a,message:l}=i,{custom:c,args:u,argsProvider:d}=i;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(o,a,...p)}return l}async awaitI18n(i){let{context:o,custom:a}=i;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(i)}customI18n(i,o){if(or.isI18nKey(i)){let[a,l]=i.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((o,a,l)=>i.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===i}),this.updateI18nProperties(o=>o.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var o,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&i(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(o=this[$r])===null||o===void 0||o.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Dl])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(y=>c(u,d,y))})}updateI18nProperties(i){var o;(o=this[Ml])===null||o===void 0||o.forEach((a,l)=>{i(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(i,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,o,a)}addI18nContext(i,o,a){let l=(typeof i=="string"?i:i.name).toLowerCase();a=typeof i=="string"?a:i.custom,this[Vn].set(l,{isCustomContext:a}),this[Ir].has(l)||this[Ir].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(i){return this[Vn].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Vn].forEach((i,o)=>this.addI18nContext(o,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ir].forEach(i=>i()),this[Ir].clear()}}return t=Vn,r=Ir,Rd([(0,Pl.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),zn=class extends Wn(ar.FtLitElement){},jn=class extends Wn(ar.FtLitElementRedux){};var Il=f(S());var ts=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?or.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Ld=new ts;var $l=(e,t)=>(r,n)=>{var s;r.constructor.createProperty(n,{type:Object,hasChanged:Il.hasChanged,converter:or,...t}),r[$r]=(s=r[$r])!==null&&s!==void 0?s:new Map,r[$r].set(n,e??{})};var Ul=f(k());var Bl=Ul.css`
|
|
264
264
|
`;var Kn=f(k()),Gn=f(K()),qn=f(S());var Ur=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},De=class extends jn{constructor(){super(),this.editorMode=!1,this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Kn.nothing:Kn.html`
|
|
265
265
|
<span class="ft-i18n">
|
|
266
266
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
@@ -274,13 +274,13 @@
|
|
|
274
274
|
popover="manual">
|
|
275
275
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
276
276
|
<slot name="text"></slot>
|
|
277
|
-
<ft-typography variant="${
|
|
277
|
+
<ft-typography variant="${te.caption}" ?hidden=${!(!((t=this.text)===null||t===void 0)&&t.message)}>
|
|
278
278
|
${(r=this.text)===null||r===void 0?void 0:r.message}
|
|
279
279
|
</ft-typography>
|
|
280
280
|
</div>
|
|
281
281
|
</div>
|
|
282
282
|
</div>
|
|
283
|
-
`}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let s=this.text;this.text={message:t},await this.show(r),this.text=s,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&
|
|
283
|
+
`}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let s=this.text;this.text={message:t},await this.show(r),this.text=s,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&No(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Te.designSystemVariables.transitionDuration}, left ${Te.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,Te.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};J.elementDefinitions={"ft-typography":X};J.styles=no;Me([$l()],J.prototype,"text",void 0);Me([(0,Re.property)({type:Boolean})],J.prototype,"manual",void 0);Me([(0,Re.property)({type:Boolean})],J.prototype,"inline",void 0);Me([(0,Te.numberProperty)()],J.prototype,"delay",void 0);Me([(0,Re.property)()],J.prototype,"position",void 0);Me([(0,Te.jsonProperty)([])],J.prototype,"ignoreMatchingElements",void 0);Me([(0,Re.queryAssignedNodes)()],J.prototype,"slotNodes",void 0);Me([(0,Re.query)(".ft-tooltip--container")],J.prototype,"container",void 0);Me([(0,Re.query)(".ft-tooltip")],J.prototype,"tooltip",void 0);Me([(0,Re.query)(".ft-tooltip--content")],J.prototype,"tooltipContent",void 0);Me([(0,Re.state)()],J.prototype,"visible",void 0);var jl=f(S());var zl={"ft-tooltip":J};(0,jl.customElements)(zl);var Wl=f(k()),$e=f(S()),Ie={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")},Kl=[Wl.css`
|
|
284
284
|
:host, i.ft-icon {
|
|
285
285
|
display: inline-flex;
|
|
286
286
|
align-items: center;
|
|
@@ -328,12 +328,12 @@
|
|
|
328
328
|
.ft-icon--material {
|
|
329
329
|
font-family: ${Ie.materialFontFamily}, "Material Icons", sans-serif;
|
|
330
330
|
}
|
|
331
|
-
`,$e.noTextSelect];var ut;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ut||(ut={}));var Br=f(k()),dt=f(K()),Yl=f(S()),Xl=f(ql());var Yn;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CIRCLE_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE="",e.TOPICS_SOLID="",e.PHOTO_FILM="",e.HYPHEN_SOLID="",e.CROSSHAIRS="",e.PERSON_CHALKBOARD="",e.CIRCLE_ARROW_DOWN_SLASH="",e.BOOK_OPEN_COVER="",e.LIGHTBULB="",e.MESSAGE_BOT_AGENTIC_SOLID="",e.CHART_LINE_USER="",e.SERVER_CIRCLE_ARROW_DOWN="",e.EYE="",e.SHARE="󨃱"})(Yn||(Yn={}));var h;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(h||(h={}));var
|
|
331
|
+
`,$e.noTextSelect];var ut;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ut||(ut={}));var Br=f(k()),dt=f(K()),Yl=f(S()),Xl=f(ql());var Yn;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CIRCLE_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE="",e.TOPICS_SOLID="",e.PHOTO_FILM="",e.HYPHEN_SOLID="",e.CROSSHAIRS="",e.PERSON_CHALKBOARD="",e.CIRCLE_ARROW_DOWN_SLASH="",e.BOOK_OPEN_COVER="",e.LIGHTBULB="",e.MESSAGE_BOT_AGENTIC_SOLID="",e.CHART_LINE_USER="",e.SERVER_CIRCLE_ARROW_DOWN="",e.EYE="",e.SHARE="󨃱"})(Yn||(Yn={}));var h;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(h||(h={}));var Rg=new Map([...["abw"].map(e=>[e,h.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,h.AUDIO]),...["avi"].map(e=>[e,h.AVI]),...["chm","xhs"].map(e=>[e,h.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,h.CODE]),...["csv"].map(e=>[e,h.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,h.DITA]),...["epub"].map(e=>[e,h.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,h.EXCEL]),...["flac"].map(e=>[e,h.FLAC]),...["gif"].map(e=>[e,h.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,h.GZIP]),...["html","htm","xhtml"].map(e=>[e,h.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,h.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,h.JPEG]),...["json"].map(e=>[e,h.JSON]),...["m4a","m4p"].map(e=>[e,h.M4A]),...["mov","qt"].map(e=>[e,h.MOV]),...["mp3"].map(e=>[e,h.MP3]),...["mp4","m4v"].map(e=>[e,h.MP4]),...["ogg","oga"].map(e=>[e,h.OGG]),...["pdf","ps"].map(e=>[e,h.PDF]),...["png"].map(e=>[e,h.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,h.POWERPOINT]),...["rar"].map(e=>[e,h.RAR]),...["stp"].map(e=>[e,h.STP]),...["txt","rtf","md","mdown"].map(e=>[e,h.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,h.VIDEO]),...["wav"].map(e=>[e,h.WAV]),...["wma"].map(e=>[e,h.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,h.WORD]),...["xml","xsl","rdf"].map(e=>[e,h.XML]),...["yaml","yml","x-yaml"].map(e=>[e,h.YAML]),...["zip"].map(e=>[e,h.ZIP])]);var Lg={[h.ABW]:"#91ABC6",[h.AUDIO]:"#1795E3",[h.AVI]:"#E63324",[h.CHM]:"#71C3EB",[h.CODE]:"#71C3EB",[h.CSV]:"#1F7345",[h.DITA]:"#71C3EB",[h.EPUB]:"#85B926",[h.EXCEL]:"#1F7345",[h.FLAC]:"#1795E3",[h.GIF]:"#59B031",[h.GZIP]:"#F8AB36",[h.HTML]:"#71C3EB",[h.IMAGE]:"#59B031",[h.JPEG]:"#59B031",[h.JSON]:"#71C3EB",[h.M4A]:"#1795E3",[h.MOV]:"#E63324",[h.MP3]:"#1795E3",[h.MP4]:"#E63324",[h.OGG]:"#1795E3",[h.PDF]:"#E44948",[h.PNG]:"#59B031",[h.POWERPOINT]:"#B54A2B",[h.RAR]:"#F8AB36",[h.STP]:"#3764B1",[h.TEXT]:"#3162AB",[h.UNKNOWN]:"#999999",[h.VIDEO]:"#E63324",[h.WAV]:"#1795E3",[h.WMA]:"#1795E3",[h.WORD]:"#3162AB",[h.XML]:"#71C3EB",[h.YAML]:"#71C3EB",[h.ZIP]:"#F8AB36"};var Hr=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},de=class extends Yl.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Br.nothing}render(){let t=this.variant&&Object.values(ut).includes(this.variant)?this.variant:ut.fluid_topics,r=t!==ut.material||!!this.value;return Br.html`
|
|
332
332
|
<i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
|
|
333
333
|
${(0,Xl.unsafeHTML)(this.resolvedIcon)}
|
|
334
334
|
<slot ?hidden=${r}></slot>
|
|
335
335
|
</i>
|
|
336
|
-
`}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.getTextContent();switch(this.variant){case ut.file_format:this.resolvedIcon=(t=h[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case ut.material:this.resolvedIcon=this.value||Br.nothing;break;default:this.resolvedIcon=(r=Yn[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};
|
|
336
|
+
`}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.getTextContent();switch(this.variant){case ut.file_format:this.resolvedIcon=(t=h[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case ut.material:this.resolvedIcon=this.value||Br.nothing;break;default:this.resolvedIcon=(r=Yn[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};de.elementDefinitions={};de.styles=Kl;Hr([(0,dt.property)()],de.prototype,"variant",void 0);Hr([(0,dt.property)()],de.prototype,"value",void 0);Hr([(0,dt.property)({reflect:!0,attribute:"aria-hidden"})],de.prototype,"ariaHidden",void 0);Hr([(0,dt.state)()],de.prototype,"resolvedIcon",void 0);Hr([(0,dt.query)("slot")],de.prototype,"slottedContent",void 0);var Zl=f(S());var Jl={"ft-icon":de};(0,Zl.customElements)(Jl);var Ql=f(k()),Fr=f(S()),Nt={color:Fr.FtCssVariableFactory.extend("--ft-loader-color","",Fr.designSystemVariables.colorPrimary),size:Fr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},ec=Ql.css`
|
|
337
337
|
:host {
|
|
338
338
|
line-height: 0;
|
|
339
339
|
}
|
|
@@ -342,8 +342,8 @@
|
|
|
342
342
|
display: inline-block;
|
|
343
343
|
position: relative;
|
|
344
344
|
|
|
345
|
-
width: ${
|
|
346
|
-
height: ${
|
|
345
|
+
width: ${Nt.size};
|
|
346
|
+
height: ${Nt.size};
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
.ft-loader div {
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
width: 25%;
|
|
353
353
|
height: 25%;
|
|
354
354
|
border-radius: 50%;
|
|
355
|
-
background: ${
|
|
355
|
+
background: ${Nt.color};
|
|
356
356
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
357
357
|
}
|
|
358
358
|
|
|
@@ -399,17 +399,17 @@
|
|
|
399
399
|
transform: translate(0, 0);
|
|
400
400
|
}
|
|
401
401
|
100% {
|
|
402
|
-
transform: translate(calc(0.35 * ${
|
|
402
|
+
transform: translate(calc(0.35 * ${Nt.size}), 0);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
`;var tc=f(k()),rc=f(S());var
|
|
405
|
+
`;var tc=f(k()),rc=f(S());var Pt=class extends rc.FtLitElement{render(){return tc.html`
|
|
406
406
|
<div class="ft-loader">
|
|
407
407
|
<div></div>
|
|
408
408
|
<div></div>
|
|
409
409
|
<div></div>
|
|
410
410
|
<div></div>
|
|
411
411
|
</div>
|
|
412
|
-
`}};
|
|
412
|
+
`}};Pt.styles=ec;var ic=f(S());var nc={"ft-loader":Pt};(0,ic.customElements)(nc);var pt=f(k()),Xn=f(qt()),P=f(K());var Vr=e=>e??G;var ac=f(k()),_=f(S());var sc=_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorPrimary),D={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorSurface),borderRadius:_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusL),color:sc,fontSize:_.FtCssVariableFactory.extend("--ft-button-font-size","",Ve.fontSize),iconSize:_.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:_.FtCssVariableFactory.extend("--ft-button-ripple-color","",sc),verticalPadding:_.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:_.FtCssVariableFactory.external(_.designSystemVariables.colorOpacityDisabled,"Design system")},oc=_.FtCssVariableFactory.extend("--ft-button-primary-color","",_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorOnPrimary)),rs={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-primary-background-color","",_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorPrimary)),color:oc,rippleColor:_.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",oc)},Ke={borderRadius:_.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusM)),verticalPadding:_.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},lc=ac.css`
|
|
413
413
|
:host {
|
|
414
414
|
display: inline-block;
|
|
415
415
|
max-width: 100%;
|
|
@@ -457,8 +457,8 @@
|
|
|
457
457
|
--button-internal-line-height: max(calc(${D.fontSize} + 2px), ${D.iconSize});
|
|
458
458
|
--button-internal-color: ${D.color};
|
|
459
459
|
${(0,_.setVariable)(Ie.size,D.iconSize)};
|
|
460
|
-
${(0,_.setVariable)(
|
|
461
|
-
${(0,_.setVariable)(
|
|
460
|
+
${(0,_.setVariable)(pe.color,D.rippleColor)};
|
|
461
|
+
${(0,_.setVariable)(pe.borderRadius,D.borderRadius)};
|
|
462
462
|
|
|
463
463
|
border-radius: ${D.borderRadius};
|
|
464
464
|
padding: ${D.verticalPadding} ${D.horizontalPadding};
|
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
.ft-button.ft-button--dense {
|
|
475
475
|
padding: ${Ke.verticalPadding} ${Ke.horizontalPadding};
|
|
476
476
|
border-radius: ${Ke.borderRadius};
|
|
477
|
-
${(0,_.setVariable)(
|
|
477
|
+
${(0,_.setVariable)(pe.borderRadius,Ke.borderRadius)};
|
|
478
478
|
}
|
|
479
479
|
|
|
480
480
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
@@ -501,7 +501,7 @@
|
|
|
501
501
|
.ft-button.ft-button--primary {
|
|
502
502
|
background-color: ${rs.backgroundColor};
|
|
503
503
|
--button-internal-color: ${rs.color};
|
|
504
|
-
${(0,_.setVariable)(
|
|
504
|
+
${(0,_.setVariable)(pe.color,rs.rippleColor)};
|
|
505
505
|
}
|
|
506
506
|
|
|
507
507
|
.ft-button--label {
|
|
@@ -543,8 +543,8 @@
|
|
|
543
543
|
}
|
|
544
544
|
|
|
545
545
|
ft-loader {
|
|
546
|
-
${(0,_.setVariable)(
|
|
547
|
-
${(0,_.setVariable)(
|
|
546
|
+
${(0,_.setVariable)(Nt.size,D.iconSize)};
|
|
547
|
+
${(0,_.setVariable)(Nt.color,"var(--button-internal-color)")};
|
|
548
548
|
}
|
|
549
549
|
`;var U=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},O=class e 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",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,n;let s={"ft-button--label":!0,"ft-safari-ellipsis-fix":Ge.isSafari,"ft-button--label-no-text":!this.hasTextContent},i=pt.html`
|
|
550
550
|
<ft-ripple part="ripple"
|
|
@@ -552,7 +552,7 @@
|
|
|
552
552
|
?activated=${this.activated}
|
|
553
553
|
></ft-ripple>
|
|
554
554
|
<ft-typography part="label"
|
|
555
|
-
variant="${
|
|
555
|
+
variant="${te.button}"
|
|
556
556
|
element="span"
|
|
557
557
|
class="${(0,Xn.classMap)(s)}">
|
|
558
558
|
<slot></slot>
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
588
588
|
`:pt.html`
|
|
589
589
|
<slot part="icon" name="icon"></slot>
|
|
590
|
-
`}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};O.elementDefinitions={"ft-ripple":
|
|
590
|
+
`}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};O.elementDefinitions={"ft-ripple":N,"ft-tooltip":J,"ft-icon":de,"ft-loader":Pt,"ft-typography":X};O.styles=[Ge.safariEllipsisFix,lc,Ge.noTextSelect];O.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r.host?r.host.hasTextContent=t.boundingClientRect.width>0:O.labelsObserver.unobserve(t.target)}});U([(0,P.property)({type:Boolean})],O.prototype,"primary",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"outlined",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"dense",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"round",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"disabled",void 0);U([(0,P.property)()],O.prototype,"icon",void 0);U([(0,P.property)()],O.prototype,"iconVariant",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"trailingIcon",void 0);U([(0,P.property)()],O.prototype,"label",void 0);U([(0,P.property)()],O.prototype,"type",void 0);U([(0,P.property)()],O.prototype,"href",void 0);U([(0,P.property)()],O.prototype,"target",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"loading",void 0);U([(0,P.property)({attribute:"aria-label"})],O.prototype,"ariaLabel",void 0);U([(0,P.property)()],O.prototype,"ariaHasPopup",void 0);U([(0,P.property)({attribute:"aria-pressed"})],O.prototype,"ariaPressed",void 0);U([(0,P.property)()],O.prototype,"tooltipPosition",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"hideTooltip",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"forceTooltip",void 0);U([(0,P.property)({type:Boolean})],O.prototype,"activated",void 0);U([(0,P.query)(".ft-button")],O.prototype,"button",void 0);U([(0,P.query)(".ft-button--label")],O.prototype,"labelContainer",void 0);U([(0,P.state)()],O.prototype,"hasTextContent",void 0);U([(0,P.query)(".ft-button--label slot")],O.prototype,"slottedContent",void 0);U([(0,P.query)("[part=tooltip]")],O.prototype,"tooltip",void 0);var uc=f(S());var cc={"ft-button":O};(0,uc.customElements)(cc);var Jn=f(k()),Ue=f(K()),fc=f(S()),hc=f(qt());var ie=f(S()),dc=f(k());var Se={textColor:ie.FtCssVariableFactory.extend("--ft-checkbox-text-color","",ie.designSystemVariables.colorOnSurfaceHigh),fontSize:ie.FtCssVariableFactory.extend("--ft-checkbox-font-size","",g.fontSize),activeColor:ie.FtCssVariableFactory.extend("--ft-checkbox-active-color","",ie.designSystemVariables.colorPrimary),checkColor:ie.FtCssVariableFactory.extend("--ft-checkbox-check-color","",ie.designSystemVariables.colorOnPrimary),borderColor:ie.FtCssVariableFactory.extend("--ft-checkbox-border-color","",ie.designSystemVariables.colorOnSurfaceMedium),disabledColor:ie.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",ie.designSystemVariables.colorOnSurfaceDisabled),errorColor:ie.FtCssVariableFactory.extend("--ft-checkbox-error-color","",ie.designSystemVariables.colorError)},pc=dc.css`
|
|
591
591
|
* {
|
|
592
592
|
box-sizing: border-box;
|
|
593
593
|
}
|
|
@@ -668,7 +668,7 @@
|
|
|
668
668
|
|
|
669
669
|
.ft-checkbox.ft-checkbox--error {
|
|
670
670
|
color: ${Se.errorColor};
|
|
671
|
-
${(0,ie.setVariable)(
|
|
671
|
+
${(0,ie.setVariable)(pe.color,Se.errorColor)};
|
|
672
672
|
|
|
673
673
|
.ft-checkbox--box {
|
|
674
674
|
border-color: ${Se.errorColor};
|
|
@@ -705,7 +705,7 @@
|
|
|
705
705
|
`}render(){return Jn.html`
|
|
706
706
|
<label class="${(0,hc.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
|
|
707
707
|
${this.renderBoxContainer()}
|
|
708
|
-
<ft-typography variant="${
|
|
708
|
+
<ft-typography variant="${te.body2}" part="checkbox-body">
|
|
709
709
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
710
710
|
</ft-typography>
|
|
711
711
|
</label>
|
|
@@ -714,7 +714,7 @@
|
|
|
714
714
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
715
715
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
716
716
|
</svg>
|
|
717
|
-
`}onSlotchange(){this.requestUpdate()}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new ns(this.checked))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var t;(t=this.ripple)===null||t===void 0||t.forceFocusUpdate()},0)}};se.elementDefinitions={"ft-ripple":
|
|
717
|
+
`}onSlotchange(){this.requestUpdate()}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new ns(this.checked))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var t;(t=this.ripple)===null||t===void 0||t.forceFocusUpdate()},0)}};se.elementDefinitions={"ft-ripple":N,"ft-typography":X};se.styles=pc;rt([(0,Ue.property)()],se.prototype,"name",void 0);rt([(0,Ue.property)()],se.prototype,"value",void 0);rt([(0,Ue.property)({type:Boolean,reflect:!0})],se.prototype,"checked",void 0);rt([(0,Ue.property)({type:Boolean})],se.prototype,"indeterminate",void 0);rt([(0,Ue.property)({type:Boolean})],se.prototype,"disabled",void 0);rt([(0,Ue.property)({type:Boolean})],se.prototype,"error",void 0);rt([(0,Ue.query)(".ft-checkbox")],se.prototype,"container",void 0);rt([(0,Ue.query)("ft-ripple")],se.prototype,"ripple",void 0);rt([(0,Ue.query)("input")],se.prototype,"input",void 0);var yc=f(S());var mc={"ft-checkbox":se};(0,yc.customElements)(mc);var bc=f(k()),qe=f(K()),xc=f(S()),Sc=f(qt());var gc=f(k()),me=f(S());var ft={textColor:me.FtCssVariableFactory.extend("--ft-radio-text-color","",me.designSystemVariables.colorOnSurfaceHigh),fontSize:me.FtCssVariableFactory.extend("--ft-radio-font-size","",g.fontSize),colorPrimary:me.FtCssVariableFactory.external(me.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:me.FtCssVariableFactory.external(me.designSystemVariables.colorOnPrimary,"Design system"),borderColor:me.FtCssVariableFactory.extend("--ft-radio-border-color","",me.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:me.FtCssVariableFactory.external(me.designSystemVariables.colorOnSurfaceDisabled,"Design system")},vc=gc.css`
|
|
718
718
|
* {
|
|
719
719
|
box-sizing: border-box;
|
|
720
720
|
}
|
|
@@ -824,12 +824,12 @@
|
|
|
824
824
|
>
|
|
825
825
|
</div>
|
|
826
826
|
<label for="radio-button" inert>
|
|
827
|
-
<ft-typography variant="${
|
|
827
|
+
<ft-typography variant="${te.body2}">
|
|
828
828
|
<slot></slot>
|
|
829
829
|
</ft-typography>
|
|
830
830
|
</label>
|
|
831
831
|
</div>
|
|
832
|
-
`}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Zn(this.value,this.checked))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Zn(this.value,this.checked))}setInputTabIndex(t){this.input&&(this.input.tabIndex=t)}focus(){var t;(t=this.input)===null||t===void 0||t.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(t){var r;t.target!==this.input&&(t.stopPropagation(),t.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};le.elementDefinitions={"ft-ripple":
|
|
832
|
+
`}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Zn(this.value,this.checked))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Zn(this.value,this.checked))}setInputTabIndex(t){this.input&&(this.input.tabIndex=t)}focus(){var t;(t=this.input)===null||t===void 0||t.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(t){var r;t.target!==this.input&&(t.stopPropagation(),t.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};le.elementDefinitions={"ft-ripple":N,"ft-typography":X};le.styles=vc;ht([(0,qe.property)()],le.prototype,"name",void 0);ht([(0,qe.property)()],le.prototype,"value",void 0);ht([(0,qe.property)({type:Boolean,reflect:!0})],le.prototype,"checked",void 0);ht([(0,qe.property)({attribute:"aria-checked",reflect:!0})],le.prototype,"ariaChecked",void 0);ht([(0,qe.property)({type:Boolean})],le.prototype,"disabled",void 0);ht([(0,qe.query)(".ft-radio")],le.prototype,"container",void 0);ht([(0,qe.query)("ft-ripple")],le.prototype,"ripple",void 0);ht([(0,qe.query)("input")],le.prototype,"input",void 0);var _c=f(S()),mt=f(K()),Cc=f(k());var Ec=f(k());var Ac=Ec.css`
|
|
833
833
|
:host {
|
|
834
834
|
display: block;
|
|
835
835
|
}
|
|
@@ -926,11 +926,11 @@
|
|
|
926
926
|
@click=${this.goBackOnClick}>
|
|
927
927
|
<ft-ripple></ft-ripple>
|
|
928
928
|
<ft-icon>thin_arrow_left</ft-icon>
|
|
929
|
-
<ft-typography variant="${
|
|
929
|
+
<ft-typography variant="${te.body2}">${this.parent.label}</ft-typography>
|
|
930
930
|
</div>
|
|
931
931
|
`}
|
|
932
932
|
${this.filteredOptions.length===0&&this.noValuesLabel?Ee.html`
|
|
933
|
-
<ft-typography class="ft-filter-level--no-values" element="span" variant="${
|
|
933
|
+
<ft-typography class="ft-filter-level--no-values" element="span" variant="${te.body2}">
|
|
934
934
|
${this.noValuesLabel}
|
|
935
935
|
</ft-typography>
|
|
936
936
|
`:Ee.nothing}
|
|
@@ -981,7 +981,7 @@
|
|
|
981
981
|
@change=${r=>this.optionsChanged(r,t)}>
|
|
982
982
|
${t.renderOption?t.renderOption:t.label}${this.displayCount?` (${t.count})`:""}
|
|
983
983
|
</ft-radio>
|
|
984
|
-
`}onRadioKeyDown(t,r){t.stopPropagation(),(t.key===" "||t.key==="Enter")&&(t.preventDefault(),this.optionsChanged(t,r))}optionsChanged(t,r){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}updated(t){super.updated(t),t.has("filter")&&t.has("filteredOptions")&&t.get("filteredOptions")!==void 0&&t.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)})}};V.elementDefinitions={"ft-button":O,"ft-ripple":
|
|
984
|
+
`}onRadioKeyDown(t,r){t.stopPropagation(),(t.key===" "||t.key==="Enter")&&(t.preventDefault(),this.optionsChanged(t,r))}optionsChanged(t,r){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}updated(t){super.updated(t),t.has("filter")&&t.has("filteredOptions")&&t.get("filteredOptions")!==void 0&&t.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)})}};V.elementDefinitions={"ft-button":O,"ft-ripple":N,"ft-typography":X,"ft-checkbox":se,"ft-icon":de,"ft-radio":le};V.styles=Rc;oe([(0,Z.property)({type:String})],V.prototype,"filterId",void 0);oe([(0,Z.property)({type:Object})],V.prototype,"parent",void 0);oe([(0,Z.property)({type:Array,hasChanged:ye.hasChanged})],V.prototype,"options",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"multivalued",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"disabled",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"hideSelectedOptions",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"displayCount",void 0);oe([(0,Z.property)({type:Boolean})],V.prototype,"preventNavigation",void 0);oe([(0,Z.property)({type:String})],V.prototype,"filter",void 0);oe([(0,Z.property)({type:String})],V.prototype,"moreValuesButtonLabel",void 0);oe([(0,Z.property)({type:String})],V.prototype,"noValuesLabel",void 0);oe([(0,Z.property)()],V.prototype,"filteredOptionsNumberAriaNotification",void 0);oe([(0,ye.numberProperty)()],V.prototype,"displayedValuesLimit",void 0);oe([(0,Z.query)(".ft-filter-level--container")],V.prototype,"container",void 0);oe([(0,Z.state)()],V.prototype,"radios",void 0);oe([(0,Z.state)()],V.prototype,"displayedPages",void 0);oe([(0,Z.state)()],V.prototype,"filteredOptions",void 0);var Pc=f(k()),Ae=f(K()),Dt=f(S());var Dc=f(qt());var kc=f(k()),He=f(S());var yt={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")},Nc=kc.css`
|
|
985
985
|
.ft-snap-scroll {
|
|
986
986
|
box-sizing: border-box;
|
|
987
987
|
position: relative;
|
|
@@ -1106,7 +1106,7 @@
|
|
|
1106
1106
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1107
1107
|
background-color: ${yt.colorSurface};
|
|
1108
1108
|
}
|
|
1109
|
-
`;var Ye=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},ss=class extends CustomEvent{constructor(t,r){super("current-element-change",{detail:{index:t,element:r}})}},
|
|
1109
|
+
`;var Ye=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},ss=class extends CustomEvent{constructor(t,r){super("current-element-change",{detail:{index:t,element:r}})}},ee=class extends Dt.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new Dt.Debouncer(200),this.updateScrollDebouncer=new Dt.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let r=this.elements[t];if(r){let n=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,s=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<s||r[this.offsetAttribute]+r[this.sizeAttribute]>n)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let t=(0,Dc.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":Dt.isSafari}),r=this.controls&&this.withScroll;return Pc.html`
|
|
1110
1110
|
<div part="container" class="${t}">
|
|
1111
1111
|
<ft-button
|
|
1112
1112
|
class="ft-snap-scroll--previous"
|
|
@@ -1130,7 +1130,7 @@
|
|
|
1130
1130
|
@click=${this.next}
|
|
1131
1131
|
></ft-button>
|
|
1132
1132
|
</div>
|
|
1133
|
-
`}update(t){super.update(t),t.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")),t.has("currentElement")&&this.dispatchEvent(new ss(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),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 t=this.closestElementFromStart();if(t!=null){let r=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var r,n;t&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):(n=this.contentSlot)===null||n===void 0||n.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,r;this.elements=(r=(t=this.contentSlot)===null||t===void 0?void 0:t.assignedElements().map(n=>n))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let r=0;r<this.elements.length;r++)(t<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[t]))&&(t=r);return t}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 t=this.elements[0];return t?t[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(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){let r=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-r)}};
|
|
1133
|
+
`}update(t){super.update(t),t.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")),t.has("currentElement")&&this.dispatchEvent(new ss(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),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 t=this.closestElementFromStart();if(t!=null){let r=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var r,n;t&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):(n=this.contentSlot)===null||n===void 0||n.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,r;this.elements=(r=(t=this.contentSlot)===null||t===void 0?void 0:t.assignedElements().map(n=>n))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let r=0;r<this.elements.length;r++)(t<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[t]))&&(t=r);return t}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 t=this.elements[0];return t?t[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(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){let r=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-r)}};ee.elementDefinitions={"ft-button":O};ee.styles=Nc;Ye([(0,Ae.property)({type:Boolean})],ee.prototype,"horizontal",void 0);Ye([(0,Ae.property)({type:Boolean})],ee.prototype,"hideScrollbar",void 0);Ye([(0,Ae.property)({type:Boolean})],ee.prototype,"controls",void 0);Ye([(0,Ae.property)({type:Boolean})],ee.prototype,"limitSize",void 0);Ye([(0,Ae.state)()],ee.prototype,"elements",void 0);Ye([(0,Ae.state)()],ee.prototype,"currentElement",void 0);Ye([(0,Ae.state)()],ee.prototype,"withScroll",void 0);Ye([(0,Ae.state)()],ee.prototype,"startReached",void 0);Ye([(0,Ae.state)()],ee.prototype,"endReached",void 0);Ye([(0,Ae.query)(".ft-snap-scroll--content")],ee.prototype,"contentSlot",void 0);var Ic=f(S());var Mc={"ft-snap-scroll":ee};(0,Ic.customElements)(Mc);var $c=f(k()),B=f(S());var Le={colorOutline:B.FtCssVariableFactory.external(B.designSystemVariables.colorOutline,"Design system"),colorOnSurface:B.FtCssVariableFactory.external(B.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:B.FtCssVariableFactory.external(B.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:B.FtCssVariableFactory.external(B.designSystemVariables.colorPrimary,"Design system"),colorSurface:B.FtCssVariableFactory.external(B.designSystemVariables.colorSurface,"Design system"),transitionDuration:B.FtCssVariableFactory.external(B.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:B.FtCssVariableFactory.external(B.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:B.FtCssVariableFactory.extend("--ft-filter-label-color","",B.designSystemVariables.colorOnSurface),labelFontSize:B.FtCssVariableFactory.extend("--ft-filter-label-font-size","",g.fontSize,"16px")},Uc=[qr,B.noTextInputDefaultClearButton,$c.css`
|
|
1134
1134
|
:host {
|
|
1135
1135
|
display: flex;
|
|
1136
1136
|
max-height: 100%;
|
|
@@ -1254,7 +1254,7 @@
|
|
|
1254
1254
|
|
|
1255
1255
|
<div class="ft-filter--header" part="header">
|
|
1256
1256
|
<div class="filter-label" id="id-group-${this.id}">
|
|
1257
|
-
<ft-typography class="ft-filter--label" variant="${
|
|
1257
|
+
<ft-typography class="ft-filter--label" variant="${te.overline}" part="label">
|
|
1258
1258
|
${this.label}
|
|
1259
1259
|
</ft-typography>
|
|
1260
1260
|
<slot name="label"></slot>
|
|
@@ -1331,7 +1331,7 @@
|
|
|
1331
1331
|
noValuesLabel="${this.noValuesLabel}"
|
|
1332
1332
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
1333
1333
|
></ft-filter-level>
|
|
1334
|
-
`}goBack(t){this.slideOut=t.detail.value,(0,W.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(t.detail.value)})}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value,(0,W.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,W.waitUntil)(()=>this.slideOut===void 0).then(()=>{var t;let r=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(t=>t.selected=!1),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var r;t.stopPropagation();let n=this.flatOptions.find(i=>i.value===t.detail.value);n.selected=!n.selected;let s=i=>{var o;i!==n&&(i.selected=!1),(o=i.subOptions)===null||o===void 0||o.forEach(s)};this.multivalued?(r=n.subOptions)===null||r===void 0||r.forEach(s):this.options.forEach(s),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),(t=this.levels)===null||t===void 0||t.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let t=this.selectedValues;(0,W.deepEqual)(this.lastDispatchedValues,t)||(this.dispatchEvent(new os(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var t,r;this.filter=(r=(t=this.filterInput)===null||t===void 0?void 0:t.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};R.elementDefinitions={"ft-button":O,"ft-filter-level":V,"ft-snap-scroll":
|
|
1334
|
+
`}goBack(t){this.slideOut=t.detail.value,(0,W.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(t.detail.value)})}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value,(0,W.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,W.waitUntil)(()=>this.slideOut===void 0).then(()=>{var t;let r=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(t=>t.selected=!1),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var r;t.stopPropagation();let n=this.flatOptions.find(i=>i.value===t.detail.value);n.selected=!n.selected;let s=i=>{var o;i!==n&&(i.selected=!1),(o=i.subOptions)===null||o===void 0||o.forEach(s)};this.multivalued?(r=n.subOptions)===null||r===void 0||r.forEach(s):this.options.forEach(s),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),(t=this.levels)===null||t===void 0||t.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let t=this.selectedValues;(0,W.deepEqual)(this.lastDispatchedValues,t)||(this.dispatchEvent(new os(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var t,r;this.filter=(r=(t=this.filterInput)===null||t===void 0?void 0:t.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};R.elementDefinitions={"ft-button":O,"ft-filter-level":V,"ft-snap-scroll":ee,"ft-typography":X};R.styles=Uc;H([(0,I.property)({type:String})],R.prototype,"id",void 0);H([(0,I.property)({type:String})],R.prototype,"label",void 0);H([(0,I.property)({type:String})],R.prototype,"filterPlaceHolder",void 0);H([(0,I.property)({type:String})],R.prototype,"clearButtonLabel",void 0);H([(0,I.property)({type:String})],R.prototype,"moreValuesButtonLabel",void 0);H([(0,I.property)({type:String})],R.prototype,"noValuesLabel",void 0);H([(0,W.jsonProperty)([])],R.prototype,"options",void 0);H([(0,I.property)({type:Boolean})],R.prototype,"multivalued",void 0);H([(0,I.property)({type:Boolean})],R.prototype,"disabled",void 0);H([(0,I.property)({type:Boolean})],R.prototype,"raiseSelectedOptions",void 0);H([(0,I.property)({type:Boolean})],R.prototype,"displayCount",void 0);H([(0,W.numberProperty)()],R.prototype,"displayedValuesLimit",void 0);H([(0,W.jsonProperty)(void 0)],R.prototype,"filteredOptionsNumberAriaNotification",void 0);H([(0,I.property)({type:Boolean})],R.prototype,"hideClearButton",void 0);H([(0,I.query)(".ft-filter--slot")],R.prototype,"slotElement",void 0);H([(0,I.query)(".ft-filter--container")],R.prototype,"container",void 0);H([(0,I.query)(".ft-filter--values")],R.prototype,"valuesContainer",void 0);H([(0,I.query)(".ft-filter--levels")],R.prototype,"levelsContainer",void 0);H([(0,I.state)()],R.prototype,"lastLevelHasHiddenvalues",void 0);H([(0,I.query)(".ft-filter--filter input")],R.prototype,"filterInput",void 0);H([(0,I.queryAll)(".ft-filter--levels ft-filter-level")],R.prototype,"levels",void 0);H([(0,I.state)()],R.prototype,"withScroll",void 0);H([(0,I.state)()],R.prototype,"filter",void 0);H([(0,I.state)()],R.prototype,"slideIn",void 0);H([(0,I.state)()],R.prototype,"slideOut",void 0);var Qn=f(S()),It=f(K()),Bc=f(k()),lr=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Fe=class extends Qn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Bc.html`
|
|
1335
1335
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1336
1336
|
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Fe.elementDefinitions={};lr([(0,It.property)({type:String})],Fe.prototype,"label",void 0);lr([(0,It.property)({type:Object,converter:e=>e})],Fe.prototype,"value",void 0);lr([(0,It.property)({type:Boolean,reflect:!0})],Fe.prototype,"selected",void 0);lr([(0,It.property)({type:Object})],Fe.prototype,"subOptions",void 0);lr([(0,Qn.jsonProperty)({})],Fe.prototype,"renderOption",void 0);lr([(0,It.query)(".ft-filter-option--slot")],Fe.prototype,"slotElement",void 0);var Hc={"ft-filter":R,"ft-filter-option":Fe};(0,Fc.customElements)(Hc);})();
|
|
1337
1337
|
/*! Bundled license information:
|