@fluid-topics/ft-search-locale-selector 1.2.19 → 1.2.21

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.
@@ -135,7 +135,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
135
135
  }
136
136
  `,oi=[Object.keys(qr).map(t=>Va(t))];var wn=g(I());var Kt=g($()),G=g(K()),Me=g(I());var Ei=g(I());var on=globalThis,Jr=on.trustedTypes,ai=Jr?Jr.createPolicy("lit-html",{createHTML:t=>t}):void 0,pi="$lit$",xt=`lit$${(Math.random()+"").slice(9)}$`,fi="?"+xt,Dc=`<${fi}>`,Ut=document,eo=()=>Ut.createComment(""),Er=t=>t===null||typeof t!="object"&&typeof t!="function",ui=Array.isArray,Bc=t=>ui(t)||typeof t?.[Symbol.iterator]=="function",Xo=`[
137
137
  \f\r]`,Cr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ii=/-->/g,si=/>/g,Ft=RegExp(`>|${Xo}(?:([^\\s"'>=/]+)(${Xo}*=${Xo}*(?:[^
138
- \f\r"'\`<>=]|("|')|))|$)`,"g"),li=/'/g,ci=/"/g,hi=/^(?:script|style|textarea|title)$/i,yi=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),mi=yi(1),gi=yi(2),wr=Symbol.for("lit-noChange"),se=Symbol.for("lit-nothing"),di=new WeakMap,Mt=Ut.createTreeWalker(Ut,129);function bi(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ai!==void 0?ai.createHTML(e):e}var $c=(t,e)=>{let o=t.length-1,n=[],a,i=e===2?"<svg>":"",l=Cr;for(let c=0;c<o;c++){let p=t[c],f,h,m=-1,b=0;for(;b<p.length&&(l.lastIndex=b,h=l.exec(p),h!==null);)b=l.lastIndex,l===Cr?h[1]==="!--"?l=ii:h[1]!==void 0?l=si:h[2]!==void 0?(hi.test(h[2])&&(a=RegExp("</"+h[2],"g")),l=Ft):h[3]!==void 0&&(l=Ft):l===Ft?h[0]===">"?(l=a??Cr,m=-1):h[1]===void 0?m=-2:(m=l.lastIndex-h[2].length,f=h[1],l=h[3]===void 0?Ft:h[3]==='"'?ci:li):l===ci||l===li?l=Ft:l===ii||l===si?l=Cr:(l=Ft,a=void 0);let S=l===Ft&&t[c+1].startsWith("/>")?" ":"";i+=l===Cr?p+Dc:m>=0?(n.push(f),p.slice(0,m)+pi+p.slice(m)+xt+S):p+xt+(m===-2?c:S)}return[bi(t,i+(t[o]||"<?>")+(e===2?"</svg>":"")),n]},Ar=class t{constructor({strings:e,_$litType$:o},n){let a;this.parts=[];let i=0,l=0,c=e.length-1,p=this.parts,[f,h]=$c(e,o);if(this.el=t.createElement(f,n),Mt.currentNode=this.el.content,o===2){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(a=Mt.nextNode())!==null&&p.length<c;){if(a.nodeType===1){if(a.hasAttributes())for(let m of a.getAttributeNames())if(m.endsWith(pi)){let b=h[l++],S=a.getAttribute(m).split(xt),v=/([.?@])?(.*)/.exec(b);p.push({type:1,index:i,name:v[2],strings:S,ctor:v[1]==="."?Jo:v[1]==="?"?en:v[1]==="@"?tn:dr}),a.removeAttribute(m)}else m.startsWith(xt)&&(p.push({type:6,index:i}),a.removeAttribute(m));if(hi.test(a.tagName)){let m=a.textContent.split(xt),b=m.length-1;if(b>0){a.textContent=Jr?Jr.emptyScript:"";for(let S=0;S<b;S++)a.append(m[S],eo()),Mt.nextNode(),p.push({type:2,index:++i});a.append(m[b],eo())}}}else if(a.nodeType===8)if(a.data===fi)p.push({type:2,index:i});else{let m=-1;for(;(m=a.data.indexOf(xt,m+1))!==-1;)p.push({type:7,index:i}),m+=xt.length-1}i++}}static createElement(e,o){let n=Ut.createElement("template");return n.innerHTML=e,n}};function cr(t,e,o=t,n){if(e===wr)return e;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=Er(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(t),a._$AT(t,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(e=cr(t,a._$AS(t,e.values),a,n)),e}var Qo=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:n}=this._$AD,a=(e?.creationScope??Ut).importNode(o,!0);Mt.currentNode=a;let i=Mt.nextNode(),l=0,c=0,p=n[0];for(;p!==void 0;){if(l===p.index){let f;p.type===2?f=new to(i,i.nextSibling,this,e):p.type===1?f=new p.ctor(i,p.name,p.strings,this,e):p.type===6&&(f=new rn(i,this,e)),this._$AV.push(f),p=n[++c]}l!==p?.index&&(i=Mt.nextNode(),l++)}return Mt.currentNode=Ut,a}p(e){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,o),o+=n.strings.length-2):n._$AI(e[o])),o++}},to=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,n,a){this.type=2,this._$AH=se,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=cr(this,e,o),Er(e)?e===se||e==null||e===""?(this._$AH!==se&&this._$AR(),this._$AH=se):e!==this._$AH&&e!==wr&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Bc(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==se&&Er(this._$AH)?this._$AA.nextSibling.data=e:this.$(Ut.createTextNode(e)),this._$AH=e}g(e){let{values:o,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Ar.createElement(bi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new Qo(a,this),l=i.u(this.options);i.p(o),this.$(l),this._$AH=i}}_$AC(e){let o=di.get(e.strings);return o===void 0&&di.set(e.strings,o=new Ar(e)),o}T(e){ui(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of e)a===o.length?o.push(n=new t(this.k(eo()),this.k(eo()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},dr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,n,a,i){this.type=1,this._$AH=se,this._$AN=void 0,this.element=e,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=se}_$AI(e,o=this,n,a){let i=this.strings,l=!1;if(i===void 0)e=cr(this,e,o,0),l=!Er(e)||e!==this._$AH&&e!==wr,l&&(this._$AH=e);else{let c=e,p,f;for(e=i[0],p=0;p<i.length-1;p++)f=cr(this,c[n+p],o,p),f===wr&&(f=this._$AH[p]),l||=!Er(f)||f!==this._$AH[p],f===se?e=se:e!==se&&(e+=(f??"")+i[p+1]),this._$AH[p]=f}l&&!a&&this.O(e)}O(e){e===se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Jo=class extends dr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===se?void 0:e}},en=class extends dr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==se)}},tn=class extends dr{constructor(e,o,n,a,i){super(e,o,n,a,i),this.type=5}_$AI(e,o=this){if((e=cr(this,e,o,0)??se)===wr)return;let n=this._$AH,a=e===se&&n!==se||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==se&&(n===se||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},rn=class{constructor(e,o,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){cr(this,e)}};var Fc=on.litHtmlPolyfillSupport;Fc?.(Ar,to),(on.litHtmlVersions??=[]).push("3.1.0");var vi=Symbol.for(""),Mc=t=>{if(t?.r===vi)return t?._$litStatic$},nn=t=>({_$litStatic$:t,r:vi});var xi=new Map,Si=t=>(e,...o)=>{let n=o.length,a,i,l=[],c=[],p,f=0,h=!1;for(;f<n;){for(p=e[f];f<n&&(i=o[f],(a=Mc(i))!==void 0);)p+=a+e[++f],h=!0;f!==n&&c.push(i),l.push(p),f++}if(f===n&&l.push(e[n]),h){let m=l.join("$$lit$$");(e=xi.get(m))===void 0&&(l.raw=l,xi.set(m,e=l)),o=c}return t(e,...o)},an=Si(mi),hy=Si(gi);var sn=g(K()),Ci=g(I());var vt;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(vt||(vt={}));var Oi=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},te=class extends Ci.FtLitElement{constructor(){super(...arguments),this.variant=vt.body1}render(){return this.element?an`
138
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),li=/'/g,ci=/"/g,hi=/^(?:script|style|textarea|title)$/i,yi=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),mi=yi(1),gi=yi(2),wr=Symbol.for("lit-noChange"),le=Symbol.for("lit-nothing"),di=new WeakMap,Mt=Ut.createTreeWalker(Ut,129);function bi(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ai!==void 0?ai.createHTML(e):e}var $c=(t,e)=>{let o=t.length-1,n=[],a,i=e===2?"<svg>":"",l=Cr;for(let c=0;c<o;c++){let p=t[c],f,h,m=-1,b=0;for(;b<p.length&&(l.lastIndex=b,h=l.exec(p),h!==null);)b=l.lastIndex,l===Cr?h[1]==="!--"?l=ii:h[1]!==void 0?l=si:h[2]!==void 0?(hi.test(h[2])&&(a=RegExp("</"+h[2],"g")),l=Ft):h[3]!==void 0&&(l=Ft):l===Ft?h[0]===">"?(l=a??Cr,m=-1):h[1]===void 0?m=-2:(m=l.lastIndex-h[2].length,f=h[1],l=h[3]===void 0?Ft:h[3]==='"'?ci:li):l===ci||l===li?l=Ft:l===ii||l===si?l=Cr:(l=Ft,a=void 0);let S=l===Ft&&t[c+1].startsWith("/>")?" ":"";i+=l===Cr?p+Dc:m>=0?(n.push(f),p.slice(0,m)+pi+p.slice(m)+xt+S):p+xt+(m===-2?c:S)}return[bi(t,i+(t[o]||"<?>")+(e===2?"</svg>":"")),n]},Ar=class t{constructor({strings:e,_$litType$:o},n){let a;this.parts=[];let i=0,l=0,c=e.length-1,p=this.parts,[f,h]=$c(e,o);if(this.el=t.createElement(f,n),Mt.currentNode=this.el.content,o===2){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(a=Mt.nextNode())!==null&&p.length<c;){if(a.nodeType===1){if(a.hasAttributes())for(let m of a.getAttributeNames())if(m.endsWith(pi)){let b=h[l++],S=a.getAttribute(m).split(xt),v=/([.?@])?(.*)/.exec(b);p.push({type:1,index:i,name:v[2],strings:S,ctor:v[1]==="."?Jo:v[1]==="?"?en:v[1]==="@"?tn:dr}),a.removeAttribute(m)}else m.startsWith(xt)&&(p.push({type:6,index:i}),a.removeAttribute(m));if(hi.test(a.tagName)){let m=a.textContent.split(xt),b=m.length-1;if(b>0){a.textContent=Jr?Jr.emptyScript:"";for(let S=0;S<b;S++)a.append(m[S],eo()),Mt.nextNode(),p.push({type:2,index:++i});a.append(m[b],eo())}}}else if(a.nodeType===8)if(a.data===fi)p.push({type:2,index:i});else{let m=-1;for(;(m=a.data.indexOf(xt,m+1))!==-1;)p.push({type:7,index:i}),m+=xt.length-1}i++}}static createElement(e,o){let n=Ut.createElement("template");return n.innerHTML=e,n}};function cr(t,e,o=t,n){if(e===wr)return e;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=Er(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(t),a._$AT(t,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(e=cr(t,a._$AS(t,e.values),a,n)),e}var Qo=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:n}=this._$AD,a=(e?.creationScope??Ut).importNode(o,!0);Mt.currentNode=a;let i=Mt.nextNode(),l=0,c=0,p=n[0];for(;p!==void 0;){if(l===p.index){let f;p.type===2?f=new to(i,i.nextSibling,this,e):p.type===1?f=new p.ctor(i,p.name,p.strings,this,e):p.type===6&&(f=new rn(i,this,e)),this._$AV.push(f),p=n[++c]}l!==p?.index&&(i=Mt.nextNode(),l++)}return Mt.currentNode=Ut,a}p(e){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,o),o+=n.strings.length-2):n._$AI(e[o])),o++}},to=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,n,a){this.type=2,this._$AH=le,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=cr(this,e,o),Er(e)?e===le||e==null||e===""?(this._$AH!==le&&this._$AR(),this._$AH=le):e!==this._$AH&&e!==wr&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Bc(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==le&&Er(this._$AH)?this._$AA.nextSibling.data=e:this.$(Ut.createTextNode(e)),this._$AH=e}g(e){let{values:o,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Ar.createElement(bi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new Qo(a,this),l=i.u(this.options);i.p(o),this.$(l),this._$AH=i}}_$AC(e){let o=di.get(e.strings);return o===void 0&&di.set(e.strings,o=new Ar(e)),o}T(e){ui(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of e)a===o.length?o.push(n=new t(this.k(eo()),this.k(eo()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},dr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,n,a,i){this.type=1,this._$AH=le,this._$AN=void 0,this.element=e,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=le}_$AI(e,o=this,n,a){let i=this.strings,l=!1;if(i===void 0)e=cr(this,e,o,0),l=!Er(e)||e!==this._$AH&&e!==wr,l&&(this._$AH=e);else{let c=e,p,f;for(e=i[0],p=0;p<i.length-1;p++)f=cr(this,c[n+p],o,p),f===wr&&(f=this._$AH[p]),l||=!Er(f)||f!==this._$AH[p],f===le?e=le:e!==le&&(e+=(f??"")+i[p+1]),this._$AH[p]=f}l&&!a&&this.O(e)}O(e){e===le?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Jo=class extends dr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===le?void 0:e}},en=class extends dr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==le)}},tn=class extends dr{constructor(e,o,n,a,i){super(e,o,n,a,i),this.type=5}_$AI(e,o=this){if((e=cr(this,e,o,0)??le)===wr)return;let n=this._$AH,a=e===le&&n!==le||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==le&&(n===le||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},rn=class{constructor(e,o,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){cr(this,e)}};var Fc=on.litHtmlPolyfillSupport;Fc?.(Ar,to),(on.litHtmlVersions??=[]).push("3.1.0");var vi=Symbol.for(""),Mc=t=>{if(t?.r===vi)return t?._$litStatic$},nn=t=>({_$litStatic$:t,r:vi});var xi=new Map,Si=t=>(e,...o)=>{let n=o.length,a,i,l=[],c=[],p,f=0,h=!1;for(;f<n;){for(p=e[f];f<n&&(i=o[f],(a=Mc(i))!==void 0);)p+=a+e[++f],h=!0;f!==n&&c.push(i),l.push(p),f++}if(f===n&&l.push(e[n]),h){let m=l.join("$$lit$$");(e=xi.get(m))===void 0&&(l.raw=l,xi.set(m,e=l)),o=c}return t(e,...o)},an=Si(mi),hy=Si(gi);var sn=g(K()),Ci=g(I());var vt;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(vt||(vt={}));var Oi=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},te=class extends Ci.FtLitElement{constructor(){super(...arguments),this.variant=vt.body1}render(){return this.element?an`
139
139
  <${nn(this.element)}
140
140
  part="text"
141
141
  class="ft-typography ft-typography--${this.variant}">
@@ -143,7 +143,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
143
143
  </${nn(this.element)}>
144
144
  `:an`
145
145
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
146
- `}};te.styles=[Ka,Za,qa,Ya,Xa,Qa,Qr,Ja,ei,ti,ri,...oi];Oi([(0,sn.property)()],te.prototype,"element",void 0);Oi([(0,sn.property)()],te.prototype,"variant",void 0);(0,Ei.customElement)("ft-typography")(te);var _e=g($()),le=g(K()),Gs=g(ln()),yo=g(I());var Sn=g(I());var Br=g(K()),Es=g(I());var Mi=g($()),D=g(I());var Pi=g($()),oe=g(I()),Ai=oe.FtCssVariableFactory.extend("--ft-ripple-color","",oe.designSystemVariables.colorContent),E={color:Ai,backgroundColor:oe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ai),opacityContentOnSurfacePressed:oe.FtCssVariableFactory.external(oe.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:oe.FtCssVariableFactory.external(oe.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:oe.FtCssVariableFactory.external(oe.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:oe.FtCssVariableFactory.external(oe.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:oe.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ri=oe.FtCssVariableFactory.extend("--ft-ripple-color","",oe.designSystemVariables.colorPrimary),Ni={color:Ri,backgroundColor:oe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ri)},Li=oe.FtCssVariableFactory.extend("--ft-ripple-color","",oe.designSystemVariables.colorSecondary),Ii={color:Li,backgroundColor:oe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Li)},Ti=Pi.css`
146
+ `}};te.styles=[Ka,Za,qa,Ya,Xa,Qa,Qr,Ja,ei,ti,ri,...oi];Oi([(0,sn.property)()],te.prototype,"element",void 0);Oi([(0,sn.property)()],te.prototype,"variant",void 0);(0,Ei.customElement)("ft-typography")(te);var _e=g($()),ce=g(K()),Gs=g(ln()),yo=g(I());var Sn=g(I());var Br=g(K()),Es=g(I());var Mi=g($()),D=g(I());var Pi=g($()),oe=g(I()),Ai=oe.FtCssVariableFactory.extend("--ft-ripple-color","",oe.designSystemVariables.colorContent),E={color:Ai,backgroundColor:oe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ai),opacityContentOnSurfacePressed:oe.FtCssVariableFactory.external(oe.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:oe.FtCssVariableFactory.external(oe.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:oe.FtCssVariableFactory.external(oe.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:oe.FtCssVariableFactory.external(oe.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:oe.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ri=oe.FtCssVariableFactory.extend("--ft-ripple-color","",oe.designSystemVariables.colorPrimary),Ni={color:Ri,backgroundColor:oe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ri)},Li=oe.FtCssVariableFactory.extend("--ft-ripple-color","",oe.designSystemVariables.colorSecondary),Ii={color:Li,backgroundColor:oe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Li)},Ti=Pi.css`
147
147
  :host {
148
148
  display: contents;
149
149
  }
@@ -520,7 +520,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
520
520
  <div class="ft-ripple--background"></div>
521
521
  <div class="ft-ripple--effect"></div>
522
522
  </div>
523
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...c)=>p=>{c.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(p)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=c=>{["Enter"," "].includes(c.key)&&o("keyup")(c)},l={passive:!0};e.addEventListener("mouseover",this.startHover,l),e.addEventListener("mousemove",this.moveRipple,l),e.addEventListener("mouseleave",this.endHover,l),e.addEventListener("mousedown",n,l),e.addEventListener("touchstart",a,l),e.addEventListener("touchmove",this.moveRipple,l),e.addEventListener("keydown",i,l),e.addEventListener("focus",this.startFocus,l),e.addEventListener("blur",this.endFocus,l),e.addEventListener("focusin",this.startFocus,l),e.addEventListener("focusout",this.endFocus,l),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,l),e.removeEventListener("mousemove",this.moveRipple,l),e.removeEventListener("mouseleave",this.endHover,l),e.removeEventListener("mousedown",n,l),e.removeEventListener("touchstart",a,l),e.removeEventListener("touchmove",this.moveRipple,l),e.removeEventListener("keydown",i,l),e.removeEventListener("focus",this.startFocus,l),e.removeEventListener("blur",this.endFocus,l),e.removeEventListener("focusin",this.startFocus,l),e.removeEventListener("focusout",this.endFocus,l),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};W.elementDefinitions={};W.styles=Ti;Ee([(0,ue.property)({type:Boolean})],W.prototype,"primary",void 0);Ee([(0,ue.property)({type:Boolean})],W.prototype,"secondary",void 0);Ee([(0,ue.property)({type:Boolean})],W.prototype,"unbounded",void 0);Ee([(0,ue.property)({type:Boolean})],W.prototype,"activated",void 0);Ee([(0,ue.property)({type:Boolean})],W.prototype,"selected",void 0);Ee([(0,ue.property)({type:Boolean})],W.prototype,"disabled",void 0);Ee([(0,ue.state)()],W.prototype,"hovered",void 0);Ee([(0,ue.state)()],W.prototype,"focused",void 0);Ee([(0,ue.state)()],W.prototype,"pressed",void 0);Ee([(0,ue.state)()],W.prototype,"rippling",void 0);Ee([(0,ue.state)()],W.prototype,"originX",void 0);Ee([(0,ue.state)()],W.prototype,"originY",void 0);Ee([(0,ue.query)(".ft-ripple")],W.prototype,"ripple",void 0);Ee([(0,ue.query)(".ft-ripple--effect")],W.prototype,"rippleEffect",void 0);(0,Gi.customElement)("ft-ripple")(W);var ys=g(I());var hs=g($()),ne=g(K()),_r=g(I());var ji=["top","right","bottom","left"],Vi=["start","end"],pn=ji.reduce((t,e)=>t.concat(e,e+"-"+Vi[0],e+"-"+Vi[1]),[]),Lr=Math.min,St=Math.max,Ir=Math.round;var st=t=>({x:t,y:t}),Uc={left:"right",right:"left",bottom:"top",top:"bottom"},Wc={start:"end",end:"start"};function fn(t,e,o){return St(t,Lr(e,o))}function ro(t,e){return typeof t=="function"?t(e):t}function fr(t){return t.split("-")[0]}function Ot(t){return t.split("-")[1]}function un(t){return t==="x"?"y":"x"}function hn(t){return t==="y"?"height":"width"}function oo(t){return["top","bottom"].includes(fr(t))?"y":"x"}function yn(t){return un(oo(t))}function Ki(t,e,o){o===void 0&&(o=!1);let n=Ot(t),a=yn(t),i=hn(a),l=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(l=dn(l)),[l,dn(l)]}function Zi(t){return t.replace(/start|end/g,e=>Wc[e])}function dn(t){return t.replace(/left|right|bottom|top/g,e=>Uc[e])}function zc(t){return{top:0,right:0,bottom:0,left:0,...t}}function qi(t){return typeof t!="number"?zc(t):{top:t,right:t,bottom:t,left:t}}function Wt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Yi(t,e,o){let{reference:n,floating:a}=t,i=oo(e),l=yn(e),c=hn(l),p=fr(e),f=i==="y",h=n.x+n.width/2-a.width/2,m=n.y+n.height/2-a.height/2,b=n[c]/2-a[c]/2,S;switch(p){case"top":S={x:h,y:n.y-a.height};break;case"bottom":S={x:h,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:m};break;case"left":S={x:n.x-a.width,y:m};break;default:S={x:n.x,y:n.y}}switch(Ot(e)){case"start":S[l]-=b*(o&&f?-1:1);break;case"end":S[l]+=b*(o&&f?-1:1);break}return S}var Xi=async(t,e,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:l}=o,c=i.filter(Boolean),p=await(l.isRTL==null?void 0:l.isRTL(e)),f=await l.getElementRects({reference:t,floating:e,strategy:a}),{x:h,y:m}=Yi(f,n,p),b=n,S={},v=0;for(let O=0;O<c.length;O++){let{name:P,fn:N}=c[O],{x:L,y:k,data:B,reset:F}=await N({x:h,y:m,initialPlacement:n,placement:b,strategy:a,middlewareData:S,rects:f,platform:l,elements:{reference:t,floating:e}});if(h=L??h,m=k??m,S={...S,[P]:{...S[P],...B}},F&&v<=50){v++,typeof F=="object"&&(F.placement&&(b=F.placement),F.rects&&(f=F.rects===!0?await l.getElementRects({reference:t,floating:e,strategy:a}):F.rects),{x:h,y:m}=Yi(f,b,p)),O=-1;continue}}return{x:h,y:m,placement:b,strategy:a,middlewareData:S}};async function mn(t,e){var o;e===void 0&&(e={});let{x:n,y:a,platform:i,rects:l,elements:c,strategy:p}=t,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:b=!1,padding:S=0}=ro(e,t),v=qi(S),P=c[b?m==="floating"?"reference":"floating":m],N=Wt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(P)))==null||o?P:P.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:f,rootBoundary:h,strategy:p})),L=m==="floating"?{...l.floating,x:n,y:a}:l.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),B=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},F=Wt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:L,offsetParent:k,strategy:p}):L);return{top:(N.top-F.top+v.top)/B.y,bottom:(F.bottom-N.bottom+v.bottom)/B.y,left:(N.left-F.left+v.left)/B.x,right:(F.right-N.right+v.right)/B.x}}function Hc(t,e,o){return(t?[...o.filter(a=>Ot(a)===t),...o.filter(a=>Ot(a)!==t)]:o.filter(a=>fr(a)===a)).filter(a=>t?Ot(a)===t||(e?Zi(a)!==a:!1):!0)}var gn=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,n,a;let{rects:i,middlewareData:l,placement:c,platform:p,elements:f}=e,{crossAxis:h=!1,alignment:m,allowedPlacements:b=pn,autoAlignment:S=!0,...v}=ro(t,e),O=m!==void 0||b===pn?Hc(m||null,S,b):b,P=await mn(e,v),N=((o=l.autoPlacement)==null?void 0:o.index)||0,L=O[N];if(L==null)return{};let k=Ki(L,i,await(p.isRTL==null?void 0:p.isRTL(f.floating)));if(c!==L)return{reset:{placement:O[0]}};let B=[P[fr(L)],P[k[0]],P[k[1]]],F=[...((n=l.autoPlacement)==null?void 0:n.overflows)||[],{placement:L,overflows:B}],Ce=O[N+1];if(Ce)return{data:{index:N+1,overflows:F},reset:{placement:Ce}};let Ze=F.map(pe=>{let y=Ot(pe.placement);return[pe.placement,y&&h?pe.overflows.slice(0,2).reduce((x,T)=>x+T,0):pe.overflows[0],pe.overflows]}).sort((pe,y)=>pe[1]-y[1]),qe=((a=Ze.filter(pe=>pe[2].slice(0,Ot(pe[0])?2:3).every(y=>y<=0))[0])==null?void 0:a[0])||Ze[0][0];return qe!==c?{data:{index:N+1,overflows:F},reset:{placement:qe}}:{}}}};var bn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:n,placement:a}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:P=>{let{x:N,y:L}=P;return{x:N,y:L}}},...p}=ro(t,e),f={x:o,y:n},h=await mn(e,p),m=oo(fr(a)),b=un(m),S=f[b],v=f[m];if(i){let P=b==="y"?"top":"left",N=b==="y"?"bottom":"right",L=S+h[P],k=S-h[N];S=fn(L,S,k)}if(l){let P=m==="y"?"top":"left",N=m==="y"?"bottom":"right",L=v+h[P],k=v-h[N];v=fn(L,v,k)}let O=c.fn({...e,[b]:S,[m]:v});return{...O,data:{x:O.x-o,y:O.y-n}}}}};function lt(t){return Ji(t)?(t.nodeName||"").toLowerCase():"#document"}function we(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ct(t){var e;return(e=(Ji(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ji(t){return t instanceof Node||t instanceof we(t).Node}function Qe(t){return t instanceof Element||t instanceof we(t).Element}function We(t){return t instanceof HTMLElement||t instanceof we(t).HTMLElement}function Qi(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof we(t).ShadowRoot}function ur(t){let{overflow:e,overflowX:o,overflowY:n,display:a}=Te(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(a)}function es(t){return["table","td","th"].includes(lt(t))}function ao(t){let e=io(),o=Te(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function ts(t){let e=zt(t);for(;We(e)&&!Pr(e);){if(ao(e))return e;e=zt(e)}return null}function io(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Pr(t){return["html","body","#document"].includes(lt(t))}function Te(t){return we(t).getComputedStyle(t)}function Tr(t){return Qe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function zt(t){if(lt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Qi(t)&&t.host||ct(t);return Qi(e)?e.host:e}function rs(t){let e=zt(t);return Pr(e)?t.ownerDocument?t.ownerDocument.body:t.body:We(e)&&ur(e)?e:rs(e)}function no(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);let a=rs(t),i=a===((n=t.ownerDocument)==null?void 0:n.body),l=we(a);return i?e.concat(l,l.visualViewport||[],ur(a)?a:[],l.frameElement&&o?no(l.frameElement):[]):e.concat(a,no(a,[],o))}function as(t){let e=Te(t),o=parseFloat(e.width)||0,n=parseFloat(e.height)||0,a=We(t),i=a?t.offsetWidth:o,l=a?t.offsetHeight:n,c=Ir(o)!==i||Ir(n)!==l;return c&&(o=i,n=l),{width:o,height:n,$:c}}function is(t){return Qe(t)?t:t.contextElement}function hr(t){let e=is(t);if(!We(e))return st(1);let o=e.getBoundingClientRect(),{width:n,height:a,$:i}=as(e),l=(i?Ir(o.width):o.width)/n,c=(i?Ir(o.height):o.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}var jc=st(0);function ss(t){let e=we(t);return!io()||!e.visualViewport?jc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Kc(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==we(t)?!1:e}function kr(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);let a=t.getBoundingClientRect(),i=is(t),l=st(1);e&&(n?Qe(n)&&(l=hr(n)):l=hr(t));let c=Kc(i,o,n)?ss(i):st(0),p=(a.left+c.x)/l.x,f=(a.top+c.y)/l.y,h=a.width/l.x,m=a.height/l.y;if(i){let b=we(i),S=n&&Qe(n)?we(n):n,v=b.frameElement;for(;v&&n&&S!==b;){let O=hr(v),P=v.getBoundingClientRect(),N=Te(v),L=P.left+(v.clientLeft+parseFloat(N.paddingLeft))*O.x,k=P.top+(v.clientTop+parseFloat(N.paddingTop))*O.y;p*=O.x,f*=O.y,h*=O.x,m*=O.y,p+=L,f+=k,v=we(v).frameElement}}return Wt({width:h,height:m,x:p,y:f})}function Zc(t){let{rect:e,offsetParent:o,strategy:n}=t,a=We(o),i=ct(o);if(o===i)return e;let l={scrollLeft:0,scrollTop:0},c=st(1),p=st(0);if((a||!a&&n!=="fixed")&&((lt(o)!=="body"||ur(i))&&(l=Tr(o)),We(o))){let f=kr(o);c=hr(o),p.x=f.x+o.clientLeft,p.y=f.y+o.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-l.scrollLeft*c.x+p.x,y:e.y*c.y-l.scrollTop*c.y+p.y}}function qc(t){return Array.from(t.getClientRects())}function ls(t){return kr(ct(t)).left+Tr(t).scrollLeft}function Yc(t){let e=ct(t),o=Tr(t),n=t.ownerDocument.body,a=St(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=St(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),l=-o.scrollLeft+ls(t),c=-o.scrollTop;return Te(n).direction==="rtl"&&(l+=St(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:l,y:c}}function Xc(t,e){let o=we(t),n=ct(t),a=o.visualViewport,i=n.clientWidth,l=n.clientHeight,c=0,p=0;if(a){i=a.width,l=a.height;let f=io();(!f||f&&e==="fixed")&&(c=a.offsetLeft,p=a.offsetTop)}return{width:i,height:l,x:c,y:p}}function Qc(t,e){let o=kr(t,!0,e==="fixed"),n=o.top+t.clientTop,a=o.left+t.clientLeft,i=We(t)?hr(t):st(1),l=t.clientWidth*i.x,c=t.clientHeight*i.y,p=a*i.x,f=n*i.y;return{width:l,height:c,x:p,y:f}}function os(t,e,o){let n;if(e==="viewport")n=Xc(t,o);else if(e==="document")n=Yc(ct(t));else if(Qe(e))n=Qc(e,o);else{let a=ss(t);n={...e,x:e.x-a.x,y:e.y-a.y}}return Wt(n)}function cs(t,e){let o=zt(t);return o===e||!Qe(o)||Pr(o)?!1:Te(o).position==="fixed"||cs(o,e)}function Jc(t,e){let o=e.get(t);if(o)return o;let n=no(t,[],!1).filter(c=>Qe(c)&&lt(c)!=="body"),a=null,i=Te(t).position==="fixed",l=i?zt(t):t;for(;Qe(l)&&!Pr(l);){let c=Te(l),p=ao(l);!p&&c.position==="fixed"&&(a=null),(i?!p&&!a:!p&&c.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||ur(l)&&!p&&cs(t,l))?n=n.filter(h=>h!==l):a=c,l=zt(l)}return e.set(t,n),n}function ed(t){let{element:e,boundary:o,rootBoundary:n,strategy:a}=t,l=[...o==="clippingAncestors"?Jc(e,this._c):[].concat(o),n],c=l[0],p=l.reduce((f,h)=>{let m=os(e,h,a);return f.top=St(m.top,f.top),f.right=Lr(m.right,f.right),f.bottom=Lr(m.bottom,f.bottom),f.left=St(m.left,f.left),f},os(e,c,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function td(t){return as(t)}function rd(t,e,o){let n=We(e),a=ct(e),i=o==="fixed",l=kr(t,!0,i,e),c={scrollLeft:0,scrollTop:0},p=st(0);if(n||!n&&!i)if((lt(e)!=="body"||ur(a))&&(c=Tr(e)),n){let f=kr(e,!0,i,e);p.x=f.x+e.clientLeft,p.y=f.y+e.clientTop}else a&&(p.x=ls(a));return{x:l.left+c.scrollLeft-p.x,y:l.top+c.scrollTop-p.y,width:l.width,height:l.height}}function ns(t,e){return!We(t)||Te(t).position==="fixed"?null:e?e(t):t.offsetParent}function ds(t,e){let o=we(t);if(!We(t))return o;let n=ns(t,e);for(;n&&es(n)&&Te(n).position==="static";)n=ns(n,e);return n&&(lt(n)==="html"||lt(n)==="body"&&Te(n).position==="static"&&!ao(n))?o:n||ts(t)||o}var od=async function(t){let{reference:e,floating:o,strategy:n}=t,a=this.getOffsetParent||ds,i=this.getDimensions;return{reference:rd(e,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function nd(t){return Te(t).direction==="rtl"}var so={convertOffsetParentRelativeRectToViewportRelativeRect:Zc,getDocumentElement:ct,getClippingRect:ed,getOffsetParent:ds,getElementRects:od,getClientRects:qc,getDimensions:td,getScale:hr,isElement:Qe,isRTL:nd};var ps=(t,e,o)=>{let n=new Map,a={platform:so,...o},i={...a.platform,_c:n};return Xi(t,e,{...a,platform:i})};function fs(t){return ad(t)}function xn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function ad(t){for(let e=t;e;e=xn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=xn(t);e;e=xn(e)){if(!(e instanceof Element))continue;let o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}async function us(t,e,o){return ps(t,e,{platform:{...so,getOffsetParent:n=>so.getOffsetParent(n,fs)},middleware:[bn({crossAxis:!0}),gn({allowedPlacements:[o]})]})}var Ae=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},q=class extends _r.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new _r.Debouncer,this.revealDebouncer=new _r.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return hs.html`
523
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...c)=>p=>{c.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(p)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=c=>{["Enter"," "].includes(c.key)&&o("keyup")(c)},l={passive:!0};e.addEventListener("mouseover",this.startHover,l),e.addEventListener("mousemove",this.moveRipple,l),e.addEventListener("mouseleave",this.endHover,l),e.addEventListener("mousedown",n,l),e.addEventListener("touchstart",a,l),e.addEventListener("touchmove",this.moveRipple,l),e.addEventListener("keydown",i,l),e.addEventListener("focus",this.startFocus,l),e.addEventListener("blur",this.endFocus,l),e.addEventListener("focusin",this.startFocus,l),e.addEventListener("focusout",this.endFocus,l),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,l),e.removeEventListener("mousemove",this.moveRipple,l),e.removeEventListener("mouseleave",this.endHover,l),e.removeEventListener("mousedown",n,l),e.removeEventListener("touchstart",a,l),e.removeEventListener("touchmove",this.moveRipple,l),e.removeEventListener("keydown",i,l),e.removeEventListener("focus",this.startFocus,l),e.removeEventListener("blur",this.endFocus,l),e.removeEventListener("focusin",this.startFocus,l),e.removeEventListener("focusout",this.endFocus,l),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};W.elementDefinitions={};W.styles=Ti;Ee([(0,ue.property)({type:Boolean})],W.prototype,"primary",void 0);Ee([(0,ue.property)({type:Boolean})],W.prototype,"secondary",void 0);Ee([(0,ue.property)({type:Boolean})],W.prototype,"unbounded",void 0);Ee([(0,ue.property)({type:Boolean})],W.prototype,"activated",void 0);Ee([(0,ue.property)({type:Boolean})],W.prototype,"selected",void 0);Ee([(0,ue.property)({type:Boolean})],W.prototype,"disabled",void 0);Ee([(0,ue.state)()],W.prototype,"hovered",void 0);Ee([(0,ue.state)()],W.prototype,"focused",void 0);Ee([(0,ue.state)()],W.prototype,"pressed",void 0);Ee([(0,ue.state)()],W.prototype,"rippling",void 0);Ee([(0,ue.state)()],W.prototype,"originX",void 0);Ee([(0,ue.state)()],W.prototype,"originY",void 0);Ee([(0,ue.query)(".ft-ripple")],W.prototype,"ripple",void 0);Ee([(0,ue.query)(".ft-ripple--effect")],W.prototype,"rippleEffect",void 0);(0,Gi.customElement)("ft-ripple")(W);var ys=g(I());var hs=g($()),ae=g(K()),_r=g(I());var ji=["top","right","bottom","left"],Vi=["start","end"],pn=ji.reduce((t,e)=>t.concat(e,e+"-"+Vi[0],e+"-"+Vi[1]),[]),Lr=Math.min,St=Math.max,Ir=Math.round;var st=t=>({x:t,y:t}),Uc={left:"right",right:"left",bottom:"top",top:"bottom"},Wc={start:"end",end:"start"};function fn(t,e,o){return St(t,Lr(e,o))}function ro(t,e){return typeof t=="function"?t(e):t}function fr(t){return t.split("-")[0]}function Ot(t){return t.split("-")[1]}function un(t){return t==="x"?"y":"x"}function hn(t){return t==="y"?"height":"width"}function oo(t){return["top","bottom"].includes(fr(t))?"y":"x"}function yn(t){return un(oo(t))}function Ki(t,e,o){o===void 0&&(o=!1);let n=Ot(t),a=yn(t),i=hn(a),l=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(l=dn(l)),[l,dn(l)]}function Zi(t){return t.replace(/start|end/g,e=>Wc[e])}function dn(t){return t.replace(/left|right|bottom|top/g,e=>Uc[e])}function zc(t){return{top:0,right:0,bottom:0,left:0,...t}}function qi(t){return typeof t!="number"?zc(t):{top:t,right:t,bottom:t,left:t}}function Wt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Yi(t,e,o){let{reference:n,floating:a}=t,i=oo(e),l=yn(e),c=hn(l),p=fr(e),f=i==="y",h=n.x+n.width/2-a.width/2,m=n.y+n.height/2-a.height/2,b=n[c]/2-a[c]/2,S;switch(p){case"top":S={x:h,y:n.y-a.height};break;case"bottom":S={x:h,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:m};break;case"left":S={x:n.x-a.width,y:m};break;default:S={x:n.x,y:n.y}}switch(Ot(e)){case"start":S[l]-=b*(o&&f?-1:1);break;case"end":S[l]+=b*(o&&f?-1:1);break}return S}var Xi=async(t,e,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:l}=o,c=i.filter(Boolean),p=await(l.isRTL==null?void 0:l.isRTL(e)),f=await l.getElementRects({reference:t,floating:e,strategy:a}),{x:h,y:m}=Yi(f,n,p),b=n,S={},v=0;for(let O=0;O<c.length;O++){let{name:P,fn:N}=c[O],{x:L,y:k,data:B,reset:F}=await N({x:h,y:m,initialPlacement:n,placement:b,strategy:a,middlewareData:S,rects:f,platform:l,elements:{reference:t,floating:e}});if(h=L??h,m=k??m,S={...S,[P]:{...S[P],...B}},F&&v<=50){v++,typeof F=="object"&&(F.placement&&(b=F.placement),F.rects&&(f=F.rects===!0?await l.getElementRects({reference:t,floating:e,strategy:a}):F.rects),{x:h,y:m}=Yi(f,b,p)),O=-1;continue}}return{x:h,y:m,placement:b,strategy:a,middlewareData:S}};async function mn(t,e){var o;e===void 0&&(e={});let{x:n,y:a,platform:i,rects:l,elements:c,strategy:p}=t,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:b=!1,padding:S=0}=ro(e,t),v=qi(S),P=c[b?m==="floating"?"reference":"floating":m],N=Wt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(P)))==null||o?P:P.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:f,rootBoundary:h,strategy:p})),L=m==="floating"?{...l.floating,x:n,y:a}:l.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),B=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},F=Wt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:L,offsetParent:k,strategy:p}):L);return{top:(N.top-F.top+v.top)/B.y,bottom:(F.bottom-N.bottom+v.bottom)/B.y,left:(N.left-F.left+v.left)/B.x,right:(F.right-N.right+v.right)/B.x}}function Hc(t,e,o){return(t?[...o.filter(a=>Ot(a)===t),...o.filter(a=>Ot(a)!==t)]:o.filter(a=>fr(a)===a)).filter(a=>t?Ot(a)===t||(e?Zi(a)!==a:!1):!0)}var gn=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,n,a;let{rects:i,middlewareData:l,placement:c,platform:p,elements:f}=e,{crossAxis:h=!1,alignment:m,allowedPlacements:b=pn,autoAlignment:S=!0,...v}=ro(t,e),O=m!==void 0||b===pn?Hc(m||null,S,b):b,P=await mn(e,v),N=((o=l.autoPlacement)==null?void 0:o.index)||0,L=O[N];if(L==null)return{};let k=Ki(L,i,await(p.isRTL==null?void 0:p.isRTL(f.floating)));if(c!==L)return{reset:{placement:O[0]}};let B=[P[fr(L)],P[k[0]],P[k[1]]],F=[...((n=l.autoPlacement)==null?void 0:n.overflows)||[],{placement:L,overflows:B}],Ce=O[N+1];if(Ce)return{data:{index:N+1,overflows:F},reset:{placement:Ce}};let Ze=F.map(pe=>{let y=Ot(pe.placement);return[pe.placement,y&&h?pe.overflows.slice(0,2).reduce((x,T)=>x+T,0):pe.overflows[0],pe.overflows]}).sort((pe,y)=>pe[1]-y[1]),qe=((a=Ze.filter(pe=>pe[2].slice(0,Ot(pe[0])?2:3).every(y=>y<=0))[0])==null?void 0:a[0])||Ze[0][0];return qe!==c?{data:{index:N+1,overflows:F},reset:{placement:qe}}:{}}}};var bn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:n,placement:a}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:P=>{let{x:N,y:L}=P;return{x:N,y:L}}},...p}=ro(t,e),f={x:o,y:n},h=await mn(e,p),m=oo(fr(a)),b=un(m),S=f[b],v=f[m];if(i){let P=b==="y"?"top":"left",N=b==="y"?"bottom":"right",L=S+h[P],k=S-h[N];S=fn(L,S,k)}if(l){let P=m==="y"?"top":"left",N=m==="y"?"bottom":"right",L=v+h[P],k=v-h[N];v=fn(L,v,k)}let O=c.fn({...e,[b]:S,[m]:v});return{...O,data:{x:O.x-o,y:O.y-n}}}}};function lt(t){return Ji(t)?(t.nodeName||"").toLowerCase():"#document"}function we(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ct(t){var e;return(e=(Ji(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ji(t){return t instanceof Node||t instanceof we(t).Node}function Qe(t){return t instanceof Element||t instanceof we(t).Element}function We(t){return t instanceof HTMLElement||t instanceof we(t).HTMLElement}function Qi(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof we(t).ShadowRoot}function ur(t){let{overflow:e,overflowX:o,overflowY:n,display:a}=Te(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(a)}function es(t){return["table","td","th"].includes(lt(t))}function ao(t){let e=io(),o=Te(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function ts(t){let e=zt(t);for(;We(e)&&!Pr(e);){if(ao(e))return e;e=zt(e)}return null}function io(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Pr(t){return["html","body","#document"].includes(lt(t))}function Te(t){return we(t).getComputedStyle(t)}function Tr(t){return Qe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function zt(t){if(lt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Qi(t)&&t.host||ct(t);return Qi(e)?e.host:e}function rs(t){let e=zt(t);return Pr(e)?t.ownerDocument?t.ownerDocument.body:t.body:We(e)&&ur(e)?e:rs(e)}function no(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);let a=rs(t),i=a===((n=t.ownerDocument)==null?void 0:n.body),l=we(a);return i?e.concat(l,l.visualViewport||[],ur(a)?a:[],l.frameElement&&o?no(l.frameElement):[]):e.concat(a,no(a,[],o))}function as(t){let e=Te(t),o=parseFloat(e.width)||0,n=parseFloat(e.height)||0,a=We(t),i=a?t.offsetWidth:o,l=a?t.offsetHeight:n,c=Ir(o)!==i||Ir(n)!==l;return c&&(o=i,n=l),{width:o,height:n,$:c}}function is(t){return Qe(t)?t:t.contextElement}function hr(t){let e=is(t);if(!We(e))return st(1);let o=e.getBoundingClientRect(),{width:n,height:a,$:i}=as(e),l=(i?Ir(o.width):o.width)/n,c=(i?Ir(o.height):o.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}var jc=st(0);function ss(t){let e=we(t);return!io()||!e.visualViewport?jc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Kc(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==we(t)?!1:e}function kr(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);let a=t.getBoundingClientRect(),i=is(t),l=st(1);e&&(n?Qe(n)&&(l=hr(n)):l=hr(t));let c=Kc(i,o,n)?ss(i):st(0),p=(a.left+c.x)/l.x,f=(a.top+c.y)/l.y,h=a.width/l.x,m=a.height/l.y;if(i){let b=we(i),S=n&&Qe(n)?we(n):n,v=b.frameElement;for(;v&&n&&S!==b;){let O=hr(v),P=v.getBoundingClientRect(),N=Te(v),L=P.left+(v.clientLeft+parseFloat(N.paddingLeft))*O.x,k=P.top+(v.clientTop+parseFloat(N.paddingTop))*O.y;p*=O.x,f*=O.y,h*=O.x,m*=O.y,p+=L,f+=k,v=we(v).frameElement}}return Wt({width:h,height:m,x:p,y:f})}function Zc(t){let{rect:e,offsetParent:o,strategy:n}=t,a=We(o),i=ct(o);if(o===i)return e;let l={scrollLeft:0,scrollTop:0},c=st(1),p=st(0);if((a||!a&&n!=="fixed")&&((lt(o)!=="body"||ur(i))&&(l=Tr(o)),We(o))){let f=kr(o);c=hr(o),p.x=f.x+o.clientLeft,p.y=f.y+o.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-l.scrollLeft*c.x+p.x,y:e.y*c.y-l.scrollTop*c.y+p.y}}function qc(t){return Array.from(t.getClientRects())}function ls(t){return kr(ct(t)).left+Tr(t).scrollLeft}function Yc(t){let e=ct(t),o=Tr(t),n=t.ownerDocument.body,a=St(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=St(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),l=-o.scrollLeft+ls(t),c=-o.scrollTop;return Te(n).direction==="rtl"&&(l+=St(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:l,y:c}}function Xc(t,e){let o=we(t),n=ct(t),a=o.visualViewport,i=n.clientWidth,l=n.clientHeight,c=0,p=0;if(a){i=a.width,l=a.height;let f=io();(!f||f&&e==="fixed")&&(c=a.offsetLeft,p=a.offsetTop)}return{width:i,height:l,x:c,y:p}}function Qc(t,e){let o=kr(t,!0,e==="fixed"),n=o.top+t.clientTop,a=o.left+t.clientLeft,i=We(t)?hr(t):st(1),l=t.clientWidth*i.x,c=t.clientHeight*i.y,p=a*i.x,f=n*i.y;return{width:l,height:c,x:p,y:f}}function os(t,e,o){let n;if(e==="viewport")n=Xc(t,o);else if(e==="document")n=Yc(ct(t));else if(Qe(e))n=Qc(e,o);else{let a=ss(t);n={...e,x:e.x-a.x,y:e.y-a.y}}return Wt(n)}function cs(t,e){let o=zt(t);return o===e||!Qe(o)||Pr(o)?!1:Te(o).position==="fixed"||cs(o,e)}function Jc(t,e){let o=e.get(t);if(o)return o;let n=no(t,[],!1).filter(c=>Qe(c)&&lt(c)!=="body"),a=null,i=Te(t).position==="fixed",l=i?zt(t):t;for(;Qe(l)&&!Pr(l);){let c=Te(l),p=ao(l);!p&&c.position==="fixed"&&(a=null),(i?!p&&!a:!p&&c.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||ur(l)&&!p&&cs(t,l))?n=n.filter(h=>h!==l):a=c,l=zt(l)}return e.set(t,n),n}function ed(t){let{element:e,boundary:o,rootBoundary:n,strategy:a}=t,l=[...o==="clippingAncestors"?Jc(e,this._c):[].concat(o),n],c=l[0],p=l.reduce((f,h)=>{let m=os(e,h,a);return f.top=St(m.top,f.top),f.right=Lr(m.right,f.right),f.bottom=Lr(m.bottom,f.bottom),f.left=St(m.left,f.left),f},os(e,c,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function td(t){return as(t)}function rd(t,e,o){let n=We(e),a=ct(e),i=o==="fixed",l=kr(t,!0,i,e),c={scrollLeft:0,scrollTop:0},p=st(0);if(n||!n&&!i)if((lt(e)!=="body"||ur(a))&&(c=Tr(e)),n){let f=kr(e,!0,i,e);p.x=f.x+e.clientLeft,p.y=f.y+e.clientTop}else a&&(p.x=ls(a));return{x:l.left+c.scrollLeft-p.x,y:l.top+c.scrollTop-p.y,width:l.width,height:l.height}}function ns(t,e){return!We(t)||Te(t).position==="fixed"?null:e?e(t):t.offsetParent}function ds(t,e){let o=we(t);if(!We(t))return o;let n=ns(t,e);for(;n&&es(n)&&Te(n).position==="static";)n=ns(n,e);return n&&(lt(n)==="html"||lt(n)==="body"&&Te(n).position==="static"&&!ao(n))?o:n||ts(t)||o}var od=async function(t){let{reference:e,floating:o,strategy:n}=t,a=this.getOffsetParent||ds,i=this.getDimensions;return{reference:rd(e,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function nd(t){return Te(t).direction==="rtl"}var so={convertOffsetParentRelativeRectToViewportRelativeRect:Zc,getDocumentElement:ct,getClippingRect:ed,getOffsetParent:ds,getElementRects:od,getClientRects:qc,getDimensions:td,getScale:hr,isElement:Qe,isRTL:nd};var ps=(t,e,o)=>{let n=new Map,a={platform:so,...o},i={...a.platform,_c:n};return Xi(t,e,{...a,platform:i})};function fs(t){return ad(t)}function xn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function ad(t){for(let e=t;e;e=xn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=xn(t);e;e=xn(e)){if(!(e instanceof Element))continue;let o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}async function us(t,e,o){return ps(t,e,{platform:{...so,getOffsetParent:n=>so.getOffsetParent(n,fs)},middleware:[bn({crossAxis:!0}),gn({allowedPlacements:[o]})]})}var Ae=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},q=class extends _r.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new _r.Debouncer,this.revealDebouncer=new _r.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return hs.html`
524
524
  <div part="container"
525
525
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
526
526
  @mouseenter=${this.onHover}
@@ -538,7 +538,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
538
538
  </div>
539
539
  </div>
540
540
  </div>
541
- `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",us(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};q.elementDefinitions={"ft-typography":te};q.styles=xa;Ae([(0,ne.property)()],q.prototype,"text",void 0);Ae([(0,ne.property)({type:Boolean})],q.prototype,"manual",void 0);Ae([(0,ne.property)({type:Boolean})],q.prototype,"inline",void 0);Ae([(0,ne.property)({type:Number})],q.prototype,"delay",void 0);Ae([(0,ne.property)()],q.prototype,"position",void 0);Ae([(0,ne.queryAssignedNodes)()],q.prototype,"slotNodes",void 0);Ae([(0,ne.query)(".ft-tooltip--container")],q.prototype,"container",void 0);Ae([(0,ne.query)(".ft-tooltip")],q.prototype,"tooltip",void 0);Ae([(0,ne.query)(".ft-tooltip--content")],q.prototype,"tooltipContent",void 0);Ae([(0,ne.state)()],q.prototype,"visible",void 0);Ae([(0,ne.eventOptions)({passive:!0})],q.prototype,"onTouch",null);Ae([(0,ne.eventOptions)({passive:!0})],q.prototype,"onHover",null);Ae([(0,ne.eventOptions)({passive:!0})],q.prototype,"onOut",null);Ae([(0,ne.eventOptions)({passive:!0})],q.prototype,"onClick",null);(0,ys.customElement)("ft-tooltip")(q);var vs=g(I());var Dr=g($()),Ht=g(K()),bs=g(I()),xs=g(gs());var lo;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.EXPAND="&#xe9a3",t.COMPRESS="&#xe9a2;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;"})(lo||(lo={}));var w;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(w||(w={}));var Cm=new Map([...["abw"].map(t=>[t,w.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,w.AUDIO]),...["avi"].map(t=>[t,w.AVI]),...["chm","xhs"].map(t=>[t,w.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,w.CODE]),...["csv"].map(t=>[t,w.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,w.DITA]),...["epub"].map(t=>[t,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,w.EXCEL]),...["flac"].map(t=>[t,w.FLAC]),...["gif"].map(t=>[t,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,w.GZIP]),...["html","htm","xhtml"].map(t=>[t,w.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,w.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,w.JPEG]),...["json"].map(t=>[t,w.JSON]),...["m4a","m4p"].map(t=>[t,w.M4A]),...["mov","qt"].map(t=>[t,w.MOV]),...["mp3"].map(t=>[t,w.MP3]),...["mp4","m4v"].map(t=>[t,w.MP4]),...["ogg","oga"].map(t=>[t,w.OGG]),...["pdf","ps"].map(t=>[t,w.PDF]),...["png"].map(t=>[t,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,w.POWERPOINT]),...["rar"].map(t=>[t,w.RAR]),...["stp"].map(t=>[t,w.STP]),...["txt","rtf","md","mdown"].map(t=>[t,w.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,w.VIDEO]),...["wav"].map(t=>[t,w.WAV]),...["wma"].map(t=>[t,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,w.WORD]),...["xml","xsl","rdf"].map(t=>[t,w.XML]),...["yaml","yml","x-yaml"].map(t=>[t,w.YAML]),...["zip"].map(t=>[t,w.ZIP])]);var Em={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Je;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Je||(Je={}));var co=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ye=class extends bs.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Dr.nothing}render(){let e=this.variant&&Object.values(Je).includes(this.variant)?this.variant:Je.fluid_topics,o=e!==Je.material||!!this.value;return Dr.html`
541
+ `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",us(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};q.elementDefinitions={"ft-typography":te};q.styles=xa;Ae([(0,ae.property)()],q.prototype,"text",void 0);Ae([(0,ae.property)({type:Boolean})],q.prototype,"manual",void 0);Ae([(0,ae.property)({type:Boolean})],q.prototype,"inline",void 0);Ae([(0,ae.property)({type:Number})],q.prototype,"delay",void 0);Ae([(0,ae.property)()],q.prototype,"position",void 0);Ae([(0,ae.queryAssignedNodes)()],q.prototype,"slotNodes",void 0);Ae([(0,ae.query)(".ft-tooltip--container")],q.prototype,"container",void 0);Ae([(0,ae.query)(".ft-tooltip")],q.prototype,"tooltip",void 0);Ae([(0,ae.query)(".ft-tooltip--content")],q.prototype,"tooltipContent",void 0);Ae([(0,ae.state)()],q.prototype,"visible",void 0);Ae([(0,ae.eventOptions)({passive:!0})],q.prototype,"onTouch",null);Ae([(0,ae.eventOptions)({passive:!0})],q.prototype,"onHover",null);Ae([(0,ae.eventOptions)({passive:!0})],q.prototype,"onOut",null);Ae([(0,ae.eventOptions)({passive:!0})],q.prototype,"onClick",null);(0,ys.customElement)("ft-tooltip")(q);var vs=g(I());var Dr=g($()),Ht=g(K()),bs=g(I()),xs=g(gs());var lo;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.EXPAND="&#xe9a3",t.COMPRESS="&#xe9a2;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;"})(lo||(lo={}));var w;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(w||(w={}));var Cm=new Map([...["abw"].map(t=>[t,w.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,w.AUDIO]),...["avi"].map(t=>[t,w.AVI]),...["chm","xhs"].map(t=>[t,w.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,w.CODE]),...["csv"].map(t=>[t,w.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,w.DITA]),...["epub"].map(t=>[t,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,w.EXCEL]),...["flac"].map(t=>[t,w.FLAC]),...["gif"].map(t=>[t,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,w.GZIP]),...["html","htm","xhtml"].map(t=>[t,w.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,w.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,w.JPEG]),...["json"].map(t=>[t,w.JSON]),...["m4a","m4p"].map(t=>[t,w.M4A]),...["mov","qt"].map(t=>[t,w.MOV]),...["mp3"].map(t=>[t,w.MP3]),...["mp4","m4v"].map(t=>[t,w.MP4]),...["ogg","oga"].map(t=>[t,w.OGG]),...["pdf","ps"].map(t=>[t,w.PDF]),...["png"].map(t=>[t,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,w.POWERPOINT]),...["rar"].map(t=>[t,w.RAR]),...["stp"].map(t=>[t,w.STP]),...["txt","rtf","md","mdown"].map(t=>[t,w.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,w.VIDEO]),...["wav"].map(t=>[t,w.WAV]),...["wma"].map(t=>[t,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,w.WORD]),...["xml","xsl","rdf"].map(t=>[t,w.XML]),...["yaml","yml","x-yaml"].map(t=>[t,w.YAML]),...["zip"].map(t=>[t,w.ZIP])]);var Em={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Je;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Je||(Je={}));var co=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ye=class extends bs.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Dr.nothing}render(){let e=this.variant&&Object.values(Je).includes(this.variant)?this.variant:Je.fluid_topics,o=e!==Je.material||!!this.value;return Dr.html`
542
542
  <i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
543
543
  ${(0,xs.unsafeHTML)(this.resolvedIcon)}
544
544
  <slot ?hidden=${o}></slot>
@@ -550,7 +550,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
550
550
  <div></div>
551
551
  <div></div>
552
552
  </div>
553
- `}};Gt.styles=_i;(0,Cs.customElement)("ft-loader")(Gt);var Ct=g($()),vn=g(pr()),ae=g(K()),he=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Y=class extends(0,Et.toFtFormComponent)(Et.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let a=Ct.html`
553
+ `}};Gt.styles=_i;(0,Cs.customElement)("ft-loader")(Gt);var Ct=g($()),vn=g(pr()),ie=g(K()),he=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Y=class extends(0,Et.toFtFormComponent)(Et.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let a=Ct.html`
554
554
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
555
555
  <ft-typography part="label"
556
556
  variant=${this.typographyVariant}
@@ -587,7 +587,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
587
587
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
588
588
  `:Ct.html`
589
589
  <slot part="icon" name="icon"></slot>
590
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Et.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Y.elementDefinitions={"ft-ripple":W,"ft-tooltip":q,"ft-typography":te,"ft-icon":ye,"ft-loader":Gt};he([(0,ae.property)()],Y.prototype,"href",void 0);he([(0,ae.property)()],Y.prototype,"target",void 0);he([(0,ae.property)({type:String,reflect:!0})],Y.prototype,"role",void 0);he([(0,ae.property)()],Y.prototype,"type",void 0);he([(0,ae.property)({type:Boolean})],Y.prototype,"disabled",void 0);he([(0,ae.property)()],Y.prototype,"label",void 0);he([(0,ae.property)()],Y.prototype,"icon",void 0);he([(0,ae.property)()],Y.prototype,"iconVariant",void 0);he([(0,ae.property)({type:Boolean})],Y.prototype,"trailingIcon",void 0);he([(0,ae.property)({type:Boolean})],Y.prototype,"loading",void 0);he([(0,ae.property)({attribute:"aria-label"})],Y.prototype,"ariaLabel",void 0);he([(0,ae.property)()],Y.prototype,"tooltipPosition",void 0);he([(0,ae.property)({type:Boolean})],Y.prototype,"hideTooltip",void 0);he([(0,ae.property)({type:Boolean})],Y.prototype,"forceTooltip",void 0);he([(0,ae.query)(".ft-button")],Y.prototype,"button",void 0);he([(0,ae.query)(".ft-button--label slot")],Y.prototype,"slottedContent",void 0);he([(0,ae.query)("[part=tooltip]")],Y.prototype,"tooltip",void 0);var po=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ve=class extends Y{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}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}}get typographyVariant(){return"button"}};ve.styles=[Es.safariEllipsisFix,Ui];po([(0,Br.property)({type:Boolean})],ve.prototype,"primary",void 0);po([(0,Br.property)({type:Boolean})],ve.prototype,"outlined",void 0);po([(0,Br.property)({type:Boolean})],ve.prototype,"dense",void 0);po([(0,Br.property)({type:Boolean})],ve.prototype,"round",void 0);var $r=g(K());var uo=g(I());var ws=g($()),C=g(I());var As=[ws.css`
590
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Et.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Y.elementDefinitions={"ft-ripple":W,"ft-tooltip":q,"ft-typography":te,"ft-icon":ye,"ft-loader":Gt};he([(0,ie.property)()],Y.prototype,"href",void 0);he([(0,ie.property)()],Y.prototype,"target",void 0);he([(0,ie.property)({type:String,reflect:!0})],Y.prototype,"role",void 0);he([(0,ie.property)()],Y.prototype,"type",void 0);he([(0,ie.property)({type:Boolean})],Y.prototype,"disabled",void 0);he([(0,ie.property)()],Y.prototype,"label",void 0);he([(0,ie.property)()],Y.prototype,"icon",void 0);he([(0,ie.property)()],Y.prototype,"iconVariant",void 0);he([(0,ie.property)({type:Boolean})],Y.prototype,"trailingIcon",void 0);he([(0,ie.property)({type:Boolean})],Y.prototype,"loading",void 0);he([(0,ie.property)({attribute:"aria-label"})],Y.prototype,"ariaLabel",void 0);he([(0,ie.property)()],Y.prototype,"tooltipPosition",void 0);he([(0,ie.property)({type:Boolean})],Y.prototype,"hideTooltip",void 0);he([(0,ie.property)({type:Boolean})],Y.prototype,"forceTooltip",void 0);he([(0,ie.query)(".ft-button")],Y.prototype,"button",void 0);he([(0,ie.query)(".ft-button--label slot")],Y.prototype,"slottedContent",void 0);he([(0,ie.query)("[part=tooltip]")],Y.prototype,"tooltip",void 0);var po=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ve=class extends Y{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}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}}get typographyVariant(){return"button"}};ve.styles=[Es.safariEllipsisFix,Ui];po([(0,Br.property)({type:Boolean})],ve.prototype,"primary",void 0);po([(0,Br.property)({type:Boolean})],ve.prototype,"outlined",void 0);po([(0,Br.property)({type:Boolean})],ve.prototype,"dense",void 0);po([(0,Br.property)({type:Boolean})],ve.prototype,"round",void 0);var $r=g(K());var uo=g(I());var ws=g($()),C=g(I());var As=[ws.css`
591
591
  :host {
592
592
  display: inline-block;
593
593
  max-width: 100%;
@@ -1247,7 +1247,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1247
1247
  .ft-radio ft-typography {
1248
1248
  padding-right: 2px;
1249
1249
  }
1250
- `;var ut=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ho=class extends CustomEvent{constructor(e,o){super("change",{detail:{value:e,checked:o},bubbles:!0,composed:!0})}},ie=class extends Bs.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1,this.role="radio"}render(){let e={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return Ds.html`
1250
+ `;var ut=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ho=class extends CustomEvent{constructor(e,o){super("change",{detail:{value:e,checked:o},bubbles:!0,composed:!0})}},se=class extends Bs.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1,this.role="radio"}render(){let e={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return Ds.html`
1251
1251
  <div class="${(0,$s.classMap)(e)}">
1252
1252
  <div class="ft-radio--box-container">
1253
1253
  <ft-ripple
@@ -1272,7 +1272,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1272
1272
  </ft-typography>
1273
1273
  </label>
1274
1274
  </div>
1275
- `}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new ho(this.value,this.checked))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),(o=this.ripple)===null||o===void 0||o.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new ho(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}};ie.elementDefinitions={"ft-ripple":W,"ft-typography":te};ie.styles=_s;ut([(0,ze.property)()],ie.prototype,"value",void 0);ut([(0,ze.property)()],ie.prototype,"name",void 0);ut([(0,ze.property)({type:Boolean,reflect:!0})],ie.prototype,"checked",void 0);ut([(0,ze.property)({attribute:"aria-checked",reflect:!0})],ie.prototype,"ariaChecked",void 0);ut([(0,ze.property)({type:Boolean})],ie.prototype,"disabled",void 0);ut([(0,ze.property)({reflect:!0,attribute:"role"})],ie.prototype,"role",void 0);ut([(0,ze.query)(".ft-radio")],ie.prototype,"container",void 0);ut([(0,ze.query)("ft-ripple")],ie.prototype,"ripple",void 0);ut([(0,ze.query)("input")],ie.prototype,"input",void 0);var Us=g(I()),ht=g(K()),Ws=g($());var Fs=g($());var Ms=Fs.css`
1275
+ `}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new ho(this.value,this.checked))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),(o=this.ripple)===null||o===void 0||o.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new ho(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}};se.elementDefinitions={"ft-ripple":W,"ft-typography":te};se.styles=_s;ut([(0,ze.property)()],se.prototype,"value",void 0);ut([(0,ze.property)()],se.prototype,"name",void 0);ut([(0,ze.property)({type:Boolean,reflect:!0})],se.prototype,"checked",void 0);ut([(0,ze.property)({attribute:"aria-checked",reflect:!0})],se.prototype,"ariaChecked",void 0);ut([(0,ze.property)({type:Boolean})],se.prototype,"disabled",void 0);ut([(0,ze.property)({reflect:!0,attribute:"role"})],se.prototype,"role",void 0);ut([(0,ze.query)(".ft-radio")],se.prototype,"container",void 0);ut([(0,ze.query)("ft-ripple")],se.prototype,"ripple",void 0);ut([(0,ze.query)("input")],se.prototype,"input",void 0);var Us=g(I()),ht=g(K()),Ws=g($());var Fs=g($());var Ms=Fs.css`
1276
1276
  :host {
1277
1277
  display: block;
1278
1278
  }
@@ -1285,7 +1285,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1285
1285
  @change=${this.onChange}
1286
1286
  @keydown=${this.onKeyDown}
1287
1287
  ></slot>
1288
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(o=>o.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(o=>o.checked=e.detail.value===o.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let o=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{o=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{o=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}o&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(o=>o.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Ne.elementDefinitions={};Ne.styles=Ms;yr([(0,ht.property)()],Ne.prototype,"name",void 0);yr([(0,ht.property)({reflect:!0,attribute:"role"})],Ne.prototype,"role",void 0);yr([(0,ht.property)({reflect:!0})],Ne.prototype,"tabIndex",void 0);yr([(0,ht.property)({reflect:!0,attribute:"aria-labelledby"})],Ne.prototype,"ariaLabelledBy",void 0);yr([(0,ht.queryAssignedElements)()],Ne.prototype,"assignedElements",void 0);yr([(0,ht.state)()],Ne.prototype,"currentSelectedIndex",void 0);(0,On.customElement)("ft-radio")(ie);(0,On.customElement)("ft-radio-group")(Ne);var zs=g($()),H=g(I());var Fr={buttonMoreColor:H.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",H.designSystemVariables.colorOnSurface),borderRadiusM:H.FtCssVariableFactory.external(H.designSystemVariables.borderRadiusM,"Design system"),colorOutline:H.FtCssVariableFactory.external(H.designSystemVariables.colorOutline,"Design system"),colorOnSurface:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:H.FtCssVariableFactory.external(H.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:H.FtCssVariableFactory.external(Pe.fontFamily,"Body2 typography"),fontSize:H.FtCssVariableFactory.external(Pe.fontSize,"Body2 typography"),fontWeight:H.FtCssVariableFactory.external(Pe.fontWeight,"Body2 typography"),letterSpacing:H.FtCssVariableFactory.external(Pe.letterSpacing,"Body2 typography"),lineHeight:H.FtCssVariableFactory.external(Pe.lineHeight,"Body2 typography"),textTransform:H.FtCssVariableFactory.external(Pe.textTransform,"Body2 typography")},Hs=zs.css`
1288
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(o=>o.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(o=>o.checked=e.detail.value===o.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let o=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{o=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{o=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}o&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(o=>o.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Ne.elementDefinitions={};Ne.styles=Ms;yr([(0,ht.property)()],Ne.prototype,"name",void 0);yr([(0,ht.property)({reflect:!0,attribute:"role"})],Ne.prototype,"role",void 0);yr([(0,ht.property)({reflect:!0})],Ne.prototype,"tabIndex",void 0);yr([(0,ht.property)({reflect:!0,attribute:"aria-labelledby"})],Ne.prototype,"ariaLabelledBy",void 0);yr([(0,ht.queryAssignedElements)()],Ne.prototype,"assignedElements",void 0);yr([(0,ht.state)()],Ne.prototype,"currentSelectedIndex",void 0);(0,On.customElement)("ft-radio")(se);(0,On.customElement)("ft-radio-group")(Ne);var zs=g($()),H=g(I());var Fr={buttonMoreColor:H.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",H.designSystemVariables.colorOnSurface),borderRadiusM:H.FtCssVariableFactory.external(H.designSystemVariables.borderRadiusM,"Design system"),colorOutline:H.FtCssVariableFactory.external(H.designSystemVariables.colorOutline,"Design system"),colorOnSurface:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:H.FtCssVariableFactory.external(H.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:H.FtCssVariableFactory.external(Pe.fontFamily,"Body2 typography"),fontSize:H.FtCssVariableFactory.external(Pe.fontSize,"Body2 typography"),fontWeight:H.FtCssVariableFactory.external(Pe.fontWeight,"Body2 typography"),letterSpacing:H.FtCssVariableFactory.external(Pe.letterSpacing,"Body2 typography"),lineHeight:H.FtCssVariableFactory.external(Pe.lineHeight,"Body2 typography"),textTransform:H.FtCssVariableFactory.external(Pe.textTransform,"Body2 typography")},Hs=zs.css`
1289
1289
  .ft-filter-level--container {
1290
1290
  display: flex;
1291
1291
  flex-direction: column;
@@ -1421,7 +1421,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1421
1421
  @change=${o=>this.optionsChanged(o,e)}>
1422
1422
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1423
1423
  </ft-radio>
1424
- `}onRadioKeyDown(e,o){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,o))}optionsChanged(e,o){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:o}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};re.elementDefinitions={"ft-button":ve,"ft-ripple":W,"ft-typography":te,"ft-checkbox":Se,"ft-icon":ye,"ft-radio":ie};re.styles=Hs;Oe([(0,le.property)({type:String})],re.prototype,"filterId",void 0);Oe([(0,le.property)({type:Object})],re.prototype,"parent",void 0);Oe([(0,le.property)({type:Array})],re.prototype,"options",void 0);Oe([(0,le.property)({type:Boolean})],re.prototype,"multivalued",void 0);Oe([(0,le.property)({type:Boolean})],re.prototype,"disabled",void 0);Oe([(0,le.property)({type:Boolean})],re.prototype,"hideSelectedOptions",void 0);Oe([(0,le.property)({type:Boolean})],re.prototype,"displayCount",void 0);Oe([(0,le.property)({type:Boolean})],re.prototype,"preventNavigation",void 0);Oe([(0,le.property)({type:String})],re.prototype,"filter",void 0);Oe([(0,le.property)({type:String})],re.prototype,"moreValuesButtonLabel",void 0);Oe([(0,le.property)({type:String})],re.prototype,"noValuesLabel",void 0);Oe([(0,le.property)({type:Number})],re.prototype,"displayedValuesLimit",void 0);Oe([(0,le.query)(".ft-filter-level--container")],re.prototype,"container",void 0);Oe([(0,le.state)()],re.prototype,"radios",void 0);Oe([(0,le.state)()],re.prototype,"displayedPages",void 0);var qs=g(I());var Ks=g($()),De=g(K()),jt=g(I());var Zs=g(pr());var Vs=g($()),He=g(I());var At={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")},js=Vs.css`
1424
+ `}onRadioKeyDown(e,o){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,o))}optionsChanged(e,o){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:o}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};re.elementDefinitions={"ft-button":ve,"ft-ripple":W,"ft-typography":te,"ft-checkbox":Se,"ft-icon":ye,"ft-radio":se};re.styles=Hs;Oe([(0,ce.property)({type:String})],re.prototype,"filterId",void 0);Oe([(0,ce.property)({type:Object})],re.prototype,"parent",void 0);Oe([(0,ce.property)({type:Array})],re.prototype,"options",void 0);Oe([(0,ce.property)({type:Boolean})],re.prototype,"multivalued",void 0);Oe([(0,ce.property)({type:Boolean})],re.prototype,"disabled",void 0);Oe([(0,ce.property)({type:Boolean})],re.prototype,"hideSelectedOptions",void 0);Oe([(0,ce.property)({type:Boolean})],re.prototype,"displayCount",void 0);Oe([(0,ce.property)({type:Boolean})],re.prototype,"preventNavigation",void 0);Oe([(0,ce.property)({type:String})],re.prototype,"filter",void 0);Oe([(0,ce.property)({type:String})],re.prototype,"moreValuesButtonLabel",void 0);Oe([(0,ce.property)({type:String})],re.prototype,"noValuesLabel",void 0);Oe([(0,ce.property)({type:Number})],re.prototype,"displayedValuesLimit",void 0);Oe([(0,ce.query)(".ft-filter-level--container")],re.prototype,"container",void 0);Oe([(0,ce.state)()],re.prototype,"radios",void 0);Oe([(0,ce.state)()],re.prototype,"displayedPages",void 0);var qs=g(I());var Ks=g($()),De=g(K()),jt=g(I());var Zs=g(pr());var Vs=g($()),He=g(I());var At={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")},js=Vs.css`
1425
1425
  .ft-snap-scroll {
1426
1426
  box-sizing: border-box;
1427
1427
  position: relative;
@@ -1546,7 +1546,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1546
1546
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1547
1547
  background-color: ${At.colorSurface};
1548
1548
  }
1549
- `;var et=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Cn=class extends CustomEvent{constructor(e,o){super("current-element-change",{detail:{index:e,element:o}})}},ce=class extends jt.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 jt.Debouncer(200),this.updateScrollDebouncer=new jt.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let o=this.elements[e];if(o){let n=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,a=this.contentSlot[this.scrollAttribute]+this.prevSize;(o[this.offsetAttribute]<a||o[this.offsetAttribute]+o[this.sizeAttribute]>n)&&this.scrollToElement(o)}}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 e=(0,Zs.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":jt.isSafari}),o=this.controls&&this.withScroll;return Ks.html`
1549
+ `;var et=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Cn=class extends CustomEvent{constructor(e,o){super("current-element-change",{detail:{index:e,element:o}})}},de=class extends jt.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 jt.Debouncer(200),this.updateScrollDebouncer=new jt.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let o=this.elements[e];if(o){let n=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,a=this.contentSlot[this.scrollAttribute]+this.prevSize;(o[this.offsetAttribute]<a||o[this.offsetAttribute]+o[this.sizeAttribute]>n)&&this.scrollToElement(o)}}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 e=(0,Zs.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":jt.isSafari}),o=this.controls&&this.withScroll;return Ks.html`
1550
1550
  <div part="container" class="${e}">
1551
1551
  <ft-button
1552
1552
  class="ft-snap-scroll--previous"
@@ -1570,7 +1570,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1570
1570
  @click=${this.next}
1571
1571
  ></ft-button>
1572
1572
  </div>
1573
- `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Cn(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(o=this.listenedContainer)===null||o===void 0||o.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let o=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<o&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var o,n;e&&(this.horizontal?(o=this.contentSlot)===null||o===void 0||o.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(n=this.contentSlot)===null||n===void 0||n.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,o;this.elements=(o=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(n=>n))!==null&&o!==void 0?o:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let o=0;o<this.elements.length;o++)(e<0||this.getDistanceFromStart(this.elements[o])<this.getDistanceFromStart(this.elements[e]))&&(e=o);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let o=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-o)}};ce.elementDefinitions={"ft-button":ve};ce.styles=js;et([(0,De.property)({type:Boolean})],ce.prototype,"horizontal",void 0);et([(0,De.property)({type:Boolean})],ce.prototype,"hideScrollbar",void 0);et([(0,De.property)({type:Boolean})],ce.prototype,"controls",void 0);et([(0,De.property)({type:Boolean})],ce.prototype,"limitSize",void 0);et([(0,De.state)()],ce.prototype,"elements",void 0);et([(0,De.state)()],ce.prototype,"currentElement",void 0);et([(0,De.state)()],ce.prototype,"withScroll",void 0);et([(0,De.state)()],ce.prototype,"startReached",void 0);et([(0,De.state)()],ce.prototype,"endReached",void 0);et([(0,De.query)(".ft-snap-scroll--content")],ce.prototype,"contentSlot",void 0);(0,qs.customElement)("ft-snap-scroll")(ce);var Ys=g($()),j=g(I());var Le={colorOutline:j.FtCssVariableFactory.external(j.designSystemVariables.colorOutline,"Design system"),colorOnSurface:j.FtCssVariableFactory.external(j.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:j.FtCssVariableFactory.external(j.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:j.FtCssVariableFactory.external(j.designSystemVariables.colorPrimary,"Design system"),colorSurface:j.FtCssVariableFactory.external(j.designSystemVariables.colorSurface,"Design system"),transitionDuration:j.FtCssVariableFactory.external(j.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:j.FtCssVariableFactory.external(j.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:j.FtCssVariableFactory.extend("--ft-filter-label-color","",j.designSystemVariables.colorOnSurface),labelFontSize:j.FtCssVariableFactory.extend("--ft-filter-label-font-size","",R.fontSize,"16px")},Xs=[Qr,j.noTextInputDefaultClearButton,Ys.css`
1573
+ `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Cn(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(o=this.listenedContainer)===null||o===void 0||o.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let o=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<o&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var o,n;e&&(this.horizontal?(o=this.contentSlot)===null||o===void 0||o.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(n=this.contentSlot)===null||n===void 0||n.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,o;this.elements=(o=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(n=>n))!==null&&o!==void 0?o:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let o=0;o<this.elements.length;o++)(e<0||this.getDistanceFromStart(this.elements[o])<this.getDistanceFromStart(this.elements[e]))&&(e=o);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let o=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-o)}};de.elementDefinitions={"ft-button":ve};de.styles=js;et([(0,De.property)({type:Boolean})],de.prototype,"horizontal",void 0);et([(0,De.property)({type:Boolean})],de.prototype,"hideScrollbar",void 0);et([(0,De.property)({type:Boolean})],de.prototype,"controls",void 0);et([(0,De.property)({type:Boolean})],de.prototype,"limitSize",void 0);et([(0,De.state)()],de.prototype,"elements",void 0);et([(0,De.state)()],de.prototype,"currentElement",void 0);et([(0,De.state)()],de.prototype,"withScroll",void 0);et([(0,De.state)()],de.prototype,"startReached",void 0);et([(0,De.state)()],de.prototype,"endReached",void 0);et([(0,De.query)(".ft-snap-scroll--content")],de.prototype,"contentSlot",void 0);(0,qs.customElement)("ft-snap-scroll")(de);var Ys=g($()),j=g(I());var Le={colorOutline:j.FtCssVariableFactory.external(j.designSystemVariables.colorOutline,"Design system"),colorOnSurface:j.FtCssVariableFactory.external(j.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:j.FtCssVariableFactory.external(j.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:j.FtCssVariableFactory.external(j.designSystemVariables.colorPrimary,"Design system"),colorSurface:j.FtCssVariableFactory.external(j.designSystemVariables.colorSurface,"Design system"),transitionDuration:j.FtCssVariableFactory.external(j.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:j.FtCssVariableFactory.external(j.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:j.FtCssVariableFactory.extend("--ft-filter-label-color","",j.designSystemVariables.colorOnSurface),labelFontSize:j.FtCssVariableFactory.extend("--ft-filter-label-font-size","",R.fontSize,"16px")},Xs=[Qr,j.noTextInputDefaultClearButton,Ys.css`
1574
1574
  :host {
1575
1575
  display: flex;
1576
1576
  max-height: 100%;
@@ -1764,7 +1764,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1764
1764
  .exportpartsPrefixes=${["values","available-values"]}
1765
1765
  noValuesLabel="${this.noValuesLabel}"
1766
1766
  ></ft-filter-level>
1767
- `}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var o;e.stopPropagation();let n=this.flatOptions.find(i=>i.value===e.detail.value);n.selected=!n.selected;let a=i=>{var l;i!==n&&(i.selected=!1),(l=i.subOptions)===null||l===void 0||l.forEach(a)};this.multivalued?(o=n.subOptions)===null||o===void 0||o.forEach(a):this.options.forEach(a),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(o=>o.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Me.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new En(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(o=>o),this.optionsChanged()}onFilterChange(){var e,o;this.filter=(o=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};U.elementDefinitions={"ft-button":ve,"ft-filter-level":re,"ft-snap-scroll":ce,"ft-typography":te};U.styles=Xs;X([(0,G.property)({type:String})],U.prototype,"id",void 0);X([(0,G.property)({type:String})],U.prototype,"label",void 0);X([(0,G.property)({type:String})],U.prototype,"filterPlaceHolder",void 0);X([(0,G.property)({type:String})],U.prototype,"clearButtonLabel",void 0);X([(0,G.property)({type:String})],U.prototype,"moreValuesButtonLabel",void 0);X([(0,G.property)({type:String})],U.prototype,"noValuesLabel",void 0);X([(0,Me.jsonProperty)([])],U.prototype,"options",void 0);X([(0,G.property)({type:Boolean})],U.prototype,"multivalued",void 0);X([(0,G.property)({type:Boolean})],U.prototype,"disabled",void 0);X([(0,G.property)({type:Boolean})],U.prototype,"raiseSelectedOptions",void 0);X([(0,G.property)({type:Boolean})],U.prototype,"displayCount",void 0);X([(0,G.property)({type:Number})],U.prototype,"displayedValuesLimit",void 0);X([(0,G.property)({type:Boolean})],U.prototype,"hideClearButton",void 0);X([(0,G.query)(".ft-filter--slot")],U.prototype,"slotElement",void 0);X([(0,G.query)(".ft-filter--container")],U.prototype,"container",void 0);X([(0,G.query)(".ft-filter--values")],U.prototype,"valuesContainer",void 0);X([(0,G.query)(".ft-filter--levels")],U.prototype,"levelsContainer",void 0);X([(0,G.state)()],U.prototype,"lastLevelHasHiddenvalues",void 0);X([(0,G.query)(".ft-filter--filter input")],U.prototype,"filterInput",void 0);X([(0,G.queryAll)(".ft-filter--levels ft-filter-level")],U.prototype,"levels",void 0);X([(0,G.state)()],U.prototype,"withScroll",void 0);X([(0,G.state)()],U.prototype,"filter",void 0);X([(0,G.state)()],U.prototype,"slideIn",void 0);X([(0,G.state)()],U.prototype,"slideOut",void 0);var mo=g(I()),Zt=g(K()),Qs=g($()),mr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Be=class extends mo.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Qs.html`
1767
+ `}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var o;e.stopPropagation();let n=this.flatOptions.find(i=>i.value===e.detail.value);n.selected=!n.selected;let a=i=>{var l;i!==n&&(i.selected=!1),(l=i.subOptions)===null||l===void 0||l.forEach(a)};this.multivalued?(o=n.subOptions)===null||o===void 0||o.forEach(a):this.options.forEach(a),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(o=>o.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Me.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new En(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(o=>o),this.optionsChanged()}onFilterChange(){var e,o;this.filter=(o=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};U.elementDefinitions={"ft-button":ve,"ft-filter-level":re,"ft-snap-scroll":de,"ft-typography":te};U.styles=Xs;X([(0,G.property)({type:String})],U.prototype,"id",void 0);X([(0,G.property)({type:String})],U.prototype,"label",void 0);X([(0,G.property)({type:String})],U.prototype,"filterPlaceHolder",void 0);X([(0,G.property)({type:String})],U.prototype,"clearButtonLabel",void 0);X([(0,G.property)({type:String})],U.prototype,"moreValuesButtonLabel",void 0);X([(0,G.property)({type:String})],U.prototype,"noValuesLabel",void 0);X([(0,Me.jsonProperty)([])],U.prototype,"options",void 0);X([(0,G.property)({type:Boolean})],U.prototype,"multivalued",void 0);X([(0,G.property)({type:Boolean})],U.prototype,"disabled",void 0);X([(0,G.property)({type:Boolean})],U.prototype,"raiseSelectedOptions",void 0);X([(0,G.property)({type:Boolean})],U.prototype,"displayCount",void 0);X([(0,G.property)({type:Number})],U.prototype,"displayedValuesLimit",void 0);X([(0,G.property)({type:Boolean})],U.prototype,"hideClearButton",void 0);X([(0,G.query)(".ft-filter--slot")],U.prototype,"slotElement",void 0);X([(0,G.query)(".ft-filter--container")],U.prototype,"container",void 0);X([(0,G.query)(".ft-filter--values")],U.prototype,"valuesContainer",void 0);X([(0,G.query)(".ft-filter--levels")],U.prototype,"levelsContainer",void 0);X([(0,G.state)()],U.prototype,"lastLevelHasHiddenvalues",void 0);X([(0,G.query)(".ft-filter--filter input")],U.prototype,"filterInput",void 0);X([(0,G.queryAll)(".ft-filter--levels ft-filter-level")],U.prototype,"levels",void 0);X([(0,G.state)()],U.prototype,"withScroll",void 0);X([(0,G.state)()],U.prototype,"filter",void 0);X([(0,G.state)()],U.prototype,"slideIn",void 0);X([(0,G.state)()],U.prototype,"slideOut",void 0);var mo=g(I()),Zt=g(K()),Qs=g($()),mr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Be=class extends mo.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Qs.html`
1768
1768
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1769
1769
  `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(o=>o)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Be.elementDefinitions={};mr([(0,Zt.property)({type:String})],Be.prototype,"label",void 0);mr([(0,Zt.property)({type:Object,converter:t=>t})],Be.prototype,"value",void 0);mr([(0,Zt.property)({type:Boolean,reflect:!0})],Be.prototype,"selected",void 0);mr([(0,Zt.property)({type:Object})],Be.prototype,"subOptions",void 0);mr([(0,mo.jsonProperty)({})],Be.prototype,"renderOption",void 0);mr([(0,Zt.query)(".ft-filter-option--slot")],Be.prototype,"slotElement",void 0);(0,wn.customElement)("ft-filter")(U);(0,wn.customElement)("ft-filter-option")(Be);var An={warningIconColor:Ge.FtCssVariableFactory.extend("--ft-search-locale-selector-warning-icon-color","",Ge.designSystemVariables.colorError),warningTooltipMaxWidth:Ge.FtCssVariableFactory.create("--ft-search-locale-selector-warning-tooltip-max-width","","SIZE","270px"),headerColor:Ge.FtCssVariableFactory.extend("--ft-search-locale-selector-header-color","",Ge.designSystemVariables.colorOnSurface)},el=Js.css`
1770
1770
  [part="container"] {
@@ -1822,7 +1822,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1822
1822
  <span class="ft-i18n">
1823
1823
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1824
1824
  </span>
1825
- `}update(e){var o;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ke.elementDefinitions={};Ke.styles=rl;Kr([(0,zo.redux)()],Ke.prototype,"editorMode",void 0);Kr([(0,Wo.property)()],Ke.prototype,"context",void 0);Kr([(0,Wo.property)()],Ke.prototype,"key",void 0);Kr([(0,zo.jsonProperty)([])],Ke.prototype,"args",void 0);Kr([(0,Wo.property)()],Ke.prototype,"defaultMessage",void 0);var Ho=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(o,n)=>{let a=n;return i=>({context:this.name,key:a,args:typeof i=="function"?void 0:i,argsProvider:typeof i=="function"?i:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...a)=>Yt.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>Yt.resolveRawMessage(this.name,n)})}};(0,tc.customElement)("ft-i18n")(Ke);var Cc=g(I()),Ec=g(K());var da=g(I());var rc=g(I());var Jd=g(nc(),1);var ac;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ac||(ac={}));var ic;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ic||(ic={}));var sc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(sc||(sc={}));var lc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(lc||(lc={}));var cc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(cc||(cc={}));var dc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(dc||(dc={}));var pc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(pc||(pc={}));var fc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(fc||(fc={}));var uc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(uc||(uc={}));var hc;(function(t){t.ASC="ASC",t.DESC="DESC"})(hc||(hc={}));var yc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(yc||(yc={}));var sa;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(sa||(sa={}));var mc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(mc||(mc={}));var gc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(gc||(gc={}));var bc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(bc||(bc={}));var xc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(xc||(xc={}));var vc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(vc||(vc={}));var la;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(la||(la={}));var de;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(de||(de={}));var Sc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Sc||(Sc={}));var Oc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Oc||(Oc={}));var T0={[de.PERSONAL_BOOK_SHARE_USER]:[de.PERSONAL_BOOK_USER],[de.HTML_EXPORT_USER]:[de.PERSONAL_BOOK_USER],[de.PDF_EXPORT_USER]:[de.PERSONAL_BOOK_USER],[de.KHUB_ADMIN]:[de.CONTENT_PUBLISHER],[de.ADMIN]:[de.KHUB_ADMIN,de.USERS_ADMIN,de.PORTAL_ADMIN],[de.DEVELOPER]:[de.BETA_USER,de.DEBUG_USER]};var ca=class t extends Event{constructor(){super(t.eventName)}};ca.eventName="search-context-clear-all-filters";var ep=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},fa=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},pa=Symbol("registerInterval");function tp(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[pa]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[pa]):this.dispatchEvent(new fa)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=pa,ep([(0,Ec.state)()],o.prototype,"stateManager",void 0),o}var jo=class extends tp(Cc.FtLitElementRedux){};var ua=g(I());var Ko=Ho.build("designedSearchLocaleSelector"),wc={label:"Select a language",allLanguagesWarningMessage:"Alla languages is only recommended when searching for language-agnostic keywords such as product references"};var Zo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},rt=class extends Mo(jo){constructor(){super(),this.warningTooltipPosition="left",this.addI18nContext(Ko,wc)}render(){var e,o,n;return((o=(e=this.locales)===null||e===void 0?void 0:e.length)!==null&&o!==void 0?o:0)<=1?Jt.nothing:Jt.html`
1825
+ `}update(e){var o;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ke.elementDefinitions={};Ke.styles=rl;Kr([(0,zo.redux)()],Ke.prototype,"editorMode",void 0);Kr([(0,Wo.property)()],Ke.prototype,"context",void 0);Kr([(0,Wo.property)()],Ke.prototype,"key",void 0);Kr([(0,zo.jsonProperty)([])],Ke.prototype,"args",void 0);Kr([(0,Wo.property)()],Ke.prototype,"defaultMessage",void 0);var Ho=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(o,n)=>{let a=n;return i=>({context:this.name,key:a,args:typeof i=="function"?void 0:i,argsProvider:typeof i=="function"?i:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...a)=>Yt.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>Yt.resolveRawMessage(this.name,n)})}};(0,tc.customElement)("ft-i18n")(Ke);var Cc=g(I()),Ec=g(K());var da=g(I());var rc=g(I());var Jd=g(nc(),1);var ac;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ac||(ac={}));var ic;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ic||(ic={}));var sc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(sc||(sc={}));var lc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(lc||(lc={}));var cc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(cc||(cc={}));var dc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(dc||(dc={}));var pc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(pc||(pc={}));var fc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(fc||(fc={}));var uc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(uc||(uc={}));var hc;(function(t){t.ASC="ASC",t.DESC="DESC"})(hc||(hc={}));var yc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(yc||(yc={}));var sa;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(sa||(sa={}));var mc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(mc||(mc={}));var gc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(gc||(gc={}));var bc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(bc||(bc={}));var xc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(xc||(xc={}));var vc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(vc||(vc={}));var la;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(la||(la={}));var ne;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(ne||(ne={}));var Sc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Sc||(Sc={}));var Oc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Oc||(Oc={}));var T0={[ne.PERSONAL_BOOK_SHARE_USER]:[ne.PERSONAL_BOOK_USER],[ne.HTML_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.PDF_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.KHUB_ADMIN]:[ne.CONTENT_PUBLISHER],[ne.ADMIN]:[ne.KHUB_ADMIN,ne.USERS_ADMIN,ne.PORTAL_ADMIN],[ne.DEVELOPER]:[ne.BETA_USER,ne.DEBUG_USER],[ne.GENERATIVE_AI_EXPORT_USER]:[ne.GENERATIVE_AI_USER]};var ca=class t extends Event{constructor(){super(t.eventName)}};ca.eventName="search-context-clear-all-filters";var ep=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},fa=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},pa=Symbol("registerInterval");function tp(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[pa]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[pa]):this.dispatchEvent(new fa)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=pa,ep([(0,Ec.state)()],o.prototype,"stateManager",void 0),o}var jo=class extends tp(Cc.FtLitElementRedux){};var ua=g(I());var Ko=Ho.build("designedSearchLocaleSelector"),wc={label:"Select a language",allLanguagesWarningMessage:"Alla languages is only recommended when searching for language-agnostic keywords such as product references"};var Zo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},rt=class extends Mo(jo){constructor(){super(),this.warningTooltipPosition="left",this.addI18nContext(Ko,wc)}render(){var e,o,n;return((o=(e=this.locales)===null||e===void 0?void 0:e.length)!==null&&o!==void 0?o:0)<=1?Jt.nothing:Jt.html`
1826
1826
  <div part="container">
1827
1827
  <div part="header">
1828
1828
  <ft-typography variant="overline" part="label" id="radio-group-label">
@@ -1845,7 +1845,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1845
1845
  `})}
1846
1846
  </ft-radio-group>
1847
1847
  </div>
1848
- `}setContentLocale(e){var o;this.selectedSearchLocale=(o=this.stateManager)===null||o===void 0?void 0:o.setContentLocale(e.detail==="all"?void 0:e.detail)}update(e){super.update(e),e.has("currentSearchLocale")&&(this.selectedSearchLocale=this.currentSearchLocale,this.dispatchEvent(new CustomEvent("current-search-locale-change",{detail:this.currentSearchLocale})))}};rt.elementDefinitions={"ft-icon":ye,"ft-tooltip":q,"ft-filter":U,"ft-filter-option":Be,"ft-radio-group":Ne,"ft-radio":ie,"ft-typography":te};rt.styles=el;Zo([(0,qo.property)()],rt.prototype,"warningTooltipPosition",void 0);Zo([(0,ua.redux)({store:"search"})],rt.prototype,"locales",void 0);Zo([(0,ua.redux)({store:"search",selector:t=>t.request.contentLocale})],rt.prototype,"currentSearchLocale",void 0);Zo([(0,qo.state)()],rt.prototype,"selectedSearchLocale",void 0);(0,Rc.customElement)("ft-search-locale-selector")(rt);})();
1848
+ `}setContentLocale(e){var o;this.selectedSearchLocale=(o=this.stateManager)===null||o===void 0?void 0:o.setContentLocale(e.detail==="all"?void 0:e.detail)}update(e){super.update(e),e.has("currentSearchLocale")&&(this.selectedSearchLocale=this.currentSearchLocale,this.dispatchEvent(new CustomEvent("current-search-locale-change",{detail:this.currentSearchLocale})))}};rt.elementDefinitions={"ft-icon":ye,"ft-tooltip":q,"ft-filter":U,"ft-filter-option":Be,"ft-radio-group":Ne,"ft-radio":se,"ft-typography":te};rt.styles=el;Zo([(0,qo.property)()],rt.prototype,"warningTooltipPosition",void 0);Zo([(0,ua.redux)({store:"search"})],rt.prototype,"locales",void 0);Zo([(0,ua.redux)({store:"search",selector:t=>t.request.contentLocale})],rt.prototype,"currentSearchLocale",void 0);Zo([(0,qo.state)()],rt.prototype,"selectedSearchLocale",void 0);(0,Rc.customElement)("ft-search-locale-selector")(rt);})();
1849
1849
  /*! Bundled license information:
1850
1850
 
1851
1851
  lit-html/lit-html.js:
@@ -47,7 +47,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
47
47
  input::-webkit-search-results-decoration {
48
48
  display: none;
49
49
  }
50
- `;var Ml={};var ua={};J(ua,{ParametrizedLabelResolver:()=>uo});var uo=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var n,i;e=this.resolvePluralKey(e,r);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,r){for(let n of r)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let n=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Ba={};J(Ba,{FtCommandQueue:()=>fo,FtLitElementRedux:()=>qe,FtReduxStore:()=>Rt,clearAllStores:()=>af,isFtReduxStore:()=>Qt,redux:()=>Jt,reduxEventListener:()=>Ou,reduxReactive:()=>Su});var Su=()=>(t,e)=>{var r;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},Jt=t=>{let e=t??{};return(r,n)=>{var i;let a={hasChanged:Xr,attribute:!1,...e};v(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},Ou=t=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,t)};var fo=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};function Qt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Bl,Fl,Ul,ho=Symbol("internalReduxEventsUnsubscribers"),St=Symbol("internalStoresUnsubscribers"),er=Symbol("internalStores"),qe=class extends W{constructor(){super(...arguments),this[Bl]=new Map,this[Fl]=new Map,this[Ul]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[er].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[er].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[er].get(e)}addStore(e,r){var n;r=(n=r??(Qt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[er].set(r,e),this.subscribeToStore(r,e),this.updateFromStores()}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[er].delete(r)}setupStores(){this.unsubscribeFromStores(),this[er].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(e.store);i&&(e.store?this[St].has(e.store):this[St].size>0)&&(this[r]=e.selector(i.getState(),this))}})}subscribeToStore(e,r){var n;this[St].set(e,r.subscribe(()=>this.updateFromStores())),this[ho].set(e,[]),Qt(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=l=>this[a](l);r.addEventListener(i.eventName,s),this[ho].get(e).push(()=>r.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[St].forEach((e,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(e){var r;this[St].has(e)&&this[St].get(e)(),this[St].delete(e),(r=this[ho].get(e))===null||r===void 0||r.forEach(n=>n()),this[ho].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Bl=St,Fl=er,Ul=ho;qe.reduxProperties=new Map;qe.reduxReactiveProperties=new Set;qe.reduxEventListeners=new Map;function Me(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function dt(t){return!!t&&!!t[re]}function Ue(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Lu}(t)||Array.isArray(t)||!!t[Kl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Kl])||Sa(t)||Oa(t))}function tr(t,e,r){r===void 0&&(r=!1),vr(t)===0?(r?Object.keys:xr)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function vr(t){var e=t[re];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Sa(t)?2:Oa(t)?3:0}function br(t,e){return vr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Cu(t,e){return vr(t)===2?t.get(e):t[e]}function Zl(t,e,r){var n=vr(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function ql(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Sa(t){return Nu&&t instanceof Map}function Oa(t){return _u&&t instanceof Set}function Ot(t){return t.o||t.t}function Ca(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Jl(t);delete e[re];for(var r=xr(e),n=0;n<r.length;n++){var i=r[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Ea(t,e){return e===void 0&&(e=!1),wa(t)||dt(t)||!Ue(t)||(vr(t)>1&&(t.set=t.add=t.clear=t.delete=Eu),Object.freeze(t),e&&tr(t,function(r,n){return Ea(n,!0)},!0)),t}function Eu(){Me(2)}function wa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ye(t){var e=va[t];return e||Me(18,t),e}function wu(t,e){va[t]||(va[t]=e)}function ga(){return mo}function fa(t,e){e&&(Ye("Patches"),t.u=[],t.s=[],t.v=e)}function nn(t){ba(t),t.p.forEach(Au),t.p=null}function ba(t){t===mo&&(mo=t.l)}function Wl(t){return mo={p:[],l:mo,h:t,m:!0,_:0}}function Au(t){var e=t[re];e.i===0||e.i===1?e.j():e.g=!0}function ha(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Ye("ES5").S(e,t,n),n?(r[re].P&&(nn(e),Me(4)),Ue(t)&&(t=an(e,t),e.l||sn(e,t)),e.u&&Ye("Patches").M(r[re].t,t,e.u,e.s)):t=an(e,r,[]),nn(e),e.u&&e.v(e.u,e.s),t!==Xl?t:void 0}function an(t,e,r){if(wa(e))return e;var n=e[re];if(!n)return tr(e,function(l,d){return Hl(t,n,e,l,d,r)},!0),e;if(n.A!==t)return e;if(!n.P)return sn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ca(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),tr(a,function(l,d){return Hl(t,n,i,l,d,r,s)}),sn(t,i,!1),r&&t.u&&Ye("Patches").N(n,r,t.u,t.s)}return n.o}function Hl(t,e,r,n,i,a,s){if(dt(i)){var l=an(t,i,a&&e&&e.i!==3&&!br(e.R,n)?a.concat(n):void 0);if(Zl(r,n,l),!dt(l))return;t.m=!1}else s&&r.add(i);if(Ue(i)&&!wa(i)){if(!t.h.D&&t._<1)return;an(t,i),e&&e.A.l||sn(t,i)}}function sn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ea(e,r)}function ya(t,e){var r=t[re];return(r?Ot(r):t)[e]}function zl(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Ct(t){t.P||(t.P=!0,t.l&&Ct(t.l))}function ma(t){t.o||(t.o=Ca(t.t))}function xa(t,e,r){var n=Sa(e)?Ye("MapSet").F(e,r):Oa(e)?Ye("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:ga(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=go;s&&(d=[l],p=yo);var f=Proxy.revocable(d,p),h=f.revoke,m=f.proxy;return l.k=m,l.j=h,m}(e,r):Ye("ES5").J(e,r);return(r?r.A:ga()).p.push(n),n}function Ru(t){return dt(t)||Me(22,t),function e(r){if(!Ue(r))return r;var n,i=r[re],a=vr(r);if(i){if(!i.P&&(i.i<4||!Ye("ES5").K(i)))return i.t;i.I=!0,n=Vl(r,a),i.I=!1}else n=Vl(r,a);return tr(n,function(s,l){i&&Cu(i.t,s)===l||Zl(n,s,e(l))}),a===3?new Set(n):n}(t)}function Vl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ca(t)}function Yl(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[re];return go.get(p,s)},set:function(p){var f=this[re];go.set(f,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][re];if(!d.P)switch(d.i){case 5:n(d)&&Ct(d);break;case 4:r(d)&&Ct(d)}}}function r(s){for(var l=s.t,d=s.k,p=xr(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==re){var m=l[h];if(m===void 0&&!br(l,h))return!0;var b=d[h],x=b&&b[re];if(x?x.t!==m:!ql(b,m))return!0}}var C=!!l[re];return p.length!==xr(l).length+(C?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&Me(3,JSON.stringify(Ot(s)))}var a={};wu("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(h,m){if(h){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,t(x,!0));return b}var C=Jl(m);delete C[re];for(var N=xr(C),L=0;L<N.length;L++){var P=N[L];C[P]=t(P,h||!!C[P].enumerable)}return Object.create(Object.getPrototypeOf(m),C)}(d,s),f={i:d?5:4,A:l?l.A:ga(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,re,{value:f,writable:!0}),p},S:function(s,l,d){d?dt(l)&&l[re].A===s&&e(s.p):(s.u&&function p(f){if(f&&typeof f=="object"){var h=f[re];if(h){var m=h.t,b=h.k,x=h.R,C=h.i;if(C===4)tr(b,function(O){O!==re&&(m[O]!==void 0||br(m,O)?x[O]||p(b[O]):(x[O]=!0,Ct(h)))}),tr(m,function(O){b[O]!==void 0||br(b,O)||(x[O]=!1,Ct(h))});else if(C===5){if(n(h)&&(Ct(h),x.length=!0),b.length<m.length)for(var N=b.length;N<m.length;N++)x[N]=!1;else for(var L=m.length;L<b.length;L++)x[L]=!0;for(var P=Math.min(b.length,m.length),E=0;E<P;E++)b.hasOwnProperty(E)||(x[E]=!0),x[E]===void 0&&p(b[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var jl,mo,Aa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Nu=typeof Map<"u",_u=typeof Set<"u",Gl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Xl=Aa?Symbol.for("immer-nothing"):((jl={})["immer-nothing"]=!0,jl),Kl=Aa?Symbol.for("immer-draftable"):"__$immer_draftable",re=Aa?Symbol.for("immer-state"):"__$immer_state";var Lu=""+Object.prototype.constructor,xr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Jl=Object.getOwnPropertyDescriptors||function(t){var e={};return xr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},va={},go={get:function(t,e){if(e===re)return t;var r=Ot(t);if(!br(r,e))return function(i,a,s){var l,d=zl(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!Ue(n)?n:n===ya(t.t,e)?(ma(t),t.o[e]=xa(t.A.h,n,t)):n},has:function(t,e){return e in Ot(t)},ownKeys:function(t){return Reflect.ownKeys(Ot(t))},set:function(t,e,r){var n=zl(Ot(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=ya(Ot(t),e),a=i?.[re];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(ql(r,i)&&(r!==void 0||br(t.t,e)))return!0;ma(t),Ct(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return ya(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ma(t),Ct(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Ot(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Me(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Me(12)}},yo={};tr(go,function(t,e){yo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),yo.deleteProperty=function(t,e){return yo.set.call(this,t,e,void 0)},yo.set=function(t,e,r){return go.set.call(this,t[0],e,r,t[0])};var Pu=function(){function t(r){var n=this;this.O=Gl,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(C){var N=this;C===void 0&&(C=l);for(var L=arguments.length,P=Array(L>1?L-1:0),E=1;E<L;E++)P[E-1]=arguments[E];return d.produce(C,function(O){var A;return(A=a).call.apply(A,[N,O].concat(P))})}}var p;if(typeof a!="function"&&Me(6),s!==void 0&&typeof s!="function"&&Me(7),Ue(i)){var f=Wl(n),h=xa(n,i,void 0),m=!0;try{p=a(h),m=!1}finally{m?nn(f):ba(f)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return fa(f,s),ha(C,f)},function(C){throw nn(f),C}):(fa(f,s),ha(p,f))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===Xl&&(p=void 0),n.D&&Ea(p,!0),s){var b=[],x=[];Ye("Patches").M(i,p,b,x),s(b,x)}return p}Me(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];return n.produceWithPatches(p,function(b){return i.apply(void 0,[b].concat(h))})};var s,l,d=n.produce(i,a,function(p,f){s=p,l=f});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Ue(r)||Me(8),dt(r)&&(r=Ru(r));var n=Wl(this),i=xa(this,r,void 0);return i[re].C=!0,ba(n),i},e.finishDraft=function(r,n){var i=r&&r[re],a=i.A;return fa(a,n),ha(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Gl&&Me(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=Ye("Patches").$;return dt(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},t}(),Ie=new Pu,Tu=Ie.produce,Vb=Ie.produceWithPatches.bind(Ie),jb=Ie.setAutoFreeze.bind(Ie),Gb=Ie.setUseProxies.bind(Ie),Kb=Ie.applyPatches.bind(Ie),Zb=Ie.createDraft.bind(Ie),qb=Ie.finishDraft.bind(Ie),ln=Tu;function Et(t){"@babel/helpers - typeof";return Et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Et(t)}function Ra(t,e){if(Et(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Et(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Na(t){var e=Ra(t,"string");return Et(e)==="symbol"?e:String(e)}function _a(t,e,r){return e=Na(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ql(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function cn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ql(Object(r),!0).forEach(function(n){_a(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ql(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ge(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var ec=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),La=function(){return Math.random().toString(36).substring(7).split("").join(".")},dn={INIT:"@@redux/INIT"+La(),REPLACE:"@@redux/REPLACE"+La(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+La()}};function Iu(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Pa(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ge(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ge(1));return r(Pa)(t,e)}if(typeof t!="function")throw new Error(ge(2));var i=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error(ge(3));return a}function h(C){if(typeof C!="function")throw new Error(ge(4));if(d)throw new Error(ge(5));var N=!0;return p(),l.push(C),function(){if(N){if(d)throw new Error(ge(6));N=!1,p();var P=l.indexOf(C);l.splice(P,1),s=null}}}function m(C){if(!Iu(C))throw new Error(ge(7));if(typeof C.type>"u")throw new Error(ge(8));if(d)throw new Error(ge(9));try{d=!0,a=i(a,C)}finally{d=!1}for(var N=s=l,L=0;L<N.length;L++){var P=N[L];P()}return C}function b(C){if(typeof C!="function")throw new Error(ge(10));i=C,m({type:dn.REPLACE})}function x(){var C,N=h;return C={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(ge(11));function E(){P.next&&P.next(f())}E();var O=N(E);return{unsubscribe:O}}},C[ec]=function(){return this},C}return m({type:dn.INIT}),n={dispatch:m,subscribe:h,getState:f,replaceReducer:b},n[ec]=x,n}function $u(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:dn.INIT});if(typeof n>"u")throw new Error(ge(12));if(typeof r(void 0,{type:dn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ge(13))})}function tc(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,l;try{$u(r)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var m=!1,b={},x=0;x<a.length;x++){var C=a[x],N=r[C],L=p[C],P=N(L,f);if(typeof P>"u"){var E=f&&f.type;throw new Error(ge(14))}b[C]=P,m=m||P!==L}return m=m||a.length!==Object.keys(p).length,m?b:p}}function Sr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function rc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ge(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Sr.apply(void 0,l)(i.dispatch),cn(cn({},i),{},{dispatch:a})}}}function oc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var nc=oc();nc.withExtraArgument=oc;var Ta=nc;var cc=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ku=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(f){return d([p,f])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,i=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(f){p=[6,f],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Or=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},Du=Object.defineProperty,Mu=Object.defineProperties,Bu=Object.getOwnPropertyDescriptors,ic=Object.getOwnPropertySymbols,Fu=Object.prototype.hasOwnProperty,Uu=Object.prototype.propertyIsEnumerable,ac=function(t,e,r){return e in t?Du(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},wt=function(t,e){for(var r in e||(e={}))Fu.call(e,r)&&ac(t,r,e[r]);if(ic)for(var n=0,i=ic(e);n<i.length;n++){var r=i[n];Uu.call(e,r)&&ac(t,r,e[r])}return t},Ia=function(t,e){return Mu(t,Bu(e))},Wu=function(t,e,r){return new Promise(function(n,i){var a=function(d){try{l(r.next(d))}catch(p){i(p)}},s=function(d){try{l(r.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var Hu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Sr:Sr.apply(null,arguments)},fx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function zu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Vu=function(t){cc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Or([void 0],r[0].concat(this)))):new(e.bind.apply(e,Or([void 0],r.concat(this))))},e}(Array),ju=function(t){cc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Or([void 0],r[0].concat(this)))):new(e.bind.apply(e,Or([void 0],r.concat(this))))},e}(Array);function Da(t){return Ue(t)?ln(t,function(){}):t}function Gu(t){return typeof t=="boolean"}function Ku(){return function(e){return Zu(e)}}function Zu(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new Vu;if(r&&(Gu(r)?l.push(Ta):l.push(Ta.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var p}return l}var $a=!0;function dc(t){var e=Ku(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,f=p===void 0?void 0:p,h=r.enhancers,m=h===void 0?void 0:h,b;if(typeof i=="function")b=i;else if(zu(i))b=tc(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(e),!$a&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!$a&&x.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=rc.apply(void 0,x),N=Sr;d&&(N=Hu(wt({trace:!$a},typeof d=="object"&&d)));var L=new ju(C),P=L;Array.isArray(m)?P=Or([C],m):typeof m=="function"&&(P=m(L));var E=N.apply(void 0,P);return Pa(b,f,E)}function At(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return wt(wt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}function pc(t){var e={},r=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,r,n]}function qu(t){return typeof t=="function"}function Yu(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?pc(e):[e,r,n],a=i[0],s=i[1],l=i[2],d;if(qu(t))d=function(){return Da(t())};else{var p=Da(t);d=function(){return p}}function f(h,m){h===void 0&&(h=d());var b=Or([a[m.type]],s.filter(function(x){var C=x.matcher;return C(m)}).map(function(x){var C=x.reducer;return C}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,C){if(C)if(dt(x)){var N=x,L=C(N,m);return L===void 0?x:L}else{if(Ue(x))return ln(x,function(P){return C(P,m)});var L=C(x,m);if(L===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return x},h)}return f.getInitialState=d,f}function Xu(t,e){return t+"/"+e}function uc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Da(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(f){var h=n[f],m=Xu(e,f),b,x;"reducer"in h?(b=h.reducer,x=h.prepare):b=h,a[f]=b,s[m]=b,l[f]=x?At(m,x):At(m)});function d(){var f=typeof t.extraReducers=="function"?pc(t.extraReducers):[t.extraReducers],h=f[0],m=h===void 0?{}:h,b=f[1],x=b===void 0?[]:b,C=f[2],N=C===void 0?void 0:C,L=wt(wt({},m),s);return Yu(r,function(P){for(var E in L)P.addCase(E,L[E]);for(var O=0,A=x;O<A.length;O++){var k=A[O];P.addMatcher(k.matcher,k.reducer)}N&&P.addDefaultCase(N)})}var p;return{name:e,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Ju="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Qu=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Ju[Math.random()*64|0];return e},ef=["name","message","stack","code"],ka=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),sc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),tf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=ef;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},gx=function(){function t(e,r,n){var i=At(e+"/fulfilled",function(f,h,m,b){return{payload:f,meta:Ia(wt({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),a=At(e+"/pending",function(f,h,m){return{payload:void 0,meta:Ia(wt({},m||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=At(e+"/rejected",function(f,h,m,b,x){return{payload:b,error:(n&&n.serializeError||tf)(f||"Rejected"),meta:Ia(wt({},x||{}),{arg:m,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function p(f){return function(h,m,b){var x=n?.idGenerator?n.idGenerator(f):Qu(),C=new d,N,L=!1;function P(O){N=O,C.abort()}var E=function(){return Wu(this,null,function(){var O,A,k,F,G,j,M;return ku(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),F=(O=n?.condition)==null?void 0:O.call(n,f,{getState:m,extra:b}),of(F)?[4,F]:[3,2];case 1:F=y.sent(),y.label=2;case 2:if(F===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,G=new Promise(function(S,D){return C.signal.addEventListener("abort",function(){return D({name:"AbortError",message:N||"Aborted"})})}),h(a(x,f,(A=n?.getPendingMeta)==null?void 0:A.call(n,{requestId:x,arg:f},{getState:m,extra:b}))),[4,Promise.race([G,Promise.resolve(r(f,{dispatch:h,getState:m,extra:b,requestId:x,signal:C.signal,abort:P,rejectWithValue:function(S,D){return new ka(S,D)},fulfillWithValue:function(S,D){return new sc(S,D)}})).then(function(S){if(S instanceof ka)throw S;return S instanceof sc?i(S.payload,x,f,S.meta):i(S,x,f)})])];case 3:return k=y.sent(),[3,5];case 4:return j=y.sent(),k=j instanceof ka?s(null,x,f,j.payload,j.meta):s(j,x,f),[3,5];case 5:return M=n&&!n.dispatchConditionRejection&&s.match(k)&&k.meta.condition,M||h(k),[2,k]}})})}();return Object.assign(E,{abort:P,requestId:x,arg:f,unwrap:function(){return E.then(rf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function rf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function of(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var fc="listener",hc="completed",yc="cancelled",bx="task-"+yc,xx="task-"+hc,vx=fc+"-"+yc,Sx=fc+"-"+hc;var Ma="listenerMiddleware";var Ox=At(Ma+"/add"),Cx=At(Ma+"/removeAll"),Ex=At(Ma+"/remove");var lc,wx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(lc||(lc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},nf=function(t){return function(e){setTimeout(e,t)}},Ax=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:nf(10);Yl();window.ftReduxStores||(window.ftReduxStores={});var Rt=class t extends Gt{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Qt(a))return a;if(i==null)return;let s=uc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=dc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[i.name]=new t(s,l)}constructor(e,r){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new fo,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function af(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Qt(e)&&e.clear()}var Wa={};J(Wa,{scrollHelper:()=>sf});var Fa,pn=new Map,Ua=class{lock(e,r){if(r){let n=pn.get(r);if(n==null||n===e)return pn.set(r,e),r}}release(e,r){r&&pn.get(r)===e&&pn.delete(r)}findFirstScrollableParent(e){var r;let n,i;for(let a of di(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(r=n??i)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){var n,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(n=r.offsetTop)!==null&&n!==void 0?n:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=fr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Fa=window.FluidTopicsScrollHelper)!==null&&Fa!==void 0?Fa:new Ua;var sf=window.FluidTopicsScrollHelper;var Ha={};J(Ha,{shadowQuerySelector:()=>lf,shadowQuerySelectorAll:()=>cf});function lf(t,e,...r){var n;let i=t.querySelector(e);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function cf(t,e,...r){let n=[...t.querySelectorAll(e)];for(let i of r)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var ja={};J(ja,{SearchPlaceConverter:()=>xo,SearchPlaceQueryParams:()=>Q,isSearchPlaceQueryParams:()=>Bc,serializeRequest:()=>uf});var df=kd(gc(),1);var bc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(bc||(bc={}));var xc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(xc||(xc={}));var vc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(vc||(vc={}));var Sc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(Sc||(Sc={}));var Oc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Oc||(Oc={}));var Cc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Cc||(Cc={}));var Ec;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Ec||(Ec={}));var wc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(wc||(wc={}));var Ac;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Ac||(Ac={}));var Rc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Rc||(Rc={}));var Nc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Nc||(Nc={}));var za;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(za||(za={}));var Ic=t=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(t);var _c;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(_c||(_c={}));var Lc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Lc||(Lc={}));var Pc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Pc||(Pc={}));var bo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(bo||(bo={}));var $c=t=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(t);var Tc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Tc||(Tc={}));var Va;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Va||(Va={}));var fe;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(fe||(fe={}));var kc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(kc||(kc={}));var Dc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Dc||(Dc={}));var Vx={[fe.PERSONAL_BOOK_SHARE_USER]:[fe.PERSONAL_BOOK_USER],[fe.HTML_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.PDF_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.KHUB_ADMIN]:[fe.CONTENT_PUBLISHER],[fe.ADMIN]:[fe.KHUB_ADMIN,fe.USERS_ADMIN,fe.PORTAL_ADMIN],[fe.DEVELOPER]:[fe.BETA_USER,fe.DEBUG_USER]};function pf(t){return`"${t}"`}function Mc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function uf(t,e){return new xo(t).serialize(e)}var Q;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page"})(Q||(Q={}));var ff=new Set(Object.values(Q));function Bc(t){return ff.has(t)}var xo=class{constructor(e,r={},n=20,i=!1,a="en-US"){this.baseUrl=e,this.predefinedSorts=r,this.defaultPerPage=n,this.allLanguagesAllowed=i,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let n=this.toURLSearchParams(e).toString(),i=r==null||r.trim().length===0,a=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return a.search=n,a.toString()}toURLSearchParams(e,r=!1){var n,i,a,s,l,d,p,f,h,m,b,x;let C=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&C.append(Q.LOCALE,e.contentLocale):C.append(Q.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&C.append(Q.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&C.append(Q.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&C.append(Q.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&C.append(Q.SORT,"last_update");let N=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(O=>O.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let O=N.map(A=>{var k,F;let G=((F=(k=A.valueFilter)===null||k===void 0?void 0:k.values)!==null&&F!==void 0?F:[]).map(j=>this.escapeFilters(j)).map(j=>encodeURIComponent(pf(Mc(j)))).join("_");return`${A.key}~${G}`}).join("*");C.append(Q.VALUE_FILTERS,O)}let L=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(O=>O.dateFilter))!==null&&d!==void 0?d:[];if(L.length>0){let O=L.map(A=>{var k;return`${A.key}~${(k=A.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");C.append(Q.DATE_FILTERS,O)}let P=(f=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(O=>O.rangeFilter))!==null&&f!==void 0?f:[];if(P.length>0){let O=P.map(A=>{var k,F;return`${A.key}~${(k=A.rangeFilter)===null||k===void 0?void 0:k.from}_${(F=A.rangeFilter)===null||F===void 0?void 0:F.to}`}).join("*");C.append(Q.RANGE_FILTERS,O)}let E=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let O in E)C.append(O,E[O]);return!((m=e.paging)===null||m===void 0)&&m.perPage&&((x=(b=e.paging)===null||b===void 0?void 0:b.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&C.append(Q.PER_PAGE,String(e.paging.perPage)),C}parse(e){var r;let n=e.split("?"),i=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(e){var r,n,i,a,s,l,d,p;let f=e.get(Q.LOCALE)==="all"?void 0:e.get(Q.LOCALE),h=((r=e.get(Q.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),m=((n=e.get(Q.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(i=e.get(Q.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=e.get(Q.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),C={};for(let N of e.keys())Bc(N)||(C[N]=e.get(N));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(Q.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:Ic(h)?h:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:fr(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:C}}parseCompatFilters(e){var r,n,i,a,s,l;let d=[];return e.has(Q.FILTERS)&&(d=this.parseValueFilters((r=e.get(Q.FILTERS))!==null&&r!==void 0?r:"")),(n=e.has(Q.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(Q.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(Q.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(Q.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(Q.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Mc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:bo[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(r,n);return e}superEscapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replace(i,r);return e}parseLegacyPeriodFilter(e){if($c(e))return[{key:"ft:lastEdition",dateFilter:{type:bo[e]}}];if(e.startsWith("CUSTOM_")){let[r,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Ka={};J(Ka,{toFtFormComponent:()=>Ga});var hn=Symbol("elementInternals");function Ga(t,e){class r extends t{static get formAssociated(){return!0}get form(){return this[hn].form}constructor(...i){super(i),this[hn]=this.attachInternals(),this[hn].role=e}setFormValue(i){this[hn].setFormValue(i)}}return r}var Za={};J(Za,{DateFormatter:()=>Er});var Er=class{static format(e,r,n,i){return window.moment?window.moment(e).locale(r).format(this.getDateFormat(n,i)):e}static getDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}};var qa,Ya,Xa,Ja,vo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Xa=(Ya=(qa=window.safari)===null||qa===void 0?void 0:qa.pushNotification)===null||Ya===void 0?void 0:Ya.toString())!==null&&Xa!==void 0?Xa:"")==="[object SafariRemoteNotification]",hf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ja=window.ftGlobals)!==null&&Ja!==void 0?Ja:{lit:jn,litDecorators:qn,litRepeat:Yn,litClassMap:Xn,litStyleMap:Jn,litUnsafeHTML:ei,wcUtils:{...ai,...ti,...li,...Za,...ci,...ui,...Wi,...ii,...ra,...Ui,...aa,...na,...kl,...pi,...ca,...pa,...Ml,...ua,...Ba,...oa,...Wa,...Ha,...ja,...Ka,isSafari:vo,isTouchScreen:hf,setVariable:w}};var _t={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(T.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Fc=$`
50
+ `;var Ml={};var ua={};J(ua,{ParametrizedLabelResolver:()=>uo});var uo=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var n,i;e=this.resolvePluralKey(e,r);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,r){for(let n of r)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let n=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Ba={};J(Ba,{FtCommandQueue:()=>fo,FtLitElementRedux:()=>qe,FtReduxStore:()=>Rt,clearAllStores:()=>af,isFtReduxStore:()=>Qt,redux:()=>Jt,reduxEventListener:()=>Ou,reduxReactive:()=>Su});var Su=()=>(t,e)=>{var r;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},Jt=t=>{let e=t??{};return(r,n)=>{var i;let a={hasChanged:Xr,attribute:!1,...e};v(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},Ou=t=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,t)};var fo=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};function Qt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Bl,Fl,Ul,ho=Symbol("internalReduxEventsUnsubscribers"),St=Symbol("internalStoresUnsubscribers"),er=Symbol("internalStores"),qe=class extends W{constructor(){super(...arguments),this[Bl]=new Map,this[Fl]=new Map,this[Ul]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[er].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[er].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[er].get(e)}addStore(e,r){var n;r=(n=r??(Qt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[er].set(r,e),this.subscribeToStore(r,e),this.updateFromStores()}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[er].delete(r)}setupStores(){this.unsubscribeFromStores(),this[er].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(e.store);i&&(e.store?this[St].has(e.store):this[St].size>0)&&(this[r]=e.selector(i.getState(),this))}})}subscribeToStore(e,r){var n;this[St].set(e,r.subscribe(()=>this.updateFromStores())),this[ho].set(e,[]),Qt(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=l=>this[a](l);r.addEventListener(i.eventName,s),this[ho].get(e).push(()=>r.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[St].forEach((e,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(e){var r;this[St].has(e)&&this[St].get(e)(),this[St].delete(e),(r=this[ho].get(e))===null||r===void 0||r.forEach(n=>n()),this[ho].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Bl=St,Fl=er,Ul=ho;qe.reduxProperties=new Map;qe.reduxReactiveProperties=new Set;qe.reduxEventListeners=new Map;function Me(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function dt(t){return!!t&&!!t[re]}function Ue(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Lu}(t)||Array.isArray(t)||!!t[Kl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Kl])||Sa(t)||Oa(t))}function tr(t,e,r){r===void 0&&(r=!1),vr(t)===0?(r?Object.keys:xr)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function vr(t){var e=t[re];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Sa(t)?2:Oa(t)?3:0}function br(t,e){return vr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Cu(t,e){return vr(t)===2?t.get(e):t[e]}function Zl(t,e,r){var n=vr(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function ql(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Sa(t){return Nu&&t instanceof Map}function Oa(t){return _u&&t instanceof Set}function Ot(t){return t.o||t.t}function Ca(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Jl(t);delete e[re];for(var r=xr(e),n=0;n<r.length;n++){var i=r[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Ea(t,e){return e===void 0&&(e=!1),wa(t)||dt(t)||!Ue(t)||(vr(t)>1&&(t.set=t.add=t.clear=t.delete=Eu),Object.freeze(t),e&&tr(t,function(r,n){return Ea(n,!0)},!0)),t}function Eu(){Me(2)}function wa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ye(t){var e=va[t];return e||Me(18,t),e}function wu(t,e){va[t]||(va[t]=e)}function ga(){return mo}function fa(t,e){e&&(Ye("Patches"),t.u=[],t.s=[],t.v=e)}function nn(t){ba(t),t.p.forEach(Au),t.p=null}function ba(t){t===mo&&(mo=t.l)}function Wl(t){return mo={p:[],l:mo,h:t,m:!0,_:0}}function Au(t){var e=t[re];e.i===0||e.i===1?e.j():e.g=!0}function ha(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Ye("ES5").S(e,t,n),n?(r[re].P&&(nn(e),Me(4)),Ue(t)&&(t=an(e,t),e.l||sn(e,t)),e.u&&Ye("Patches").M(r[re].t,t,e.u,e.s)):t=an(e,r,[]),nn(e),e.u&&e.v(e.u,e.s),t!==Xl?t:void 0}function an(t,e,r){if(wa(e))return e;var n=e[re];if(!n)return tr(e,function(l,d){return Hl(t,n,e,l,d,r)},!0),e;if(n.A!==t)return e;if(!n.P)return sn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ca(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),tr(a,function(l,d){return Hl(t,n,i,l,d,r,s)}),sn(t,i,!1),r&&t.u&&Ye("Patches").N(n,r,t.u,t.s)}return n.o}function Hl(t,e,r,n,i,a,s){if(dt(i)){var l=an(t,i,a&&e&&e.i!==3&&!br(e.R,n)?a.concat(n):void 0);if(Zl(r,n,l),!dt(l))return;t.m=!1}else s&&r.add(i);if(Ue(i)&&!wa(i)){if(!t.h.D&&t._<1)return;an(t,i),e&&e.A.l||sn(t,i)}}function sn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ea(e,r)}function ya(t,e){var r=t[re];return(r?Ot(r):t)[e]}function zl(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Ct(t){t.P||(t.P=!0,t.l&&Ct(t.l))}function ma(t){t.o||(t.o=Ca(t.t))}function xa(t,e,r){var n=Sa(e)?Ye("MapSet").F(e,r):Oa(e)?Ye("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:ga(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=go;s&&(d=[l],p=yo);var f=Proxy.revocable(d,p),h=f.revoke,m=f.proxy;return l.k=m,l.j=h,m}(e,r):Ye("ES5").J(e,r);return(r?r.A:ga()).p.push(n),n}function Ru(t){return dt(t)||Me(22,t),function e(r){if(!Ue(r))return r;var n,i=r[re],a=vr(r);if(i){if(!i.P&&(i.i<4||!Ye("ES5").K(i)))return i.t;i.I=!0,n=Vl(r,a),i.I=!1}else n=Vl(r,a);return tr(n,function(s,l){i&&Cu(i.t,s)===l||Zl(n,s,e(l))}),a===3?new Set(n):n}(t)}function Vl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ca(t)}function Yl(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[re];return go.get(p,s)},set:function(p){var f=this[re];go.set(f,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][re];if(!d.P)switch(d.i){case 5:n(d)&&Ct(d);break;case 4:r(d)&&Ct(d)}}}function r(s){for(var l=s.t,d=s.k,p=xr(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==re){var m=l[h];if(m===void 0&&!br(l,h))return!0;var b=d[h],x=b&&b[re];if(x?x.t!==m:!ql(b,m))return!0}}var C=!!l[re];return p.length!==xr(l).length+(C?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&Me(3,JSON.stringify(Ot(s)))}var a={};wu("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(h,m){if(h){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,t(x,!0));return b}var C=Jl(m);delete C[re];for(var N=xr(C),L=0;L<N.length;L++){var P=N[L];C[P]=t(P,h||!!C[P].enumerable)}return Object.create(Object.getPrototypeOf(m),C)}(d,s),f={i:d?5:4,A:l?l.A:ga(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,re,{value:f,writable:!0}),p},S:function(s,l,d){d?dt(l)&&l[re].A===s&&e(s.p):(s.u&&function p(f){if(f&&typeof f=="object"){var h=f[re];if(h){var m=h.t,b=h.k,x=h.R,C=h.i;if(C===4)tr(b,function(O){O!==re&&(m[O]!==void 0||br(m,O)?x[O]||p(b[O]):(x[O]=!0,Ct(h)))}),tr(m,function(O){b[O]!==void 0||br(b,O)||(x[O]=!1,Ct(h))});else if(C===5){if(n(h)&&(Ct(h),x.length=!0),b.length<m.length)for(var N=b.length;N<m.length;N++)x[N]=!1;else for(var L=m.length;L<b.length;L++)x[L]=!0;for(var P=Math.min(b.length,m.length),E=0;E<P;E++)b.hasOwnProperty(E)||(x[E]=!0),x[E]===void 0&&p(b[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var jl,mo,Aa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Nu=typeof Map<"u",_u=typeof Set<"u",Gl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Xl=Aa?Symbol.for("immer-nothing"):((jl={})["immer-nothing"]=!0,jl),Kl=Aa?Symbol.for("immer-draftable"):"__$immer_draftable",re=Aa?Symbol.for("immer-state"):"__$immer_state";var Lu=""+Object.prototype.constructor,xr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Jl=Object.getOwnPropertyDescriptors||function(t){var e={};return xr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},va={},go={get:function(t,e){if(e===re)return t;var r=Ot(t);if(!br(r,e))return function(i,a,s){var l,d=zl(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!Ue(n)?n:n===ya(t.t,e)?(ma(t),t.o[e]=xa(t.A.h,n,t)):n},has:function(t,e){return e in Ot(t)},ownKeys:function(t){return Reflect.ownKeys(Ot(t))},set:function(t,e,r){var n=zl(Ot(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=ya(Ot(t),e),a=i?.[re];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(ql(r,i)&&(r!==void 0||br(t.t,e)))return!0;ma(t),Ct(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return ya(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ma(t),Ct(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Ot(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Me(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Me(12)}},yo={};tr(go,function(t,e){yo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),yo.deleteProperty=function(t,e){return yo.set.call(this,t,e,void 0)},yo.set=function(t,e,r){return go.set.call(this,t[0],e,r,t[0])};var Pu=function(){function t(r){var n=this;this.O=Gl,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(C){var N=this;C===void 0&&(C=l);for(var L=arguments.length,P=Array(L>1?L-1:0),E=1;E<L;E++)P[E-1]=arguments[E];return d.produce(C,function(O){var A;return(A=a).call.apply(A,[N,O].concat(P))})}}var p;if(typeof a!="function"&&Me(6),s!==void 0&&typeof s!="function"&&Me(7),Ue(i)){var f=Wl(n),h=xa(n,i,void 0),m=!0;try{p=a(h),m=!1}finally{m?nn(f):ba(f)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return fa(f,s),ha(C,f)},function(C){throw nn(f),C}):(fa(f,s),ha(p,f))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===Xl&&(p=void 0),n.D&&Ea(p,!0),s){var b=[],x=[];Ye("Patches").M(i,p,b,x),s(b,x)}return p}Me(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];return n.produceWithPatches(p,function(b){return i.apply(void 0,[b].concat(h))})};var s,l,d=n.produce(i,a,function(p,f){s=p,l=f});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Ue(r)||Me(8),dt(r)&&(r=Ru(r));var n=Wl(this),i=xa(this,r,void 0);return i[re].C=!0,ba(n),i},e.finishDraft=function(r,n){var i=r&&r[re],a=i.A;return fa(a,n),ha(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Gl&&Me(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=Ye("Patches").$;return dt(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},t}(),Ie=new Pu,Tu=Ie.produce,Vb=Ie.produceWithPatches.bind(Ie),jb=Ie.setAutoFreeze.bind(Ie),Gb=Ie.setUseProxies.bind(Ie),Kb=Ie.applyPatches.bind(Ie),Zb=Ie.createDraft.bind(Ie),qb=Ie.finishDraft.bind(Ie),ln=Tu;function Et(t){"@babel/helpers - typeof";return Et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Et(t)}function Ra(t,e){if(Et(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Et(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Na(t){var e=Ra(t,"string");return Et(e)==="symbol"?e:String(e)}function _a(t,e,r){return e=Na(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ql(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function cn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ql(Object(r),!0).forEach(function(n){_a(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ql(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ge(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var ec=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),La=function(){return Math.random().toString(36).substring(7).split("").join(".")},dn={INIT:"@@redux/INIT"+La(),REPLACE:"@@redux/REPLACE"+La(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+La()}};function Iu(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Pa(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ge(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ge(1));return r(Pa)(t,e)}if(typeof t!="function")throw new Error(ge(2));var i=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error(ge(3));return a}function h(C){if(typeof C!="function")throw new Error(ge(4));if(d)throw new Error(ge(5));var N=!0;return p(),l.push(C),function(){if(N){if(d)throw new Error(ge(6));N=!1,p();var P=l.indexOf(C);l.splice(P,1),s=null}}}function m(C){if(!Iu(C))throw new Error(ge(7));if(typeof C.type>"u")throw new Error(ge(8));if(d)throw new Error(ge(9));try{d=!0,a=i(a,C)}finally{d=!1}for(var N=s=l,L=0;L<N.length;L++){var P=N[L];P()}return C}function b(C){if(typeof C!="function")throw new Error(ge(10));i=C,m({type:dn.REPLACE})}function x(){var C,N=h;return C={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(ge(11));function E(){P.next&&P.next(f())}E();var O=N(E);return{unsubscribe:O}}},C[ec]=function(){return this},C}return m({type:dn.INIT}),n={dispatch:m,subscribe:h,getState:f,replaceReducer:b},n[ec]=x,n}function $u(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:dn.INIT});if(typeof n>"u")throw new Error(ge(12));if(typeof r(void 0,{type:dn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ge(13))})}function tc(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,l;try{$u(r)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var m=!1,b={},x=0;x<a.length;x++){var C=a[x],N=r[C],L=p[C],P=N(L,f);if(typeof P>"u"){var E=f&&f.type;throw new Error(ge(14))}b[C]=P,m=m||P!==L}return m=m||a.length!==Object.keys(p).length,m?b:p}}function Sr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function rc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ge(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Sr.apply(void 0,l)(i.dispatch),cn(cn({},i),{},{dispatch:a})}}}function oc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var nc=oc();nc.withExtraArgument=oc;var Ta=nc;var cc=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ku=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(f){return d([p,f])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,i=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(f){p=[6,f],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Or=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},Du=Object.defineProperty,Mu=Object.defineProperties,Bu=Object.getOwnPropertyDescriptors,ic=Object.getOwnPropertySymbols,Fu=Object.prototype.hasOwnProperty,Uu=Object.prototype.propertyIsEnumerable,ac=function(t,e,r){return e in t?Du(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},wt=function(t,e){for(var r in e||(e={}))Fu.call(e,r)&&ac(t,r,e[r]);if(ic)for(var n=0,i=ic(e);n<i.length;n++){var r=i[n];Uu.call(e,r)&&ac(t,r,e[r])}return t},Ia=function(t,e){return Mu(t,Bu(e))},Wu=function(t,e,r){return new Promise(function(n,i){var a=function(d){try{l(r.next(d))}catch(p){i(p)}},s=function(d){try{l(r.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var Hu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Sr:Sr.apply(null,arguments)},fx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function zu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Vu=function(t){cc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Or([void 0],r[0].concat(this)))):new(e.bind.apply(e,Or([void 0],r.concat(this))))},e}(Array),ju=function(t){cc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Or([void 0],r[0].concat(this)))):new(e.bind.apply(e,Or([void 0],r.concat(this))))},e}(Array);function Da(t){return Ue(t)?ln(t,function(){}):t}function Gu(t){return typeof t=="boolean"}function Ku(){return function(e){return Zu(e)}}function Zu(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new Vu;if(r&&(Gu(r)?l.push(Ta):l.push(Ta.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var p}return l}var $a=!0;function dc(t){var e=Ku(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,f=p===void 0?void 0:p,h=r.enhancers,m=h===void 0?void 0:h,b;if(typeof i=="function")b=i;else if(zu(i))b=tc(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(e),!$a&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!$a&&x.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=rc.apply(void 0,x),N=Sr;d&&(N=Hu(wt({trace:!$a},typeof d=="object"&&d)));var L=new ju(C),P=L;Array.isArray(m)?P=Or([C],m):typeof m=="function"&&(P=m(L));var E=N.apply(void 0,P);return Pa(b,f,E)}function At(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return wt(wt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}function pc(t){var e={},r=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,r,n]}function qu(t){return typeof t=="function"}function Yu(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?pc(e):[e,r,n],a=i[0],s=i[1],l=i[2],d;if(qu(t))d=function(){return Da(t())};else{var p=Da(t);d=function(){return p}}function f(h,m){h===void 0&&(h=d());var b=Or([a[m.type]],s.filter(function(x){var C=x.matcher;return C(m)}).map(function(x){var C=x.reducer;return C}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,C){if(C)if(dt(x)){var N=x,L=C(N,m);return L===void 0?x:L}else{if(Ue(x))return ln(x,function(P){return C(P,m)});var L=C(x,m);if(L===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return x},h)}return f.getInitialState=d,f}function Xu(t,e){return t+"/"+e}function uc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Da(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(f){var h=n[f],m=Xu(e,f),b,x;"reducer"in h?(b=h.reducer,x=h.prepare):b=h,a[f]=b,s[m]=b,l[f]=x?At(m,x):At(m)});function d(){var f=typeof t.extraReducers=="function"?pc(t.extraReducers):[t.extraReducers],h=f[0],m=h===void 0?{}:h,b=f[1],x=b===void 0?[]:b,C=f[2],N=C===void 0?void 0:C,L=wt(wt({},m),s);return Yu(r,function(P){for(var E in L)P.addCase(E,L[E]);for(var O=0,A=x;O<A.length;O++){var k=A[O];P.addMatcher(k.matcher,k.reducer)}N&&P.addDefaultCase(N)})}var p;return{name:e,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Ju="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Qu=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Ju[Math.random()*64|0];return e},ef=["name","message","stack","code"],ka=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),sc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),tf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=ef;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},gx=function(){function t(e,r,n){var i=At(e+"/fulfilled",function(f,h,m,b){return{payload:f,meta:Ia(wt({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),a=At(e+"/pending",function(f,h,m){return{payload:void 0,meta:Ia(wt({},m||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=At(e+"/rejected",function(f,h,m,b,x){return{payload:b,error:(n&&n.serializeError||tf)(f||"Rejected"),meta:Ia(wt({},x||{}),{arg:m,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function p(f){return function(h,m,b){var x=n?.idGenerator?n.idGenerator(f):Qu(),C=new d,N,L=!1;function P(O){N=O,C.abort()}var E=function(){return Wu(this,null,function(){var O,A,k,F,G,j,M;return ku(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),F=(O=n?.condition)==null?void 0:O.call(n,f,{getState:m,extra:b}),of(F)?[4,F]:[3,2];case 1:F=y.sent(),y.label=2;case 2:if(F===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,G=new Promise(function(S,D){return C.signal.addEventListener("abort",function(){return D({name:"AbortError",message:N||"Aborted"})})}),h(a(x,f,(A=n?.getPendingMeta)==null?void 0:A.call(n,{requestId:x,arg:f},{getState:m,extra:b}))),[4,Promise.race([G,Promise.resolve(r(f,{dispatch:h,getState:m,extra:b,requestId:x,signal:C.signal,abort:P,rejectWithValue:function(S,D){return new ka(S,D)},fulfillWithValue:function(S,D){return new sc(S,D)}})).then(function(S){if(S instanceof ka)throw S;return S instanceof sc?i(S.payload,x,f,S.meta):i(S,x,f)})])];case 3:return k=y.sent(),[3,5];case 4:return j=y.sent(),k=j instanceof ka?s(null,x,f,j.payload,j.meta):s(j,x,f),[3,5];case 5:return M=n&&!n.dispatchConditionRejection&&s.match(k)&&k.meta.condition,M||h(k),[2,k]}})})}();return Object.assign(E,{abort:P,requestId:x,arg:f,unwrap:function(){return E.then(rf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function rf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function of(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var fc="listener",hc="completed",yc="cancelled",bx="task-"+yc,xx="task-"+hc,vx=fc+"-"+yc,Sx=fc+"-"+hc;var Ma="listenerMiddleware";var Ox=At(Ma+"/add"),Cx=At(Ma+"/removeAll"),Ex=At(Ma+"/remove");var lc,wx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(lc||(lc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},nf=function(t){return function(e){setTimeout(e,t)}},Ax=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:nf(10);Yl();window.ftReduxStores||(window.ftReduxStores={});var Rt=class t extends Gt{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Qt(a))return a;if(i==null)return;let s=uc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=dc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[i.name]=new t(s,l)}constructor(e,r){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new fo,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function af(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Qt(e)&&e.clear()}var Wa={};J(Wa,{scrollHelper:()=>sf});var Fa,pn=new Map,Ua=class{lock(e,r){if(r){let n=pn.get(r);if(n==null||n===e)return pn.set(r,e),r}}release(e,r){r&&pn.get(r)===e&&pn.delete(r)}findFirstScrollableParent(e){var r;let n,i;for(let a of di(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(r=n??i)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){var n,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(n=r.offsetTop)!==null&&n!==void 0?n:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=fr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Fa=window.FluidTopicsScrollHelper)!==null&&Fa!==void 0?Fa:new Ua;var sf=window.FluidTopicsScrollHelper;var Ha={};J(Ha,{shadowQuerySelector:()=>lf,shadowQuerySelectorAll:()=>cf});function lf(t,e,...r){var n;let i=t.querySelector(e);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function cf(t,e,...r){let n=[...t.querySelectorAll(e)];for(let i of r)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var ja={};J(ja,{SearchPlaceConverter:()=>xo,SearchPlaceQueryParams:()=>Q,isSearchPlaceQueryParams:()=>Bc,serializeRequest:()=>uf});var df=kd(gc(),1);var bc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(bc||(bc={}));var xc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(xc||(xc={}));var vc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(vc||(vc={}));var Sc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(Sc||(Sc={}));var Oc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Oc||(Oc={}));var Cc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Cc||(Cc={}));var Ec;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Ec||(Ec={}));var wc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(wc||(wc={}));var Ac;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Ac||(Ac={}));var Rc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Rc||(Rc={}));var Nc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Nc||(Nc={}));var za;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(za||(za={}));var Ic=t=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(t);var _c;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(_c||(_c={}));var Lc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Lc||(Lc={}));var Pc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Pc||(Pc={}));var bo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(bo||(bo={}));var $c=t=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(t);var Tc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Tc||(Tc={}));var Va;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Va||(Va={}));var ue;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(ue||(ue={}));var kc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(kc||(kc={}));var Dc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Dc||(Dc={}));var Vx={[ue.PERSONAL_BOOK_SHARE_USER]:[ue.PERSONAL_BOOK_USER],[ue.HTML_EXPORT_USER]:[ue.PERSONAL_BOOK_USER],[ue.PDF_EXPORT_USER]:[ue.PERSONAL_BOOK_USER],[ue.KHUB_ADMIN]:[ue.CONTENT_PUBLISHER],[ue.ADMIN]:[ue.KHUB_ADMIN,ue.USERS_ADMIN,ue.PORTAL_ADMIN],[ue.DEVELOPER]:[ue.BETA_USER,ue.DEBUG_USER],[ue.GENERATIVE_AI_EXPORT_USER]:[ue.GENERATIVE_AI_USER]};function pf(t){return`"${t}"`}function Mc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function uf(t,e){return new xo(t).serialize(e)}var Q;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page"})(Q||(Q={}));var ff=new Set(Object.values(Q));function Bc(t){return ff.has(t)}var xo=class{constructor(e,r={},n=20,i=!1,a="en-US"){this.baseUrl=e,this.predefinedSorts=r,this.defaultPerPage=n,this.allLanguagesAllowed=i,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let n=this.toURLSearchParams(e).toString(),i=r==null||r.trim().length===0,a=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return a.search=n,a.toString()}toURLSearchParams(e,r=!1){var n,i,a,s,l,d,p,f,h,m,b,x;let C=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&C.append(Q.LOCALE,e.contentLocale):C.append(Q.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&C.append(Q.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&C.append(Q.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&C.append(Q.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&C.append(Q.SORT,"last_update");let N=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(O=>O.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let O=N.map(A=>{var k,F;let G=((F=(k=A.valueFilter)===null||k===void 0?void 0:k.values)!==null&&F!==void 0?F:[]).map(j=>this.escapeFilters(j)).map(j=>encodeURIComponent(pf(Mc(j)))).join("_");return`${A.key}~${G}`}).join("*");C.append(Q.VALUE_FILTERS,O)}let L=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(O=>O.dateFilter))!==null&&d!==void 0?d:[];if(L.length>0){let O=L.map(A=>{var k;return`${A.key}~${(k=A.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");C.append(Q.DATE_FILTERS,O)}let P=(f=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(O=>O.rangeFilter))!==null&&f!==void 0?f:[];if(P.length>0){let O=P.map(A=>{var k,F;return`${A.key}~${(k=A.rangeFilter)===null||k===void 0?void 0:k.from}_${(F=A.rangeFilter)===null||F===void 0?void 0:F.to}`}).join("*");C.append(Q.RANGE_FILTERS,O)}let E=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let O in E)C.append(O,E[O]);return!((m=e.paging)===null||m===void 0)&&m.perPage&&((x=(b=e.paging)===null||b===void 0?void 0:b.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&C.append(Q.PER_PAGE,String(e.paging.perPage)),C}parse(e){var r;let n=e.split("?"),i=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(e){var r,n,i,a,s,l,d,p;let f=e.get(Q.LOCALE)==="all"?void 0:e.get(Q.LOCALE),h=((r=e.get(Q.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),m=((n=e.get(Q.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(i=e.get(Q.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=e.get(Q.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),C={};for(let N of e.keys())Bc(N)||(C[N]=e.get(N));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(Q.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:Ic(h)?h:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:fr(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:C}}parseCompatFilters(e){var r,n,i,a,s,l;let d=[];return e.has(Q.FILTERS)&&(d=this.parseValueFilters((r=e.get(Q.FILTERS))!==null&&r!==void 0?r:"")),(n=e.has(Q.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(Q.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(Q.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(Q.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(Q.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Mc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:bo[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(r,n);return e}superEscapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replace(i,r);return e}parseLegacyPeriodFilter(e){if($c(e))return[{key:"ft:lastEdition",dateFilter:{type:bo[e]}}];if(e.startsWith("CUSTOM_")){let[r,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Ka={};J(Ka,{toFtFormComponent:()=>Ga});var hn=Symbol("elementInternals");function Ga(t,e){class r extends t{static get formAssociated(){return!0}get form(){return this[hn].form}constructor(...i){super(i),this[hn]=this.attachInternals(),this[hn].role=e}setFormValue(i){this[hn].setFormValue(i)}}return r}var Za={};J(Za,{DateFormatter:()=>Er});var Er=class{static format(e,r,n,i){return window.moment?window.moment(e).locale(r).format(this.getDateFormat(n,i)):e}static getDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}};var qa,Ya,Xa,Ja,vo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Xa=(Ya=(qa=window.safari)===null||qa===void 0?void 0:qa.pushNotification)===null||Ya===void 0?void 0:Ya.toString())!==null&&Xa!==void 0?Xa:"")==="[object SafariRemoteNotification]",hf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ja=window.ftGlobals)!==null&&Ja!==void 0?Ja:{lit:jn,litDecorators:qn,litRepeat:Yn,litClassMap:Xn,litStyleMap:Jn,litUnsafeHTML:ei,wcUtils:{...ai,...ti,...li,...Za,...ci,...ui,...Wi,...ii,...ra,...Ui,...aa,...na,...kl,...pi,...ca,...pa,...Ml,...ua,...Ba,...oa,...Wa,...Ha,...ja,...Ka,isSafari:vo,isTouchScreen:hf,setVariable:w}};var _t={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(T.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Fc=$`
51
51
  .ft-tooltip--container {
52
52
  display: block;
53
53
  }
@@ -1292,7 +1292,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1292
1292
  .ft-radio ft-typography {
1293
1293
  padding-right: 2px;
1294
1294
  }
1295
- `;var ht=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},vn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},ue=class extends W{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1,this.role="radio"}render(){let e={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return B`
1295
+ `;var ht=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},vn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},fe=class extends W{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1,this.role="radio"}render(){let e={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return B`
1296
1296
  <div class="${De(e)}">
1297
1297
  <div class="ft-radio--box-container">
1298
1298
  <ft-ripple
@@ -1317,7 +1317,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1317
1317
  </ft-typography>
1318
1318
  </label>
1319
1319
  </div>
1320
- `}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new vn(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new vn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}};ue.elementDefinitions={"ft-ripple":ee,"ft-typography":ce};ue.styles=md;ht([v()],ue.prototype,"value",void 0);ht([v()],ue.prototype,"name",void 0);ht([v({type:Boolean,reflect:!0})],ue.prototype,"checked",void 0);ht([v({attribute:"aria-checked",reflect:!0})],ue.prototype,"ariaChecked",void 0);ht([v({type:Boolean})],ue.prototype,"disabled",void 0);ht([v({reflect:!0,attribute:"role"})],ue.prototype,"role",void 0);ht([K(".ft-radio")],ue.prototype,"container",void 0);ht([K("ft-ripple")],ue.prototype,"ripple",void 0);ht([K("input")],ue.prototype,"input",void 0);var gd=$`
1320
+ `}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new vn(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new vn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}};fe.elementDefinitions={"ft-ripple":ee,"ft-typography":ce};fe.styles=md;ht([v()],fe.prototype,"value",void 0);ht([v()],fe.prototype,"name",void 0);ht([v({type:Boolean,reflect:!0})],fe.prototype,"checked",void 0);ht([v({attribute:"aria-checked",reflect:!0})],fe.prototype,"ariaChecked",void 0);ht([v({type:Boolean})],fe.prototype,"disabled",void 0);ht([v({reflect:!0,attribute:"role"})],fe.prototype,"role",void 0);ht([K(".ft-radio")],fe.prototype,"container",void 0);ht([K("ft-ripple")],fe.prototype,"ripple",void 0);ht([K("input")],fe.prototype,"input",void 0);var gd=$`
1321
1321
  :host {
1322
1322
  display: block;
1323
1323
  }
@@ -1330,7 +1330,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1330
1330
  @change=${this.onChange}
1331
1331
  @keydown=${this.onKeyDown}
1332
1332
  ></slot>
1333
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Ne.elementDefinitions={};Ne.styles=gd;Ir([v()],Ne.prototype,"name",void 0);Ir([v({reflect:!0,attribute:"role"})],Ne.prototype,"role",void 0);Ir([v({reflect:!0})],Ne.prototype,"tabIndex",void 0);Ir([v({reflect:!0,attribute:"aria-labelledby"})],Ne.prototype,"ariaLabelledBy",void 0);Ir([Kn()],Ne.prototype,"assignedElements",void 0);Ir([V()],Ne.prototype,"currentSelectedIndex",void 0);X("ft-radio")(ue);X("ft-radio-group")(Ne);var So={buttonMoreColor:o.extend("--ft-filter-level-button-more-color","",T.colorOnSurface),borderRadiusM:o.external(T.borderRadiusM,"Design system"),colorOutline:o.external(T.colorOutline,"Design system"),colorOnSurface:o.external(T.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(T.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:o.external(T.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(T.colorPrimary,"Design system"),colorOnPrimary:o.external(T.colorOnPrimary,"Design system"),fontFamily:o.external($e.fontFamily,"Body2 typography"),fontSize:o.external($e.fontSize,"Body2 typography"),fontWeight:o.external($e.fontWeight,"Body2 typography"),letterSpacing:o.external($e.letterSpacing,"Body2 typography"),lineHeight:o.external($e.lineHeight,"Body2 typography"),textTransform:o.external($e.textTransform,"Body2 typography")},bd=$`
1333
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Ne.elementDefinitions={};Ne.styles=gd;Ir([v()],Ne.prototype,"name",void 0);Ir([v({reflect:!0,attribute:"role"})],Ne.prototype,"role",void 0);Ir([v({reflect:!0})],Ne.prototype,"tabIndex",void 0);Ir([v({reflect:!0,attribute:"aria-labelledby"})],Ne.prototype,"ariaLabelledBy",void 0);Ir([Kn()],Ne.prototype,"assignedElements",void 0);Ir([V()],Ne.prototype,"currentSelectedIndex",void 0);X("ft-radio")(fe);X("ft-radio-group")(Ne);var So={buttonMoreColor:o.extend("--ft-filter-level-button-more-color","",T.colorOnSurface),borderRadiusM:o.external(T.borderRadiusM,"Design system"),colorOutline:o.external(T.colorOutline,"Design system"),colorOnSurface:o.external(T.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(T.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:o.external(T.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(T.colorPrimary,"Design system"),colorOnPrimary:o.external(T.colorOnPrimary,"Design system"),fontFamily:o.external($e.fontFamily,"Body2 typography"),fontSize:o.external($e.fontSize,"Body2 typography"),fontWeight:o.external($e.fontWeight,"Body2 typography"),letterSpacing:o.external($e.letterSpacing,"Body2 typography"),lineHeight:o.external($e.lineHeight,"Body2 typography"),textTransform:o.external($e.textTransform,"Body2 typography")},bd=$`
1334
1334
  .ft-filter-level--container {
1335
1335
  display: flex;
1336
1336
  flex-direction: column;
@@ -1466,7 +1466,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1466
1466
  @change=${r=>this.optionsChanged(r,e)}>
1467
1467
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1468
1468
  </ft-radio>
1469
- `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};de.elementDefinitions={"ft-button":Se,"ft-ripple":ee,"ft-typography":ce,"ft-checkbox":Oe,"ft-icon":be,"ft-radio":ue};de.styles=bd;Ce([v({type:String})],de.prototype,"filterId",void 0);Ce([v({type:Object})],de.prototype,"parent",void 0);Ce([v({type:Array})],de.prototype,"options",void 0);Ce([v({type:Boolean})],de.prototype,"multivalued",void 0);Ce([v({type:Boolean})],de.prototype,"disabled",void 0);Ce([v({type:Boolean})],de.prototype,"hideSelectedOptions",void 0);Ce([v({type:Boolean})],de.prototype,"displayCount",void 0);Ce([v({type:Boolean})],de.prototype,"preventNavigation",void 0);Ce([v({type:String})],de.prototype,"filter",void 0);Ce([v({type:String})],de.prototype,"moreValuesButtonLabel",void 0);Ce([v({type:String})],de.prototype,"noValuesLabel",void 0);Ce([v({type:Number})],de.prototype,"displayedValuesLimit",void 0);Ce([K(".ft-filter-level--container")],de.prototype,"container",void 0);Ce([V()],de.prototype,"radios",void 0);Ce([V()],de.prototype,"displayedPages",void 0);var Tt={buttonsColor:o.extend("--ft-snap-scroll-buttons-color","",T.colorPrimary),buttonsZIndex:o.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:o.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:o.external(T.colorSurface,"Design system")},xd=$`
1469
+ `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};de.elementDefinitions={"ft-button":Se,"ft-ripple":ee,"ft-typography":ce,"ft-checkbox":Oe,"ft-icon":be,"ft-radio":fe};de.styles=bd;Ce([v({type:String})],de.prototype,"filterId",void 0);Ce([v({type:Object})],de.prototype,"parent",void 0);Ce([v({type:Array})],de.prototype,"options",void 0);Ce([v({type:Boolean})],de.prototype,"multivalued",void 0);Ce([v({type:Boolean})],de.prototype,"disabled",void 0);Ce([v({type:Boolean})],de.prototype,"hideSelectedOptions",void 0);Ce([v({type:Boolean})],de.prototype,"displayCount",void 0);Ce([v({type:Boolean})],de.prototype,"preventNavigation",void 0);Ce([v({type:String})],de.prototype,"filter",void 0);Ce([v({type:String})],de.prototype,"moreValuesButtonLabel",void 0);Ce([v({type:String})],de.prototype,"noValuesLabel",void 0);Ce([v({type:Number})],de.prototype,"displayedValuesLimit",void 0);Ce([K(".ft-filter-level--container")],de.prototype,"container",void 0);Ce([V()],de.prototype,"radios",void 0);Ce([V()],de.prototype,"displayedPages",void 0);var Tt={buttonsColor:o.extend("--ft-snap-scroll-buttons-color","",T.colorPrimary),buttonsZIndex:o.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:o.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:o.external(T.colorSurface,"Design system")},xd=$`
1470
1470
  .ft-snap-scroll {
1471
1471
  box-sizing: border-box;
1472
1472
  position: relative;
@@ -1890,7 +1890,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1890
1890
  `})}
1891
1891
  </ft-radio-group>
1892
1892
  </div>
1893
- `}setContentLocale(e){var r;this.selectedSearchLocale=(r=this.stateManager)===null||r===void 0?void 0:r.setContentLocale(e.detail==="all"?void 0:e.detail)}update(e){super.update(e),e.has("currentSearchLocale")&&(this.selectedSearchLocale=this.currentSearchLocale,this.dispatchEvent(new CustomEvent("current-search-locale-change",{detail:this.currentSearchLocale})))}};tt.elementDefinitions={"ft-icon":be,"ft-tooltip":ne,"ft-filter":q,"ft-filter-option":ke,"ft-radio-group":Ne,"ft-radio":ue,"ft-typography":ce};tt.styles=Sd;Pn([v()],tt.prototype,"warningTooltipPosition",void 0);Pn([Jt({store:"search"})],tt.prototype,"locales",void 0);Pn([Jt({store:"search",selector:t=>t.request.contentLocale})],tt.prototype,"currentSearchLocale",void 0);Pn([V()],tt.prototype,"selectedSearchLocale",void 0);X("ft-search-locale-selector")(tt);})();
1893
+ `}setContentLocale(e){var r;this.selectedSearchLocale=(r=this.stateManager)===null||r===void 0?void 0:r.setContentLocale(e.detail==="all"?void 0:e.detail)}update(e){super.update(e),e.has("currentSearchLocale")&&(this.selectedSearchLocale=this.currentSearchLocale,this.dispatchEvent(new CustomEvent("current-search-locale-change",{detail:this.currentSearchLocale})))}};tt.elementDefinitions={"ft-icon":be,"ft-tooltip":ne,"ft-filter":q,"ft-filter-option":ke,"ft-radio-group":Ne,"ft-radio":fe,"ft-typography":ce};tt.styles=Sd;Pn([v()],tt.prototype,"warningTooltipPosition",void 0);Pn([Jt({store:"search"})],tt.prototype,"locales",void 0);Pn([Jt({store:"search",selector:t=>t.request.contentLocale})],tt.prototype,"currentSearchLocale",void 0);Pn([V()],tt.prototype,"selectedSearchLocale",void 0);X("ft-search-locale-selector")(tt);})();
1894
1894
  /*! Bundled license information:
1895
1895
 
1896
1896
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-locale-selector",
3
- "version": "1.2.19",
3
+ "version": "1.2.21",
4
4
  "description": "Search locale selector for integrated fluid-topics search pages",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,16 +19,16 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-filter": "1.2.19",
23
- "@fluid-topics/ft-i18n": "1.2.19",
24
- "@fluid-topics/ft-icon": "1.2.19",
25
- "@fluid-topics/ft-search-context": "1.2.19",
26
- "@fluid-topics/ft-tooltip": "1.2.19",
27
- "@fluid-topics/ft-wc-utils": "1.2.19",
22
+ "@fluid-topics/ft-filter": "1.2.21",
23
+ "@fluid-topics/ft-i18n": "1.2.21",
24
+ "@fluid-topics/ft-icon": "1.2.21",
25
+ "@fluid-topics/ft-search-context": "1.2.21",
26
+ "@fluid-topics/ft-tooltip": "1.2.21",
27
+ "@fluid-topics/ft-wc-utils": "1.2.21",
28
28
  "lit": "3.1.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@fluid-topics/public-api": "1.0.81"
31
+ "@fluid-topics/public-api": "1.0.82"
32
32
  },
33
- "gitHead": "eaa2bf8601f59cc5eed082b9c118e81d21a4cf79"
33
+ "gitHead": "d5ad6e93693f963ea69c3ee8aed39f9c6f0d569a"
34
34
  }