@fluid-topics/ft-search-input 1.3.46 → 1.3.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- "use strict";(()=>{var xf=Object.create;var rl=Object.defineProperty;var vf=Object.getOwnPropertyDescriptor;var Sf=Object.getOwnPropertyNames;var Of=Object.getPrototypeOf,Cf=Object.prototype.hasOwnProperty;var Xr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var wf=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Sf(e))!Cf.call(t,n)&&n!==r&&rl(t,n,{get:()=>e[n],enumerable:!(i=vf(e,n))||i.enumerable});return t};var f=(t,e,r)=>(r=t!=null?xf(Of(t)):{},wf(e||!t||!t.__esModule?rl(r,"default",{value:t,enumerable:!0}):r,t));var C=Xr((ty,ol)=>{ol.exports=ftGlobals.wcUtils});var L=Xr((ry,il)=>{il.exports=ftGlobals.lit});var J=Xr((oy,nl)=>{nl.exports=ftGlobals.litDecorators});var ft=Xr(($x,Nl)=>{Nl.exports=ftGlobals.litClassMap});var Nc=Xr((b0,Pc)=>{Pc.exports=ftGlobals.litUnsafeHTML});var Zc=Xr(($r,Kc)=>{var Xi=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Qi=function(){function t(){this.fetch=!1,this.DOMException=Xi.DOMException}return t.prototype=Xi,new t}();(function(t){var e=function(r){var i=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(m){return m&&DataView.prototype.isPrototypeOf(m)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(m){return m&&s.indexOf(Object.prototype.toString.call(m))>-1};function p(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(m)||m==="")throw new TypeError('Invalid character in header field name: "'+m+'"');return m.toLowerCase()}function u(m){return typeof m!="string"&&(m=String(m)),m}function g(m){var v={next:function(){var _=m.shift();return{done:_===void 0,value:_}}};return n.iterable&&(v[Symbol.iterator]=function(){return v}),v}function y(m){this.map={},m instanceof y?m.forEach(function(v,_){this.append(_,v)},this):Array.isArray(m)?m.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(v){this.append(v,m[v])},this)}y.prototype.append=function(m,v){m=p(m),v=u(v);var _=this.map[m];this.map[m]=_?_+", "+v:v},y.prototype.delete=function(m){delete this.map[p(m)]},y.prototype.get=function(m){return m=p(m),this.has(m)?this.map[m]:null},y.prototype.has=function(m){return this.map.hasOwnProperty(p(m))},y.prototype.set=function(m,v){this.map[p(m)]=u(v)},y.prototype.forEach=function(m,v){for(var _ in this.map)this.map.hasOwnProperty(_)&&m.call(v,this.map[_],_,this)},y.prototype.keys=function(){var m=[];return this.forEach(function(v,_){m.push(_)}),g(m)},y.prototype.values=function(){var m=[];return this.forEach(function(v){m.push(v)}),g(m)},y.prototype.entries=function(){var m=[];return this.forEach(function(v,_){m.push([_,v])}),g(m)},n.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function b(m){if(!m._noBody){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}}function O(m){return new Promise(function(v,_){m.onload=function(){v(m.result)},m.onerror=function(){_(m.error)}})}function S(m){var v=new FileReader,_=O(v);return v.readAsArrayBuffer(m),_}function E(m){var v=new FileReader,_=O(v),ne=/charset=([A-Za-z0-9_-]+)/.exec(m.type),xe=ne?ne[1]:"utf-8";return v.readAsText(m,xe),_}function $(m){for(var v=new Uint8Array(m),_=new Array(v.length),ne=0;ne<v.length;ne++)_[ne]=String.fromCharCode(v[ne]);return _.join("")}function T(m){if(m.slice)return m.slice(0);var v=new Uint8Array(m.byteLength);return v.set(new Uint8Array(m)),v.buffer}function P(){return this.bodyUsed=!1,this._initBody=function(m){this.bodyUsed=this.bodyUsed,this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:n.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:n.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():n.arrayBuffer&&n.blob&&a(m)?(this._bodyArrayBuffer=T(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||c(m))?this._bodyArrayBuffer=T(m):this._bodyText=m=Object.prototype.toString.call(m):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof m=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var m=b(this);if(m)return m;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var m=b(this);return m||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var m=b(this);if(m)return m;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve($(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(nt)}),this.json=function(){return this.text().then(JSON.parse)},this}var z=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Y(m){var v=m.toUpperCase();return z.indexOf(v)>-1?v:m}function X(m,v){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var _=v.body;if(m instanceof X){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,v.headers||(this.headers=new y(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!_&&m._bodyInit!=null&&(_=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new y(v.headers)),this.method=Y(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in i){var Q=new AbortController;return Q.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(_),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var ne=/([?&])_=[^&]*/;if(ne.test(this.url))this.url=this.url.replace(ne,"$1_="+new Date().getTime());else{var xe=/\?/;this.url+=(xe.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}X.prototype.clone=function(){return new X(this,{body:this._bodyInit})};function nt(m){var v=new FormData;return m.trim().split("&").forEach(function(_){if(_){var ne=_.split("="),xe=ne.shift().replace(/\+/g," "),Q=ne.join("=").replace(/\+/g," ");v.append(decodeURIComponent(xe),decodeURIComponent(Q))}}),v}function qt(m){var v=new y,_=m.replace(/\r?\n[\t ]+/g," ");return _.split("\r").map(function(ne){return ne.indexOf(`
2
- `)===0?ne.substr(1,ne.length):ne}).forEach(function(ne){var xe=ne.split(":"),Q=xe.shift().trim();if(Q){var Di=xe.join(":").trim();try{v.append(Q,Di)}catch(qn){console.warn("Response "+qn.message)}}}),v}P.call(X.prototype);function tt(m,v){if(!(this instanceof tt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=v.statusText===void 0?"":""+v.statusText,this.headers=new y(v.headers),this.url=v.url||"",this._initBody(m)}P.call(tt.prototype),tt.prototype.clone=function(){return new tt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},tt.error=function(){var m=new tt(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var Yt=[301,302,303,307,308];tt.redirect=function(m,v){if(Yt.indexOf(v)===-1)throw new RangeError("Invalid status code");return new tt(null,{status:v,headers:{location:m}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(v,_){this.message=v,this.name=_;var ne=Error(v);this.stack=ne.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function ze(m,v){return new Promise(function(_,ne){var xe=new X(m,v);if(xe.signal&&xe.signal.aborted)return ne(new r.DOMException("Aborted","AbortError"));var Q=new XMLHttpRequest;function Di(){Q.abort()}Q.onload=function(){var Ue={statusText:Q.statusText,headers:qt(Q.getAllResponseHeaders()||"")};xe.url.indexOf("file://")===0&&(Q.status<200||Q.status>599)?Ue.status=200:Ue.status=Q.status,Ue.url="responseURL"in Q?Q.responseURL:Ue.headers.get("X-Request-URL");var Yr="response"in Q?Q.response:Q.responseText;setTimeout(function(){_(new tt(Yr,Ue))},0)},Q.onerror=function(){setTimeout(function(){ne(new TypeError("Network request failed"))},0)},Q.ontimeout=function(){setTimeout(function(){ne(new TypeError("Network request timed out"))},0)},Q.onabort=function(){setTimeout(function(){ne(new r.DOMException("Aborted","AbortError"))},0)};function qn(Ue){try{return Ue===""&&i.location.href?i.location.href:Ue}catch{return Ue}}if(Q.open(xe.method,qn(xe.url),!0),xe.credentials==="include"?Q.withCredentials=!0:xe.credentials==="omit"&&(Q.withCredentials=!1),"responseType"in Q&&(n.blob?Q.responseType="blob":n.arrayBuffer&&(Q.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof y||i.Headers&&v.headers instanceof i.Headers)){var tl=[];Object.getOwnPropertyNames(v.headers).forEach(function(Ue){tl.push(p(Ue)),Q.setRequestHeader(Ue,u(v.headers[Ue]))}),xe.headers.forEach(function(Ue,Yr){tl.indexOf(Yr)===-1&&Q.setRequestHeader(Yr,Ue)})}else xe.headers.forEach(function(Ue,Yr){Q.setRequestHeader(Yr,Ue)});xe.signal&&(xe.signal.addEventListener("abort",Di),Q.onreadystatechange=function(){Q.readyState===4&&xe.signal.removeEventListener("abort",Di)}),Q.send(typeof xe._bodyInit>"u"?null:xe._bodyInit)})}return ze.polyfill=!0,i.fetch||(i.fetch=ze,i.Headers=y,i.Request=X,i.Response=tt),r.Headers=y,r.Request=X,r.Response=tt,r.fetch=ze,r}({})})(Qi);Qi.fetch.ponyfill=!0;delete Qi.fetch.polyfill;var Fo=Xi.fetch?Xi:Qi;$r=Fo.fetch;$r.default=Fo.fetch;$r.fetch=Fo.fetch;$r.Headers=Fo.Headers;$r.Request=Fo.Request;$r.Response=Fo.Response;Kc.exports=$r});var zr=Xr((AE,Mp)=>{Mp.exports=ftGlobals.litRepeat});var bf=f(C());var ri=f(L()),Bt=f(C());var Vc=f(L()),ie=f(C());var Ka=f(C());var gi=f(J()),Uc=f(C());var $l=f(L()),V=f(C());var pl=f(L()),Ee=f(C()),al=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorContent),x={color:al,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",al),opacityContentOnSurfacePressed:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ee.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},sl=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorPrimary),ll={color:sl,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",sl)},cl=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorSecondary),dl={color:cl,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",cl)},ul=pl.css`
1
+ "use strict";(()=>{var xf=Object.create;var rl=Object.defineProperty;var vf=Object.getOwnPropertyDescriptor;var Sf=Object.getOwnPropertyNames;var Of=Object.getPrototypeOf,Cf=Object.prototype.hasOwnProperty;var Xr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var wf=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Sf(e))!Cf.call(t,n)&&n!==r&&rl(t,n,{get:()=>e[n],enumerable:!(i=vf(e,n))||i.enumerable});return t};var f=(t,e,r)=>(r=t!=null?xf(Of(t)):{},wf(e||!t||!t.__esModule?rl(r,"default",{value:t,enumerable:!0}):r,t));var C=Xr((ty,ol)=>{ol.exports=ftGlobals.wcUtils});var L=Xr((ry,il)=>{il.exports=ftGlobals.lit});var J=Xr((oy,nl)=>{nl.exports=ftGlobals.litDecorators});var ft=Xr(($x,Nl)=>{Nl.exports=ftGlobals.litClassMap});var Nc=Xr((b0,Pc)=>{Pc.exports=ftGlobals.litUnsafeHTML});var Zc=Xr(($r,Kc)=>{var Xi=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Qi=function(){function t(){this.fetch=!1,this.DOMException=Xi.DOMException}return t.prototype=Xi,new t}();(function(t){var e=function(r){var i=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(m){return m&&DataView.prototype.isPrototypeOf(m)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(m){return m&&s.indexOf(Object.prototype.toString.call(m))>-1};function p(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(m)||m==="")throw new TypeError('Invalid character in header field name: "'+m+'"');return m.toLowerCase()}function u(m){return typeof m!="string"&&(m=String(m)),m}function g(m){var v={next:function(){var _=m.shift();return{done:_===void 0,value:_}}};return n.iterable&&(v[Symbol.iterator]=function(){return v}),v}function y(m){this.map={},m instanceof y?m.forEach(function(v,_){this.append(_,v)},this):Array.isArray(m)?m.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(v){this.append(v,m[v])},this)}y.prototype.append=function(m,v){m=p(m),v=u(v);var _=this.map[m];this.map[m]=_?_+", "+v:v},y.prototype.delete=function(m){delete this.map[p(m)]},y.prototype.get=function(m){return m=p(m),this.has(m)?this.map[m]:null},y.prototype.has=function(m){return this.map.hasOwnProperty(p(m))},y.prototype.set=function(m,v){this.map[p(m)]=u(v)},y.prototype.forEach=function(m,v){for(var _ in this.map)this.map.hasOwnProperty(_)&&m.call(v,this.map[_],_,this)},y.prototype.keys=function(){var m=[];return this.forEach(function(v,_){m.push(_)}),g(m)},y.prototype.values=function(){var m=[];return this.forEach(function(v){m.push(v)}),g(m)},y.prototype.entries=function(){var m=[];return this.forEach(function(v,_){m.push([_,v])}),g(m)},n.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function b(m){if(!m._noBody){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}}function O(m){return new Promise(function(v,_){m.onload=function(){v(m.result)},m.onerror=function(){_(m.error)}})}function S(m){var v=new FileReader,_=O(v);return v.readAsArrayBuffer(m),_}function E(m){var v=new FileReader,_=O(v),ae=/charset=([A-Za-z0-9_-]+)/.exec(m.type),xe=ae?ae[1]:"utf-8";return v.readAsText(m,xe),_}function $(m){for(var v=new Uint8Array(m),_=new Array(v.length),ae=0;ae<v.length;ae++)_[ae]=String.fromCharCode(v[ae]);return _.join("")}function T(m){if(m.slice)return m.slice(0);var v=new Uint8Array(m.byteLength);return v.set(new Uint8Array(m)),v.buffer}function P(){return this.bodyUsed=!1,this._initBody=function(m){this.bodyUsed=this.bodyUsed,this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:n.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:n.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():n.arrayBuffer&&n.blob&&a(m)?(this._bodyArrayBuffer=T(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||c(m))?this._bodyArrayBuffer=T(m):this._bodyText=m=Object.prototype.toString.call(m):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof m=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var m=b(this);if(m)return m;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var m=b(this);return m||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var m=b(this);if(m)return m;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve($(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(nt)}),this.json=function(){return this.text().then(JSON.parse)},this}var z=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Y(m){var v=m.toUpperCase();return z.indexOf(v)>-1?v:m}function X(m,v){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var _=v.body;if(m instanceof X){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,v.headers||(this.headers=new y(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!_&&m._bodyInit!=null&&(_=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new y(v.headers)),this.method=Y(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in i){var Q=new AbortController;return Q.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(_),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var ae=/([?&])_=[^&]*/;if(ae.test(this.url))this.url=this.url.replace(ae,"$1_="+new Date().getTime());else{var xe=/\?/;this.url+=(xe.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}X.prototype.clone=function(){return new X(this,{body:this._bodyInit})};function nt(m){var v=new FormData;return m.trim().split("&").forEach(function(_){if(_){var ae=_.split("="),xe=ae.shift().replace(/\+/g," "),Q=ae.join("=").replace(/\+/g," ");v.append(decodeURIComponent(xe),decodeURIComponent(Q))}}),v}function qt(m){var v=new y,_=m.replace(/\r?\n[\t ]+/g," ");return _.split("\r").map(function(ae){return ae.indexOf(`
2
+ `)===0?ae.substr(1,ae.length):ae}).forEach(function(ae){var xe=ae.split(":"),Q=xe.shift().trim();if(Q){var Di=xe.join(":").trim();try{v.append(Q,Di)}catch(qn){console.warn("Response "+qn.message)}}}),v}P.call(X.prototype);function tt(m,v){if(!(this instanceof tt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=v.statusText===void 0?"":""+v.statusText,this.headers=new y(v.headers),this.url=v.url||"",this._initBody(m)}P.call(tt.prototype),tt.prototype.clone=function(){return new tt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},tt.error=function(){var m=new tt(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var Yt=[301,302,303,307,308];tt.redirect=function(m,v){if(Yt.indexOf(v)===-1)throw new RangeError("Invalid status code");return new tt(null,{status:v,headers:{location:m}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(v,_){this.message=v,this.name=_;var ae=Error(v);this.stack=ae.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function ze(m,v){return new Promise(function(_,ae){var xe=new X(m,v);if(xe.signal&&xe.signal.aborted)return ae(new r.DOMException("Aborted","AbortError"));var Q=new XMLHttpRequest;function Di(){Q.abort()}Q.onload=function(){var Ue={statusText:Q.statusText,headers:qt(Q.getAllResponseHeaders()||"")};xe.url.indexOf("file://")===0&&(Q.status<200||Q.status>599)?Ue.status=200:Ue.status=Q.status,Ue.url="responseURL"in Q?Q.responseURL:Ue.headers.get("X-Request-URL");var Yr="response"in Q?Q.response:Q.responseText;setTimeout(function(){_(new tt(Yr,Ue))},0)},Q.onerror=function(){setTimeout(function(){ae(new TypeError("Network request failed"))},0)},Q.ontimeout=function(){setTimeout(function(){ae(new TypeError("Network request timed out"))},0)},Q.onabort=function(){setTimeout(function(){ae(new r.DOMException("Aborted","AbortError"))},0)};function qn(Ue){try{return Ue===""&&i.location.href?i.location.href:Ue}catch{return Ue}}if(Q.open(xe.method,qn(xe.url),!0),xe.credentials==="include"?Q.withCredentials=!0:xe.credentials==="omit"&&(Q.withCredentials=!1),"responseType"in Q&&(n.blob?Q.responseType="blob":n.arrayBuffer&&(Q.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof y||i.Headers&&v.headers instanceof i.Headers)){var tl=[];Object.getOwnPropertyNames(v.headers).forEach(function(Ue){tl.push(p(Ue)),Q.setRequestHeader(Ue,u(v.headers[Ue]))}),xe.headers.forEach(function(Ue,Yr){tl.indexOf(Yr)===-1&&Q.setRequestHeader(Yr,Ue)})}else xe.headers.forEach(function(Ue,Yr){Q.setRequestHeader(Yr,Ue)});xe.signal&&(xe.signal.addEventListener("abort",Di),Q.onreadystatechange=function(){Q.readyState===4&&xe.signal.removeEventListener("abort",Di)}),Q.send(typeof xe._bodyInit>"u"?null:xe._bodyInit)})}return ze.polyfill=!0,i.fetch||(i.fetch=ze,i.Headers=y,i.Request=X,i.Response=tt),r.Headers=y,r.Request=X,r.Response=tt,r.fetch=ze,r}({})})(Qi);Qi.fetch.ponyfill=!0;delete Qi.fetch.polyfill;var Mo=Xi.fetch?Xi:Qi;$r=Mo.fetch;$r.default=Mo.fetch;$r.fetch=Mo.fetch;$r.Headers=Mo.Headers;$r.Request=Mo.Request;$r.Response=Mo.Response;Kc.exports=$r});var zr=Xr((AE,Mp)=>{Mp.exports=ftGlobals.litRepeat});var bf=f(C());var oi=f(L()),Bt=f(C());var Vc=f(L()),ne=f(C());var Ka=f(C());var gi=f(J()),Uc=f(C());var $l=f(L()),V=f(C());var pl=f(L()),Ae=f(C()),al=Ae.FtCssVariableFactory.extend("--ft-ripple-color","",Ae.designSystemVariables.colorContent),x={color:al,backgroundColor:Ae.FtCssVariableFactory.extend("--ft-ripple-background-color","",al),opacityContentOnSurfacePressed:Ae.FtCssVariableFactory.external(Ae.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ae.FtCssVariableFactory.external(Ae.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ae.FtCssVariableFactory.external(Ae.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ae.FtCssVariableFactory.external(Ae.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ae.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},sl=Ae.FtCssVariableFactory.extend("--ft-ripple-color","",Ae.designSystemVariables.colorPrimary),ll={color:sl,backgroundColor:Ae.FtCssVariableFactory.extend("--ft-ripple-background-color","",sl)},cl=Ae.FtCssVariableFactory.extend("--ft-ripple-color","",Ae.designSystemVariables.colorSecondary),dl={color:cl,backgroundColor:Ae.FtCssVariableFactory.extend("--ft-ripple-background-color","",cl)},ul=pl.css`
3
3
  :host {
4
4
  display: contents;
5
5
  }
@@ -122,7 +122,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
122
122
  text-decoration: ${r.textDecoration};
123
123
  text-transform: ${r.textCase};
124
124
  }
125
- `}var yl=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.titleFont),yr=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.contentFont),I={fontFamily:yr,fontSize:R.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:R.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:R.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:R.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:R.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Co={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-font-family","",yl),fontSize:R.FtCssVariableFactory.extend("--ft-typography-title-font-size","",I.fontSize,"20px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",I.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",I.letterSpacing,"0.15px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-title-line-height","",I.lineHeight,"1.2"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",I.textTransform,"inherit")},wo={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",yl),fontSize:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",I.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",I.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",I.letterSpacing,"0.105px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",I.lineHeight,"1.7"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",I.textTransform,"inherit")},Eo={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",yr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",I.fontSize,"16px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",I.fontWeight,"600"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",I.letterSpacing,"0.144px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",I.lineHeight,"1.5"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",I.textTransform,"inherit")},Ao={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",yr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",I.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",I.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",I.letterSpacing,"0.098px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",I.lineHeight,"1.7"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",I.textTransform,"inherit")},hr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",yr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",I.fontSize,"16px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",I.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",I.letterSpacing,"0.496px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",I.lineHeight,"1.5"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",I.textTransform,"inherit")},Te={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",yr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",I.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",I.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",I.letterSpacing,"0.252px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",I.lineHeight,"1.4"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",I.textTransform,"inherit")},De={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",yr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",I.fontSize,"12px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",I.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",I.letterSpacing,"0.396px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",I.lineHeight,"1.33"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",I.textTransform,"inherit")},Ro={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",yr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",I.fontSize,"10px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",I.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",I.letterSpacing,"0.33px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",I.lineHeight,"1.6"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",I.textTransform,"inherit")},Lo={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",yr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",I.fontSize,"10px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",I.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",I.letterSpacing,"1.5px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",I.lineHeight,"1.6"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",I.textTransform,"uppercase")},Xt={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-button-font-family","",yr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-button-font-size","",I.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",I.fontWeight,"600"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",I.letterSpacing,"1.246px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-button-line-height","",I.lineHeight,"1.15"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",I.textTransform,"uppercase")},gl=At.css`
125
+ `}var yl=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.titleFont),yr=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.contentFont),I={fontFamily:yr,fontSize:R.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:R.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:R.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:R.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:R.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Co={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-font-family","",yl),fontSize:R.FtCssVariableFactory.extend("--ft-typography-title-font-size","",I.fontSize,"20px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",I.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",I.letterSpacing,"0.15px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-title-line-height","",I.lineHeight,"1.2"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",I.textTransform,"inherit")},wo={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",yl),fontSize:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",I.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",I.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",I.letterSpacing,"0.105px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",I.lineHeight,"1.7"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",I.textTransform,"inherit")},Eo={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",yr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",I.fontSize,"16px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",I.fontWeight,"600"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",I.letterSpacing,"0.144px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",I.lineHeight,"1.5"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",I.textTransform,"inherit")},Ao={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",yr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",I.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",I.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",I.letterSpacing,"0.098px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",I.lineHeight,"1.7"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",I.textTransform,"inherit")},hr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",yr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",I.fontSize,"16px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",I.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",I.letterSpacing,"0.496px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",I.lineHeight,"1.5"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",I.textTransform,"inherit")},Te={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",yr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",I.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",I.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",I.letterSpacing,"0.252px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",I.lineHeight,"1.4"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",I.textTransform,"inherit")},Fe={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",yr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",I.fontSize,"12px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",I.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",I.letterSpacing,"0.396px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",I.lineHeight,"1.33"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",I.textTransform,"inherit")},Ro={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",yr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",I.fontSize,"10px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",I.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",I.letterSpacing,"0.33px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",I.lineHeight,"1.6"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",I.textTransform,"inherit")},Lo={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",yr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",I.fontSize,"10px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",I.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",I.letterSpacing,"1.5px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",I.lineHeight,"1.6"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",I.textTransform,"uppercase")},Xt={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-button-font-family","",yr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-button-font-size","",I.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",I.fontWeight,"600"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",I.letterSpacing,"1.246px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-button-line-height","",I.lineHeight,"1.15"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",I.textTransform,"uppercase")},gl=At.css`
126
126
  .ft-typography--title {
127
127
  font-family: ${Co.fontFamily};
128
128
  font-size: ${Co.fontSize};
@@ -179,12 +179,12 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
179
179
  }
180
180
  `,Qt=At.css`
181
181
  .ft-typography--caption {
182
- font-family: ${De.fontFamily};
183
- font-size: ${De.fontSize};
184
- font-weight: ${De.fontWeight};
185
- letter-spacing: ${De.letterSpacing};
186
- line-height: ${De.lineHeight};
187
- text-transform: ${De.textTransform};
182
+ font-family: ${Fe.fontFamily};
183
+ font-size: ${Fe.fontSize};
184
+ font-weight: ${Fe.fontWeight};
185
+ letter-spacing: ${Fe.letterSpacing};
186
+ line-height: ${Fe.lineHeight};
187
+ text-transform: ${Fe.textTransform};
188
188
  }
189
189
  `,Sl=At.css`
190
190
  .ft-typography--breadcrumb {
@@ -217,7 +217,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
217
217
  .ft-typography {
218
218
  vertical-align: inherit;
219
219
  }
220
- `,El=[Object.keys(Jr).map(t=>hl(t))];var Al=f(L()),oi=f(C()),ge={color:oi.FtCssVariableFactory.extend("--ft-loader-color","",oi.designSystemVariables.colorPrimary),size:oi.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Rl=Al.css`
220
+ `,El=[Object.keys(Jr).map(t=>hl(t))];var Al=f(L()),ii=f(C()),ge={color:ii.FtCssVariableFactory.extend("--ft-loader-color","",ii.designSystemVariables.colorPrimary),size:ii.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Rl=Al.css`
221
221
  :host {
222
222
  line-height: 0;
223
223
  }
@@ -471,7 +471,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
471
471
  ${(0,V.setVariable)(ge.size,H.iconSize)};
472
472
  ${(0,V.setVariable)(ge.color,"var(--button-internal-color)")};
473
473
  }
474
- `,V.noTextSelect];var Tr=f(C());var Dl=f(C());var _l=f(L()),He=f(J()),Bl=f(ft()),ii=f(C());var at=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},K=class extends ii.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new ii.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new ii.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return _l.html`
474
+ `,V.noTextSelect];var Tr=f(C());var Dl=f(C());var _l=f(L()),He=f(J()),Bl=f(ft()),ni=f(C());var at=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},K=class extends ni.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new ni.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new ni.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return _l.html`
475
475
  <style>
476
476
  .ft-ripple .ft-ripple--effect {
477
477
  left: ${this.originX}px;
@@ -482,9 +482,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
482
482
  <div class="ft-ripple--background"></div>
483
483
  <div class="ft-ripple--effect"></div>
484
484
  </div>
485
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...c)=>p=>{c.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&r("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};K.elementDefinitions={};K.styles=ul;at([(0,He.property)({type:Boolean})],K.prototype,"primary",void 0);at([(0,He.property)({type:Boolean})],K.prototype,"secondary",void 0);at([(0,He.property)({type:Boolean})],K.prototype,"unbounded",void 0);at([(0,He.property)({type:Boolean})],K.prototype,"activated",void 0);at([(0,He.property)({type:Boolean})],K.prototype,"selected",void 0);at([(0,He.property)({type:Boolean})],K.prototype,"disabled",void 0);at([(0,He.state)()],K.prototype,"hovered",void 0);at([(0,He.state)()],K.prototype,"focused",void 0);at([(0,He.state)()],K.prototype,"pressed",void 0);at([(0,He.state)()],K.prototype,"rippling",void 0);at([(0,He.state)()],K.prototype,"originX",void 0);at([(0,He.state)()],K.prototype,"originY",void 0);at([(0,He.query)(".ft-ripple")],K.prototype,"ripple",void 0);at([(0,He.query)(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);(0,Dl.customElement)("ft-ripple")(K);var $c=f(C());var Tc=f(L()),gt=f(J()),lt=f(C());var $a=f(C());var Aa=globalThis,Fi=Aa.trustedTypes,Fl=Fi?Fi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Vl="$lit$",Rr=`lit$${Math.random().toFixed(9).slice(2)}$`,Gl="?"+Rr,Af=`<${Gl}>`,ro=document,Mi=()=>ro.createComment(""),ai=t=>t===null||typeof t!="object"&&typeof t!="function",Ra=Array.isArray,Rf=t=>Ra(t)||typeof t?.[Symbol.iterator]=="function",va=`[
486
- \f\r]`,ni=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ml=/-->/g,zl=/>/g,eo=RegExp(`>|${va}(?:([^\\s"'>=/]+)(${va}*=${va}*(?:[^
487
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ul=/'/g,Hl=/"/g,jl=/^(?:script|style|textarea|title)$/i,La=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Kl=La(1),Zl=La(2),ql=La(3),si=Symbol.for("lit-noChange"),Ae=Symbol.for("lit-nothing"),Wl=new WeakMap,to=ro.createTreeWalker(ro,129);function Yl(t,e){if(!Ra(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Fl!==void 0?Fl.createHTML(e):e}var Lf=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=ni;for(let c=0;c<r;c++){let p=t[c],u,g,y=-1,b=0;for(;b<p.length&&(s.lastIndex=b,g=s.exec(p),g!==null);)b=s.lastIndex,s===ni?g[1]==="!--"?s=Ml:g[1]!==void 0?s=zl:g[2]!==void 0?(jl.test(g[2])&&(n=RegExp("</"+g[2],"g")),s=eo):g[3]!==void 0&&(s=eo):s===eo?g[0]===">"?(s=n??ni,y=-1):g[1]===void 0?y=-2:(y=s.lastIndex-g[2].length,u=g[1],s=g[3]===void 0?eo:g[3]==='"'?Hl:Ul):s===Hl||s===Ul?s=eo:s===Ml||s===zl?s=ni:(s=eo,n=void 0);let O=s===eo&&t[c+1].startsWith("/>")?" ":"";a+=s===ni?p+Af:y>=0?(i.push(u),p.slice(0,y)+Vl+p.slice(y)+Rr+O):p+Rr+(y===-2?c:O)}return[Yl(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},li=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,c=e.length-1,p=this.parts,[u,g]=Lf(e,r);if(this.el=t.createElement(u,i),to.currentNode=this.el.content,r===2||r===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(n=to.nextNode())!==null&&p.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let y of n.getAttributeNames())if(y.endsWith(Vl)){let b=g[s++],O=n.getAttribute(y).split(Rr),S=/([.?@])?(.*)/.exec(b);p.push({type:1,index:a,name:S[2],strings:O,ctor:S[1]==="."?Oa:S[1]==="?"?Ca:S[1]==="@"?wa:ko}),n.removeAttribute(y)}else y.startsWith(Rr)&&(p.push({type:6,index:a}),n.removeAttribute(y));if(jl.test(n.tagName)){let y=n.textContent.split(Rr),b=y.length-1;if(b>0){n.textContent=Fi?Fi.emptyScript:"";for(let O=0;O<b;O++)n.append(y[O],Mi()),to.nextNode(),p.push({type:2,index:++a});n.append(y[b],Mi())}}}else if(n.nodeType===8)if(n.data===Gl)p.push({type:2,index:a});else{let y=-1;for(;(y=n.data.indexOf(Rr,y+1))!==-1;)p.push({type:7,index:a}),y+=Rr.length-1}a++}}static createElement(e,r){let i=ro.createElement("template");return i.innerHTML=e,i}};function Io(t,e,r=t,i){if(e===si)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=ai(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Io(t,n._$AS(t,e.values),n,i)),e}var Sa=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??ro).importNode(r,!0);to.currentNode=n;let a=to.nextNode(),s=0,c=0,p=i[0];for(;p!==void 0;){if(s===p.index){let u;p.type===2?u=new zi(a,a.nextSibling,this,e):p.type===1?u=new p.ctor(a,p.name,p.strings,this,e):p.type===6&&(u=new Ea(a,this,e)),this._$AV.push(u),p=i[++c]}s!==p?.index&&(a=to.nextNode(),s++)}return to.currentNode=ro,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},zi=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Ae,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Io(this,e,r),ai(e)?e===Ae||e==null||e===""?(this._$AH!==Ae&&this._$AR(),this._$AH=Ae):e!==this._$AH&&e!==si&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Rf(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Ae&&ai(this._$AH)?this._$AA.nextSibling.data=e:this.T(ro.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=li.createElement(Yl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Sa(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=Wl.get(e.strings);return r===void 0&&Wl.set(e.strings,r=new li(e)),r}k(e){Ra(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(Mi()),this.O(Mi()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ko=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=Ae,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ae}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Io(this,e,r,0),s=!ai(e)||e!==this._$AH&&e!==si,s&&(this._$AH=e);else{let c=e,p,u;for(e=a[0],p=0;p<a.length-1;p++)u=Io(this,c[i+p],r,p),u===si&&(u=this._$AH[p]),s||=!ai(u)||u!==this._$AH[p],u===Ae?e=Ae:e!==Ae&&(e+=(u??"")+a[p+1]),this._$AH[p]=u}s&&!n&&this.j(e)}j(e){e===Ae?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Oa=class extends ko{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ae?void 0:e}},Ca=class extends ko{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ae)}},wa=class extends ko{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=Io(this,e,r,0)??Ae)===si)return;let i=this._$AH,n=e===Ae&&i!==Ae||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==Ae&&(i===Ae||n);n&&this.element.removeEventListener(this.name,this,i),a&&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)}},Ea=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Io(this,e)}};var If=Aa.litHtmlPolyfillSupport;If?.(li,zi),(Aa.litHtmlVersions??=[]).push("3.3.0");var Ql=Symbol.for(""),kf=t=>{if(t?.r===Ql)return t?._$litStatic$},To=t=>({_$litStatic$:t,r:Ql});var Xl=new Map,Ia=t=>(e,...r)=>{let i=r.length,n,a,s=[],c=[],p,u=0,g=!1;for(;u<i;){for(p=e[u];u<i&&(a=r[u],(n=kf(a))!==void 0);)p+=n+e[++u],g=!0;u!==i&&c.push(a),s.push(p),u++}if(u===i&&s.push(e[i]),g){let y=s.join("$$lit$$");(e=Xl.get(y))===void 0&&(s.raw=s,Xl.set(y,e=s)),r=c}return t(e,...r)},$o=Ia(Kl),Hx=Ia(Zl),Wx=Ia(ql);var ka=f(J()),ec=f(C());var Ye;(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"})(Ye||(Ye={}));var Jl=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},te=class extends ec.FtLitElement{constructor(){super(...arguments),this.variant=Ye.body1}render(){return this.element?$o`
485
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...c)=>p=>{c.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&r("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};K.elementDefinitions={};K.styles=ul;at([(0,He.property)({type:Boolean})],K.prototype,"primary",void 0);at([(0,He.property)({type:Boolean})],K.prototype,"secondary",void 0);at([(0,He.property)({type:Boolean})],K.prototype,"unbounded",void 0);at([(0,He.property)({type:Boolean})],K.prototype,"activated",void 0);at([(0,He.property)({type:Boolean})],K.prototype,"selected",void 0);at([(0,He.property)({type:Boolean})],K.prototype,"disabled",void 0);at([(0,He.state)()],K.prototype,"hovered",void 0);at([(0,He.state)()],K.prototype,"focused",void 0);at([(0,He.state)()],K.prototype,"pressed",void 0);at([(0,He.state)()],K.prototype,"rippling",void 0);at([(0,He.state)()],K.prototype,"originX",void 0);at([(0,He.state)()],K.prototype,"originY",void 0);at([(0,He.query)(".ft-ripple")],K.prototype,"ripple",void 0);at([(0,He.query)(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);(0,Dl.customElement)("ft-ripple")(K);var $c=f(C());var Tc=f(L()),gt=f(J()),lt=f(C());var $a=f(C());var Aa=globalThis,Fi=Aa.trustedTypes,Fl=Fi?Fi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Vl="$lit$",Rr=`lit$${Math.random().toFixed(9).slice(2)}$`,Gl="?"+Rr,Af=`<${Gl}>`,ro=document,Mi=()=>ro.createComment(""),si=t=>t===null||typeof t!="object"&&typeof t!="function",Ra=Array.isArray,Rf=t=>Ra(t)||typeof t?.[Symbol.iterator]=="function",va=`[
486
+ \f\r]`,ai=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ml=/-->/g,zl=/>/g,eo=RegExp(`>|${va}(?:([^\\s"'>=/]+)(${va}*=${va}*(?:[^
487
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ul=/'/g,Hl=/"/g,jl=/^(?:script|style|textarea|title)$/i,La=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Kl=La(1),Zl=La(2),ql=La(3),li=Symbol.for("lit-noChange"),Re=Symbol.for("lit-nothing"),Wl=new WeakMap,to=ro.createTreeWalker(ro,129);function Yl(t,e){if(!Ra(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Fl!==void 0?Fl.createHTML(e):e}var Lf=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=ai;for(let c=0;c<r;c++){let p=t[c],u,g,y=-1,b=0;for(;b<p.length&&(s.lastIndex=b,g=s.exec(p),g!==null);)b=s.lastIndex,s===ai?g[1]==="!--"?s=Ml:g[1]!==void 0?s=zl:g[2]!==void 0?(jl.test(g[2])&&(n=RegExp("</"+g[2],"g")),s=eo):g[3]!==void 0&&(s=eo):s===eo?g[0]===">"?(s=n??ai,y=-1):g[1]===void 0?y=-2:(y=s.lastIndex-g[2].length,u=g[1],s=g[3]===void 0?eo:g[3]==='"'?Hl:Ul):s===Hl||s===Ul?s=eo:s===Ml||s===zl?s=ai:(s=eo,n=void 0);let O=s===eo&&t[c+1].startsWith("/>")?" ":"";a+=s===ai?p+Af:y>=0?(i.push(u),p.slice(0,y)+Vl+p.slice(y)+Rr+O):p+Rr+(y===-2?c:O)}return[Yl(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},ci=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,c=e.length-1,p=this.parts,[u,g]=Lf(e,r);if(this.el=t.createElement(u,i),to.currentNode=this.el.content,r===2||r===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(n=to.nextNode())!==null&&p.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let y of n.getAttributeNames())if(y.endsWith(Vl)){let b=g[s++],O=n.getAttribute(y).split(Rr),S=/([.?@])?(.*)/.exec(b);p.push({type:1,index:a,name:S[2],strings:O,ctor:S[1]==="."?Oa:S[1]==="?"?Ca:S[1]==="@"?wa:ko}),n.removeAttribute(y)}else y.startsWith(Rr)&&(p.push({type:6,index:a}),n.removeAttribute(y));if(jl.test(n.tagName)){let y=n.textContent.split(Rr),b=y.length-1;if(b>0){n.textContent=Fi?Fi.emptyScript:"";for(let O=0;O<b;O++)n.append(y[O],Mi()),to.nextNode(),p.push({type:2,index:++a});n.append(y[b],Mi())}}}else if(n.nodeType===8)if(n.data===Gl)p.push({type:2,index:a});else{let y=-1;for(;(y=n.data.indexOf(Rr,y+1))!==-1;)p.push({type:7,index:a}),y+=Rr.length-1}a++}}static createElement(e,r){let i=ro.createElement("template");return i.innerHTML=e,i}};function Io(t,e,r=t,i){if(e===li)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=si(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Io(t,n._$AS(t,e.values),n,i)),e}var Sa=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??ro).importNode(r,!0);to.currentNode=n;let a=to.nextNode(),s=0,c=0,p=i[0];for(;p!==void 0;){if(s===p.index){let u;p.type===2?u=new zi(a,a.nextSibling,this,e):p.type===1?u=new p.ctor(a,p.name,p.strings,this,e):p.type===6&&(u=new Ea(a,this,e)),this._$AV.push(u),p=i[++c]}s!==p?.index&&(a=to.nextNode(),s++)}return to.currentNode=ro,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},zi=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Re,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Io(this,e,r),si(e)?e===Re||e==null||e===""?(this._$AH!==Re&&this._$AR(),this._$AH=Re):e!==this._$AH&&e!==li&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Rf(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Re&&si(this._$AH)?this._$AA.nextSibling.data=e:this.T(ro.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=ci.createElement(Yl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Sa(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=Wl.get(e.strings);return r===void 0&&Wl.set(e.strings,r=new ci(e)),r}k(e){Ra(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(Mi()),this.O(Mi()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ko=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=Re,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Re}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Io(this,e,r,0),s=!si(e)||e!==this._$AH&&e!==li,s&&(this._$AH=e);else{let c=e,p,u;for(e=a[0],p=0;p<a.length-1;p++)u=Io(this,c[i+p],r,p),u===li&&(u=this._$AH[p]),s||=!si(u)||u!==this._$AH[p],u===Re?e=Re:e!==Re&&(e+=(u??"")+a[p+1]),this._$AH[p]=u}s&&!n&&this.j(e)}j(e){e===Re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Oa=class extends ko{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Re?void 0:e}},Ca=class extends ko{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Re)}},wa=class extends ko{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=Io(this,e,r,0)??Re)===li)return;let i=this._$AH,n=e===Re&&i!==Re||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==Re&&(i===Re||n);n&&this.element.removeEventListener(this.name,this,i),a&&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)}},Ea=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Io(this,e)}};var If=Aa.litHtmlPolyfillSupport;If?.(ci,zi),(Aa.litHtmlVersions??=[]).push("3.3.0");var Ql=Symbol.for(""),kf=t=>{if(t?.r===Ql)return t?._$litStatic$},To=t=>({_$litStatic$:t,r:Ql});var Xl=new Map,Ia=t=>(e,...r)=>{let i=r.length,n,a,s=[],c=[],p,u=0,g=!1;for(;u<i;){for(p=e[u];u<i&&(a=r[u],(n=kf(a))!==void 0);)p+=n+e[++u],g=!0;u!==i&&c.push(a),s.push(p),u++}if(u===i&&s.push(e[i]),g){let y=s.join("$$lit$$");(e=Xl.get(y))===void 0&&(s.raw=s,Xl.set(y,e=s)),r=c}return t(e,...r)},$o=Ia(Kl),Hx=Ia(Zl),Wx=Ia(ql);var ka=f(J()),ec=f(C());var Ye;(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"})(Ye||(Ye={}));var Jl=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},te=class extends ec.FtLitElement{constructor(){super(...arguments),this.variant=Ye.body1}render(){return this.element?$o`
488
488
  <${To(this.element)}
489
489
  part="text"
490
490
  class="ft-typography ft-typography--${this.variant}">
@@ -539,7 +539,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
539
539
  position: relative;
540
540
  word-break: break-word;
541
541
  }
542
- `;var sc=["top","right","bottom","left"],ac=["start","end"],Na=sc.reduce((t,e)=>t.concat(e,e+"-"+ac[0],e+"-"+ac[1]),[]),lc=Math.min,cc=Math.max;var $f={left:"right",right:"left",bottom:"top",top:"bottom"},Pf={start:"end",end:"start"};function _a(t,e,r){return cc(t,lc(e,r))}function Ui(t,e){return typeof t=="function"?t(e):t}function No(t){return t.split("-")[0]}function Lr(t){return t.split("-")[1]}function Ba(t){return t==="x"?"y":"x"}function Da(t){return t==="y"?"height":"width"}function Hi(t){return["top","bottom"].includes(No(t))?"y":"x"}function Fa(t){return Ba(Hi(t))}function dc(t,e,r){r===void 0&&(r=!1);let i=Lr(t),n=Fa(t),a=Da(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Pa(s)),[s,Pa(s)]}function pc(t){return t.replace(/start|end/g,e=>Pf[e])}function Pa(t){return t.replace(/left|right|bottom|top/g,e=>$f[e])}function Nf(t){return{top:0,right:0,bottom:0,left:0,...t}}function uc(t){return typeof t!="number"?Nf(t):{top:t,right:t,bottom:t,left:t}}function oo(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function fc(t,e,r){let{reference:i,floating:n}=t,a=Hi(e),s=Fa(e),c=Da(s),p=No(e),u=a==="y",g=i.x+i.width/2-n.width/2,y=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,O;switch(p){case"top":O={x:g,y:i.y-n.height};break;case"bottom":O={x:g,y:i.y+i.height};break;case"right":O={x:i.x+i.width,y};break;case"left":O={x:i.x-n.width,y};break;default:O={x:i.x,y:i.y}}switch(Lr(e)){case"start":O[s]-=b*(r&&u?-1:1);break;case"end":O[s]+=b*(r&&u?-1:1);break}return O}var hc=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,c=a.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:g,y}=fc(u,i,p),b=i,O={},S=0;for(let E=0;E<c.length;E++){let{name:$,fn:T}=c[E],{x:P,y:z,data:Y,reset:X}=await T({x:g,y,initialPlacement:i,placement:b,strategy:n,middlewareData:O,rects:u,platform:s,elements:{reference:t,floating:e}});g=P??g,y=z??y,O={...O,[$]:{...O[$],...Y}},X&&S<=50&&(S++,typeof X=="object"&&(X.placement&&(b=X.placement),X.rects&&(u=X.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):X.rects),{x:g,y}=fc(u,b,p)),E=-1)}return{x:g,y,placement:b,strategy:n,middlewareData:O}};async function Ma(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:p}=t,{boundary:u="clippingAncestors",rootBoundary:g="viewport",elementContext:y="floating",altBoundary:b=!1,padding:O=0}=Ui(e,t),S=uc(O),$=c[b?y==="floating"?"reference":"floating":y],T=oo(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement($)))==null||r?$:$.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:g,strategy:p})),P=y==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,z=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),Y=await(a.isElement==null?void 0:a.isElement(z))?await(a.getScale==null?void 0:a.getScale(z))||{x:1,y:1}:{x:1,y:1},X=oo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:P,offsetParent:z,strategy:p}):P);return{top:(T.top-X.top+S.top)/Y.y,bottom:(X.bottom-T.bottom+S.bottom)/Y.y,left:(T.left-X.left+S.left)/Y.x,right:(X.right-T.right+S.right)/Y.x}}function _f(t,e,r){return(t?[...r.filter(n=>Lr(n)===t),...r.filter(n=>Lr(n)!==t)]:r.filter(n=>No(n)===n)).filter(n=>t?Lr(n)===t||(e?pc(n)!==n:!1):!0)}var za=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:c,platform:p,elements:u}=e,{crossAxis:g=!1,alignment:y,allowedPlacements:b=Na,autoAlignment:O=!0,...S}=Ui(t,e),E=y!==void 0||b===Na?_f(y||null,O,b):b,$=await Ma(e,S),T=((r=s.autoPlacement)==null?void 0:r.index)||0,P=E[T];if(P==null)return{};let z=dc(P,a,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(c!==P)return{reset:{placement:E[0]}};let Y=[$[No(P)],$[z[0]],$[z[1]]],X=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:P,overflows:Y}],nt=E[T+1];if(nt)return{data:{index:T+1,overflows:X},reset:{placement:nt}};let qt=X.map(ze=>{let m=Lr(ze.placement);return[ze.placement,m&&g?ze.overflows.slice(0,2).reduce((v,_)=>v+_,0):ze.overflows[0],ze.overflows]}).sort((ze,m)=>ze[1]-m[1]),Yt=((n=qt.filter(ze=>ze[2].slice(0,Lr(ze[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||qt[0][0];return Yt!==c?{data:{index:T+1,overflows:X},reset:{placement:Yt}}:{}}}};var Ua=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:$=>{let{x:T,y:P}=$;return{x:T,y:P}}},...p}=Ui(t,e),u={x:r,y:i},g=await Ma(e,p),y=Hi(No(n)),b=Ba(y),O=u[b],S=u[y];if(a){let $=b==="y"?"top":"left",T=b==="y"?"bottom":"right",P=O+g[$],z=O-g[T];O=_a(P,O,z)}if(s){let $=y==="y"?"top":"left",T=y==="y"?"bottom":"right",P=S+g[$],z=S-g[T];S=_a(P,S,z)}let E=c.fn({...e,[b]:O,[y]:S});return{...E,data:{x:E.x-r,y:E.y-i,enabled:{[b]:a,[y]:s}}}}}};var Ha=Math.min,_o=Math.max,ci=Math.round;var mr=t=>({x:t,y:t});function br(t){return gc(t)?(t.nodeName||"").toLowerCase():"#document"}function st(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function xr(t){var e;return(e=(gc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function gc(t){return t instanceof Node||t instanceof st(t).Node}function tr(t){return t instanceof Element||t instanceof st(t).Element}function zt(t){return t instanceof HTMLElement||t instanceof st(t).HTMLElement}function yc(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof st(t).ShadowRoot}function Bo(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=yt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function mc(t){return["table","td","th"].includes(br(t))}function Vi(t){let e=Gi(),r=yt(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function bc(t){let e=io(t);for(;zt(e)&&!di(e);){if(Vi(e))return e;e=io(e)}return null}function Gi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function di(t){return["html","body","#document"].includes(br(t))}function yt(t){return st(t).getComputedStyle(t)}function pi(t){return tr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function io(t){if(br(t)==="html")return t;let e=t.assignedSlot||t.parentNode||yc(t)&&t.host||xr(t);return yc(e)?e.host:e}function xc(t){let e=io(t);return di(e)?t.ownerDocument?t.ownerDocument.body:t.body:zt(e)&&Bo(e)?e:xc(e)}function Wi(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=xc(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=st(n);return a?e.concat(s,s.visualViewport||[],Bo(n)?n:[],s.frameElement&&r?Wi(s.frameElement):[]):e.concat(n,Wi(n,[],r))}function Oc(t){let e=yt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=zt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,c=ci(r)!==a||ci(i)!==s;return c&&(r=a,i=s),{width:r,height:i,$:c}}function Cc(t){return tr(t)?t:t.contextElement}function Do(t){let e=Cc(t);if(!zt(e))return mr(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=Oc(e),s=(a?ci(r.width):r.width)/i,c=(a?ci(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Ff=mr(0);function wc(t){let e=st(t);return!Gi()||!e.visualViewport?Ff:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Mf(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==st(t)?!1:e}function ui(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=Cc(t),s=mr(1);e&&(i?tr(i)&&(s=Do(i)):s=Do(t));let c=Mf(a,r,i)?wc(a):mr(0),p=(n.left+c.x)/s.x,u=(n.top+c.y)/s.y,g=n.width/s.x,y=n.height/s.y;if(a){let b=st(a),O=i&&tr(i)?st(i):i,S=b.frameElement;for(;S&&i&&O!==b;){let E=Do(S),$=S.getBoundingClientRect(),T=yt(S),P=$.left+(S.clientLeft+parseFloat(T.paddingLeft))*E.x,z=$.top+(S.clientTop+parseFloat(T.paddingTop))*E.y;p*=E.x,u*=E.y,g*=E.x,y*=E.y,p+=P,u+=z,S=st(S).frameElement}}return oo({width:g,height:y,x:p,y:u})}function zf(t){let{rect:e,offsetParent:r,strategy:i}=t,n=zt(r),a=xr(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},c=mr(1),p=mr(0);if((n||!n&&i!=="fixed")&&((br(r)!=="body"||Bo(a))&&(s=pi(r)),zt(r))){let u=ui(r);c=Do(r),p.x=u.x+r.clientLeft,p.y=u.y+r.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+p.x,y:e.y*c.y-s.scrollTop*c.y+p.y}}function Uf(t){return Array.from(t.getClientRects())}function Ec(t){return ui(xr(t)).left+pi(t).scrollLeft}function Hf(t){let e=xr(t),r=pi(t),i=t.ownerDocument.body,n=_o(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=_o(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+Ec(t),c=-r.scrollTop;return yt(i).direction==="rtl"&&(s+=_o(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function Wf(t,e){let r=st(t),i=xr(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,p=0;if(n){a=n.width,s=n.height;let u=Gi();(!u||u&&e==="fixed")&&(c=n.offsetLeft,p=n.offsetTop)}return{width:a,height:s,x:c,y:p}}function Vf(t,e){let r=ui(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=zt(t)?Do(t):mr(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,p=n*a.x,u=i*a.y;return{width:s,height:c,x:p,y:u}}function vc(t,e,r){let i;if(e==="viewport")i=Wf(t,r);else if(e==="document")i=Hf(xr(t));else if(tr(e))i=Vf(e,r);else{let n=wc(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return oo(i)}function Ac(t,e){let r=io(t);return r===e||!tr(r)||di(r)?!1:yt(r).position==="fixed"||Ac(r,e)}function Gf(t,e){let r=e.get(t);if(r)return r;let i=Wi(t,[],!1).filter(c=>tr(c)&&br(c)!=="body"),n=null,a=yt(t).position==="fixed",s=a?io(t):t;for(;tr(s)&&!di(s);){let c=yt(s),p=Vi(s);!p&&c.position==="fixed"&&(n=null),(a?!p&&!n:!p&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Bo(s)&&!p&&Ac(t,s))?i=i.filter(g=>g!==s):n=c,s=io(s)}return e.set(t,i),i}function jf(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Gf(e,this._c):[].concat(r),i],c=s[0],p=s.reduce((u,g)=>{let y=vc(e,g,n);return u.top=_o(y.top,u.top),u.right=Ha(y.right,u.right),u.bottom=Ha(y.bottom,u.bottom),u.left=_o(y.left,u.left),u},vc(e,c,n));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Kf(t){return Oc(t)}function Zf(t,e,r){let i=zt(e),n=xr(e),a=r==="fixed",s=ui(t,!0,a,e),c={scrollLeft:0,scrollTop:0},p=mr(0);if(i||!i&&!a)if((br(e)!=="body"||Bo(n))&&(c=pi(e)),i){let u=ui(e,!0,a,e);p.x=u.x+e.clientLeft,p.y=u.y+e.clientTop}else n&&(p.x=Ec(n));return{x:s.left+c.scrollLeft-p.x,y:s.top+c.scrollTop-p.y,width:s.width,height:s.height}}function Sc(t,e){return!zt(t)||yt(t).position==="fixed"?null:e?e(t):t.offsetParent}function Rc(t,e){let r=st(t);if(!zt(t))return r;let i=Sc(t,e);for(;i&&mc(i)&&yt(i).position==="static";)i=Sc(i,e);return i&&(br(i)==="html"||br(i)==="body"&&yt(i).position==="static"&&!Vi(i))?r:i||bc(t)||r}var qf=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||Rc,a=this.getDimensions;return{reference:Zf(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function Yf(t){return yt(t).direction==="rtl"}var ji={convertOffsetParentRelativeRectToViewportRelativeRect:zf,getDocumentElement:xr,getClippingRect:jf,getOffsetParent:Rc,getElementRects:qf,getClientRects:Uf,getDimensions:Kf,getScale:Do,isElement:tr,isRTL:Yf};var Lc=(t,e,r)=>{let i=new Map,n={platform:ji,...r},a={...n.platform,_c:i};return hc(t,e,{...n,platform:a})};function Ic(t){return Xf(t)}function Wa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Xf(t){for(let e=t;e;e=Wa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Wa(t);e;e=Wa(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function kc(t,e,r){return Lc(t,e,{platform:{...ji,getOffsetParent:i=>ji.getOffsetParent(i,Ic)},middleware:[Ua({crossAxis:!0}),za({allowedPlacements:[r]})]})}var Ut=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},we=class extends lt.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new lt.Debouncer,this.revealDebouncer=new lt.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)||this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Tc.html`
542
+ `;var sc=["top","right","bottom","left"],ac=["start","end"],Na=sc.reduce((t,e)=>t.concat(e,e+"-"+ac[0],e+"-"+ac[1]),[]),lc=Math.min,cc=Math.max;var $f={left:"right",right:"left",bottom:"top",top:"bottom"},Pf={start:"end",end:"start"};function _a(t,e,r){return cc(t,lc(e,r))}function Ui(t,e){return typeof t=="function"?t(e):t}function No(t){return t.split("-")[0]}function Lr(t){return t.split("-")[1]}function Ba(t){return t==="x"?"y":"x"}function Da(t){return t==="y"?"height":"width"}function Hi(t){return["top","bottom"].includes(No(t))?"y":"x"}function Fa(t){return Ba(Hi(t))}function dc(t,e,r){r===void 0&&(r=!1);let i=Lr(t),n=Fa(t),a=Da(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Pa(s)),[s,Pa(s)]}function pc(t){return t.replace(/start|end/g,e=>Pf[e])}function Pa(t){return t.replace(/left|right|bottom|top/g,e=>$f[e])}function Nf(t){return{top:0,right:0,bottom:0,left:0,...t}}function uc(t){return typeof t!="number"?Nf(t):{top:t,right:t,bottom:t,left:t}}function oo(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function fc(t,e,r){let{reference:i,floating:n}=t,a=Hi(e),s=Fa(e),c=Da(s),p=No(e),u=a==="y",g=i.x+i.width/2-n.width/2,y=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,O;switch(p){case"top":O={x:g,y:i.y-n.height};break;case"bottom":O={x:g,y:i.y+i.height};break;case"right":O={x:i.x+i.width,y};break;case"left":O={x:i.x-n.width,y};break;default:O={x:i.x,y:i.y}}switch(Lr(e)){case"start":O[s]-=b*(r&&u?-1:1);break;case"end":O[s]+=b*(r&&u?-1:1);break}return O}var hc=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,c=a.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:g,y}=fc(u,i,p),b=i,O={},S=0;for(let E=0;E<c.length;E++){let{name:$,fn:T}=c[E],{x:P,y:z,data:Y,reset:X}=await T({x:g,y,initialPlacement:i,placement:b,strategy:n,middlewareData:O,rects:u,platform:s,elements:{reference:t,floating:e}});g=P??g,y=z??y,O={...O,[$]:{...O[$],...Y}},X&&S<=50&&(S++,typeof X=="object"&&(X.placement&&(b=X.placement),X.rects&&(u=X.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):X.rects),{x:g,y}=fc(u,b,p)),E=-1)}return{x:g,y,placement:b,strategy:n,middlewareData:O}};async function Ma(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:p}=t,{boundary:u="clippingAncestors",rootBoundary:g="viewport",elementContext:y="floating",altBoundary:b=!1,padding:O=0}=Ui(e,t),S=uc(O),$=c[b?y==="floating"?"reference":"floating":y],T=oo(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement($)))==null||r?$:$.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:g,strategy:p})),P=y==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,z=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),Y=await(a.isElement==null?void 0:a.isElement(z))?await(a.getScale==null?void 0:a.getScale(z))||{x:1,y:1}:{x:1,y:1},X=oo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:P,offsetParent:z,strategy:p}):P);return{top:(T.top-X.top+S.top)/Y.y,bottom:(X.bottom-T.bottom+S.bottom)/Y.y,left:(T.left-X.left+S.left)/Y.x,right:(X.right-T.right+S.right)/Y.x}}function _f(t,e,r){return(t?[...r.filter(n=>Lr(n)===t),...r.filter(n=>Lr(n)!==t)]:r.filter(n=>No(n)===n)).filter(n=>t?Lr(n)===t||(e?pc(n)!==n:!1):!0)}var za=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:c,platform:p,elements:u}=e,{crossAxis:g=!1,alignment:y,allowedPlacements:b=Na,autoAlignment:O=!0,...S}=Ui(t,e),E=y!==void 0||b===Na?_f(y||null,O,b):b,$=await Ma(e,S),T=((r=s.autoPlacement)==null?void 0:r.index)||0,P=E[T];if(P==null)return{};let z=dc(P,a,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(c!==P)return{reset:{placement:E[0]}};let Y=[$[No(P)],$[z[0]],$[z[1]]],X=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:P,overflows:Y}],nt=E[T+1];if(nt)return{data:{index:T+1,overflows:X},reset:{placement:nt}};let qt=X.map(ze=>{let m=Lr(ze.placement);return[ze.placement,m&&g?ze.overflows.slice(0,2).reduce((v,_)=>v+_,0):ze.overflows[0],ze.overflows]}).sort((ze,m)=>ze[1]-m[1]),Yt=((n=qt.filter(ze=>ze[2].slice(0,Lr(ze[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||qt[0][0];return Yt!==c?{data:{index:T+1,overflows:X},reset:{placement:Yt}}:{}}}};var Ua=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:$=>{let{x:T,y:P}=$;return{x:T,y:P}}},...p}=Ui(t,e),u={x:r,y:i},g=await Ma(e,p),y=Hi(No(n)),b=Ba(y),O=u[b],S=u[y];if(a){let $=b==="y"?"top":"left",T=b==="y"?"bottom":"right",P=O+g[$],z=O-g[T];O=_a(P,O,z)}if(s){let $=y==="y"?"top":"left",T=y==="y"?"bottom":"right",P=S+g[$],z=S-g[T];S=_a(P,S,z)}let E=c.fn({...e,[b]:O,[y]:S});return{...E,data:{x:E.x-r,y:E.y-i,enabled:{[b]:a,[y]:s}}}}}};var Ha=Math.min,_o=Math.max,di=Math.round;var mr=t=>({x:t,y:t});function br(t){return gc(t)?(t.nodeName||"").toLowerCase():"#document"}function st(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function xr(t){var e;return(e=(gc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function gc(t){return t instanceof Node||t instanceof st(t).Node}function tr(t){return t instanceof Element||t instanceof st(t).Element}function zt(t){return t instanceof HTMLElement||t instanceof st(t).HTMLElement}function yc(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof st(t).ShadowRoot}function Bo(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=yt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function mc(t){return["table","td","th"].includes(br(t))}function Vi(t){let e=Gi(),r=yt(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function bc(t){let e=io(t);for(;zt(e)&&!pi(e);){if(Vi(e))return e;e=io(e)}return null}function Gi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function pi(t){return["html","body","#document"].includes(br(t))}function yt(t){return st(t).getComputedStyle(t)}function ui(t){return tr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function io(t){if(br(t)==="html")return t;let e=t.assignedSlot||t.parentNode||yc(t)&&t.host||xr(t);return yc(e)?e.host:e}function xc(t){let e=io(t);return pi(e)?t.ownerDocument?t.ownerDocument.body:t.body:zt(e)&&Bo(e)?e:xc(e)}function Wi(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=xc(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=st(n);return a?e.concat(s,s.visualViewport||[],Bo(n)?n:[],s.frameElement&&r?Wi(s.frameElement):[]):e.concat(n,Wi(n,[],r))}function Oc(t){let e=yt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=zt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,c=di(r)!==a||di(i)!==s;return c&&(r=a,i=s),{width:r,height:i,$:c}}function Cc(t){return tr(t)?t:t.contextElement}function Do(t){let e=Cc(t);if(!zt(e))return mr(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=Oc(e),s=(a?di(r.width):r.width)/i,c=(a?di(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Ff=mr(0);function wc(t){let e=st(t);return!Gi()||!e.visualViewport?Ff:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Mf(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==st(t)?!1:e}function fi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=Cc(t),s=mr(1);e&&(i?tr(i)&&(s=Do(i)):s=Do(t));let c=Mf(a,r,i)?wc(a):mr(0),p=(n.left+c.x)/s.x,u=(n.top+c.y)/s.y,g=n.width/s.x,y=n.height/s.y;if(a){let b=st(a),O=i&&tr(i)?st(i):i,S=b.frameElement;for(;S&&i&&O!==b;){let E=Do(S),$=S.getBoundingClientRect(),T=yt(S),P=$.left+(S.clientLeft+parseFloat(T.paddingLeft))*E.x,z=$.top+(S.clientTop+parseFloat(T.paddingTop))*E.y;p*=E.x,u*=E.y,g*=E.x,y*=E.y,p+=P,u+=z,S=st(S).frameElement}}return oo({width:g,height:y,x:p,y:u})}function zf(t){let{rect:e,offsetParent:r,strategy:i}=t,n=zt(r),a=xr(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},c=mr(1),p=mr(0);if((n||!n&&i!=="fixed")&&((br(r)!=="body"||Bo(a))&&(s=ui(r)),zt(r))){let u=fi(r);c=Do(r),p.x=u.x+r.clientLeft,p.y=u.y+r.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+p.x,y:e.y*c.y-s.scrollTop*c.y+p.y}}function Uf(t){return Array.from(t.getClientRects())}function Ec(t){return fi(xr(t)).left+ui(t).scrollLeft}function Hf(t){let e=xr(t),r=ui(t),i=t.ownerDocument.body,n=_o(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=_o(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+Ec(t),c=-r.scrollTop;return yt(i).direction==="rtl"&&(s+=_o(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function Wf(t,e){let r=st(t),i=xr(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,p=0;if(n){a=n.width,s=n.height;let u=Gi();(!u||u&&e==="fixed")&&(c=n.offsetLeft,p=n.offsetTop)}return{width:a,height:s,x:c,y:p}}function Vf(t,e){let r=fi(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=zt(t)?Do(t):mr(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,p=n*a.x,u=i*a.y;return{width:s,height:c,x:p,y:u}}function vc(t,e,r){let i;if(e==="viewport")i=Wf(t,r);else if(e==="document")i=Hf(xr(t));else if(tr(e))i=Vf(e,r);else{let n=wc(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return oo(i)}function Ac(t,e){let r=io(t);return r===e||!tr(r)||pi(r)?!1:yt(r).position==="fixed"||Ac(r,e)}function Gf(t,e){let r=e.get(t);if(r)return r;let i=Wi(t,[],!1).filter(c=>tr(c)&&br(c)!=="body"),n=null,a=yt(t).position==="fixed",s=a?io(t):t;for(;tr(s)&&!pi(s);){let c=yt(s),p=Vi(s);!p&&c.position==="fixed"&&(n=null),(a?!p&&!n:!p&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Bo(s)&&!p&&Ac(t,s))?i=i.filter(g=>g!==s):n=c,s=io(s)}return e.set(t,i),i}function jf(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Gf(e,this._c):[].concat(r),i],c=s[0],p=s.reduce((u,g)=>{let y=vc(e,g,n);return u.top=_o(y.top,u.top),u.right=Ha(y.right,u.right),u.bottom=Ha(y.bottom,u.bottom),u.left=_o(y.left,u.left),u},vc(e,c,n));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Kf(t){return Oc(t)}function Zf(t,e,r){let i=zt(e),n=xr(e),a=r==="fixed",s=fi(t,!0,a,e),c={scrollLeft:0,scrollTop:0},p=mr(0);if(i||!i&&!a)if((br(e)!=="body"||Bo(n))&&(c=ui(e)),i){let u=fi(e,!0,a,e);p.x=u.x+e.clientLeft,p.y=u.y+e.clientTop}else n&&(p.x=Ec(n));return{x:s.left+c.scrollLeft-p.x,y:s.top+c.scrollTop-p.y,width:s.width,height:s.height}}function Sc(t,e){return!zt(t)||yt(t).position==="fixed"?null:e?e(t):t.offsetParent}function Rc(t,e){let r=st(t);if(!zt(t))return r;let i=Sc(t,e);for(;i&&mc(i)&&yt(i).position==="static";)i=Sc(i,e);return i&&(br(i)==="html"||br(i)==="body"&&yt(i).position==="static"&&!Vi(i))?r:i||bc(t)||r}var qf=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||Rc,a=this.getDimensions;return{reference:Zf(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function Yf(t){return yt(t).direction==="rtl"}var ji={convertOffsetParentRelativeRectToViewportRelativeRect:zf,getDocumentElement:xr,getClippingRect:jf,getOffsetParent:Rc,getElementRects:qf,getClientRects:Uf,getDimensions:Kf,getScale:Do,isElement:tr,isRTL:Yf};var Lc=(t,e,r)=>{let i=new Map,n={platform:ji,...r},a={...n.platform,_c:i};return hc(t,e,{...n,platform:a})};function Ic(t){return Xf(t)}function Wa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Xf(t){for(let e=t;e;e=Wa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Wa(t);e;e=Wa(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function kc(t,e,r){return Lc(t,e,{platform:{...ji,getOffsetParent:i=>ji.getOffsetParent(i,Ic)},middleware:[Ua({crossAxis:!0}),za({allowedPlacements:[r]})]})}var Ut=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},we=class extends lt.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new lt.Debouncer,this.revealDebouncer=new lt.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)||this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Tc.html`
543
543
  <div part="container"
544
544
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
545
545
  <slot part="slot"></slot>
@@ -552,19 +552,19 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
552
552
  </div>
553
553
  </div>
554
554
  </div>
555
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",kc(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${lt.designSystemVariables.transitionDuration}, left ${lt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||(0,lt.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}};we.elementDefinitions={"ft-typography":te};we.styles=nc;Ut([(0,gt.property)()],we.prototype,"text",void 0);Ut([(0,gt.property)({type:Boolean})],we.prototype,"manual",void 0);Ut([(0,gt.property)({type:Boolean})],we.prototype,"inline",void 0);Ut([(0,lt.numberProperty)()],we.prototype,"delay",void 0);Ut([(0,gt.property)()],we.prototype,"position",void 0);Ut([(0,lt.jsonProperty)([])],we.prototype,"ignoreMatchingElements",void 0);Ut([(0,gt.queryAssignedNodes)()],we.prototype,"slotNodes",void 0);Ut([(0,gt.query)(".ft-tooltip--container")],we.prototype,"container",void 0);Ut([(0,gt.query)(".ft-tooltip")],we.prototype,"tooltip",void 0);Ut([(0,gt.query)(".ft-tooltip--content")],we.prototype,"tooltipContent",void 0);Ut([(0,gt.state)()],we.prototype,"visible",void 0);(0,$c.customElement)("ft-tooltip")(we);var Dc=f(C());var fi=f(L()),Ir=f(J()),_c=f(C()),Bc=f(Nc());var We;(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.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.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.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",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.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CLOUD_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;"})(We||(We={}));var A;(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;"})(A||(A={}));var Va=new Map([...["abw"].map(t=>[t,A.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,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.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,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.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,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]),Qf=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Ki(t,e){var r,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,c]=(((r=Qf.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(i=Va.get(c))!==null&&i!==void 0?i:Va.get(e))!==null&&n!==void 0?n:Va.get(s))!==null&&a!==void 0?a:A.UNKNOWN}var x0={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var Fe;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Fe||(Fe={}));var hi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ae=class extends _c.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=fi.nothing}render(){let e=this.variant&&Object.values(Fe).includes(this.variant)?this.variant:Fe.fluid_topics,r=e!==Fe.material||!!this.value;return fi.html`
555
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",kc(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${lt.designSystemVariables.transitionDuration}, left ${lt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||(0,lt.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}};we.elementDefinitions={"ft-typography":te};we.styles=nc;Ut([(0,gt.property)()],we.prototype,"text",void 0);Ut([(0,gt.property)({type:Boolean})],we.prototype,"manual",void 0);Ut([(0,gt.property)({type:Boolean})],we.prototype,"inline",void 0);Ut([(0,lt.numberProperty)()],we.prototype,"delay",void 0);Ut([(0,gt.property)()],we.prototype,"position",void 0);Ut([(0,lt.jsonProperty)([])],we.prototype,"ignoreMatchingElements",void 0);Ut([(0,gt.queryAssignedNodes)()],we.prototype,"slotNodes",void 0);Ut([(0,gt.query)(".ft-tooltip--container")],we.prototype,"container",void 0);Ut([(0,gt.query)(".ft-tooltip")],we.prototype,"tooltip",void 0);Ut([(0,gt.query)(".ft-tooltip--content")],we.prototype,"tooltipContent",void 0);Ut([(0,gt.state)()],we.prototype,"visible",void 0);(0,$c.customElement)("ft-tooltip")(we);var Dc=f(C());var hi=f(L()),Ir=f(J()),_c=f(C()),Bc=f(Nc());var We;(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.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.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.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",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.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CLOUD_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;"})(We||(We={}));var A;(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;"})(A||(A={}));var Va=new Map([...["abw"].map(t=>[t,A.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,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.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,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.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,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]),Qf=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Ki(t,e){var r,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,c]=(((r=Qf.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(i=Va.get(c))!==null&&i!==void 0?i:Va.get(e))!==null&&n!==void 0?n:Va.get(s))!==null&&a!==void 0?a:A.UNKNOWN}var x0={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var Me;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Me||(Me={}));var yi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},se=class extends _c.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=hi.nothing}render(){let e=this.variant&&Object.values(Me).includes(this.variant)?this.variant:Me.fluid_topics,r=e!==Me.material||!!this.value;return hi.html`
556
556
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
557
557
  ${(0,Bc.unsafeHTML)(this.resolvedIcon)}
558
558
  <slot ?hidden=${r}></slot>
559
559
  </i>
560
- `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Fe.file_format:this.resolvedIcon=(e=A[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Fe.material:this.resolvedIcon=this.value||fi.nothing;break;default:this.resolvedIcon=(r=We[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ae.elementDefinitions={};ae.styles=Il;hi([(0,Ir.property)()],ae.prototype,"variant",void 0);hi([(0,Ir.property)()],ae.prototype,"value",void 0);hi([(0,Ir.property)({reflect:!0,attribute:"aria-hidden"})],ae.prototype,"ariaHidden",void 0);hi([(0,Ir.state)()],ae.prototype,"resolvedIcon",void 0);hi([(0,Ir.query)("slot")],ae.prototype,"slottedContent",void 0);(0,Dc.customElement)("ft-icon")(ae);var zc=f(C());var Fc=f(L()),Mc=f(C());var no=class extends Mc.FtLitElement{render(){return Fc.html`
560
+ `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Me.file_format:this.resolvedIcon=(e=A[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Me.material:this.resolvedIcon=this.value||hi.nothing;break;default:this.resolvedIcon=(r=We[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};se.elementDefinitions={};se.styles=Il;yi([(0,Ir.property)()],se.prototype,"variant",void 0);yi([(0,Ir.property)()],se.prototype,"value",void 0);yi([(0,Ir.property)({reflect:!0,attribute:"aria-hidden"})],se.prototype,"ariaHidden",void 0);yi([(0,Ir.state)()],se.prototype,"resolvedIcon",void 0);yi([(0,Ir.query)("slot")],se.prototype,"slottedContent",void 0);(0,Dc.customElement)("ft-icon")(se);var zc=f(C());var Fc=f(L()),Mc=f(C());var no=class extends Mc.FtLitElement{render(){return Fc.html`
561
561
  <div class="ft-loader">
562
562
  <div></div>
563
563
  <div></div>
564
564
  <div></div>
565
565
  <div></div>
566
566
  </div>
567
- `}};no.styles=Rl;(0,zc.customElement)("ft-loader")(no);var kr=f(L()),Ga=f(ft()),Re=f(J());var yi=t=>t??Ae;var Me=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},se=class extends(0,Tr.toFtFormComponent)(Tr.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n=kr.html`
567
+ `}};no.styles=Rl;(0,zc.customElement)("ft-loader")(no);var kr=f(L()),Ga=f(ft()),Ee=f(J());var Fo=t=>t??Re;var $e=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ie=class extends(0,Tr.toFtFormComponent)(Tr.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n=kr.html`
568
568
  <ft-ripple part="ripple"
569
569
  ?disabled=${this.isDisabled()}
570
570
  ?activated=${this.activated}
@@ -590,7 +590,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
590
590
  <button part="button"
591
591
  class="${(0,Ga.classMap)(this.buttonClasses)}"
592
592
  aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
593
- aria-haspopup="${yi(this.ariaHasPopup)}"
593
+ aria-haspopup="${Fo(this.ariaHasPopup)}"
594
+ aria-pressed="${Fo(this.ariaPressed)}"
594
595
  ?disabled=${this.isDisabled()}>
595
596
  ${n}
596
597
  </button>
@@ -605,7 +606,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
605
606
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
606
607
  `:kr.html`
607
608
  <slot part="icon" name="icon"></slot>
608
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}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.getTextContent()}getTextContent(){return(0,Tr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};se.elementDefinitions={"ft-ripple":K,"ft-tooltip":we,"ft-icon":ae,"ft-loader":no};Me([(0,Re.property)()],se.prototype,"href",void 0);Me([(0,Re.property)()],se.prototype,"target",void 0);Me([(0,Re.property)()],se.prototype,"type",void 0);Me([(0,Re.property)({type:Boolean})],se.prototype,"disabled",void 0);Me([(0,Re.property)()],se.prototype,"label",void 0);Me([(0,Re.property)()],se.prototype,"icon",void 0);Me([(0,Re.property)()],se.prototype,"iconVariant",void 0);Me([(0,Re.property)({type:Boolean})],se.prototype,"trailingIcon",void 0);Me([(0,Re.property)({type:Boolean})],se.prototype,"loading",void 0);Me([(0,Re.property)({attribute:"aria-label"})],se.prototype,"ariaLabel",void 0);Me([(0,Re.property)()],se.prototype,"ariaHasPopup",void 0);Me([(0,Re.property)()],se.prototype,"tooltipPosition",void 0);Me([(0,Re.property)({type:Boolean})],se.prototype,"hideTooltip",void 0);Me([(0,Re.property)({type:Boolean})],se.prototype,"forceTooltip",void 0);Me([(0,Re.property)({type:Boolean})],se.prototype,"activated",void 0);Me([(0,Re.query)(".ft-button")],se.prototype,"button",void 0);Me([(0,Re.query)(".ft-button--label slot")],se.prototype,"slottedContent",void 0);Me([(0,Re.query)("[part=tooltip]")],se.prototype,"tooltip",void 0);var Zi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Oe=class extends se{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 Ye.button}};Oe.elementDefinitions={...se.elementDefinitions,"ft-or-ftds-typography":te};Oe.styles=[Uc.safariEllipsisFix,Pl];Zi([(0,gi.property)({type:Boolean})],Oe.prototype,"primary",void 0);Zi([(0,gi.property)({type:Boolean})],Oe.prototype,"outlined",void 0);Zi([(0,gi.property)({type:Boolean})],Oe.prototype,"dense",void 0);Zi([(0,gi.property)({type:Boolean})],Oe.prototype,"round",void 0);var mi=f(J()),Yi=f(C());var Hc=f(L()),w=f(C());var ja={...h,iconOnlyScale:w.FtCssVariableFactory.create("--ft-button-icon-only-scale","","NUMBER","1")},Wc=[Hc.css`
609
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}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.getTextContent()}getTextContent(){return(0,Tr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ie.elementDefinitions={"ft-ripple":K,"ft-tooltip":we,"ft-icon":se,"ft-loader":no};$e([(0,Ee.property)()],ie.prototype,"href",void 0);$e([(0,Ee.property)()],ie.prototype,"target",void 0);$e([(0,Ee.property)()],ie.prototype,"type",void 0);$e([(0,Ee.property)({type:Boolean})],ie.prototype,"disabled",void 0);$e([(0,Ee.property)()],ie.prototype,"label",void 0);$e([(0,Ee.property)()],ie.prototype,"icon",void 0);$e([(0,Ee.property)()],ie.prototype,"iconVariant",void 0);$e([(0,Ee.property)({type:Boolean})],ie.prototype,"trailingIcon",void 0);$e([(0,Ee.property)({type:Boolean})],ie.prototype,"loading",void 0);$e([(0,Ee.property)({attribute:"aria-label"})],ie.prototype,"ariaLabel",void 0);$e([(0,Ee.property)()],ie.prototype,"ariaHasPopup",void 0);$e([(0,Ee.property)({attribute:"aria-pressed"})],ie.prototype,"ariaPressed",void 0);$e([(0,Ee.property)()],ie.prototype,"tooltipPosition",void 0);$e([(0,Ee.property)({type:Boolean})],ie.prototype,"hideTooltip",void 0);$e([(0,Ee.property)({type:Boolean})],ie.prototype,"forceTooltip",void 0);$e([(0,Ee.property)({type:Boolean})],ie.prototype,"activated",void 0);$e([(0,Ee.query)(".ft-button")],ie.prototype,"button",void 0);$e([(0,Ee.query)(".ft-button--label slot")],ie.prototype,"slottedContent",void 0);$e([(0,Ee.query)("[part=tooltip]")],ie.prototype,"tooltip",void 0);var Zi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Oe=class extends ie{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 Ye.button}};Oe.elementDefinitions={...ie.elementDefinitions,"ft-or-ftds-typography":te};Oe.styles=[Uc.safariEllipsisFix,Pl];Zi([(0,gi.property)({type:Boolean})],Oe.prototype,"primary",void 0);Zi([(0,gi.property)({type:Boolean})],Oe.prototype,"outlined",void 0);Zi([(0,gi.property)({type:Boolean})],Oe.prototype,"dense",void 0);Zi([(0,gi.property)({type:Boolean})],Oe.prototype,"round",void 0);var mi=f(J()),Yi=f(C());var Hc=f(L()),w=f(C());var ja={...h,iconOnlyScale:w.FtCssVariableFactory.create("--ft-button-icon-only-scale","","NUMBER","1")},Wc=[Hc.css`
609
610
  :host {
610
611
  display: inline-block;
611
612
  max-width: 100%;
@@ -1075,11 +1076,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1075
1076
  .ftds--size-small.ft-button--icon-only {
1076
1077
  width: ${h.smallIconOnlyWidth};
1077
1078
  }
1078
- `,w.noTextSelect];var qi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Rt=class extends(0,Yi.toFtdsBase)(se){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Er.brand,this.iconVariant=Fe.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case Dt.large:return ht.body2medium;case Dt.medium:return ht.caption1medium;case Dt.small:return ht.caption2medium}}};Rt.elementDefinitions={...se.elementDefinitions,"ft-or-ftds-typography":Mt};Rt.styles=[Yi.safariEllipsisFix,Wc];qi([(0,mi.property)({type:Boolean})],Rt.prototype,"primary",void 0);qi([(0,mi.property)({type:Boolean})],Rt.prototype,"secondary",void 0);qi([(0,mi.property)({type:Boolean})],Rt.prototype,"tertiary",void 0);qi([(0,mi.property)({type:Boolean})],Rt.prototype,"round",void 0);(0,Ka.customElement)("ft-button")(Oe);(0,Ka.customElement)("ftds-button")(Rt);var Le={height:ie.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:ie.FtCssVariableFactory.extend("--ft-search-input-border-radius","",ie.designSystemVariables.borderRadiusS),desktopFiltersHeight:ie.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:ie.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:ie.FtCssVariableFactory.extend("--ft-search-input-background-color","",ie.designSystemVariables.colorSurface),colorOnSurface:ie.FtCssVariableFactory.extend("--ft-search-input-color","",ie.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:ie.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",ie.designSystemVariables.colorOnSurfaceMedium),colorOutline:ie.FtCssVariableFactory.extend("--ft-search-input-outline-color","",ie.designSystemVariables.colorOutline),elevation02:ie.FtCssVariableFactory.extend("--ft-search-input-elevation","",ie.designSystemVariables.elevation02),focusOutlineColor:ie.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",ie.designSystemVariables.colorPrimary),buttonColor:ie.FtCssVariableFactory.extend("--ft-search-input-button-color","",ie.designSystemVariables.colorPrimary),buttonRippleColor:ie.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",ie.designSystemVariables.colorPrimary)},Gc=Vc.css`
1079
+ `,w.noTextSelect];var qi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Rt=class extends(0,Yi.toFtdsBase)(ie){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Er.brand,this.iconVariant=Me.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case Dt.large:return ht.body2medium;case Dt.medium:return ht.caption1medium;case Dt.small:return ht.caption2medium}}};Rt.elementDefinitions={...ie.elementDefinitions,"ft-or-ftds-typography":Mt};Rt.styles=[Yi.safariEllipsisFix,Wc];qi([(0,mi.property)({type:Boolean})],Rt.prototype,"primary",void 0);qi([(0,mi.property)({type:Boolean})],Rt.prototype,"secondary",void 0);qi([(0,mi.property)({type:Boolean})],Rt.prototype,"tertiary",void 0);qi([(0,mi.property)({type:Boolean})],Rt.prototype,"round",void 0);(0,Ka.customElement)("ft-button")(Oe);(0,Ka.customElement)("ftds-button")(Rt);var Le={height:ne.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:ne.FtCssVariableFactory.extend("--ft-search-input-border-radius","",ne.designSystemVariables.borderRadiusS),desktopFiltersHeight:ne.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:ne.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:ne.FtCssVariableFactory.extend("--ft-search-input-background-color","",ne.designSystemVariables.colorSurface),colorOnSurface:ne.FtCssVariableFactory.extend("--ft-search-input-color","",ne.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:ne.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",ne.designSystemVariables.colorOnSurfaceMedium),colorOutline:ne.FtCssVariableFactory.extend("--ft-search-input-outline-color","",ne.designSystemVariables.colorOutline),elevation02:ne.FtCssVariableFactory.extend("--ft-search-input-elevation","",ne.designSystemVariables.elevation02),focusOutlineColor:ne.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",ne.designSystemVariables.colorPrimary),buttonColor:ne.FtCssVariableFactory.extend("--ft-search-input-button-color","",ne.designSystemVariables.colorPrimary),buttonRippleColor:ne.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",ne.designSystemVariables.colorPrimary)},Gc=Vc.css`
1079
1080
  * {
1080
1081
  box-sizing: border-box;
1081
- ${(0,ie.setVariable)(H.color,Le.buttonColor)};
1082
- ${(0,ie.setVariable)(H.rippleColor,Le.buttonRippleColor)};
1082
+ ${(0,ne.setVariable)(H.color,Le.buttonColor)};
1083
+ ${(0,ne.setVariable)(H.rippleColor,Le.buttonRippleColor)};
1083
1084
  }
1084
1085
 
1085
1086
  .ft-search-input {
@@ -1133,13 +1134,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1133
1134
  align-items: center;
1134
1135
  height: 100%;
1135
1136
 
1136
- ${(0,ie.setVariable)(er.zIndex,`calc(${Le.floatingZIndex} + 1)`)};
1137
+ ${(0,ne.setVariable)(er.zIndex,`calc(${Le.floatingZIndex} + 1)`)};
1137
1138
  }
1138
1139
 
1139
1140
  .ft-search-input > ft-button,
1140
1141
  .ft-search-input--actions ft-button {
1141
1142
  flex-shrink: 0;
1142
- ${(0,ie.setVariable)(H.backgroundColor,"transparent")};
1143
+ ${(0,ne.setVariable)(H.backgroundColor,"transparent")};
1143
1144
  }
1144
1145
 
1145
1146
  .ft-search-input .ft-search-input--launch-search,
@@ -1151,15 +1152,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1151
1152
  height: 20px;
1152
1153
  border-right: 1px solid ${Le.colorOutline};
1153
1154
  }
1154
- `;var Rn=f(C()),Tp=f(J());var En=f(C());var jc=f(C());var eh=f(Zc(),1);var qc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(qc||(qc={}));var Yc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Yc||(Yc={}));var Xc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Xc||(Xc={}));var Qc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Qc||(Qc={}));var Jc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Jc||(Jc={}));var ed;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ed||(ed={}));var td;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(td||(td={}));var rd;(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"})(rd||(rd={}));var od;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(od||(od={}));var id;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(id||(id={}));var nd;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(nd||(nd={}));var ad;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ad||(ad={}));var sd;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(sd||(sd={}));var ld;(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"})(ld||(ld={}));var Za;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Za||(Za={}));var cd;(function(t){t.ASC="ASC",t.DESC="DESC"})(cd||(cd={}));var dd;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(dd||(dd={}));var qa;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(qa||(qa={}));var pd;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(pd||(pd={}));var ud;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ud||(ud={}));var fd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(fd||(fd={}));var hd;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(hd||(hd={}));var yd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(yd||(yd={}));var Ya;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ya||(Ya={}));var gd;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(gd||(gd={}));var $e;(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})($e||($e={}));var Lt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Lt||(Lt={}));var md;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(md||(md={}));var bd;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(bd||(bd={}));var xd;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(xd||(xd={}));var vd;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(vd||(vd={}));var Sd;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Sd||(Sd={}));var Jf={[$e.PERSONAL_BOOK_SHARE_USER]:[$e.PERSONAL_BOOK_USER],[$e.HTML_EXPORT_USER]:[$e.PERSONAL_BOOK_USER],[$e.PDF_EXPORT_USER]:[$e.PERSONAL_BOOK_USER],[$e.KHUB_ADMIN]:[$e.CONTENT_PUBLISHER],[$e.ADMIN]:[$e.KHUB_ADMIN,$e.USERS_ADMIN,$e.PORTAL_ADMIN],[$e.GENERATIVE_AI_EXPORT_USER]:[$e.GENERATIVE_AI_USER]};function Od(t,e){return t===e||(Jf[t]??[]).some(r=>Od(r,e))}function Cd(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Od(i,e))}var Ip=f(C());var Pd=f(L()),Ve=f(J()),Ht=f(C());var wd=f(L());var Ed=wd.css`
1155
- `;var Ji=f(C()),th="ft-app-info",ao=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ao.eventName="authentication-change";var rh={session:(t,e)=>{(0,Ji.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>k.dispatchEvent(new ao(e.payload)),0))}},k=Ji.FtReduxStore.get({name:th,reducers:rh,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Xa=f(C());var so=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=k.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=k.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var en=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:so.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):so.await()}};var ct=class extends en{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[p])=>c.localeCompare(p)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Xa.CacheRegistry,this.cache=e?n.commonCache:new Xa.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var tn=class extends ct{async listMyBookmarks(){let e=k.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Qa=class{addCommand(e,r=!1){k.commands.add(e,r)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Qa;var It=f(C());var Ad,Mo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},oh=Symbol("clearAfterUnitTest"),rn=class extends(0,It.withEventBus)(ct){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ad]=()=>{this.defaultMessages={},this.cache=new It.CacheRegistry,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=k.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,It.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new It.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof It.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Mo({loadedContexts:e})),this.dispatchEvent(new Mo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Mo({loadedContexts:[e]})),this.dispatchEvent(new Mo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,It.delay)(0).then(()=>i()).catch(()=>null)))}};Ad=oh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends rn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends rn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var zo=window.FluidTopicsI18nService,on=window.FluidTopicsCustomI18nService;var Rd=f(C()),Ja=class{highlightHtml(e,r,i){(0,Rd.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ja;var nn=class extends ct{async listMySearches(){let{session:e}=k.getState();return Cd(e,$e.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Ld=f(C());var es=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=k.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(c=>c.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a;return Ld.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:k.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new es;var Id=f(C());var vr=class{static get(e,r){var i,n;let a=k.getState(),{lang:s,region:c}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Id.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${c}`)}};var ts=class{urlToSearchRequest(e){return vr.get().parse(e)}searchRequestToUrl(e){return vr.get().serialize(e)}};window.FluidTopicsUrlService=new ts;var Pr=f(C());var lo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};lo.eventName="change";var rs=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},kd=new rs;var an=class t extends Pr.WithEventBus{static build(){return new t(window.history,kd,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Pr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new lo(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,c])=>{let p=r(),u={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:typeof c=="string"?c:(c??this.windowLocation()).href};i.apply(n,[u,s,c]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(lo.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(lo.eventName,e)}currentItem(){return(0,Pr.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Pr.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Pr.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=an.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var Td=k;function $d(t,e){var r;return Td.getState().authenticationRequired&&!(!((r=Td.getState().session)===null||r===void 0)&&r.sessionAuthenticated)?Promise.resolve(e):t()}var Pe=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ue=class extends Ht.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>so.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Ht.CacheRegistry,this.cleanSessionDebouncer=new Ht.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Pd.html`
1155
+ `;var Rn=f(C()),Tp=f(J());var En=f(C());var jc=f(C());var eh=f(Zc(),1);var qc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(qc||(qc={}));var Yc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Yc||(Yc={}));var Xc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Xc||(Xc={}));var Qc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Qc||(Qc={}));var Jc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Jc||(Jc={}));var ed;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ed||(ed={}));var td;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(td||(td={}));var rd;(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"})(rd||(rd={}));var od;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(od||(od={}));var id;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(id||(id={}));var nd;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(nd||(nd={}));var ad;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ad||(ad={}));var sd;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(sd||(sd={}));var ld;(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"})(ld||(ld={}));var Za;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Za||(Za={}));var cd;(function(t){t.ASC="ASC",t.DESC="DESC"})(cd||(cd={}));var dd;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(dd||(dd={}));var qa;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(qa||(qa={}));var pd;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(pd||(pd={}));var ud;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ud||(ud={}));var fd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(fd||(fd={}));var hd;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(hd||(hd={}));var yd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(yd||(yd={}));var Ya;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ya||(Ya={}));var gd;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(gd||(gd={}));var Pe;(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(Pe||(Pe={}));var Lt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Lt||(Lt={}));var md;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(md||(md={}));var bd;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(bd||(bd={}));var xd;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(xd||(xd={}));var vd;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(vd||(vd={}));var Sd;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Sd||(Sd={}));var Jf={[Pe.PERSONAL_BOOK_SHARE_USER]:[Pe.PERSONAL_BOOK_USER],[Pe.HTML_EXPORT_USER]:[Pe.PERSONAL_BOOK_USER],[Pe.PDF_EXPORT_USER]:[Pe.PERSONAL_BOOK_USER],[Pe.KHUB_ADMIN]:[Pe.CONTENT_PUBLISHER],[Pe.ADMIN]:[Pe.KHUB_ADMIN,Pe.USERS_ADMIN,Pe.PORTAL_ADMIN],[Pe.GENERATIVE_AI_EXPORT_USER]:[Pe.GENERATIVE_AI_USER]};function Od(t,e){return t===e||(Jf[t]??[]).some(r=>Od(r,e))}function Cd(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Od(i,e))}var Ip=f(C());var Pd=f(L()),Ve=f(J()),Ht=f(C());var wd=f(L());var Ed=wd.css`
1156
+ `;var Ji=f(C()),th="ft-app-info",ao=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ao.eventName="authentication-change";var rh={session:(t,e)=>{(0,Ji.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>k.dispatchEvent(new ao(e.payload)),0))}},k=Ji.FtReduxStore.get({name:th,reducers:rh,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Xa=f(C());var so=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=k.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=k.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var en=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:so.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):so.await()}};var ct=class extends en{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[p])=>c.localeCompare(p)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Xa.CacheRegistry,this.cache=e?n.commonCache:new Xa.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var tn=class extends ct{async listMyBookmarks(){let e=k.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Qa=class{addCommand(e,r=!1){k.commands.add(e,r)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Qa;var It=f(C());var Ad,zo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},oh=Symbol("clearAfterUnitTest"),rn=class extends(0,It.withEventBus)(ct){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ad]=()=>{this.defaultMessages={},this.cache=new It.CacheRegistry,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=k.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,It.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new It.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof It.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new zo({loadedContexts:e})),this.dispatchEvent(new zo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new zo({loadedContexts:[e]})),this.dispatchEvent(new zo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,It.delay)(0).then(()=>i()).catch(()=>null)))}};Ad=oh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends rn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends rn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Uo=window.FluidTopicsI18nService,on=window.FluidTopicsCustomI18nService;var Rd=f(C()),Ja=class{highlightHtml(e,r,i){(0,Rd.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ja;var nn=class extends ct{async listMySearches(){let{session:e}=k.getState();return Cd(e,Pe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Ld=f(C());var es=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=k.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(c=>c.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a;return Ld.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:k.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new es;var Id=f(C());var vr=class{static get(e,r){var i,n;let a=k.getState(),{lang:s,region:c}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Id.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${c}`)}};var ts=class{urlToSearchRequest(e){return vr.get().parse(e)}searchRequestToUrl(e){return vr.get().serialize(e)}};window.FluidTopicsUrlService=new ts;var Pr=f(C());var lo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};lo.eventName="change";var rs=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},kd=new rs;var an=class t extends Pr.WithEventBus{static build(){return new t(window.history,kd,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Pr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new lo(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,c])=>{let p=r(),u={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:typeof c=="string"?c:(c??this.windowLocation()).href};i.apply(n,[u,s,c]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(lo.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(lo.eventName,e)}currentItem(){return(0,Pr.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Pr.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Pr.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=an.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var Td=k;function $d(t,e){var r;return Td.getState().authenticationRequired&&!(!((r=Td.getState().session)===null||r===void 0)&&r.sessionAuthenticated)?Promise.resolve(e):t()}var Ne=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ue=class extends Ht.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>so.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Ht.CacheRegistry,this.cleanSessionDebouncer=new Ht.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Pd.html`
1156
1157
  <slot></slot>
1157
- `}connectedCallback(){super.connectedCallback(),k.addEventListener(ao.eventName,this.reloadConfiguration)}disconnectedCallback(){k.addEventListener(ao.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,i,n,a,s,c,p;super.update(e),e.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&k.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&k.actions.noCustom(this.noCustom),e.has("editorMode")&&k.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&k.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>zo.addContext(u)),e.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(k.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),k.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),k.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&k.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&k.actions.availableContentLocales((p=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&p!==void 0?p:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>$d(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};ue.elementDefinitions={};ue.styles=Ed;Pe([(0,Ve.property)()],ue.prototype,"baseUrl",void 0);Pe([(0,Ve.property)()],ue.prototype,"apiIntegrationIdentifier",void 0);Pe([(0,Ve.property)()],ue.prototype,"apiIntegrationAppVersion",void 0);Pe([(0,Ve.property)()],ue.prototype,"uiLocale",void 0);Pe([(0,Ht.jsonProperty)(null)],ue.prototype,"availableUiLocales",void 0);Pe([(0,Ht.jsonProperty)(null)],ue.prototype,"metadataConfiguration",void 0);Pe([(0,Ve.property)({type:Boolean})],ue.prototype,"editorMode",void 0);Pe([(0,Ve.property)({type:Boolean})],ue.prototype,"noCustom",void 0);Pe([(0,Ve.property)({type:Boolean})],ue.prototype,"openExternalDocumentInNewTab",void 0);Pe([(0,Ve.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ue.prototype,"noCustomComponent",void 0);Pe([(0,Ve.property)({type:Boolean})],ue.prototype,"withManualResources",void 0);Pe([(0,Ve.property)({type:Boolean})],ue.prototype,"navigatorOnline",void 0);Pe([(0,Ve.property)({type:Boolean})],ue.prototype,"forcedOffline",void 0);Pe([(0,Ve.property)({type:Object})],ue.prototype,"apiProvider",void 0);Pe([(0,Ve.property)({type:Boolean})],ue.prototype,"authenticationRequired",void 0);Pe([(0,Ht.jsonProperty)([])],ue.prototype,"messageContexts",void 0);Pe([(0,Ht.jsonProperty)(void 0)],ue.prototype,"session",void 0);Pe([(0,Ve.state)()],ue.prototype,"localesConfiguration",void 0);Pe([(0,Ve.state)()],ue.prototype,"availableContentLocales",void 0);var Rs=f(J());function ih(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!sn(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!sn(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(n=a(t),r=n.length,r!==a(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!sn(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function sn(t,e){try{return ih(t,e)}catch{return!1}}function bi(t,e){return!sn(t,e)}function ln(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var Nd=f(J(),1);var os=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:bi,attribute:!1,...e};(0,Nd.property)(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:c=>c[i],store:e.store})}};var cn=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var co=f(J(),1);var _d=f(J(),1);function Bd(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,_d.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:bi,...e??{}})}var dn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(c){n(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Fd=f(L(),1);var pn=globalThis,nh=pn.ShadowRoot&&(pn.ShadyCSS===void 0||pn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,YO=Symbol();var Dd=(t,e)=>{if(nh)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=pn.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var un=class extends Fd.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Dd(i,e.elementStyles),i}};function Md(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var Ho=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Wd,zd=Symbol("constructorPrototype"),Ud=Symbol("constructorName"),Vd=Symbol("exportpartsDebouncer"),Hd=Symbol("dynamicDependenciesLoaded"),Uo=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Uo.eventName="exportparts-updated";var rr=class extends un{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Wd]=new dn(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Vd].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ud]=this.constructor.name,this[zd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ud]&&Object.setPrototypeOf(this,this[zd])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Hd]||(r[Hd]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Uo.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Uo.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Uo)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=Md(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var r,i,n,a,s,c;let p=b=>b!=null&&b.trim().length>0,u=e.filter(p).map(b=>b.trim());if(u.length===0){this.exportparts=void 0;return}let g=new Set;for(let b of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let O=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map($=>$.split(":")[1]))!==null&&c!==void 0?c:[],E=[...O,...S].filter(p).map($=>$.trim());for(let $ of E)g.add($)}if(g.size===0){this.exportparts=void 0;return}let y=[...g.values()].flatMap(b=>u.map(O=>`${b}:${O}--${b}`));this.exportparts=[...this.part,...y].join(", ")}};Wd=Vd;Ho([(0,co.property)()],rr.prototype,"exportpartsPrefix",void 0);Ho([Bd([])],rr.prototype,"exportpartsPrefixes",void 0);Ho([(0,co.property)({reflect:!0})],rr.prototype,"exportparts",void 0);Ho([(0,co.property)()],rr.prototype,"customStylesheet",void 0);Ho([(0,co.property)()],rr.prototype,"elementToFocus",void 0);Ho([(0,co.state)()],rr.prototype,"useAdoptedStyleSheets",void 0);function fn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var xi=Symbol("internalReduxEventsUnsubscribers"),Nr=Symbol("internalStoresUnsubscribers"),po=Symbol("internalStores"),ah=ln(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[po].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[po].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[po].get(s)}addStore(s,c){var p;c=(p=c??s.name)!==null&&p!==void 0?p:"default-store",this.unsubscribeFromStore(c),this[po].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[po].delete(c)}setupStores(){this.unsubscribeFromStores(),this[po].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let p=this.constructor.getPropertyOptions(c);if(!p?.attribute||!this.hasAttribute(typeof p?.attribute=="string"?p.attribute:c)){let u=this.getStore(s.store);u&&(s.store?this[Nr].has(s.store):this[Nr].size>0)&&(this[c]=s.selector(u.getState(),this))}})}subscribeToStore(s,c){var p;this[Nr].set(s,c.subscribe(()=>this.updateFromStores())),this[xi].set(s,[]),fn(c)&&c.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((u,g)=>{if(typeof this[g]=="function"&&(!u.store||c.name===u.store)){let y=b=>this[g](b);c.addEventListener(u.eventName,y),this[xi].get(s).push(()=>c.removeEventListener(u.eventName,y))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Nr].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[Nr].has(s)&&this[Nr].get(s)(),this[Nr].delete(s),(c=this[xi].get(s))===null||c===void 0||c.forEach(p=>p()),this[xi].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Nr,r=po,i=xi,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Gd=class extends ah(rr){};function kt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,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 Sr(t){return!!t&&!!t[me]}function Wt(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===hh}(t)||Array.isArray(t)||!!t[Qd]||!!(!((e=t.constructor)===null||e===void 0)&&e[Qd])||us(t)||fs(t))}function uo(t,e,r){r===void 0&&(r=!1),Go(t)===0?(r?Object.keys:Vo)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function Go(t){var e=t[me];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:us(t)?2:fs(t)?3:0}function Wo(t,e){return Go(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function sh(t,e){return Go(t)===2?t.get(e):t[e]}function Jd(t,e,r){var i=Go(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function ep(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function us(t){return uh&&t instanceof Map}function fs(t){return fh&&t instanceof Set}function _r(t){return t.o||t.t}function hs(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=op(t);delete e[me];for(var r=Vo(e),i=0;i<r.length;i++){var n=r[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function ys(t,e){return e===void 0&&(e=!1),gs(t)||Sr(t)||!Wt(t)||(Go(t)>1&&(t.set=t.add=t.clear=t.delete=lh),Object.freeze(t),e&&uo(t,function(r,i){return ys(i,!0)},!0)),t}function lh(){kt(2)}function gs(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function or(t){var e=ps[t];return e||kt(18,t),e}function ch(t,e){ps[t]||(ps[t]=e)}function ls(){return Si}function is(t,e){e&&(or("Patches"),t.u=[],t.s=[],t.v=e)}function hn(t){cs(t),t.p.forEach(dh),t.p=null}function cs(t){t===Si&&(Si=t.l)}function jd(t){return Si={p:[],l:Si,h:t,m:!0,_:0}}function dh(t){var e=t[me];e.i===0||e.i===1?e.j():e.g=!0}function ns(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||or("ES5").S(e,t,i),i?(r[me].P&&(hn(e),kt(4)),Wt(t)&&(t=yn(e,t),e.l||gn(e,t)),e.u&&or("Patches").M(r[me].t,t,e.u,e.s)):t=yn(e,r,[]),hn(e),e.u&&e.v(e.u,e.s),t!==rp?t:void 0}function yn(t,e,r){if(gs(e))return e;var i=e[me];if(!i)return uo(e,function(c,p){return Kd(t,i,e,c,p,r)},!0),e;if(i.A!==t)return e;if(!i.P)return gn(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=hs(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),uo(a,function(c,p){return Kd(t,i,n,c,p,r,s)}),gn(t,n,!1),r&&t.u&&or("Patches").N(i,r,t.u,t.s)}return i.o}function Kd(t,e,r,i,n,a,s){if(Sr(n)){var c=yn(t,n,a&&e&&e.i!==3&&!Wo(e.R,i)?a.concat(i):void 0);if(Jd(r,i,c),!Sr(c))return;t.m=!1}else s&&r.add(n);if(Wt(n)&&!gs(n)){if(!t.h.D&&t._<1)return;yn(t,n),e&&e.A.l||gn(t,n)}}function gn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&ys(e,r)}function as(t,e){var r=t[me];return(r?_r(r):t)[e]}function Zd(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function Br(t){t.P||(t.P=!0,t.l&&Br(t.l))}function ss(t){t.o||(t.o=hs(t.t))}function ds(t,e,r){var i=us(e)?or("MapSet").F(e,r):fs(e)?or("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:ls(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},p=c,u=Oi;s&&(p=[c],u=vi);var g=Proxy.revocable(p,u),y=g.revoke,b=g.proxy;return c.k=b,c.j=y,b}(e,r):or("ES5").J(e,r);return(r?r.A:ls()).p.push(i),i}function ph(t){return Sr(t)||kt(22,t),function e(r){if(!Wt(r))return r;var i,n=r[me],a=Go(r);if(n){if(!n.P&&(n.i<4||!or("ES5").K(n)))return n.t;n.I=!0,i=qd(r,a),n.I=!1}else i=qd(r,a);return uo(i,function(s,c){n&&sh(n.t,s)===c||Jd(i,s,e(c))}),a===3?new Set(i):i}(t)}function qd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return hs(t)}function tp(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var u=this[me];return Oi.get(u,s)},set:function(u){var g=this[me];Oi.set(g,s,u)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][me];if(!p.P)switch(p.i){case 5:i(p)&&Br(p);break;case 4:r(p)&&Br(p)}}}function r(s){for(var c=s.t,p=s.k,u=Vo(p),g=u.length-1;g>=0;g--){var y=u[g];if(y!==me){var b=c[y];if(b===void 0&&!Wo(c,y))return!0;var O=p[y],S=O&&O[me];if(S?S.t!==b:!ep(O,b))return!0}}var E=!!c[me];return u.length!==Vo(c).length+(E?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function n(s){s.g&&kt(3,JSON.stringify(_r(s)))}var a={};ch("ES5",{J:function(s,c){var p=Array.isArray(s),u=function(y,b){if(y){for(var O=Array(b.length),S=0;S<b.length;S++)Object.defineProperty(O,""+S,t(S,!0));return O}var E=op(b);delete E[me];for(var $=Vo(E),T=0;T<$.length;T++){var P=$[T];E[P]=t(P,y||!!E[P].enumerable)}return Object.create(Object.getPrototypeOf(b),E)}(p,s),g={i:p?5:4,A:c?c.A:ls(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,me,{value:g,writable:!0}),u},S:function(s,c,p){p?Sr(c)&&c[me].A===s&&e(s.p):(s.u&&function u(g){if(g&&typeof g=="object"){var y=g[me];if(y){var b=y.t,O=y.k,S=y.R,E=y.i;if(E===4)uo(O,function(Y){Y!==me&&(b[Y]!==void 0||Wo(b,Y)?S[Y]||u(O[Y]):(S[Y]=!0,Br(y)))}),uo(b,function(Y){O[Y]!==void 0||Wo(O,Y)||(S[Y]=!1,Br(y))});else if(E===5){if(i(y)&&(Br(y),S.length=!0),O.length<b.length)for(var $=O.length;$<b.length;$++)S[$]=!1;else for(var T=b.length;T<O.length;T++)S[T]=!0;for(var P=Math.min(O.length,b.length),z=0;z<P;z++)O.hasOwnProperty(z)||(S[z]=!0),S[z]===void 0&&u(O[z])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Yd,Si,ms=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",uh=typeof Map<"u",fh=typeof Set<"u",Xd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",rp=ms?Symbol.for("immer-nothing"):((Yd={})["immer-nothing"]=!0,Yd),Qd=ms?Symbol.for("immer-draftable"):"__$immer_draftable",me=ms?Symbol.for("immer-state"):"__$immer_state";var hh=""+Object.prototype.constructor,Vo=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,op=Object.getOwnPropertyDescriptors||function(t){var e={};return Vo(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},ps={},Oi={get:function(t,e){if(e===me)return t;var r=_r(t);if(!Wo(r,e))return function(n,a,s){var c,p=Zd(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(n.k):void 0}(t,r,e);var i=r[e];return t.I||!Wt(i)?i:i===as(t.t,e)?(ss(t),t.o[e]=ds(t.A.h,i,t)):i},has:function(t,e){return e in _r(t)},ownKeys:function(t){return Reflect.ownKeys(_r(t))},set:function(t,e,r){var i=Zd(_r(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=as(_r(t),e),a=n?.[me];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(ep(r,n)&&(r!==void 0||Wo(t.t,e)))return!0;ss(t),Br(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 as(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ss(t),Br(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=_r(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){kt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){kt(12)}},vi={};uo(Oi,function(t,e){vi[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),vi.deleteProperty=function(t,e){return vi.set.call(this,t,e,void 0)},vi.set=function(t,e,r){return Oi.set.call(this,t[0],e,r,t[0])};var yh=function(){function t(r){var i=this;this.O=Xd,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var p=i;return function(E){var $=this;E===void 0&&(E=c);for(var T=arguments.length,P=Array(T>1?T-1:0),z=1;z<T;z++)P[z-1]=arguments[z];return p.produce(E,function(Y){var X;return(X=a).call.apply(X,[$,Y].concat(P))})}}var u;if(typeof a!="function"&&kt(6),s!==void 0&&typeof s!="function"&&kt(7),Wt(n)){var g=jd(i),y=ds(i,n,void 0),b=!0;try{u=a(y),b=!1}finally{b?hn(g):cs(g)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(E){return is(g,s),ns(E,g)},function(E){throw hn(g),E}):(is(g,s),ns(u,g))}if(!n||typeof n!="object"){if((u=a(n))===void 0&&(u=n),u===rp&&(u=void 0),i.D&&ys(u,!0),s){var O=[],S=[];or("Patches").M(n,u,O,S),s(O,S)}return u}kt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(u){for(var g=arguments.length,y=Array(g>1?g-1:0),b=1;b<g;b++)y[b-1]=arguments[b];return i.produceWithPatches(u,function(O){return n.apply(void 0,[O].concat(y))})};var s,c,p=i.produce(n,a,function(u,g){s=u,c=g});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,s,c]}):[p,s,c]},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){Wt(r)||kt(8),Sr(r)&&(r=ph(r));var i=jd(this),n=ds(this,r,void 0);return n[me].C=!0,cs(i),n},e.finishDraft=function(r,i){var n=r&&r[me],a=n.A;return is(a,i),ns(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Xd&&kt(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=or("Patches").$;return Sr(r)?s(r,i):this.produce(r,function(c){return s(c,i)})},t}(),mt=new yh,gh=mt.produce,pC=mt.produceWithPatches.bind(mt),uC=mt.setAutoFreeze.bind(mt),fC=mt.setUseProxies.bind(mt),hC=mt.applyPatches.bind(mt),yC=mt.createDraft.bind(mt),gC=mt.finishDraft.bind(mt),mn=gh;function fo(t){"@babel/helpers - typeof";return fo=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},fo(t)}function ip(t,e){if(fo(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(fo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function np(t){var e=ip(t,"string");return fo(e)=="symbol"?e:e+""}function ap(t,e,r){return(e=np(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function bs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?sp(Object(r),!0).forEach(function(i){ap(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sp(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Xe(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 lp=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),xs=function(){return Math.random().toString(36).substring(7).split("").join(".")},bn={INIT:"@@redux/INIT"+xs(),REPLACE:"@@redux/REPLACE"+xs(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+xs()}};function mh(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 vs(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Xe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Xe(1));return r(vs)(t,e)}if(typeof t!="function")throw new Error(Xe(2));var n=t,a=e,s=[],c=s,p=!1;function u(){c===s&&(c=s.slice())}function g(){if(p)throw new Error(Xe(3));return a}function y(E){if(typeof E!="function")throw new Error(Xe(4));if(p)throw new Error(Xe(5));var $=!0;return u(),c.push(E),function(){if($){if(p)throw new Error(Xe(6));$=!1,u();var P=c.indexOf(E);c.splice(P,1),s=null}}}function b(E){if(!mh(E))throw new Error(Xe(7));if(typeof E.type>"u")throw new Error(Xe(8));if(p)throw new Error(Xe(9));try{p=!0,a=n(a,E)}finally{p=!1}for(var $=s=c,T=0;T<$.length;T++){var P=$[T];P()}return E}function O(E){if(typeof E!="function")throw new Error(Xe(10));n=E,b({type:bn.REPLACE})}function S(){var E,$=y;return E={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(Xe(11));function z(){P.next&&P.next(g())}z();var Y=$(z);return{unsubscribe:Y}}},E[lp]=function(){return this},E}return b({type:bn.INIT}),i={dispatch:b,subscribe:y,getState:g,replaceReducer:O},i[lp]=S,i}function bh(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:bn.INIT});if(typeof i>"u")throw new Error(Xe(12));if(typeof r(void 0,{type:bn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Xe(13))})}function cp(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,c;try{bh(r)}catch(p){c=p}return function(u,g){if(u===void 0&&(u={}),c)throw c;if(0)var y;for(var b=!1,O={},S=0;S<a.length;S++){var E=a[S],$=r[E],T=u[E],P=$(T,g);if(typeof P>"u"){var z=g&&g.type;throw new Error(Xe(14))}O[E]=P,b=b||P!==T}return b=b||a.length!==Object.keys(u).length,b?O:u}}function jo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function dp(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Xe(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=jo.apply(void 0,c)(n.dispatch),bs(bs({},n),{},{dispatch:a})}}}function pp(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(c){return typeof c=="function"?c(n,a,t):s(c)}}};return e}var up=pp();up.withExtraArgument=pp;var Ss=up;var mp=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[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 i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),xh=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(u){return function(g){return p([u,g])}}function p(u){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(g){u=[6,g],n=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Ko=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},vh=Object.defineProperty,Sh=Object.defineProperties,Oh=Object.getOwnPropertyDescriptors,fp=Object.getOwnPropertySymbols,Ch=Object.prototype.hasOwnProperty,wh=Object.prototype.propertyIsEnumerable,hp=function(t,e,r){return e in t?vh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Dr=function(t,e){for(var r in e||(e={}))Ch.call(e,r)&&hp(t,r,e[r]);if(fp)for(var i=0,n=fp(e);i<n.length;i++){var r=n[i];wh.call(e,r)&&hp(t,r,e[r])}return t},Os=function(t,e){return Sh(t,Oh(e))},Eh=function(t,e,r){return new Promise(function(i,n){var a=function(p){try{c(r.next(p))}catch(u){n(u)}},s=function(p){try{c(r.throw(p))}catch(u){n(u)}},c=function(p){return p.done?i(p.value):Promise.resolve(p.value).then(a,s)};c((r=r.apply(t,e)).next())})};var Ah=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?jo:jo.apply(null,arguments)},NC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Rh(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 Lh=function(t){mp(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Ko([void 0],r[0].concat(this)))):new(e.bind.apply(e,Ko([void 0],r.concat(this))))},e}(Array),Ih=function(t){mp(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Ko([void 0],r[0].concat(this)))):new(e.bind.apply(e,Ko([void 0],r.concat(this))))},e}(Array);function Es(t){return Wt(t)?mn(t,function(){}):t}function kh(t){return typeof t=="boolean"}function Th(){return function(e){return $h(e)}}function $h(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,c=new Lh;if(r&&(kh(r)?c.push(Ss):c.push(Ss.withExtraArgument(r.extraArgument))),0){if(n)var p;if(s)var u}return c}var Cs=!0;function bp(t){var e=Th(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,c=r.devTools,p=c===void 0?!0:c,u=r.preloadedState,g=u===void 0?void 0:u,y=r.enhancers,b=y===void 0?void 0:y,O;if(typeof n=="function")O=n;else if(Rh(n))O=cp(n);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 S=s;if(typeof S=="function"&&(S=S(e),!Cs&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Cs&&S.some(function(Y){return typeof Y!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=dp.apply(void 0,S),$=jo;p&&($=Ah(Dr({trace:!Cs},typeof p=="object"&&p)));var T=new Ih(E),P=T;Array.isArray(b)?P=Ko([E],b):typeof b=="function"&&(P=b(T));var z=$.apply(void 0,P);return vs(O,g,z)}function Fr(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Dr(Dr({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function xp(t){var e={},r=[],i,n={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function Ph(t){return typeof t=="function"}function Nh(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?xp(e):[e,r,i],a=n[0],s=n[1],c=n[2],p;if(Ph(t))p=function(){return Es(t())};else{var u=Es(t);p=function(){return u}}function g(y,b){y===void 0&&(y=p());var O=Ko([a[b.type]],s.filter(function(S){var E=S.matcher;return E(b)}).map(function(S){var E=S.reducer;return E}));return O.filter(function(S){return!!S}).length===0&&(O=[c]),O.reduce(function(S,E){if(E)if(Sr(S)){var $=S,T=E($,b);return T===void 0?S:T}else{if(Wt(S))return mn(S,function(P){return E(P,b)});var T=E(S,b);if(T===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return S},y)}return g.getInitialState=p,g}function _h(t,e){return t+"/"+e}function vp(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:Es(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(g){var y=i[g],b=_h(e,g),O,S;"reducer"in y?(O=y.reducer,S=y.prepare):O=y,a[g]=O,s[b]=O,c[g]=S?Fr(b,S):Fr(b)});function p(){var g=typeof t.extraReducers=="function"?xp(t.extraReducers):[t.extraReducers],y=g[0],b=y===void 0?{}:y,O=g[1],S=O===void 0?[]:O,E=g[2],$=E===void 0?void 0:E,T=Dr(Dr({},b),s);return Nh(r,function(P){for(var z in T)P.addCase(z,T[z]);for(var Y=0,X=S;Y<X.length;Y++){var nt=X[Y];P.addMatcher(nt.matcher,nt.reducer)}$&&P.addDefaultCase($)})}var u;return{name:e,reducer:function(g,y){return u||(u=p()),u(g,y)},actions:c,caseReducers:a,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var Bh="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Dh=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Bh[Math.random()*64|0];return e},Fh=["name","message","stack","code"],ws=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),yp=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Mh=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=Fh;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},FC=function(){function t(e,r,i){var n=Fr(e+"/fulfilled",function(g,y,b,O){return{payload:g,meta:Os(Dr({},O||{}),{arg:b,requestId:y,requestStatus:"fulfilled"})}}),a=Fr(e+"/pending",function(g,y,b){return{payload:void 0,meta:Os(Dr({},b||{}),{arg:y,requestId:g,requestStatus:"pending"})}}),s=Fr(e+"/rejected",function(g,y,b,O,S){return{payload:O,error:(i&&i.serializeError||Mh)(g||"Rejected"),meta:Os(Dr({},S||{}),{arg:b,requestId:y,rejectedWithValue:!!O,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),c=!1,p=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function u(g){return function(y,b,O){var S=i?.idGenerator?i.idGenerator(g):Dh(),E=new p,$,T=!1;function P(Y){$=Y,E.abort()}var z=function(){return Eh(this,null,function(){var Y,X,nt,qt,tt,Yt,ze;return xh(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),qt=(Y=i?.condition)==null?void 0:Y.call(i,g,{getState:b,extra:O}),Uh(qt)?[4,qt]:[3,2];case 1:qt=m.sent(),m.label=2;case 2:if(qt===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,tt=new Promise(function(v,_){return E.signal.addEventListener("abort",function(){return _({name:"AbortError",message:$||"Aborted"})})}),y(a(S,g,(X=i?.getPendingMeta)==null?void 0:X.call(i,{requestId:S,arg:g},{getState:b,extra:O}))),[4,Promise.race([tt,Promise.resolve(r(g,{dispatch:y,getState:b,extra:O,requestId:S,signal:E.signal,abort:P,rejectWithValue:function(v,_){return new ws(v,_)},fulfillWithValue:function(v,_){return new yp(v,_)}})).then(function(v){if(v instanceof ws)throw v;return v instanceof yp?n(v.payload,S,g,v.meta):n(v,S,g)})])];case 3:return nt=m.sent(),[3,5];case 4:return Yt=m.sent(),nt=Yt instanceof ws?s(null,S,g,Yt.payload,Yt.meta):s(Yt,S,g),[3,5];case 5:return ze=i&&!i.dispatchConditionRejection&&s.match(nt)&&nt.meta.condition,ze||y(nt),[2,nt]}})})}();return Object.assign(z,{abort:P,requestId:S,arg:g,unwrap:function(){return z.then(zh)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function zh(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Uh(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Sp="listener",Op="completed",Cp="cancelled",MC="task-"+Cp,zC="task-"+Op,UC=Sp+"-"+Cp,HC=Sp+"-"+Op;var As="listenerMiddleware";var WC=Fr(As+"/add"),VC=Fr(As+"/removeAll"),GC=Fr(As+"/remove");var gp,jC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(gp||(gp=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Hh=function(t){return function(e){setTimeout(e,t)}},KC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Hh(10);tp();var Wh=ln(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),xn=class extends Wh(Object){};window.ftReduxStores||(window.ftReduxStores={});var wp=class t extends xn{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(fn(a))return a;if(n==null)return;let s=vp({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),c=bp({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:s.reducer(p,u)});return window.ftReduxStores[n.name]=new t(s,c,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new cn;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let p=s,u=a[p];return u?(...g)=>{let y=u(...g.map(n));return this.reduxStore.dispatch(y),y}:g=>{this.setState({[p]:n(g)})}}}),this.eventBus=i??this.eventBus}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()}};var vn=class{static format(e,r,i,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,r,i,n)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return`${s} ${c}`}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Ep=f(C()),Sn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},mw=(0,Ep.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(k)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(c=>c.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?c=>vn.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Sn([(0,Rs.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Sn([(0,Rs.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Sn([os({store:k.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Sn([os({store:k.name})],e.prototype,"uiLocale",void 0),e});var wn=f(C());var On=class extends ct{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}};var Cn=class extends ct{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}};var Vh="ft-user-assets",Gh={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Lt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Is(t,r,[...Ls(t,r),n]),Ap(t,r,1,i),Rp(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Is(t,r,Ls(t,r).map(n=>n.id===i.id?i:n)),Rp(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Is(t,r,Ls(t,r).filter(a=>a.id!==n)),Ap(t,r,-1,i)}},Lp={[Lt.SEARCHES]:"savedSearches",[Lt.BOOKMARKS]:"bookmarks",[Lt.BOOKS]:void 0,[Lt.COLLECTIONS]:void 0},Ls=(t,e)=>{var r;let i=Lp[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Is=(t,e,r)=>{let i=Lp[e];i&&(t[i]=r)},Ap=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===Lt.BOOKMARKS&&i)){let a=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,a+r)}},Rp=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},bt=wn.FtReduxStore.get({name:Vh,reducers:Gh,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Lt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ks=class{constructor(e=new On,r=new Cn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new tn,this.savedSearchesService=new nn,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=k.getState();(0,wn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),bt.actions.clearAssetCount(),bt.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),bt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),bt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();bt.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();bt.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&bt.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&bt.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(bt.getState().assetCounts.bookmarkByMap).length!==0;e===Lt.BOOKMARKS&&r&&bt.actions.clearBookmarkCountByMap(),bt.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;bt.actions.bookmarks(r)}}},jh=new ks;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=jh);(0,Ip.customElement)("ft-app-context")(ue);var Ts=class t extends Event{constructor(){super(t.eventName)}};Ts.eventName="search-context-clear-all-filters";var Kh=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ps=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},kp=Symbol("registerInterval"),$s=Symbol("registerAttempts"),Zh=40,qh=(0,Rn.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[$s]=0,this[kp]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[$s]>Zh?window.clearInterval(this[kp]):(this[$s]++,this.dispatchEvent(new Ps))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Kh([(0,Tp.state)()],e.prototype,"stateManager",void 0),e}),An=class extends qh(Rn.FtLitElementRedux){};var Fp=f(C());var kn=f(L()),Tn=f(J()),$n=f(C());var $p=f(L());var Pp=$p.css`
1158
- `;var Zo=f(C());var Bp=f(J());var Ns=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Np=new Ns;var Yh=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xh=Symbol("i18nAttributes"),Qh=Symbol("i18nListAttributes"),Dp=Symbol("i18nProperties"),Ln=Symbol("i18nContexts"),Ci=Symbol("i18nUnsubs"),qo=(0,Zo.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?on:zo}i18n(a){let{context:s,key:c,message:p}=a,{custom:u,args:g,argsProvider:y}=a;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let b=g??(y?y(this):[]);return this.getI18nService(u).resolveMessage(s,c,...b)}return p}async awaitI18n(a){let{context:s,custom:c}=a;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Np.isI18nKey(a)){let[c,p]=a.split(".");return this.i18n({custom:!0,context:c,key:p,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,p)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,p)=>{var u;return((u=p?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let p=this,u=(g,y,b)=>b?.context&&b.key&&a(g,y,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...g})}:b;(s=this[Xh])===null||s===void 0||s.forEach((g,y)=>p[y]=u(g,y,p[y])),(c=this[Qh])===null||c===void 0||c.forEach((g,y)=>{var b;return p[y]=(b=p[y])===null||b===void 0?void 0:b.map(O=>u(g,y,O))})}updateI18nProperties(a){var s;(s=this[Dp])===null||s===void 0||s.forEach((c,p)=>{a(c,p)&&(this[p]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let p=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[Ln].set(p,{isCustomContext:c}),this[Ci].has(p)||this[Ci].set(p,this.getI18nService(c).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(c).prepareContext(p,s)}hasI18nContext(a){return this[Ln].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ln].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ci].forEach(a=>a()),this[Ci].clear()}}return e=Ln,r=Ci,Yh([(0,Bp.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),_p=class extends qo(Zo.FtLitElement){},In=class extends qo(Zo.FtLitElementRedux){};var wi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Vt=class extends In{constructor(){super(),this.editorMode=!1,this.addStore(k)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":kn.nothing:kn.html`
1158
+ `}connectedCallback(){super.connectedCallback(),k.addEventListener(ao.eventName,this.reloadConfiguration)}disconnectedCallback(){k.addEventListener(ao.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,i,n,a,s,c,p;super.update(e),e.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&k.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&k.actions.noCustom(this.noCustom),e.has("editorMode")&&k.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&k.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>Uo.addContext(u)),e.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(k.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),k.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),k.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&k.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&k.actions.availableContentLocales((p=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&p!==void 0?p:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>$d(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};ue.elementDefinitions={};ue.styles=Ed;Ne([(0,Ve.property)()],ue.prototype,"baseUrl",void 0);Ne([(0,Ve.property)()],ue.prototype,"apiIntegrationIdentifier",void 0);Ne([(0,Ve.property)()],ue.prototype,"apiIntegrationAppVersion",void 0);Ne([(0,Ve.property)()],ue.prototype,"uiLocale",void 0);Ne([(0,Ht.jsonProperty)(null)],ue.prototype,"availableUiLocales",void 0);Ne([(0,Ht.jsonProperty)(null)],ue.prototype,"metadataConfiguration",void 0);Ne([(0,Ve.property)({type:Boolean})],ue.prototype,"editorMode",void 0);Ne([(0,Ve.property)({type:Boolean})],ue.prototype,"noCustom",void 0);Ne([(0,Ve.property)({type:Boolean})],ue.prototype,"openExternalDocumentInNewTab",void 0);Ne([(0,Ve.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ue.prototype,"noCustomComponent",void 0);Ne([(0,Ve.property)({type:Boolean})],ue.prototype,"withManualResources",void 0);Ne([(0,Ve.property)({type:Boolean})],ue.prototype,"navigatorOnline",void 0);Ne([(0,Ve.property)({type:Boolean})],ue.prototype,"forcedOffline",void 0);Ne([(0,Ve.property)({type:Object})],ue.prototype,"apiProvider",void 0);Ne([(0,Ve.property)({type:Boolean})],ue.prototype,"authenticationRequired",void 0);Ne([(0,Ht.jsonProperty)([])],ue.prototype,"messageContexts",void 0);Ne([(0,Ht.jsonProperty)(void 0)],ue.prototype,"session",void 0);Ne([(0,Ve.state)()],ue.prototype,"localesConfiguration",void 0);Ne([(0,Ve.state)()],ue.prototype,"availableContentLocales",void 0);var Rs=f(J());function ih(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!sn(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!sn(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(n=a(t),r=n.length,r!==a(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!sn(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function sn(t,e){try{return ih(t,e)}catch{return!1}}function bi(t,e){return!sn(t,e)}function ln(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var Nd=f(J(),1);var os=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:bi,attribute:!1,...e};(0,Nd.property)(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:c=>c[i],store:e.store})}};var cn=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var co=f(J(),1);var _d=f(J(),1);function Bd(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,_d.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:bi,...e??{}})}var dn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(c){n(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Fd=f(L(),1);var pn=globalThis,nh=pn.ShadowRoot&&(pn.ShadyCSS===void 0||pn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,YO=Symbol();var Dd=(t,e)=>{if(nh)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=pn.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var un=class extends Fd.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Dd(i,e.elementStyles),i}};function Md(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var Wo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Wd,zd=Symbol("constructorPrototype"),Ud=Symbol("constructorName"),Vd=Symbol("exportpartsDebouncer"),Hd=Symbol("dynamicDependenciesLoaded"),Ho=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Ho.eventName="exportparts-updated";var rr=class extends un{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Wd]=new dn(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Vd].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ud]=this.constructor.name,this[zd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ud]&&Object.setPrototypeOf(this,this[zd])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Hd]||(r[Hd]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Ho.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Ho.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Ho)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=Md(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var r,i,n,a,s,c;let p=b=>b!=null&&b.trim().length>0,u=e.filter(p).map(b=>b.trim());if(u.length===0){this.exportparts=void 0;return}let g=new Set;for(let b of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let O=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map($=>$.split(":")[1]))!==null&&c!==void 0?c:[],E=[...O,...S].filter(p).map($=>$.trim());for(let $ of E)g.add($)}if(g.size===0){this.exportparts=void 0;return}let y=[...g.values()].flatMap(b=>u.map(O=>`${b}:${O}--${b}`));this.exportparts=[...this.part,...y].join(", ")}};Wd=Vd;Wo([(0,co.property)()],rr.prototype,"exportpartsPrefix",void 0);Wo([Bd([])],rr.prototype,"exportpartsPrefixes",void 0);Wo([(0,co.property)({reflect:!0})],rr.prototype,"exportparts",void 0);Wo([(0,co.property)()],rr.prototype,"customStylesheet",void 0);Wo([(0,co.property)()],rr.prototype,"elementToFocus",void 0);Wo([(0,co.state)()],rr.prototype,"useAdoptedStyleSheets",void 0);function fn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var xi=Symbol("internalReduxEventsUnsubscribers"),Nr=Symbol("internalStoresUnsubscribers"),po=Symbol("internalStores"),ah=ln(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[po].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[po].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[po].get(s)}addStore(s,c){var p;c=(p=c??s.name)!==null&&p!==void 0?p:"default-store",this.unsubscribeFromStore(c),this[po].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[po].delete(c)}setupStores(){this.unsubscribeFromStores(),this[po].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let p=this.constructor.getPropertyOptions(c);if(!p?.attribute||!this.hasAttribute(typeof p?.attribute=="string"?p.attribute:c)){let u=this.getStore(s.store);u&&(s.store?this[Nr].has(s.store):this[Nr].size>0)&&(this[c]=s.selector(u.getState(),this))}})}subscribeToStore(s,c){var p;this[Nr].set(s,c.subscribe(()=>this.updateFromStores())),this[xi].set(s,[]),fn(c)&&c.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((u,g)=>{if(typeof this[g]=="function"&&(!u.store||c.name===u.store)){let y=b=>this[g](b);c.addEventListener(u.eventName,y),this[xi].get(s).push(()=>c.removeEventListener(u.eventName,y))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Nr].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[Nr].has(s)&&this[Nr].get(s)(),this[Nr].delete(s),(c=this[xi].get(s))===null||c===void 0||c.forEach(p=>p()),this[xi].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Nr,r=po,i=xi,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Gd=class extends ah(rr){};function kt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,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 Sr(t){return!!t&&!!t[me]}function Wt(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===hh}(t)||Array.isArray(t)||!!t[Qd]||!!(!((e=t.constructor)===null||e===void 0)&&e[Qd])||us(t)||fs(t))}function uo(t,e,r){r===void 0&&(r=!1),jo(t)===0?(r?Object.keys:Go)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function jo(t){var e=t[me];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:us(t)?2:fs(t)?3:0}function Vo(t,e){return jo(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function sh(t,e){return jo(t)===2?t.get(e):t[e]}function Jd(t,e,r){var i=jo(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function ep(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function us(t){return uh&&t instanceof Map}function fs(t){return fh&&t instanceof Set}function _r(t){return t.o||t.t}function hs(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=op(t);delete e[me];for(var r=Go(e),i=0;i<r.length;i++){var n=r[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function ys(t,e){return e===void 0&&(e=!1),gs(t)||Sr(t)||!Wt(t)||(jo(t)>1&&(t.set=t.add=t.clear=t.delete=lh),Object.freeze(t),e&&uo(t,function(r,i){return ys(i,!0)},!0)),t}function lh(){kt(2)}function gs(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function or(t){var e=ps[t];return e||kt(18,t),e}function ch(t,e){ps[t]||(ps[t]=e)}function ls(){return Si}function is(t,e){e&&(or("Patches"),t.u=[],t.s=[],t.v=e)}function hn(t){cs(t),t.p.forEach(dh),t.p=null}function cs(t){t===Si&&(Si=t.l)}function jd(t){return Si={p:[],l:Si,h:t,m:!0,_:0}}function dh(t){var e=t[me];e.i===0||e.i===1?e.j():e.g=!0}function ns(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||or("ES5").S(e,t,i),i?(r[me].P&&(hn(e),kt(4)),Wt(t)&&(t=yn(e,t),e.l||gn(e,t)),e.u&&or("Patches").M(r[me].t,t,e.u,e.s)):t=yn(e,r,[]),hn(e),e.u&&e.v(e.u,e.s),t!==rp?t:void 0}function yn(t,e,r){if(gs(e))return e;var i=e[me];if(!i)return uo(e,function(c,p){return Kd(t,i,e,c,p,r)},!0),e;if(i.A!==t)return e;if(!i.P)return gn(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=hs(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),uo(a,function(c,p){return Kd(t,i,n,c,p,r,s)}),gn(t,n,!1),r&&t.u&&or("Patches").N(i,r,t.u,t.s)}return i.o}function Kd(t,e,r,i,n,a,s){if(Sr(n)){var c=yn(t,n,a&&e&&e.i!==3&&!Vo(e.R,i)?a.concat(i):void 0);if(Jd(r,i,c),!Sr(c))return;t.m=!1}else s&&r.add(n);if(Wt(n)&&!gs(n)){if(!t.h.D&&t._<1)return;yn(t,n),e&&e.A.l||gn(t,n)}}function gn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&ys(e,r)}function as(t,e){var r=t[me];return(r?_r(r):t)[e]}function Zd(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function Br(t){t.P||(t.P=!0,t.l&&Br(t.l))}function ss(t){t.o||(t.o=hs(t.t))}function ds(t,e,r){var i=us(e)?or("MapSet").F(e,r):fs(e)?or("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:ls(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},p=c,u=Oi;s&&(p=[c],u=vi);var g=Proxy.revocable(p,u),y=g.revoke,b=g.proxy;return c.k=b,c.j=y,b}(e,r):or("ES5").J(e,r);return(r?r.A:ls()).p.push(i),i}function ph(t){return Sr(t)||kt(22,t),function e(r){if(!Wt(r))return r;var i,n=r[me],a=jo(r);if(n){if(!n.P&&(n.i<4||!or("ES5").K(n)))return n.t;n.I=!0,i=qd(r,a),n.I=!1}else i=qd(r,a);return uo(i,function(s,c){n&&sh(n.t,s)===c||Jd(i,s,e(c))}),a===3?new Set(i):i}(t)}function qd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return hs(t)}function tp(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var u=this[me];return Oi.get(u,s)},set:function(u){var g=this[me];Oi.set(g,s,u)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][me];if(!p.P)switch(p.i){case 5:i(p)&&Br(p);break;case 4:r(p)&&Br(p)}}}function r(s){for(var c=s.t,p=s.k,u=Go(p),g=u.length-1;g>=0;g--){var y=u[g];if(y!==me){var b=c[y];if(b===void 0&&!Vo(c,y))return!0;var O=p[y],S=O&&O[me];if(S?S.t!==b:!ep(O,b))return!0}}var E=!!c[me];return u.length!==Go(c).length+(E?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function n(s){s.g&&kt(3,JSON.stringify(_r(s)))}var a={};ch("ES5",{J:function(s,c){var p=Array.isArray(s),u=function(y,b){if(y){for(var O=Array(b.length),S=0;S<b.length;S++)Object.defineProperty(O,""+S,t(S,!0));return O}var E=op(b);delete E[me];for(var $=Go(E),T=0;T<$.length;T++){var P=$[T];E[P]=t(P,y||!!E[P].enumerable)}return Object.create(Object.getPrototypeOf(b),E)}(p,s),g={i:p?5:4,A:c?c.A:ls(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,me,{value:g,writable:!0}),u},S:function(s,c,p){p?Sr(c)&&c[me].A===s&&e(s.p):(s.u&&function u(g){if(g&&typeof g=="object"){var y=g[me];if(y){var b=y.t,O=y.k,S=y.R,E=y.i;if(E===4)uo(O,function(Y){Y!==me&&(b[Y]!==void 0||Vo(b,Y)?S[Y]||u(O[Y]):(S[Y]=!0,Br(y)))}),uo(b,function(Y){O[Y]!==void 0||Vo(O,Y)||(S[Y]=!1,Br(y))});else if(E===5){if(i(y)&&(Br(y),S.length=!0),O.length<b.length)for(var $=O.length;$<b.length;$++)S[$]=!1;else for(var T=b.length;T<O.length;T++)S[T]=!0;for(var P=Math.min(O.length,b.length),z=0;z<P;z++)O.hasOwnProperty(z)||(S[z]=!0),S[z]===void 0&&u(O[z])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Yd,Si,ms=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",uh=typeof Map<"u",fh=typeof Set<"u",Xd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",rp=ms?Symbol.for("immer-nothing"):((Yd={})["immer-nothing"]=!0,Yd),Qd=ms?Symbol.for("immer-draftable"):"__$immer_draftable",me=ms?Symbol.for("immer-state"):"__$immer_state";var hh=""+Object.prototype.constructor,Go=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,op=Object.getOwnPropertyDescriptors||function(t){var e={};return Go(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},ps={},Oi={get:function(t,e){if(e===me)return t;var r=_r(t);if(!Vo(r,e))return function(n,a,s){var c,p=Zd(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(n.k):void 0}(t,r,e);var i=r[e];return t.I||!Wt(i)?i:i===as(t.t,e)?(ss(t),t.o[e]=ds(t.A.h,i,t)):i},has:function(t,e){return e in _r(t)},ownKeys:function(t){return Reflect.ownKeys(_r(t))},set:function(t,e,r){var i=Zd(_r(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=as(_r(t),e),a=n?.[me];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(ep(r,n)&&(r!==void 0||Vo(t.t,e)))return!0;ss(t),Br(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 as(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ss(t),Br(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=_r(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){kt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){kt(12)}},vi={};uo(Oi,function(t,e){vi[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),vi.deleteProperty=function(t,e){return vi.set.call(this,t,e,void 0)},vi.set=function(t,e,r){return Oi.set.call(this,t[0],e,r,t[0])};var yh=function(){function t(r){var i=this;this.O=Xd,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var p=i;return function(E){var $=this;E===void 0&&(E=c);for(var T=arguments.length,P=Array(T>1?T-1:0),z=1;z<T;z++)P[z-1]=arguments[z];return p.produce(E,function(Y){var X;return(X=a).call.apply(X,[$,Y].concat(P))})}}var u;if(typeof a!="function"&&kt(6),s!==void 0&&typeof s!="function"&&kt(7),Wt(n)){var g=jd(i),y=ds(i,n,void 0),b=!0;try{u=a(y),b=!1}finally{b?hn(g):cs(g)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(E){return is(g,s),ns(E,g)},function(E){throw hn(g),E}):(is(g,s),ns(u,g))}if(!n||typeof n!="object"){if((u=a(n))===void 0&&(u=n),u===rp&&(u=void 0),i.D&&ys(u,!0),s){var O=[],S=[];or("Patches").M(n,u,O,S),s(O,S)}return u}kt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(u){for(var g=arguments.length,y=Array(g>1?g-1:0),b=1;b<g;b++)y[b-1]=arguments[b];return i.produceWithPatches(u,function(O){return n.apply(void 0,[O].concat(y))})};var s,c,p=i.produce(n,a,function(u,g){s=u,c=g});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,s,c]}):[p,s,c]},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){Wt(r)||kt(8),Sr(r)&&(r=ph(r));var i=jd(this),n=ds(this,r,void 0);return n[me].C=!0,cs(i),n},e.finishDraft=function(r,i){var n=r&&r[me],a=n.A;return is(a,i),ns(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Xd&&kt(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=or("Patches").$;return Sr(r)?s(r,i):this.produce(r,function(c){return s(c,i)})},t}(),mt=new yh,gh=mt.produce,pC=mt.produceWithPatches.bind(mt),uC=mt.setAutoFreeze.bind(mt),fC=mt.setUseProxies.bind(mt),hC=mt.applyPatches.bind(mt),yC=mt.createDraft.bind(mt),gC=mt.finishDraft.bind(mt),mn=gh;function fo(t){"@babel/helpers - typeof";return fo=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},fo(t)}function ip(t,e){if(fo(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(fo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function np(t){var e=ip(t,"string");return fo(e)=="symbol"?e:e+""}function ap(t,e,r){return(e=np(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function bs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?sp(Object(r),!0).forEach(function(i){ap(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sp(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Xe(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 lp=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),xs=function(){return Math.random().toString(36).substring(7).split("").join(".")},bn={INIT:"@@redux/INIT"+xs(),REPLACE:"@@redux/REPLACE"+xs(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+xs()}};function mh(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 vs(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Xe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Xe(1));return r(vs)(t,e)}if(typeof t!="function")throw new Error(Xe(2));var n=t,a=e,s=[],c=s,p=!1;function u(){c===s&&(c=s.slice())}function g(){if(p)throw new Error(Xe(3));return a}function y(E){if(typeof E!="function")throw new Error(Xe(4));if(p)throw new Error(Xe(5));var $=!0;return u(),c.push(E),function(){if($){if(p)throw new Error(Xe(6));$=!1,u();var P=c.indexOf(E);c.splice(P,1),s=null}}}function b(E){if(!mh(E))throw new Error(Xe(7));if(typeof E.type>"u")throw new Error(Xe(8));if(p)throw new Error(Xe(9));try{p=!0,a=n(a,E)}finally{p=!1}for(var $=s=c,T=0;T<$.length;T++){var P=$[T];P()}return E}function O(E){if(typeof E!="function")throw new Error(Xe(10));n=E,b({type:bn.REPLACE})}function S(){var E,$=y;return E={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(Xe(11));function z(){P.next&&P.next(g())}z();var Y=$(z);return{unsubscribe:Y}}},E[lp]=function(){return this},E}return b({type:bn.INIT}),i={dispatch:b,subscribe:y,getState:g,replaceReducer:O},i[lp]=S,i}function bh(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:bn.INIT});if(typeof i>"u")throw new Error(Xe(12));if(typeof r(void 0,{type:bn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Xe(13))})}function cp(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,c;try{bh(r)}catch(p){c=p}return function(u,g){if(u===void 0&&(u={}),c)throw c;if(0)var y;for(var b=!1,O={},S=0;S<a.length;S++){var E=a[S],$=r[E],T=u[E],P=$(T,g);if(typeof P>"u"){var z=g&&g.type;throw new Error(Xe(14))}O[E]=P,b=b||P!==T}return b=b||a.length!==Object.keys(u).length,b?O:u}}function Ko(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function dp(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Xe(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=Ko.apply(void 0,c)(n.dispatch),bs(bs({},n),{},{dispatch:a})}}}function pp(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(c){return typeof c=="function"?c(n,a,t):s(c)}}};return e}var up=pp();up.withExtraArgument=pp;var Ss=up;var mp=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[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 i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),xh=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(u){return function(g){return p([u,g])}}function p(u){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(g){u=[6,g],n=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Zo=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},vh=Object.defineProperty,Sh=Object.defineProperties,Oh=Object.getOwnPropertyDescriptors,fp=Object.getOwnPropertySymbols,Ch=Object.prototype.hasOwnProperty,wh=Object.prototype.propertyIsEnumerable,hp=function(t,e,r){return e in t?vh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Dr=function(t,e){for(var r in e||(e={}))Ch.call(e,r)&&hp(t,r,e[r]);if(fp)for(var i=0,n=fp(e);i<n.length;i++){var r=n[i];wh.call(e,r)&&hp(t,r,e[r])}return t},Os=function(t,e){return Sh(t,Oh(e))},Eh=function(t,e,r){return new Promise(function(i,n){var a=function(p){try{c(r.next(p))}catch(u){n(u)}},s=function(p){try{c(r.throw(p))}catch(u){n(u)}},c=function(p){return p.done?i(p.value):Promise.resolve(p.value).then(a,s)};c((r=r.apply(t,e)).next())})};var Ah=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ko:Ko.apply(null,arguments)},NC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Rh(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 Lh=function(t){mp(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Zo([void 0],r[0].concat(this)))):new(e.bind.apply(e,Zo([void 0],r.concat(this))))},e}(Array),Ih=function(t){mp(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Zo([void 0],r[0].concat(this)))):new(e.bind.apply(e,Zo([void 0],r.concat(this))))},e}(Array);function Es(t){return Wt(t)?mn(t,function(){}):t}function kh(t){return typeof t=="boolean"}function Th(){return function(e){return $h(e)}}function $h(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,c=new Lh;if(r&&(kh(r)?c.push(Ss):c.push(Ss.withExtraArgument(r.extraArgument))),0){if(n)var p;if(s)var u}return c}var Cs=!0;function bp(t){var e=Th(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,c=r.devTools,p=c===void 0?!0:c,u=r.preloadedState,g=u===void 0?void 0:u,y=r.enhancers,b=y===void 0?void 0:y,O;if(typeof n=="function")O=n;else if(Rh(n))O=cp(n);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 S=s;if(typeof S=="function"&&(S=S(e),!Cs&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Cs&&S.some(function(Y){return typeof Y!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=dp.apply(void 0,S),$=Ko;p&&($=Ah(Dr({trace:!Cs},typeof p=="object"&&p)));var T=new Ih(E),P=T;Array.isArray(b)?P=Zo([E],b):typeof b=="function"&&(P=b(T));var z=$.apply(void 0,P);return vs(O,g,z)}function Fr(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Dr(Dr({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function xp(t){var e={},r=[],i,n={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function Ph(t){return typeof t=="function"}function Nh(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?xp(e):[e,r,i],a=n[0],s=n[1],c=n[2],p;if(Ph(t))p=function(){return Es(t())};else{var u=Es(t);p=function(){return u}}function g(y,b){y===void 0&&(y=p());var O=Zo([a[b.type]],s.filter(function(S){var E=S.matcher;return E(b)}).map(function(S){var E=S.reducer;return E}));return O.filter(function(S){return!!S}).length===0&&(O=[c]),O.reduce(function(S,E){if(E)if(Sr(S)){var $=S,T=E($,b);return T===void 0?S:T}else{if(Wt(S))return mn(S,function(P){return E(P,b)});var T=E(S,b);if(T===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return S},y)}return g.getInitialState=p,g}function _h(t,e){return t+"/"+e}function vp(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:Es(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(g){var y=i[g],b=_h(e,g),O,S;"reducer"in y?(O=y.reducer,S=y.prepare):O=y,a[g]=O,s[b]=O,c[g]=S?Fr(b,S):Fr(b)});function p(){var g=typeof t.extraReducers=="function"?xp(t.extraReducers):[t.extraReducers],y=g[0],b=y===void 0?{}:y,O=g[1],S=O===void 0?[]:O,E=g[2],$=E===void 0?void 0:E,T=Dr(Dr({},b),s);return Nh(r,function(P){for(var z in T)P.addCase(z,T[z]);for(var Y=0,X=S;Y<X.length;Y++){var nt=X[Y];P.addMatcher(nt.matcher,nt.reducer)}$&&P.addDefaultCase($)})}var u;return{name:e,reducer:function(g,y){return u||(u=p()),u(g,y)},actions:c,caseReducers:a,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var Bh="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Dh=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Bh[Math.random()*64|0];return e},Fh=["name","message","stack","code"],ws=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),yp=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Mh=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=Fh;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},FC=function(){function t(e,r,i){var n=Fr(e+"/fulfilled",function(g,y,b,O){return{payload:g,meta:Os(Dr({},O||{}),{arg:b,requestId:y,requestStatus:"fulfilled"})}}),a=Fr(e+"/pending",function(g,y,b){return{payload:void 0,meta:Os(Dr({},b||{}),{arg:y,requestId:g,requestStatus:"pending"})}}),s=Fr(e+"/rejected",function(g,y,b,O,S){return{payload:O,error:(i&&i.serializeError||Mh)(g||"Rejected"),meta:Os(Dr({},S||{}),{arg:b,requestId:y,rejectedWithValue:!!O,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),c=!1,p=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function u(g){return function(y,b,O){var S=i?.idGenerator?i.idGenerator(g):Dh(),E=new p,$,T=!1;function P(Y){$=Y,E.abort()}var z=function(){return Eh(this,null,function(){var Y,X,nt,qt,tt,Yt,ze;return xh(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),qt=(Y=i?.condition)==null?void 0:Y.call(i,g,{getState:b,extra:O}),Uh(qt)?[4,qt]:[3,2];case 1:qt=m.sent(),m.label=2;case 2:if(qt===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,tt=new Promise(function(v,_){return E.signal.addEventListener("abort",function(){return _({name:"AbortError",message:$||"Aborted"})})}),y(a(S,g,(X=i?.getPendingMeta)==null?void 0:X.call(i,{requestId:S,arg:g},{getState:b,extra:O}))),[4,Promise.race([tt,Promise.resolve(r(g,{dispatch:y,getState:b,extra:O,requestId:S,signal:E.signal,abort:P,rejectWithValue:function(v,_){return new ws(v,_)},fulfillWithValue:function(v,_){return new yp(v,_)}})).then(function(v){if(v instanceof ws)throw v;return v instanceof yp?n(v.payload,S,g,v.meta):n(v,S,g)})])];case 3:return nt=m.sent(),[3,5];case 4:return Yt=m.sent(),nt=Yt instanceof ws?s(null,S,g,Yt.payload,Yt.meta):s(Yt,S,g),[3,5];case 5:return ze=i&&!i.dispatchConditionRejection&&s.match(nt)&&nt.meta.condition,ze||y(nt),[2,nt]}})})}();return Object.assign(z,{abort:P,requestId:S,arg:g,unwrap:function(){return z.then(zh)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function zh(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Uh(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Sp="listener",Op="completed",Cp="cancelled",MC="task-"+Cp,zC="task-"+Op,UC=Sp+"-"+Cp,HC=Sp+"-"+Op;var As="listenerMiddleware";var WC=Fr(As+"/add"),VC=Fr(As+"/removeAll"),GC=Fr(As+"/remove");var gp,jC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(gp||(gp=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Hh=function(t){return function(e){setTimeout(e,t)}},KC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Hh(10);tp();var Wh=ln(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),xn=class extends Wh(Object){};window.ftReduxStores||(window.ftReduxStores={});var wp=class t extends xn{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(fn(a))return a;if(n==null)return;let s=vp({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),c=bp({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:s.reducer(p,u)});return window.ftReduxStores[n.name]=new t(s,c,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new cn;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let p=s,u=a[p];return u?(...g)=>{let y=u(...g.map(n));return this.reduxStore.dispatch(y),y}:g=>{this.setState({[p]:n(g)})}}}),this.eventBus=i??this.eventBus}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()}};var vn=class{static format(e,r,i,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,r,i,n)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return`${s} ${c}`}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Ep=f(C()),Sn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},mw=(0,Ep.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(k)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(c=>c.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?c=>vn.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Sn([(0,Rs.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Sn([(0,Rs.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Sn([os({store:k.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Sn([os({store:k.name})],e.prototype,"uiLocale",void 0),e});var wn=f(C());var On=class extends ct{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}};var Cn=class extends ct{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}};var Vh="ft-user-assets",Gh={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Lt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Is(t,r,[...Ls(t,r),n]),Ap(t,r,1,i),Rp(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Is(t,r,Ls(t,r).map(n=>n.id===i.id?i:n)),Rp(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Is(t,r,Ls(t,r).filter(a=>a.id!==n)),Ap(t,r,-1,i)}},Lp={[Lt.SEARCHES]:"savedSearches",[Lt.BOOKMARKS]:"bookmarks",[Lt.BOOKS]:void 0,[Lt.COLLECTIONS]:void 0},Ls=(t,e)=>{var r;let i=Lp[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Is=(t,e,r)=>{let i=Lp[e];i&&(t[i]=r)},Ap=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===Lt.BOOKMARKS&&i)){let a=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,a+r)}},Rp=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},bt=wn.FtReduxStore.get({name:Vh,reducers:Gh,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Lt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ks=class{constructor(e=new On,r=new Cn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new tn,this.savedSearchesService=new nn,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=k.getState();(0,wn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),bt.actions.clearAssetCount(),bt.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),bt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),bt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();bt.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();bt.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&bt.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&bt.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(bt.getState().assetCounts.bookmarkByMap).length!==0;e===Lt.BOOKMARKS&&r&&bt.actions.clearBookmarkCountByMap(),bt.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;bt.actions.bookmarks(r)}}},jh=new ks;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=jh);(0,Ip.customElement)("ft-app-context")(ue);var Ts=class t extends Event{constructor(){super(t.eventName)}};Ts.eventName="search-context-clear-all-filters";var Kh=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ps=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},kp=Symbol("registerInterval"),$s=Symbol("registerAttempts"),Zh=40,qh=(0,Rn.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[$s]=0,this[kp]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[$s]>Zh?window.clearInterval(this[kp]):(this[$s]++,this.dispatchEvent(new Ps))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Kh([(0,Tp.state)()],e.prototype,"stateManager",void 0),e}),An=class extends qh(Rn.FtLitElementRedux){};var Fp=f(C());var kn=f(L()),Tn=f(J()),$n=f(C());var $p=f(L());var Pp=$p.css`
1159
+ `;var qo=f(C());var Bp=f(J());var Ns=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Np=new Ns;var Yh=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xh=Symbol("i18nAttributes"),Qh=Symbol("i18nListAttributes"),Dp=Symbol("i18nProperties"),Ln=Symbol("i18nContexts"),Ci=Symbol("i18nUnsubs"),Yo=(0,qo.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?on:Uo}i18n(a){let{context:s,key:c,message:p}=a,{custom:u,args:g,argsProvider:y}=a;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let b=g??(y?y(this):[]);return this.getI18nService(u).resolveMessage(s,c,...b)}return p}async awaitI18n(a){let{context:s,custom:c}=a;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Np.isI18nKey(a)){let[c,p]=a.split(".");return this.i18n({custom:!0,context:c,key:p,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,p)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,p)=>{var u;return((u=p?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let p=this,u=(g,y,b)=>b?.context&&b.key&&a(g,y,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...g})}:b;(s=this[Xh])===null||s===void 0||s.forEach((g,y)=>p[y]=u(g,y,p[y])),(c=this[Qh])===null||c===void 0||c.forEach((g,y)=>{var b;return p[y]=(b=p[y])===null||b===void 0?void 0:b.map(O=>u(g,y,O))})}updateI18nProperties(a){var s;(s=this[Dp])===null||s===void 0||s.forEach((c,p)=>{a(c,p)&&(this[p]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let p=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[Ln].set(p,{isCustomContext:c}),this[Ci].has(p)||this[Ci].set(p,this.getI18nService(c).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(c).prepareContext(p,s)}hasI18nContext(a){return this[Ln].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ln].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ci].forEach(a=>a()),this[Ci].clear()}}return e=Ln,r=Ci,Yh([(0,Bp.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),_p=class extends Yo(qo.FtLitElement){},In=class extends Yo(qo.FtLitElementRedux){};var wi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Vt=class extends In{constructor(){super(),this.editorMode=!1,this.addStore(k)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":kn.nothing:kn.html`
1159
1160
  <span class="ft-i18n">
1160
1161
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
1161
1162
  </span>
1162
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Vt.elementDefinitions={};Vt.styles=Pp;wi([(0,$n.redux)()],Vt.prototype,"editorMode",void 0);wi([(0,Tn.property)()],Vt.prototype,"context",void 0);wi([(0,Tn.property)()],Vt.prototype,"key",void 0);wi([(0,$n.jsonProperty)([])],Vt.prototype,"args",void 0);wi([(0,Tn.property)()],Vt.prototype,"defaultMessage",void 0);var Pn=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?on:zo}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};(0,Fp.customElement)("ft-i18n")(Vt);var Mr=Pn.build("designedSearchInput");var Et=f(J()),mf=f(ft());var yf=f(C()),ti=f(L());var uf=f(L());var ff=f(C());var pf=f(C());var re=f(L()),q=f(J()),Bi=f(zr()),de=f(C());var Wp=f(C());var Hp=f(L()),ho=f(J()),Nn=f(C());var Tt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(Tt||(Tt={}));var zp=f(L());var Up=zp.css`
1163
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Vt.elementDefinitions={};Vt.styles=Pp;wi([(0,$n.redux)()],Vt.prototype,"editorMode",void 0);wi([(0,Tn.property)()],Vt.prototype,"context",void 0);wi([(0,Tn.property)()],Vt.prototype,"key",void 0);wi([(0,$n.jsonProperty)([])],Vt.prototype,"args",void 0);wi([(0,Tn.property)()],Vt.prototype,"defaultMessage",void 0);var Pn=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?on:Uo}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};(0,Fp.customElement)("ft-i18n")(Vt);var Mr=Pn.build("designedSearchInput");var Et=f(J()),mf=f(ft());var yf=f(C()),ri=f(L());var uf=f(L());var ff=f(C());var pf=f(C());var re=f(L()),q=f(J()),Bi=f(zr()),de=f(C());var Wp=f(C());var Hp=f(L()),ho=f(J()),Nn=f(C());var Tt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(Tt||(Tt={}));var zp=f(L());var Up=zp.css`
1163
1164
  .ft-size-watcher--pixel {
1164
1165
  width: 0;
1165
1166
  height: 0;
@@ -1182,7 +1183,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1182
1183
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
1183
1184
  <div class="ft-size-watcher--watcher"></div>
1184
1185
  </div>
1185
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Tt.S:this.size<976?this.category=Tt.M:this.size<1024?this.category=Tt.L:this.size<1440?this.category=Tt.XL:this.category=Tt.XXL,this.dispatchEvent(new _s(this.size,this.category)))},this.debounceTimeout)}};xt.elementDefinitions={};xt.styles=Up;Ei([(0,ho.property)({type:Number})],xt.prototype,"debounceTimeout",void 0);Ei([(0,ho.property)({type:Boolean})],xt.prototype,"local",void 0);Ei([(0,ho.property)({type:Number,reflect:!0})],xt.prototype,"size",void 0);Ei([(0,ho.property)({type:String,reflect:!0})],xt.prototype,"category",void 0);Ei([(0,ho.query)(".ft-size-watcher--watcher")],xt.prototype,"watcher",void 0);(0,Wp.customElement)("ft-size-watcher")(xt);var Bs=f(C());function _n(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Vp(t){return _n(t).split("|").pop()}function Gp(t){return _n(t).split("|").join(" > ")}function jp(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>jp(r,t.selected)),value:t.value}}function Kp(t){return(0,Bs.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Ds(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>jp(e,!1))}}function Zp(t){return(0,Bs.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var zs=f(C());var mo=f(L()),pe=f(J()),_e=f(C());var St=f(L()),Ne=f(J()),mu=f(zr()),Pt=f(C());var eu=f(C());var Xp=f(L()),ir=f(J()),Qp=f(C()),Jp=f(ft());var Ge=f(C()),qp=f(L());var vt={textColor:Ge.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Ge.designSystemVariables.colorOnSurfaceHigh),fontSize:Ge.FtCssVariableFactory.extend("--ft-checkbox-font-size","",I.fontSize),activeColor:Ge.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Ge.designSystemVariables.colorPrimary),checkColor:Ge.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Ge.designSystemVariables.colorOnPrimary),borderColor:Ge.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Ge.designSystemVariables.colorOnSurfaceMedium),disabledColor:Ge.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Ge.designSystemVariables.colorOnSurfaceDisabled),errorColor:Ge.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Ge.designSystemVariables.colorError)},Yp=qp.css`
1186
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Tt.S:this.size<976?this.category=Tt.M:this.size<1024?this.category=Tt.L:this.size<1440?this.category=Tt.XL:this.category=Tt.XXL,this.dispatchEvent(new _s(this.size,this.category)))},this.debounceTimeout)}};xt.elementDefinitions={};xt.styles=Up;Ei([(0,ho.property)({type:Number})],xt.prototype,"debounceTimeout",void 0);Ei([(0,ho.property)({type:Boolean})],xt.prototype,"local",void 0);Ei([(0,ho.property)({type:Number,reflect:!0})],xt.prototype,"size",void 0);Ei([(0,ho.property)({type:String,reflect:!0})],xt.prototype,"category",void 0);Ei([(0,ho.query)(".ft-size-watcher--watcher")],xt.prototype,"watcher",void 0);(0,Wp.customElement)("ft-size-watcher")(xt);var Bs=f(C());function _n(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Vp(t){return _n(t).split("|").pop()}function Gp(t){return _n(t).split("|").join(" > ")}function jp(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>jp(r,t.selected)),value:t.value}}function Kp(t){return(0,Bs.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Ds(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>jp(e,!1))}}function Zp(t){return(0,Bs.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var zs=f(C());var mo=f(L()),pe=f(J()),Be=f(C());var St=f(L()),_e=f(J()),mu=f(zr()),Pt=f(C());var eu=f(C());var Xp=f(L()),ir=f(J()),Qp=f(C()),Jp=f(ft());var Ge=f(C()),qp=f(L());var vt={textColor:Ge.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Ge.designSystemVariables.colorOnSurfaceHigh),fontSize:Ge.FtCssVariableFactory.extend("--ft-checkbox-font-size","",I.fontSize),activeColor:Ge.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Ge.designSystemVariables.colorPrimary),checkColor:Ge.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Ge.designSystemVariables.colorOnPrimary),borderColor:Ge.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Ge.designSystemVariables.colorOnSurfaceMedium),disabledColor:Ge.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Ge.designSystemVariables.colorOnSurfaceDisabled),errorColor:Ge.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Ge.designSystemVariables.colorError)},Yp=qp.css`
1186
1187
  * {
1187
1188
  box-sizing: border-box;
1188
1189
  }
@@ -1284,7 +1285,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1284
1285
  unbounded>
1285
1286
  </ft-ripple>
1286
1287
  <div class="ft-checkbox--box" part="checkbox-box">
1287
- <svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check">
1288
+ <svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
1288
1289
  <path class="ft-checkbox--checkmark-path" fill="none"
1289
1290
  d=${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}></path>
1290
1291
  </svg>
@@ -1525,7 +1526,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1525
1526
  .ft-radio ft-or-ftds-typography {
1526
1527
  padding-right: 2px;
1527
1528
  }
1528
- `;var Yo=class extends(0,Dn.toFtdsBase)(je){constructor(){super(...arguments),this.family=Er.brand}get radioClasses(){return{...super.radioClasses,...this.getDesignSystemBaseClasses()}}get typographyVariant(){return ht.body2medium}};Yo.elementDefinitions={...je.elementDefinitions,"ft-or-ftds-typography":te};Yo.styles=[Dn.safariEllipsisFix,su];var lu=f(C()),Vr=f(J()),cu=f(L()),Ai=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},$t=class extends lu.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)},this.onFocusOut=e=>{}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return cu.html`
1529
+ `;var Xo=class extends(0,Dn.toFtdsBase)(je){constructor(){super(...arguments),this.family=Er.brand}get radioClasses(){return{...super.radioClasses,...this.getDesignSystemBaseClasses()}}get typographyVariant(){return ht.body2medium}};Xo.elementDefinitions={...je.elementDefinitions,"ft-or-ftds-typography":te};Xo.styles=[Dn.safariEllipsisFix,su];var lu=f(C()),Vr=f(J()),cu=f(L()),Ai=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},$t=class extends lu.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)},this.onFocusOut=e=>{}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return cu.html`
1529
1530
  <slot @slotchange=${this.onSlotChange}
1530
1531
  @change=${this.onChange}
1531
1532
  @keydown=${this.onKeyDown}
@@ -1548,7 +1549,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1548
1549
  :host(:focus-visible) {
1549
1550
  outline: none;
1550
1551
  }
1551
- `;var Ri=class extends(0,Fn.toFtdsBase)($t){constructor(){super(...arguments),this.family=Er.brand}};Ri.styles=[Fn.safariEllipsisFix,hu];(0,Li.customElement)("ft-radio")(ar);(0,Li.customElement)("ftds-radio")(Yo);(0,Li.customElement)("ft-radio-group")(yo);(0,Li.customElement)("ftds-radio-group")(Ri);var yu=f(L()),le=f(C());var Ii={buttonMoreColor:le.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",le.designSystemVariables.colorOnSurface),borderRadiusM:le.FtCssVariableFactory.external(le.designSystemVariables.borderRadiusM,"Design system"),colorOutline:le.FtCssVariableFactory.external(le.designSystemVariables.colorOutline,"Design system"),colorOnSurface:le.FtCssVariableFactory.external(le.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:le.FtCssVariableFactory.external(le.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:le.FtCssVariableFactory.external(le.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:le.FtCssVariableFactory.external(le.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:le.FtCssVariableFactory.external(le.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:le.FtCssVariableFactory.external(Te.fontFamily,"Body2 typography"),fontSize:le.FtCssVariableFactory.external(Te.fontSize,"Body2 typography"),fontWeight:le.FtCssVariableFactory.external(Te.fontWeight,"Body2 typography"),letterSpacing:le.FtCssVariableFactory.external(Te.letterSpacing,"Body2 typography"),lineHeight:le.FtCssVariableFactory.external(Te.lineHeight,"Body2 typography"),textTransform:le.FtCssVariableFactory.external(Te.textTransform,"Body2 typography")},gu=yu.css`
1552
+ `;var Ri=class extends(0,Fn.toFtdsBase)($t){constructor(){super(...arguments),this.family=Er.brand}};Ri.styles=[Fn.safariEllipsisFix,hu];(0,Li.customElement)("ft-radio")(ar);(0,Li.customElement)("ftds-radio")(Xo);(0,Li.customElement)("ft-radio-group")(yo);(0,Li.customElement)("ftds-radio-group")(Ri);var yu=f(L()),le=f(C());var Ii={buttonMoreColor:le.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",le.designSystemVariables.colorOnSurface),borderRadiusM:le.FtCssVariableFactory.external(le.designSystemVariables.borderRadiusM,"Design system"),colorOutline:le.FtCssVariableFactory.external(le.designSystemVariables.colorOutline,"Design system"),colorOnSurface:le.FtCssVariableFactory.external(le.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:le.FtCssVariableFactory.external(le.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:le.FtCssVariableFactory.external(le.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:le.FtCssVariableFactory.external(le.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:le.FtCssVariableFactory.external(le.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:le.FtCssVariableFactory.external(Te.fontFamily,"Body2 typography"),fontSize:le.FtCssVariableFactory.external(Te.fontSize,"Body2 typography"),fontWeight:le.FtCssVariableFactory.external(Te.fontWeight,"Body2 typography"),letterSpacing:le.FtCssVariableFactory.external(Te.letterSpacing,"Body2 typography"),lineHeight:le.FtCssVariableFactory.external(Te.lineHeight,"Body2 typography"),textTransform:le.FtCssVariableFactory.external(Te.textTransform,"Body2 typography")},gu=yu.css`
1552
1553
  .ft-filter-level--container {
1553
1554
  display: flex;
1554
1555
  flex-direction: column;
@@ -1618,7 +1619,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1618
1619
  margin: 10px 0;
1619
1620
  color: ${Ii.colorOnSurfaceMedium};
1620
1621
  }
1621
- `;var Ke=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Se=class extends qo((0,Pt.withAriaNotification)(Pt.FtLitElement)){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new Pt.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return St.html`
1622
+ `;var Ke=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Se=class extends Yo((0,Pt.withAriaNotification)(Pt.FtLitElement)){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new Pt.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return St.html`
1622
1623
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1623
1624
  ${this.parent==null?null:St.html`
1624
1625
  <div tabindex="0"
@@ -1685,7 +1686,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1685
1686
  @change=${r=>this.optionsChanged(r,e)}>
1686
1687
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1687
1688
  </ft-radio>
1688
- `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};Se.elementDefinitions={"ft-button":Oe,"ft-ripple":K,"ft-typography":te,"ft-checkbox":Qe,"ft-icon":ae,"ft-radio":ar};Se.styles=gu;Ke([(0,Ne.property)({type:String})],Se.prototype,"filterId",void 0);Ke([(0,Ne.property)({type:Object})],Se.prototype,"parent",void 0);Ke([(0,Ne.property)({type:Array,hasChanged:Pt.hasChanged})],Se.prototype,"options",void 0);Ke([(0,Ne.property)({type:Boolean})],Se.prototype,"multivalued",void 0);Ke([(0,Ne.property)({type:Boolean})],Se.prototype,"disabled",void 0);Ke([(0,Ne.property)({type:Boolean})],Se.prototype,"hideSelectedOptions",void 0);Ke([(0,Ne.property)({type:Boolean})],Se.prototype,"displayCount",void 0);Ke([(0,Ne.property)({type:Boolean})],Se.prototype,"preventNavigation",void 0);Ke([(0,Ne.property)({type:String})],Se.prototype,"filter",void 0);Ke([(0,Ne.property)({type:String})],Se.prototype,"moreValuesButtonLabel",void 0);Ke([(0,Ne.property)({type:String})],Se.prototype,"noValuesLabel",void 0);Ke([(0,Ne.property)()],Se.prototype,"filteredOptionsNumberAriaNotification",void 0);Ke([(0,Pt.numberProperty)()],Se.prototype,"displayedValuesLimit",void 0);Ke([(0,Ne.query)(".ft-filter-level--container")],Se.prototype,"container",void 0);Ke([(0,Ne.state)()],Se.prototype,"radios",void 0);Ke([(0,Ne.state)()],Se.prototype,"displayedPages",void 0);Ke([(0,Ne.state)()],Se.prototype,"filteredOptions",void 0);var Ou=f(C());var vu=f(L()),Ot=f(J()),go=f(C());var Su=f(ft());var bu=f(L()),Gt=f(C());var rt={buttonsColor:Gt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Gt.designSystemVariables.colorPrimary),buttonsZIndex:Gt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Gt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Gt.FtCssVariableFactory.external(Gt.designSystemVariables.colorSurface,"Design system")},xu=bu.css`
1689
+ `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};Se.elementDefinitions={"ft-button":Oe,"ft-ripple":K,"ft-typography":te,"ft-checkbox":Qe,"ft-icon":se,"ft-radio":ar};Se.styles=gu;Ke([(0,_e.property)({type:String})],Se.prototype,"filterId",void 0);Ke([(0,_e.property)({type:Object})],Se.prototype,"parent",void 0);Ke([(0,_e.property)({type:Array,hasChanged:Pt.hasChanged})],Se.prototype,"options",void 0);Ke([(0,_e.property)({type:Boolean})],Se.prototype,"multivalued",void 0);Ke([(0,_e.property)({type:Boolean})],Se.prototype,"disabled",void 0);Ke([(0,_e.property)({type:Boolean})],Se.prototype,"hideSelectedOptions",void 0);Ke([(0,_e.property)({type:Boolean})],Se.prototype,"displayCount",void 0);Ke([(0,_e.property)({type:Boolean})],Se.prototype,"preventNavigation",void 0);Ke([(0,_e.property)({type:String})],Se.prototype,"filter",void 0);Ke([(0,_e.property)({type:String})],Se.prototype,"moreValuesButtonLabel",void 0);Ke([(0,_e.property)({type:String})],Se.prototype,"noValuesLabel",void 0);Ke([(0,_e.property)()],Se.prototype,"filteredOptionsNumberAriaNotification",void 0);Ke([(0,Pt.numberProperty)()],Se.prototype,"displayedValuesLimit",void 0);Ke([(0,_e.query)(".ft-filter-level--container")],Se.prototype,"container",void 0);Ke([(0,_e.state)()],Se.prototype,"radios",void 0);Ke([(0,_e.state)()],Se.prototype,"displayedPages",void 0);Ke([(0,_e.state)()],Se.prototype,"filteredOptions",void 0);var Ou=f(C());var vu=f(L()),Ot=f(J()),go=f(C());var Su=f(ft());var bu=f(L()),Gt=f(C());var rt={buttonsColor:Gt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Gt.designSystemVariables.colorPrimary),buttonsZIndex:Gt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Gt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Gt.FtCssVariableFactory.external(Gt.designSystemVariables.colorSurface,"Design system")},xu=bu.css`
1689
1690
  .ft-snap-scroll {
1690
1691
  box-sizing: border-box;
1691
1692
  position: relative;
@@ -1951,7 +1952,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1951
1952
  slot:not([name]) {
1952
1953
  display: none;
1953
1954
  }
1954
- `];var he=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ms=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ee=class extends _e.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new _e.Debouncer(300),this.changeDebouncer=new _e.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,_e.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,_e.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return mo.html`
1955
+ `];var he=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ms=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ee=class extends Be.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new Be.Debouncer(300),this.changeDebouncer=new Be.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,Be.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,Be.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return mo.html`
1955
1956
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1956
1957
  part="container">
1957
1958
  ${!this.label&&!e?null:mo.html`
@@ -2034,9 +2035,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2034
2035
  noValuesLabel="${this.noValuesLabel}"
2035
2036
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
2036
2037
  ></ft-filter-level>
2037
- `}goBack(e){this.slideOut=e.detail.value,(0,_e.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,_e.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,_e.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,_e.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Ms(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};ee.elementDefinitions={"ft-button":Oe,"ft-filter-level":Se,"ft-snap-scroll":Ie,"ft-typography":te};ee.styles=wu;he([(0,pe.property)({type:String})],ee.prototype,"id",void 0);he([(0,pe.property)({type:String})],ee.prototype,"label",void 0);he([(0,pe.property)({type:String})],ee.prototype,"filterPlaceHolder",void 0);he([(0,pe.property)({type:String})],ee.prototype,"clearButtonLabel",void 0);he([(0,pe.property)({type:String})],ee.prototype,"moreValuesButtonLabel",void 0);he([(0,pe.property)({type:String})],ee.prototype,"noValuesLabel",void 0);he([(0,_e.jsonProperty)([])],ee.prototype,"options",void 0);he([(0,pe.property)({type:Boolean})],ee.prototype,"multivalued",void 0);he([(0,pe.property)({type:Boolean})],ee.prototype,"disabled",void 0);he([(0,pe.property)({type:Boolean})],ee.prototype,"raiseSelectedOptions",void 0);he([(0,pe.property)({type:Boolean})],ee.prototype,"displayCount",void 0);he([(0,_e.numberProperty)()],ee.prototype,"displayedValuesLimit",void 0);he([(0,_e.jsonProperty)(void 0)],ee.prototype,"filteredOptionsNumberAriaNotification",void 0);he([(0,pe.property)({type:Boolean})],ee.prototype,"hideClearButton",void 0);he([(0,pe.query)(".ft-filter--slot")],ee.prototype,"slotElement",void 0);he([(0,pe.query)(".ft-filter--container")],ee.prototype,"container",void 0);he([(0,pe.query)(".ft-filter--values")],ee.prototype,"valuesContainer",void 0);he([(0,pe.query)(".ft-filter--levels")],ee.prototype,"levelsContainer",void 0);he([(0,pe.state)()],ee.prototype,"lastLevelHasHiddenvalues",void 0);he([(0,pe.query)(".ft-filter--filter input")],ee.prototype,"filterInput",void 0);he([(0,pe.queryAll)(".ft-filter--levels ft-filter-level")],ee.prototype,"levels",void 0);he([(0,pe.state)()],ee.prototype,"withScroll",void 0);he([(0,pe.state)()],ee.prototype,"filter",void 0);he([(0,pe.state)()],ee.prototype,"slideIn",void 0);he([(0,pe.state)()],ee.prototype,"slideOut",void 0);var Mn=f(C()),bo=f(J()),Eu=f(L()),Xo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ct=class extends Mn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Eu.html`
2038
+ `}goBack(e){this.slideOut=e.detail.value,(0,Be.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,Be.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,Be.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Be.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Ms(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};ee.elementDefinitions={"ft-button":Oe,"ft-filter-level":Se,"ft-snap-scroll":Ie,"ft-typography":te};ee.styles=wu;he([(0,pe.property)({type:String})],ee.prototype,"id",void 0);he([(0,pe.property)({type:String})],ee.prototype,"label",void 0);he([(0,pe.property)({type:String})],ee.prototype,"filterPlaceHolder",void 0);he([(0,pe.property)({type:String})],ee.prototype,"clearButtonLabel",void 0);he([(0,pe.property)({type:String})],ee.prototype,"moreValuesButtonLabel",void 0);he([(0,pe.property)({type:String})],ee.prototype,"noValuesLabel",void 0);he([(0,Be.jsonProperty)([])],ee.prototype,"options",void 0);he([(0,pe.property)({type:Boolean})],ee.prototype,"multivalued",void 0);he([(0,pe.property)({type:Boolean})],ee.prototype,"disabled",void 0);he([(0,pe.property)({type:Boolean})],ee.prototype,"raiseSelectedOptions",void 0);he([(0,pe.property)({type:Boolean})],ee.prototype,"displayCount",void 0);he([(0,Be.numberProperty)()],ee.prototype,"displayedValuesLimit",void 0);he([(0,Be.jsonProperty)(void 0)],ee.prototype,"filteredOptionsNumberAriaNotification",void 0);he([(0,pe.property)({type:Boolean})],ee.prototype,"hideClearButton",void 0);he([(0,pe.query)(".ft-filter--slot")],ee.prototype,"slotElement",void 0);he([(0,pe.query)(".ft-filter--container")],ee.prototype,"container",void 0);he([(0,pe.query)(".ft-filter--values")],ee.prototype,"valuesContainer",void 0);he([(0,pe.query)(".ft-filter--levels")],ee.prototype,"levelsContainer",void 0);he([(0,pe.state)()],ee.prototype,"lastLevelHasHiddenvalues",void 0);he([(0,pe.query)(".ft-filter--filter input")],ee.prototype,"filterInput",void 0);he([(0,pe.queryAll)(".ft-filter--levels ft-filter-level")],ee.prototype,"levels",void 0);he([(0,pe.state)()],ee.prototype,"withScroll",void 0);he([(0,pe.state)()],ee.prototype,"filter",void 0);he([(0,pe.state)()],ee.prototype,"slideIn",void 0);he([(0,pe.state)()],ee.prototype,"slideOut",void 0);var Mn=f(C()),bo=f(J()),Eu=f(L()),Qo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ct=class extends Mn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Eu.html`
2038
2039
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
2039
- `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Ct.elementDefinitions={};Xo([(0,bo.property)({type:String})],Ct.prototype,"label",void 0);Xo([(0,bo.property)({type:Object,converter:t=>t})],Ct.prototype,"value",void 0);Xo([(0,bo.property)({type:Boolean,reflect:!0})],Ct.prototype,"selected",void 0);Xo([(0,bo.property)({type:Object})],Ct.prototype,"subOptions",void 0);Xo([(0,Mn.jsonProperty)({})],Ct.prototype,"renderOption",void 0);Xo([(0,bo.query)(".ft-filter-option--slot")],Ct.prototype,"slotElement",void 0);(0,zs.customElement)("ft-filter")(ee);(0,zs.customElement)("ft-filter-option")(Ct);var Us=f(C());var Iu=f(L()),zn=f(J()),ku=f(C());var Au=f(L());var Ru=Au.css`
2040
+ `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Ct.elementDefinitions={};Qo([(0,bo.property)({type:String})],Ct.prototype,"label",void 0);Qo([(0,bo.property)({type:Object,converter:t=>t})],Ct.prototype,"value",void 0);Qo([(0,bo.property)({type:Boolean,reflect:!0})],Ct.prototype,"selected",void 0);Qo([(0,bo.property)({type:Object})],Ct.prototype,"subOptions",void 0);Qo([(0,Mn.jsonProperty)({})],Ct.prototype,"renderOption",void 0);Qo([(0,bo.query)(".ft-filter-option--slot")],Ct.prototype,"slotElement",void 0);(0,zs.customElement)("ft-filter")(ee);(0,zs.customElement)("ft-filter-option")(Ct);var Us=f(C());var Iu=f(L()),zn=f(J()),ku=f(C());var Au=f(L());var Ru=Au.css`
2040
2041
  .ft-accordion {
2041
2042
  box-sizing: border-box;
2042
2043
  }
@@ -2120,7 +2121,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2120
2121
  </div>
2121
2122
  <div class="ft-accordion-item--separator" part="separator"></div>
2122
2123
  </div>
2123
- `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Nt.elementDefinitions={"ft-ripple":K,"ft-typography":te,"ft-icon":ae};Nt.styles=$u;Un([(0,Ti.property)()],Nt.prototype,"icon",void 0);Un([(0,Ti.property)()],Nt.prototype,"iconVariant",void 0);Un([(0,Ti.property)()],Nt.prototype,"label",void 0);Un([(0,Ti.property)({type:Boolean,reflect:!0})],Nt.prototype,"active",void 0);(0,Us.customElement)("ft-accordion")(lr);(0,Us.customElement)("ft-accordion-item")(Nt);var Vs=f(C());var Hn=f(L()),Je=f(J()),Fu=f(ft()),Qo=f(C());var $i=f(L()),G=f(C());var Nu=G.FtCssVariableFactory.extend("--ft-chip-color","",G.designSystemVariables.colorOnSurface),Ze={backgroundColor:G.FtCssVariableFactory.extend("--ft-chip-background-color","",G.designSystemVariables.colorSurface),color:Nu,fontSize:G.FtCssVariableFactory.extend("--ft-chip-font-size","",Te.fontSize),fontWeight:G.FtCssVariableFactory.extend("--ft-chip-font-weight","",Te.fontWeight),iconSize:G.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:G.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:G.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Nu),horizontalPadding:G.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:G.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:G.FtCssVariableFactory.extend("--ft-chip-border-color","",G.designSystemVariables.colorOutline),opacityDisabled:G.FtCssVariableFactory.external(G.designSystemVariables.colorOpacityDisabled,"Design system")},_u=G.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",G.FtCssVariableFactory.extend("--ft-chip-color","",G.designSystemVariables.colorOnPrimary)),Hs={backgroundColor:G.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",G.FtCssVariableFactory.extend("--ft-chip-background-color","",G.designSystemVariables.colorPrimary)),color:_u,rippleColor:G.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",_u)},Bu={horizontalPadding:G.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:G.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Du=[G.noTextSelect,$i.css`
2124
+ `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Nt.elementDefinitions={"ft-ripple":K,"ft-typography":te,"ft-icon":se};Nt.styles=$u;Un([(0,Ti.property)()],Nt.prototype,"icon",void 0);Un([(0,Ti.property)()],Nt.prototype,"iconVariant",void 0);Un([(0,Ti.property)()],Nt.prototype,"label",void 0);Un([(0,Ti.property)({type:Boolean,reflect:!0})],Nt.prototype,"active",void 0);(0,Us.customElement)("ft-accordion")(lr);(0,Us.customElement)("ft-accordion-item")(Nt);var Vs=f(C());var Hn=f(L()),Je=f(J()),Fu=f(ft()),Jo=f(C());var $i=f(L()),G=f(C());var Nu=G.FtCssVariableFactory.extend("--ft-chip-color","",G.designSystemVariables.colorOnSurface),Ze={backgroundColor:G.FtCssVariableFactory.extend("--ft-chip-background-color","",G.designSystemVariables.colorSurface),color:Nu,fontSize:G.FtCssVariableFactory.extend("--ft-chip-font-size","",Te.fontSize),fontWeight:G.FtCssVariableFactory.extend("--ft-chip-font-weight","",Te.fontWeight),iconSize:G.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:G.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:G.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Nu),horizontalPadding:G.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:G.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:G.FtCssVariableFactory.extend("--ft-chip-border-color","",G.designSystemVariables.colorOutline),opacityDisabled:G.FtCssVariableFactory.external(G.designSystemVariables.colorOpacityDisabled,"Design system")},_u=G.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",G.FtCssVariableFactory.extend("--ft-chip-color","",G.designSystemVariables.colorOnPrimary)),Hs={backgroundColor:G.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",G.FtCssVariableFactory.extend("--ft-chip-background-color","",G.designSystemVariables.colorPrimary)),color:_u,rippleColor:G.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",_u)},Bu={horizontalPadding:G.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:G.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Du=[G.noTextSelect,$i.css`
2124
2125
  :host {
2125
2126
  display: inline-block;
2126
2127
  max-width: 100%;
@@ -2260,7 +2261,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2260
2261
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
2261
2262
  order: -1;
2262
2263
  }
2263
- `];var ut=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Wn=class extends CustomEvent{constructor(){super("icon-click")}},Ce=class extends Qo.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){let e={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Qo.isSafari};return Hn.html`
2264
+ `];var ut=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Wn=class extends CustomEvent{constructor(){super("icon-click")}},Ce=class extends Jo.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){let e={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Jo.isSafari};return Hn.html`
2264
2265
  <div class="${(0,Fu.classMap)(e)}"
2265
2266
  aria-label="${this.getLabel()}"
2266
2267
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -2287,7 +2288,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2287
2288
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
2288
2289
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
2289
2290
  </div>
2290
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Wn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Wn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Qo.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Ce.elementDefinitions={"ft-ripple":K,"ft-typography":te,"ft-icon":ae,"ft-button":Oe};Ce.styles=Du;ut([(0,Je.property)({type:Boolean})],Ce.prototype,"highlighted",void 0);ut([(0,Je.property)({type:Boolean})],Ce.prototype,"removable",void 0);ut([(0,Je.property)({type:Boolean})],Ce.prototype,"disabled",void 0);ut([(0,Je.property)({type:Boolean})],Ce.prototype,"clickable",void 0);ut([(0,Je.property)({type:Boolean})],Ce.prototype,"iconClickable",void 0);ut([(0,Je.property)({type:Boolean})],Ce.prototype,"dense",void 0);ut([(0,Je.property)({type:Boolean})],Ce.prototype,"multiLine",void 0);ut([(0,Je.property)()],Ce.prototype,"label",void 0);ut([(0,Je.property)()],Ce.prototype,"iconLabel",void 0);ut([(0,Je.property)({type:Boolean})],Ce.prototype,"hideIconTooltip",void 0);ut([(0,Je.property)()],Ce.prototype,"icon",void 0);ut([(0,Je.property)()],Ce.prototype,"iconVariant",void 0);ut([(0,Je.property)({type:Boolean})],Ce.prototype,"trailingIcon",void 0);ut([(0,Je.query)("ft-typography slot")],Ce.prototype,"slottedContent",void 0);var Gr=f(L()),jr=f(J()),Uu=f(ft()),Gn=f(C());var Mu=f(L());var Vn=f(C());var zu=[Mu.css`
2291
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Wn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Wn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Jo.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Ce.elementDefinitions={"ft-ripple":K,"ft-typography":te,"ft-icon":se,"ft-button":Oe};Ce.styles=Du;ut([(0,Je.property)({type:Boolean})],Ce.prototype,"highlighted",void 0);ut([(0,Je.property)({type:Boolean})],Ce.prototype,"removable",void 0);ut([(0,Je.property)({type:Boolean})],Ce.prototype,"disabled",void 0);ut([(0,Je.property)({type:Boolean})],Ce.prototype,"clickable",void 0);ut([(0,Je.property)({type:Boolean})],Ce.prototype,"iconClickable",void 0);ut([(0,Je.property)({type:Boolean})],Ce.prototype,"dense",void 0);ut([(0,Je.property)({type:Boolean})],Ce.prototype,"multiLine",void 0);ut([(0,Je.property)()],Ce.prototype,"label",void 0);ut([(0,Je.property)()],Ce.prototype,"iconLabel",void 0);ut([(0,Je.property)({type:Boolean})],Ce.prototype,"hideIconTooltip",void 0);ut([(0,Je.property)()],Ce.prototype,"icon",void 0);ut([(0,Je.property)()],Ce.prototype,"iconVariant",void 0);ut([(0,Je.property)({type:Boolean})],Ce.prototype,"trailingIcon",void 0);ut([(0,Je.query)("ft-typography slot")],Ce.prototype,"slottedContent",void 0);var Gr=f(L()),jr=f(J()),Uu=f(ft()),Gn=f(C());var Mu=f(L());var Vn=f(C());var zu=[Mu.css`
2291
2292
  :host {
2292
2293
  display: inline-block;
2293
2294
  max-width: 100%;
@@ -2454,7 +2455,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2454
2455
  .ftds--family-error .ftds-chip--icon-container {
2455
2456
  color: ${B.errorIconColor};
2456
2457
  }
2457
- `];var Jo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ws=class extends CustomEvent{constructor(){super("remove")}},_t=class extends Gn.FtdsBase{constructor(){super(...arguments),this.withAction=!1,this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let e={"ftds-chip":!0,"ftds-chip--with-action":this.removable||this.withAction,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return Gr.html`
2458
+ `];var ei=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ws=class extends CustomEvent{constructor(){super("remove")}},_t=class extends Gn.FtdsBase{constructor(){super(...arguments),this.withAction=!1,this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let e={"ftds-chip":!0,"ftds-chip--with-action":this.removable||this.withAction,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return Gr.html`
2458
2459
  <div class="${(0,Uu.classMap)(e)}"
2459
2460
  aria-label="${this.getLabel()}"
2460
2461
  part="chip">
@@ -2466,7 +2467,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2466
2467
  </div>
2467
2468
  `}renderIcon(){return this.icon?Gr.html`
2468
2469
  <div class="ftds-chip--icon-container" part="icon-container">
2469
- <ft-icon .variant=${Fe.fluid_topics} .value=${this.icon} part="icon"></ft-icon>
2470
+ <ft-icon .variant=${Me.fluid_topics} .value=${this.icon} part="icon"></ft-icon>
2470
2471
  </div>
2471
2472
  `:Gr.nothing}renderAction(){return this.removable?Gr.html`
2472
2473
  <ftds-button round
@@ -2480,7 +2481,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2480
2481
  ></ftds-button>
2481
2482
  `:this.withAction?Gr.html`
2482
2483
  <slot name="action"></slot>
2483
- `:Gr.nothing}resolveButtonSize(){switch(this.size){case Dt.large:return Dt.medium;default:return Dt.small}}getLabel(){return this.label||this.getTextContent()}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new Ws)}typographyVariant(){switch(this.size){case Dt.large:return ht.body2medium;default:return ht.caption1medium}}};_t.elementDefinitions={"ftds-typography":Mt,"ft-icon":ae,"ftds-button":Rt};_t.styles=zu;Jo([(0,jr.property)({type:Boolean})],_t.prototype,"withAction",void 0);Jo([(0,jr.property)({type:Boolean})],_t.prototype,"removable",void 0);Jo([(0,jr.property)()],_t.prototype,"removeButtonLabel",void 0);Jo([(0,jr.property)()],_t.prototype,"label",void 0);Jo([(0,jr.property)()],_t.prototype,"icon",void 0);Jo([(0,jr.query)("ftds-typography slot")],_t.prototype,"slottedContent",void 0);(0,Vs.customElement)("ft-chip")(Ce);(0,Vs.customElement)("ftds-chip")(_t);var Ys=f(C());var So=f(L()),ce=f(J()),qs=f(ft()),Qu=f(zr());function jn(t,e,r){return t?e(t):r?.(t)}var Kr=f(C());var Zs=f(C());var Kn=f(J());var Hu=f(L()),ye=f(C());var M={fontSize:ye.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:ye.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:ye.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:ye.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:ye.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:ye.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:ye.FtCssVariableFactory.extend("--ft-input-label-border-color","",ye.designSystemVariables.colorOutline),textColor:ye.FtCssVariableFactory.extend("--ft-input-label-text-color","",ye.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:ye.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",ye.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:ye.FtCssVariableFactory.extend("--ft-input-label-background-color","",ye.designSystemVariables.colorSurface),borderRadius:ye.FtCssVariableFactory.extend("--ft-input-label-border-radius","",ye.designSystemVariables.borderRadiusS),colorError:ye.FtCssVariableFactory.external(ye.designSystemVariables.colorError,"Design system")},Wu=Hu.css`
2484
+ `:Gr.nothing}resolveButtonSize(){switch(this.size){case Dt.large:return Dt.medium;default:return Dt.small}}getLabel(){return this.label||this.getTextContent()}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new Ws)}typographyVariant(){switch(this.size){case Dt.large:return ht.body2medium;default:return ht.caption1medium}}};_t.elementDefinitions={"ftds-typography":Mt,"ft-icon":se,"ftds-button":Rt};_t.styles=zu;ei([(0,jr.property)({type:Boolean})],_t.prototype,"withAction",void 0);ei([(0,jr.property)({type:Boolean})],_t.prototype,"removable",void 0);ei([(0,jr.property)()],_t.prototype,"removeButtonLabel",void 0);ei([(0,jr.property)()],_t.prototype,"label",void 0);ei([(0,jr.property)()],_t.prototype,"icon",void 0);ei([(0,jr.query)("ftds-typography slot")],_t.prototype,"slottedContent",void 0);(0,Vs.customElement)("ft-chip")(Ce);(0,Vs.customElement)("ftds-chip")(_t);var Ys=f(C());var So=f(L()),ce=f(J()),qs=f(ft()),Qu=f(zr());function jn(t,e,r){return t?e(t):r?.(t)}var Kr=f(C());var Zs=f(C());var Kn=f(J());var Hu=f(L()),ye=f(C());var M={fontSize:ye.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:ye.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:ye.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:ye.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:ye.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:ye.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:ye.FtCssVariableFactory.extend("--ft-input-label-border-color","",ye.designSystemVariables.colorOutline),textColor:ye.FtCssVariableFactory.extend("--ft-input-label-text-color","",ye.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:ye.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",ye.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:ye.FtCssVariableFactory.extend("--ft-input-label-background-color","",ye.designSystemVariables.colorSurface),borderRadius:ye.FtCssVariableFactory.extend("--ft-input-label-border-radius","",ye.designSystemVariables.borderRadiusS),colorError:ye.FtCssVariableFactory.external(ye.designSystemVariables.colorError,"Design system")},Wu=Hu.css`
2484
2485
  .ft-input-label {
2485
2486
  position: absolute;
2486
2487
  inset: 0;
@@ -2531,8 +2532,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2531
2532
  transition: font-size 250ms, line-height 250ms, color 250ms;
2532
2533
  max-width: calc(${M.labelMaxWidth} - 2 * (${M.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
2533
2534
  text-overflow: ellipsis;
2534
- ${(0,ye.setVariable)(De.fontSize,M.fontSize)};
2535
- ${(0,ye.setVariable)(De.lineHeight,M.fontSize)};
2535
+ ${(0,ye.setVariable)(Fe.fontSize,M.fontSize)};
2536
+ ${(0,ye.setVariable)(Fe.lineHeight,M.fontSize)};
2536
2537
  }
2537
2538
 
2538
2539
  .ft-input-label--in-error .ft-input-label--text {
@@ -2552,7 +2553,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2552
2553
 
2553
2554
  .ft-input-label--floating-text {
2554
2555
  position: absolute;
2555
- top: calc(50% - ${De.lineHeight} / 2);
2556
+ top: calc(50% - ${Fe.lineHeight} / 2);
2556
2557
  transition: top 250ms;
2557
2558
  overflow: hidden;
2558
2559
  white-space: nowrap;
@@ -2564,8 +2565,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2564
2565
  }
2565
2566
 
2566
2567
  .ft-input-label--raised .ft-input-label--text {
2567
- ${(0,ye.setVariable)(De.fontSize,M.raisedFontSize)};
2568
- ${(0,ye.setVariable)(De.lineHeight,M.raisedFontSize)};
2568
+ ${(0,ye.setVariable)(Fe.fontSize,M.raisedFontSize)};
2569
+ ${(0,ye.setVariable)(Fe.lineHeight,M.raisedFontSize)};
2569
2570
  }
2570
2571
 
2571
2572
  .ft-input-label--raised .ft-input-label--floating-text {
@@ -2596,7 +2597,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2596
2597
  z-index: ${M.raisedZIndex};
2597
2598
  background-color: ${M.backgroundColor};
2598
2599
  border-radius: ${M.borderRadius};
2599
- top: calc((${De.lineHeight} / -2) + 2px);
2600
+ top: calc((${Fe.lineHeight} / -2) + 2px);
2600
2601
  }
2601
2602
 
2602
2603
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
@@ -2653,8 +2654,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2653
2654
  z-index: 10;
2654
2655
  width: 100%;
2655
2656
  transition: font-size 250ms, line-height 250ms, color 250ms;
2656
- ${(0,ke.setVariable)(De.fontSize,et.fontSize)};
2657
- ${(0,ke.setVariable)(De.lineHeight,et.lineHeight)};
2657
+ ${(0,ke.setVariable)(Fe.fontSize,et.fontSize)};
2658
+ ${(0,ke.setVariable)(Fe.lineHeight,et.lineHeight)};
2658
2659
  }
2659
2660
 
2660
2661
  .ft-input-label--hidden-text {
@@ -2685,8 +2686,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2685
2686
  }
2686
2687
 
2687
2688
  .ft-input-label--raised .ft-input-label--text {
2688
- ${(0,ke.setVariable)(De.fontSize,et.fontSizeRaised)};
2689
- ${(0,ke.setVariable)(De.lineHeight,et.lineHeight)};
2689
+ ${(0,ke.setVariable)(Fe.fontSize,et.fontSizeRaised)};
2690
+ ${(0,ke.setVariable)(Fe.lineHeight,et.lineHeight)};
2690
2691
  }
2691
2692
 
2692
2693
  .ft-input-label--raised .ft-input-label--floating-text {
@@ -2859,11 +2860,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2859
2860
  tabindex="${c?"-1":"0"}"
2860
2861
  @click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
2861
2862
  @keydown=${this.onMainPanelKeyDown}
2862
- aria-label="${yi(this.ariaLabel)}"
2863
+ aria-label="${Fo(this.ariaLabel)}"
2863
2864
  aria-labelledby="${jn(!this.ariaLabel,()=>"label")}"
2864
2865
  aria-haspopup="listbox"
2865
2866
  aria-expanded="${s}"
2866
- aria-activedescendant="${yi(this.getOptionId(this.selectedOption))}"
2867
+ aria-activedescendant="${Fo(this.getOptionId(this.selectedOption))}"
2867
2868
  role="combobox">
2868
2869
  <ft-ripple ?disabled=${c} ?activated=${!this.outlined}></ft-ripple>
2869
2870
  <ft-typography variant="${Ye.body1}" class="ft-select--selected-option">
@@ -2887,19 +2888,19 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2887
2888
  <slot @slotchange=${this.updateOptionsFromSlot}
2888
2889
  @option-change=${this.updateOptionsFromSlot}
2889
2890
  ></slot>
2890
- `}renderOption(e,r){var i;let n=this.selectedOption===e;return So.html`
2891
- <div class="${(0,qs.classMap)({"ft-select--option":!0,"ft-select--option-selected":n,"ft-typography--body2":!0})}"
2892
- part="option option-${(i=e.value)===null||i===void 0?void 0:i.replace(/[^\w-]/g,"")}"
2891
+ `}renderOption(e,r){var i,n;let a=this.selectedOption===e;return So.html`
2892
+ <div class="${(0,qs.classMap)({"ft-select--option":!0,"ft-select--option-selected":a,"ft-typography--body2":!0})}"
2893
+ part="option option-${(n=(i=e.value)===null||i===void 0?void 0:i.toString())===null||n===void 0?void 0:n.replace(/[^\w-]/g,"")}"
2893
2894
  tabindex="0"
2894
2895
  aria-label="${e.label}"
2895
2896
  data-value="${e.value}"
2896
2897
  id="${"option-"+r}"
2897
- @keydown=${s=>this.onOptionKeyDown(s,e)}
2898
+ @keydown=${c=>this.onOptionKeyDown(c,e)}
2898
2899
  @click=${()=>this.selectOption(e)}>
2899
- <ft-ripple ?primary=${n} ?activated=${n}></ft-ripple>
2900
+ <ft-ripple ?primary=${a} ?activated=${a}></ft-ripple>
2900
2901
  <span>${e.label}</span>
2901
2902
  </div>
2902
- `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];(0,Kr.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",j.optionsHeight,0).then(({x:a,y:s})=>{this.optionsMenu.style.left=`${a}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation();let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i,n,a,s;let c;switch(e.key){case"Escape":this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),c=(n=(i=this.focusedOption)===null||i===void 0?void 0:i.previousElementSibling)!==null&&n!==void 0?n:this.lastOption;break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),c=(s=(a=this.focusedOption)===null||a===void 0?void 0:a.nextElementSibling)!==null&&s!==void 0?s:this.firstOption;break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(c=this.handleAlphanumericPress(e.key));break}c?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){var r,i;let n=new Date;n.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let a=this.options.find(c=>{var p;return((p=c.label)===null||p===void 0?void 0:p.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});if(a===void 0){this.lastSearchInputDate=n;return}let s=(i=(r=this.optionsMenu)===null||r===void 0?void 0:r.querySelector(`[data-value="${a.value}"]`))!==null&&i!==void 0?i:void 0;return this.lastSearchInputDate=n,s}onOptionKeyDown(e,r){var i;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),this.selectOption(r),this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus())}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,Kr.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}selectOption(e){var r,i;if(!(0,Kr.deepEqual)((r=this.selectedOption)===null||r===void 0?void 0:r.value,e.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;this.dispatchEvent(new CustomEvent("change",{detail:(i=this.selectedOption)===null||i===void 0?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};oe.elementDefinitions={"ft-input-label":jt,"ft-typography":te,"ft-ripple":K,"ft-icon":ae};oe.searchTimeoutMilliseconds=2e3;oe.styles=[Ar,Qt,Xu];be([(0,ce.property)({type:String})],oe.prototype,"label",void 0);be([(0,ce.property)({type:String})],oe.prototype,"ariaLabel",void 0);be([(0,ce.property)({type:String})],oe.prototype,"helper",void 0);be([(0,ce.property)({type:Boolean})],oe.prototype,"outlined",void 0);be([(0,ce.property)({type:Boolean})],oe.prototype,"disabled",void 0);be([(0,ce.property)({type:Boolean})],oe.prototype,"error",void 0);be([(0,ce.property)({type:Boolean})],oe.prototype,"fixedMenuPosition",void 0);be([(0,ce.property)({type:Array})],oe.prototype,"options",void 0);be([(0,ce.state)()],oe.prototype,"selectedOption",void 0);be([(0,ce.state)()],oe.prototype,"optionsDisplayed",void 0);be([(0,ce.state)()],oe.prototype,"focusOptions",void 0);be([(0,ce.state)()],oe.prototype,"currentSearch",void 0);be([(0,ce.state)()],oe.prototype,"lastSearchInputDate",void 0);be([(0,ce.query)(".ft-select")],oe.prototype,"container",void 0);be([(0,ce.query)(".ft-select--options")],oe.prototype,"optionsMenu",void 0);be([(0,ce.query)(".ft-select--input-panel")],oe.prototype,"mainPanel",void 0);be([(0,ce.query)(".ft-select--option:first-child")],oe.prototype,"firstOption",void 0);be([(0,ce.query)(".ft-select--option:focus")],oe.prototype,"focusedOption",void 0);be([(0,ce.query)(".ft-select--option.ft-select--option-selected")],oe.prototype,"selectedOptionElement",void 0);be([(0,ce.query)(".ft-select--option:last-child")],oe.prototype,"lastOption",void 0);be([(0,ce.query)("slot:not([name])")],oe.prototype,"optionsSlot",void 0);(0,Ys.customElement)("ft-select")(oe);(0,Ys.customElement)("ft-select-option")(cr);var F=f(C()),Xs=f(L());var Ju=f(L()),Kt=f(C()),qe={display:Kt.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Kt.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Kt.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Kt.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Kt.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Kt.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Kt.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Kt.FtCssVariableFactory.external(Kt.designSystemVariables.borderRadiusM,"Design system")},ef=Ju.css`
2903
+ `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];(0,Kr.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",j.optionsHeight,0).then(({x:a,y:s})=>{this.optionsMenu.style.left=`${a}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation();let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i,n,a,s;let c;switch(e.key){case"Escape":this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),c=(n=(i=this.focusedOption)===null||i===void 0?void 0:i.previousElementSibling)!==null&&n!==void 0?n:this.lastOption;break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),c=(s=(a=this.focusedOption)===null||a===void 0?void 0:a.nextElementSibling)!==null&&s!==void 0?s:this.firstOption;break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(c=this.handleAlphanumericPress(e.key));break}c?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){var r,i;let n=new Date;n.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let a=this.options.find(c=>{var p;return((p=c.label)===null||p===void 0?void 0:p.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});if(a===void 0){this.lastSearchInputDate=n;return}let s=(i=(r=this.optionsMenu)===null||r===void 0?void 0:r.querySelector(`[data-value="${a.value}"]`))!==null&&i!==void 0?i:void 0;return this.lastSearchInputDate=n,s}onOptionKeyDown(e,r){var i;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),this.selectOption(r),this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus())}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,Kr.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}selectOption(e){var r,i;if(!(0,Kr.deepEqual)((r=this.selectedOption)===null||r===void 0?void 0:r.value,e.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;this.dispatchEvent(new CustomEvent("change",{detail:(i=this.selectedOption)===null||i===void 0?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};oe.elementDefinitions={"ft-input-label":jt,"ft-typography":te,"ft-ripple":K,"ft-icon":se};oe.searchTimeoutMilliseconds=2e3;oe.styles=[Ar,Qt,Xu];be([(0,ce.property)({type:String})],oe.prototype,"label",void 0);be([(0,ce.property)({type:String})],oe.prototype,"ariaLabel",void 0);be([(0,ce.property)({type:String})],oe.prototype,"helper",void 0);be([(0,ce.property)({type:Boolean})],oe.prototype,"outlined",void 0);be([(0,ce.property)({type:Boolean})],oe.prototype,"disabled",void 0);be([(0,ce.property)({type:Boolean})],oe.prototype,"error",void 0);be([(0,ce.property)({type:Boolean})],oe.prototype,"fixedMenuPosition",void 0);be([(0,ce.property)({type:Array})],oe.prototype,"options",void 0);be([(0,ce.state)()],oe.prototype,"selectedOption",void 0);be([(0,ce.state)()],oe.prototype,"optionsDisplayed",void 0);be([(0,ce.state)()],oe.prototype,"focusOptions",void 0);be([(0,ce.state)()],oe.prototype,"currentSearch",void 0);be([(0,ce.state)()],oe.prototype,"lastSearchInputDate",void 0);be([(0,ce.query)(".ft-select")],oe.prototype,"container",void 0);be([(0,ce.query)(".ft-select--options")],oe.prototype,"optionsMenu",void 0);be([(0,ce.query)(".ft-select--input-panel")],oe.prototype,"mainPanel",void 0);be([(0,ce.query)(".ft-select--option:first-child")],oe.prototype,"firstOption",void 0);be([(0,ce.query)(".ft-select--option:focus")],oe.prototype,"focusedOption",void 0);be([(0,ce.query)(".ft-select--option.ft-select--option-selected")],oe.prototype,"selectedOptionElement",void 0);be([(0,ce.query)(".ft-select--option:last-child")],oe.prototype,"lastOption",void 0);be([(0,ce.query)("slot:not([name])")],oe.prototype,"optionsSlot",void 0);(0,Ys.customElement)("ft-select")(oe);(0,Ys.customElement)("ft-select-option")(cr);var F=f(C()),Xs=f(L());var Ju=f(L()),Kt=f(C()),qe={display:Kt.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Kt.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Kt.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Kt.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Kt.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Kt.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Kt.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Kt.FtCssVariableFactory.external(Kt.designSystemVariables.borderRadiusM,"Design system")},ef=Ju.css`
2903
2904
  :host {
2904
2905
  width: ${qe.width};
2905
2906
  height: ${qe.height};
@@ -3283,7 +3284,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
3283
3284
  margin: 0;
3284
3285
  }
3285
3286
  `;var af=f(C());var of=f(L()),nf=f(C());var Zr=class extends nf.FtLitElement{render(){return of.html`
3286
- `}};Zr.elementDefinitions={};Zr.styles=ef;(0,af.customElement)("ft-skeleton")(Zr);var dr=f(L()),Qs=f(zr());var ei=f(C());var pr=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new ei.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return dr.html`
3287
+ `}};Zr.elementDefinitions={};Zr.styles=ef;(0,af.customElement)("ft-skeleton")(Zr);var dr=f(L()),Qs=f(zr());var ti=f(C());var pr=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new ti.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return dr.html`
3287
3288
  <div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
3288
3289
  id="${this.listboxId}"
3289
3290
  role="listbox"
@@ -3336,9 +3337,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
3336
3337
  </div>
3337
3338
  `)}
3338
3339
  </div>
3339
- `}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?Fe.file_format:Fe.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?We.BOOK:We.ARTICLE;break;case"DOCUMENT":i=Ki(e.mimeType,e.filenameExtension);break;case"TOPIC":i=We.TOPICS;break}return dr.html`
3340
+ `}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?Me.file_format:Me.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?We.BOOK:We.ARTICLE;break;case"DOCUMENT":i=Ki(e.mimeType,e.filenameExtension);break;case"TOPIC":i=We.TOPICS;break}return dr.html`
3340
3341
  <ft-icon .variant="${r}" .value="${i}" part="suggestion-icon"></ft-icon>
3341
- `}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};pr.styles=[ei.wordWrap,dr.css`
3342
+ `}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};pr.styles=[ti.wordWrap,dr.css`
3342
3343
  .ft-search-bar--mobile .ft-search-bar--suggestions {
3343
3344
  flex-grow: 1;
3344
3345
  flex-shrink: 1;
@@ -3426,7 +3427,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
3426
3427
  }
3427
3428
 
3428
3429
  ft-ripple {
3429
- ${(0,ei.setVariable)(x.opacityContentOnSurfaceHover,x.opacityContentOnSurfaceSelected)}
3430
+ ${(0,ti.setVariable)(x.opacityContentOnSurfaceHover,x.opacityContentOnSurfaceSelected)}
3430
3431
  }
3431
3432
  `];var ot=f(L()),Js=f(zr());var Zn=f(C());var ur=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return ot.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=ot.html`
3432
3433
  ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?ot.html`
@@ -3793,7 +3794,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
3793
3794
  part="floating-panel"
3794
3795
  tabindex="-1">
3795
3796
  ${this.renderDesktopMenu()}
3796
- </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};D.elementDefinitions={"ft-accordion":lr,"ft-accordion-item":Nt,"ft-button":Oe,"ft-chip":Ce,"ft-filter":ee,"ft-filter-option":Ct,"ft-icon":ae,"ft-ripple":K,"ft-select":oe,"ft-select-option":cr,"ft-size-watcher":xt,"ft-skeleton":Zr,"ft-snap-scroll":Ie,"ft-tooltip":we,"ft-typography":te,"ft-radio-group":yo,"ft-radio":ar};D.styles=[Ar,de.noTextInputDefaultClearButton,tf,rf,ur.styles,pr.styles,de.screenReaderStyles];Z([(0,q.property)({type:Boolean})],D.prototype,"dense",void 0);Z([(0,q.property)()],D.prototype,"mode",void 0);Z([(0,q.property)({type:Boolean})],D.prototype,"forceMobileMenuOpen",void 0);Z([(0,q.property)({type:Boolean})],D.prototype,"forceMenuOpen",void 0);Z([(0,q.property)()],D.prototype,"baseUrl",void 0);Z([(0,q.property)()],D.prototype,"apiIntegrationIdentifier",void 0);Z([(0,q.property)()],D.prototype,"contentLocale",void 0);Z([(0,q.state)()],D.prototype,"availableContentLocales",void 0);Z([(0,q.state)()],D.prototype,"availableContentLocalesInitialized",void 0);Z([(0,q.property)()],D.prototype,"uiLocale",void 0);Z([(0,de.jsonProperty)({})],D.prototype,"labels",void 0);Z([(0,de.jsonProperty)([])],D.prototype,"displayedFilters",void 0);Z([(0,de.jsonProperty)([])],D.prototype,"presets",void 0);Z([(0,q.property)({type:String,reflect:!0})],D.prototype,"selectedPreset",void 0);Z([(0,de.jsonProperty)([])],D.prototype,"priors",void 0);Z([(0,q.property)()],D.prototype,"searchRequestSerializer",void 0);Z([(0,q.property)({type:Boolean})],D.prototype,"focusOnDisplay",void 0);Z([(0,q.state)()],D.prototype,"metadataFilters",void 0);Z([(0,q.state)()],D.prototype,"sizeCategory",void 0);Z([(0,q.state)()],D.prototype,"displayFacets",void 0);Z([(0,q.state)()],D.prototype,"mobileMenuOpen",void 0);Z([(0,q.state)()],D.prototype,"facets",void 0);Z([(0,q.state)()],D.prototype,"facetsInitialized",void 0);Z([(0,q.query)(".ft-search-bar--container")],D.prototype,"container",void 0);Z([(0,q.query)(".ft-search-bar--filters-opener")],D.prototype,"filtersOpener",void 0);Z([(0,q.query)(".ft-search-bar--floating-panel")],D.prototype,"floatingContainer",void 0);Z([(0,q.query)("ft-snap-scroll.ft-search-bar--filters-container")],D.prototype,"scrollingFiltersContainer",void 0);Z([(0,q.query)(".ft-search-bar--input")],D.prototype,"input",void 0);Z([(0,q.query)(".ft-search-bar--launch-search")],D.prototype,"launchSearchButton",void 0);Z([(0,q.state)()],D.prototype,"query",void 0);Z([(0,q.state)()],D.prototype,"suggestions",void 0);Z([(0,q.state)()],D.prototype,"recentSearches",void 0);Z([(0,q.state)()],D.prototype,"scrollToFacet",void 0);Z([(0,q.state)()],D.prototype,"api",void 0);Z([(0,q.state)()],D.prototype,"displaySuggestListbox",void 0);Z([(0,q.state)()],D.prototype,"selectedSuggestOptionId",void 0);Z([(0,q.state)()],D.prototype,"selectedSuggestRemoveRecent",void 0);Z([(0,q.state)()],D.prototype,"facetsLoaded",void 0);(0,pf.customElement)("ft-search-bar")(D);var hf=uf.css`
3797
+ </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};D.elementDefinitions={"ft-accordion":lr,"ft-accordion-item":Nt,"ft-button":Oe,"ft-chip":Ce,"ft-filter":ee,"ft-filter-option":Ct,"ft-icon":se,"ft-ripple":K,"ft-select":oe,"ft-select-option":cr,"ft-size-watcher":xt,"ft-skeleton":Zr,"ft-snap-scroll":Ie,"ft-tooltip":we,"ft-typography":te,"ft-radio-group":yo,"ft-radio":ar};D.styles=[Ar,de.noTextInputDefaultClearButton,tf,rf,ur.styles,pr.styles,de.screenReaderStyles];Z([(0,q.property)({type:Boolean})],D.prototype,"dense",void 0);Z([(0,q.property)()],D.prototype,"mode",void 0);Z([(0,q.property)({type:Boolean})],D.prototype,"forceMobileMenuOpen",void 0);Z([(0,q.property)({type:Boolean})],D.prototype,"forceMenuOpen",void 0);Z([(0,q.property)()],D.prototype,"baseUrl",void 0);Z([(0,q.property)()],D.prototype,"apiIntegrationIdentifier",void 0);Z([(0,q.property)()],D.prototype,"contentLocale",void 0);Z([(0,q.state)()],D.prototype,"availableContentLocales",void 0);Z([(0,q.state)()],D.prototype,"availableContentLocalesInitialized",void 0);Z([(0,q.property)()],D.prototype,"uiLocale",void 0);Z([(0,de.jsonProperty)({})],D.prototype,"labels",void 0);Z([(0,de.jsonProperty)([])],D.prototype,"displayedFilters",void 0);Z([(0,de.jsonProperty)([])],D.prototype,"presets",void 0);Z([(0,q.property)({type:String,reflect:!0})],D.prototype,"selectedPreset",void 0);Z([(0,de.jsonProperty)([])],D.prototype,"priors",void 0);Z([(0,q.property)()],D.prototype,"searchRequestSerializer",void 0);Z([(0,q.property)({type:Boolean})],D.prototype,"focusOnDisplay",void 0);Z([(0,q.state)()],D.prototype,"metadataFilters",void 0);Z([(0,q.state)()],D.prototype,"sizeCategory",void 0);Z([(0,q.state)()],D.prototype,"displayFacets",void 0);Z([(0,q.state)()],D.prototype,"mobileMenuOpen",void 0);Z([(0,q.state)()],D.prototype,"facets",void 0);Z([(0,q.state)()],D.prototype,"facetsInitialized",void 0);Z([(0,q.query)(".ft-search-bar--container")],D.prototype,"container",void 0);Z([(0,q.query)(".ft-search-bar--filters-opener")],D.prototype,"filtersOpener",void 0);Z([(0,q.query)(".ft-search-bar--floating-panel")],D.prototype,"floatingContainer",void 0);Z([(0,q.query)("ft-snap-scroll.ft-search-bar--filters-container")],D.prototype,"scrollingFiltersContainer",void 0);Z([(0,q.query)(".ft-search-bar--input")],D.prototype,"input",void 0);Z([(0,q.query)(".ft-search-bar--launch-search")],D.prototype,"launchSearchButton",void 0);Z([(0,q.state)()],D.prototype,"query",void 0);Z([(0,q.state)()],D.prototype,"suggestions",void 0);Z([(0,q.state)()],D.prototype,"recentSearches",void 0);Z([(0,q.state)()],D.prototype,"scrollToFacet",void 0);Z([(0,q.state)()],D.prototype,"api",void 0);Z([(0,q.state)()],D.prototype,"displaySuggestListbox",void 0);Z([(0,q.state)()],D.prototype,"selectedSuggestOptionId",void 0);Z([(0,q.state)()],D.prototype,"selectedSuggestRemoveRecent",void 0);Z([(0,q.state)()],D.prototype,"facetsLoaded",void 0);(0,pf.customElement)("ft-search-bar")(D);var hf=uf.css`
3797
3798
  * {
3798
3799
  box-sizing: border-box;
3799
3800
  }
@@ -3842,7 +3843,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
3842
3843
  ft-ripple {
3843
3844
  ${(0,ff.setVariable)(x.opacityContentOnSurfaceHover,x.opacityContentOnSurfaceSelected)}
3844
3845
  }
3845
- `;var gf=f(zr());var qr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){let e=vr.get();return ti.html`
3846
+ `;var gf=f(zr());var qr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){let e=vr.get();return ri.html`
3846
3847
  <div class="ft-search-input-suggestion ft-word-wrap"
3847
3848
  id="${this.listboxId}"
3848
3849
  role="listbox"
@@ -3850,11 +3851,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
3850
3851
  part="container">
3851
3852
  ${(0,gf.repeat)(this.ftSearchInput.suggestResults||[],r=>r.value,(r,i)=>this.renderSuggestion(i,r,e))}
3852
3853
  </div>
3853
- `}renderSuggestion(e,r,i){let n=`suggestion-${e}`,a=ti.html`
3854
+ `}renderSuggestion(e,r,i){let n=`suggestion-${e}`,a=ri.html`
3854
3855
  <ft-ripple ?activated=${this.ftSearchInput.selectedSuggestOptionId===n}></ft-ripple>
3855
3856
  ${this.getIcon(r)}
3856
3857
  <ft-typography variant="body1">${r.value}</ft-typography>
3857
- `;if(this.ftSearchInput.launchSearchPath){let s={...this.ftSearchInput.request,query:r.value},c=i.serializeToCurrentPageIfPossible(s,this.ftSearchInput.launchSearchPath);return ti.html`
3858
+ `;if(this.ftSearchInput.launchSearchPath){let s={...this.ftSearchInput.request,query:r.value},c=i.serializeToCurrentPageIfPossible(s,this.ftSearchInput.launchSearchPath);return ri.html`
3858
3859
  <a href="${c}"
3859
3860
  part="suggestion"
3860
3861
  class="ft-search-input-suggestion--suggestion"
@@ -3866,7 +3867,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
3866
3867
  @click=${()=>this.onSuggestSelected(r.value)}>
3867
3868
  ${a}
3868
3869
  </a>
3869
- `}return ti.html`
3870
+ `}return ri.html`
3870
3871
  <div part="suggestion"
3871
3872
  class="ft-search-input-suggestion--suggestion"
3872
3873
  role="option"
@@ -3876,9 +3877,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
3876
3877
  @click=${()=>this.onSuggestSelected(r.value)}>
3877
3878
  ${a}
3878
3879
  </div>
3879
- `}onSuggestSelected(e){this.ftSearchInput.onSuggestionSelected(e)}getIcon(e){let r=e.type==="DOCUMENT"?Fe.file_format:Fe.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?We.BOOK:We.ARTICLE;break;case"DOCUMENT":i=Ki(e.mimeType,e.filenameExtension);break;case"TOPIC":i=We.TOPICS;break}return ti.html`
3880
+ `}onSuggestSelected(e){this.ftSearchInput.onSuggestionSelected(e)}getIcon(e){let r=e.type==="DOCUMENT"?Me.file_format:Me.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?We.BOOK:We.ARTICLE;break;case"DOCUMENT":i=Ki(e.mimeType,e.filenameExtension);break;case"TOPIC":i=We.TOPICS;break}return ri.html`
3880
3881
  <ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
3881
- `}get selectedSuggestOption(){return this.ftSearchInput.shadowRoot.querySelector(`#${this.ftSearchInput.selectedSuggestOptionId}`)}getLastSuggestionElement(){let e=this.ftSearchInput.shadowRoot.querySelectorAll("[role=option]");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.ftSearchInput.shadowRoot.querySelector("[role=option]")}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}selectSuggestion(e){e?this.ftSearchInput.selectedSuggestOptionId=e.id:this.ftSearchInput.selectedSuggestOptionId=void 0}selectNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}selectPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}clearSelection(){this.selectSuggestion(null)}};qr.elementDefinitions={"ft-ripple":K,"ft-typography":te,"ft-icon":ae};qr.styles=[yf.wordWrap,hf];var wt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Be=class extends qo(An){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.placeholder=Mr.messages.placeholder(),this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new qr(this),this.showSuggestionsOnFocus=!0,this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.addI18nContext(Mr)}render(){var e,r,i;let n={"ft-search-input":!0,"ft-search-input--with-suggestions":(r=(e=this.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:!1,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},a={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,c=vr.get().serializeToCurrentPageIfPossible(a,s);return ri.html`
3882
+ `}get selectedSuggestOption(){return this.ftSearchInput.shadowRoot.querySelector(`#${this.ftSearchInput.selectedSuggestOptionId}`)}getLastSuggestionElement(){let e=this.ftSearchInput.shadowRoot.querySelectorAll("[role=option]");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.ftSearchInput.shadowRoot.querySelector("[role=option]")}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}selectSuggestion(e){e?this.ftSearchInput.selectedSuggestOptionId=e.id:this.ftSearchInput.selectedSuggestOptionId=void 0}selectNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}selectPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}clearSelection(){this.selectSuggestion(null)}};qr.elementDefinitions={"ft-ripple":K,"ft-typography":te,"ft-icon":se};qr.styles=[yf.wordWrap,hf];var wt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},De=class extends Yo(An){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.placeholder=Mr.messages.placeholder(),this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new qr(this),this.showSuggestionsOnFocus=!0,this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.addI18nContext(Mr)}render(){var e,r,i;let n={"ft-search-input":!0,"ft-search-input--with-suggestions":(r=(e=this.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:!1,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},a={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,c=vr.get().serializeToCurrentPageIfPossible(a,s);return oi.html`
3882
3883
  <div class="${(0,mf.classMap)(n)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3883
3884
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
3884
3885
  <div class="ft-search-input--input-outline" part="input-outline">
@@ -3891,7 +3892,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
3891
3892
  aria-autocomplete="list"
3892
3893
  aria-controls="${this.suggestions.listboxId}"
3893
3894
  aria-expanded="${this.displaySuggestListbox}"
3894
- aria-activedescendant="${(i=this.selectedSuggestOptionId)!==null&&i!==void 0?i:ri.nothing}"
3895
+ aria-activedescendant="${(i=this.selectedSuggestOptionId)!==null&&i!==void 0?i:oi.nothing}"
3895
3896
  @input=${this.onInput}
3896
3897
  @click=${this.onClick}
3897
3898
  @focus=${this.onFocus}
@@ -3901,10 +3902,10 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
3901
3902
  <div class="sr-only" aria-live="polite" aria-atomic="true">
3902
3903
  ${this.renderLiveText()}
3903
3904
  </div>
3904
- ${this.shouldDisplaySuggestions?this.suggestions.render():ri.nothing}
3905
+ ${this.shouldDisplaySuggestions?this.suggestions.render():oi.nothing}
3905
3906
  </div>
3906
3907
  <div class="ft-search-input--actions" part="actions">
3907
- ${this.liveQuery?ri.html`
3908
+ ${this.liveQuery?oi.html`
3908
3909
  <ft-button id="clear-button"
3909
3910
  class="ft-search-input--clear-query"
3910
3911
  part="clear-query"
@@ -3925,7 +3926,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
3925
3926
  ></ft-button>
3926
3927
  </div>
3927
3928
  </div>
3928
- `}renderLiveText(){return this.shouldDisplaySuggestions?Mr.messages.ariaLiveSuggestions(this.suggestResults.length):""}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0;break;case"Escape":this.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPreviousSuggestion();break;case"ArrowLeft":case"ArrowRight":this.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestions.clearSelection());break;case"Enter":{let r=this.suggestions.selectedSuggestOption||this.launchSearchButton;r?.click();break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break;default:break}}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.displaySuggestListbox=!1,this.suggestions.clearSelection()}get shouldDisplaySuggestions(){var e;return!this.forceCloseSuggestion&&this.displaySuggestListbox&&((e=this.suggestResults)!==null&&e!==void 0?e:[]).length>0}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,Bt.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),this.focusOnDisplay&&!Bt.isTouchScreen&&this.focusInput(!1)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox)}};Be.elementDefinitions={"ft-button":Oe,...qr.elementDefinitions};Be.styles=[Ar,Bt.noTextInputDefaultClearButton,Gc,...qr.styles,Bt.screenReaderStyles];wt([(0,Bt.redux)()],Be.prototype,"request",void 0);wt([(0,Bt.redux)()],Be.prototype,"liveQuery",void 0);wt([(0,Bt.redux)()],Be.prototype,"suggestResults",void 0);wt([(0,Et.state)()],Be.prototype,"forceCloseSuggestion",void 0);wt([(0,Et.state)()],Be.prototype,"displaySuggestListbox",void 0);wt([(0,Et.state)()],Be.prototype,"selectedSuggestOptionId",void 0);wt([(0,Et.property)()],Be.prototype,"launchSearchPath",void 0);wt([(0,Et.property)()],Be.prototype,"placeholder",void 0);wt([(0,Et.property)({type:Boolean})],Be.prototype,"useCustomSearchPath",void 0);wt([(0,Et.property)({type:Boolean})],Be.prototype,"triggerSearchOnClear",void 0);wt([(0,Et.property)({type:Boolean})],Be.prototype,"focusOnDisplay",void 0);wt([(0,Et.query)(".ft-search-input--input")],Be.prototype,"input",void 0);wt([(0,Et.query)('[part="launch-search-in-input"]')],Be.prototype,"launchSearchButton",void 0);(0,bf.customElement)("ft-search-input")(Be);})();
3929
+ `}renderLiveText(){return this.shouldDisplaySuggestions?Mr.messages.ariaLiveSuggestions(this.suggestResults.length):""}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0;break;case"Escape":this.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPreviousSuggestion();break;case"ArrowLeft":case"ArrowRight":this.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestions.clearSelection());break;case"Enter":{let r=this.suggestions.selectedSuggestOption||this.launchSearchButton;r?.click();break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break;default:break}}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.displaySuggestListbox=!1,this.suggestions.clearSelection()}get shouldDisplaySuggestions(){var e;return!this.forceCloseSuggestion&&this.displaySuggestListbox&&((e=this.suggestResults)!==null&&e!==void 0?e:[]).length>0}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,Bt.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),this.focusOnDisplay&&!Bt.isTouchScreen&&this.focusInput(!1)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox)}};De.elementDefinitions={"ft-button":Oe,...qr.elementDefinitions};De.styles=[Ar,Bt.noTextInputDefaultClearButton,Gc,...qr.styles,Bt.screenReaderStyles];wt([(0,Bt.redux)()],De.prototype,"request",void 0);wt([(0,Bt.redux)()],De.prototype,"liveQuery",void 0);wt([(0,Bt.redux)()],De.prototype,"suggestResults",void 0);wt([(0,Et.state)()],De.prototype,"forceCloseSuggestion",void 0);wt([(0,Et.state)()],De.prototype,"displaySuggestListbox",void 0);wt([(0,Et.state)()],De.prototype,"selectedSuggestOptionId",void 0);wt([(0,Et.property)()],De.prototype,"launchSearchPath",void 0);wt([(0,Et.property)()],De.prototype,"placeholder",void 0);wt([(0,Et.property)({type:Boolean})],De.prototype,"useCustomSearchPath",void 0);wt([(0,Et.property)({type:Boolean})],De.prototype,"triggerSearchOnClear",void 0);wt([(0,Et.property)({type:Boolean})],De.prototype,"focusOnDisplay",void 0);wt([(0,Et.query)(".ft-search-input--input")],De.prototype,"input",void 0);wt([(0,Et.query)('[part="launch-search-in-input"]')],De.prototype,"launchSearchButton",void 0);(0,bf.customElement)("ft-search-input")(De);})();
3929
3930
  /*! Bundled license information:
3930
3931
 
3931
3932
  lit-html/lit-html.js: