@fluid-topics/ft-reader-feedback 1.3.45 → 1.3.47

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 Pu=Object.create;var ja=Object.defineProperty;var Du=Object.getOwnPropertyDescriptor;var Mu=Object.getOwnPropertyNames;var $u=Object.getPrototypeOf,Bu=Object.prototype.hasOwnProperty;var xr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fu=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Mu(e))!Bu.call(t,n)&&n!==r&&ja(t,n,{get:()=>e[n],enumerable:!(i=Du(e,n))||i.enumerable});return t};var m=(t,e,r)=>(r=t!=null?Pu($u(t)):{},Fu(e||!t||!t.__esModule?ja(r,"default",{value:t,enumerable:!0}):r,t));var T=xr((yf,Ka)=>{Ka.exports=ftGlobals.wcUtils});var $=xr((mf,Za)=>{Za.exports=ftGlobals.lit});var Z=xr((bf,qa)=>{qa.exports=ftGlobals.litDecorators});var Xs=xr((er,Ys)=>{var qo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Yo=function(){function t(){this.fetch=!1,this.DOMException=qo.DOMException}return t.prototype=qo,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(y){return y&&DataView.prototype.isPrototypeOf(y)}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(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function u(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var v={next:function(){var P=y.shift();return{done:P===void 0,value:P}}};return n.iterable&&(v[Symbol.iterator]=function(){return v}),v}function g(y){this.map={},y instanceof g?y.forEach(function(v,P){this.append(P,v)},this):Array.isArray(y)?y.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):y&&Object.getOwnPropertyNames(y).forEach(function(v){this.append(v,y[v])},this)}g.prototype.append=function(y,v){y=u(y),v=p(v);var P=this.map[y];this.map[y]=P?P+", "+v:v},g.prototype.delete=function(y){delete this.map[u(y)]},g.prototype.get=function(y){return y=u(y),this.has(y)?this.map[y]:null},g.prototype.has=function(y){return this.map.hasOwnProperty(u(y))},g.prototype.set=function(y,v){this.map[u(y)]=p(v)},g.prototype.forEach=function(y,v){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(v,this.map[P],P,this)},g.prototype.keys=function(){var y=[];return this.forEach(function(v,P){y.push(P)}),h(y)},g.prototype.values=function(){var y=[];return this.forEach(function(v){y.push(v)}),h(y)},g.prototype.entries=function(){var y=[];return this.forEach(function(v,P){y.push([P,v])}),h(y)},n.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function b(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function x(y){return new Promise(function(v,P){y.onload=function(){v(y.result)},y.onerror=function(){P(y.error)}})}function S(y){var v=new FileReader,P=x(v);return v.readAsArrayBuffer(y),P}function w(y){var v=new FileReader,P=x(v),Y=/charset=([A-Za-z0-9_-]+)/.exec(y.type),ce=Y?Y[1]:"utf-8";return v.readAsText(y,ce),P}function _(y){for(var v=new Uint8Array(y),P=new Array(v.length),Y=0;Y<v.length;Y++)P[Y]=String.fromCharCode(v[Y]);return P.join("")}function I(y){if(y.slice)return y.slice(0);var v=new Uint8Array(y.byteLength);return v.set(new Uint8Array(y)),v.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:n.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:n.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():n.arrayBuffer&&n.blob&&a(y)?(this._bodyArrayBuffer=I(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||c(y))?this._bodyArrayBuffer=I(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="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(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var y=b(this);if(y)return y;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 y=b(this);return y||(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 y=b(this);if(y)return y;if(this._bodyBlob)return w(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(qe)}),this.json=function(){return this.text().then(JSON.parse)},this}var M=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function H(y){var v=y.toUpperCase();return M.indexOf(v)>-1?v:y}function W(y,v){if(!(this instanceof W))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var P=v.body;if(y instanceof W){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,v.headers||(this.headers=new g(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!P&&y._bodyInit!=null&&(P=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new g(v.headers)),this.method=H(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in i){var G=new AbortController;return G.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var Y=/([?&])_=[^&]*/;if(Y.test(this.url))this.url=this.url.replace(Y,"$1_="+new Date().getTime());else{var ce=/\?/;this.url+=(ce.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})};function qe(y){var v=new FormData;return y.trim().split("&").forEach(function(P){if(P){var Y=P.split("="),ce=Y.shift().replace(/\+/g," "),G=Y.join("=").replace(/\+/g," ");v.append(decodeURIComponent(ce),decodeURIComponent(G))}}),v}function Rt(y){var v=new g,P=y.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function(Y){return Y.indexOf(`
2
- `)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var ce=Y.split(":"),G=ce.shift().trim();if(G){var Vo=ce.join(":").trim();try{v.append(G,Vo)}catch(mn){console.warn("Response "+mn.message)}}}),v}N.call(W.prototype);function Ge(y,v){if(!(this instanceof Ge))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 g(v.headers),this.url=v.url||"",this._initBody(y)}N.call(Ge.prototype),Ge.prototype.clone=function(){return new Ge(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},Ge.error=function(){var y=new Ge(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Tt=[301,302,303,307,308];Ge.redirect=function(y,v){if(Tt.indexOf(v)===-1)throw new RangeError("Invalid status code");return new Ge(null,{status:v,headers:{location:y}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(v,P){this.message=v,this.name=P;var Y=Error(v);this.stack=Y.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Ne(y,v){return new Promise(function(P,Y){var ce=new W(y,v);if(ce.signal&&ce.signal.aborted)return Y(new r.DOMException("Aborted","AbortError"));var G=new XMLHttpRequest;function Vo(){G.abort()}G.onload=function(){var Le={statusText:G.statusText,headers:Rt(G.getAllResponseHeaders()||"")};ce.url.indexOf("file://")===0&&(G.status<200||G.status>599)?Le.status=200:Le.status=G.status,Le.url="responseURL"in G?G.responseURL:Le.headers.get("X-Request-URL");var br="response"in G?G.response:G.responseText;setTimeout(function(){P(new Ge(br,Le))},0)},G.onerror=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},G.ontimeout=function(){setTimeout(function(){Y(new TypeError("Network request timed out"))},0)},G.onabort=function(){setTimeout(function(){Y(new r.DOMException("Aborted","AbortError"))},0)};function mn(Le){try{return Le===""&&i.location.href?i.location.href:Le}catch{return Le}}if(G.open(ce.method,mn(ce.url),!0),ce.credentials==="include"?G.withCredentials=!0:ce.credentials==="omit"&&(G.withCredentials=!1),"responseType"in G&&(n.blob?G.responseType="blob":n.arrayBuffer&&(G.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof g||i.Headers&&v.headers instanceof i.Headers)){var Va=[];Object.getOwnPropertyNames(v.headers).forEach(function(Le){Va.push(u(Le)),G.setRequestHeader(Le,p(v.headers[Le]))}),ce.headers.forEach(function(Le,br){Va.indexOf(br)===-1&&G.setRequestHeader(br,Le)})}else ce.headers.forEach(function(Le,br){G.setRequestHeader(br,Le)});ce.signal&&(ce.signal.addEventListener("abort",Vo),G.onreadystatechange=function(){G.readyState===4&&ce.signal.removeEventListener("abort",Vo)}),G.send(typeof ce._bodyInit>"u"?null:ce._bodyInit)})}return Ne.polyfill=!0,i.fetch||(i.fetch=Ne,i.Headers=g,i.Request=W,i.Response=Ge),r.Headers=g,r.Request=W,r.Response=Ge,r.fetch=Ne,r}({})})(Yo);Yo.fetch.ponyfill=!0;delete Yo.fetch.polyfill;var jr=qo.fetch?qo:Yo;er=jr.fetch;er.default=jr.fetch;er.fetch=jr.fetch;er.Headers=jr.Headers;er.Request=jr.Request;er.Response=jr.Response;Ys.exports=er});var Ft=xr((Pb,jl)=>{jl.exports=ftGlobals.litClassMap});var Ac=xr((Sx,Ec)=>{Ec.exports=ftGlobals.litUnsafeHTML});var Jn=xr((i0,Xc)=>{Xc.exports=ftGlobals.litRepeat});var Ga=m(T());var Nu=m($()),yt=m(Z()),He=m(T());var jo=m(T()),Ya=m(Z());var bo;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change"})(bo||(bo={}));var st;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(st||(st={}));var Uu=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},xn=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},bn=Symbol("registerInterval"),zu=(0,jo.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[bn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[bn]):this.dispatchEvent(new xn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=bn,Uu([(0,Ya.state)()],r.prototype,"stateManager",void 0),r}),Yt=class extends zu(jo.FtLitElementRedux){};var ye=m($()),me=m(Z()),fn=m(T());var Zs=m($()),J=m(T());var js=m($()),F=m(T());var rs=m($()),be=m(T()),Xa=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorContent),O={color:Xa,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Xa),opacityContentOnSurfacePressed:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:be.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Qa=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorPrimary),Ja={color:Qa,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Qa)},es=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorSecondary),ts={color:es,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",es)},os=rs.css`
1
+ "use strict";(()=>{var zp=Object.create;var vs=Object.defineProperty;var Hp=Object.getOwnPropertyDescriptor;var Wp=Object.getOwnPropertyNames;var Gp=Object.getPrototypeOf,Vp=Object.prototype.hasOwnProperty;var Sr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var jp=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Wp(e))!Vp.call(t,n)&&n!==r&&vs(t,n,{get:()=>e[n],enumerable:!(i=Hp(e,n))||i.enumerable});return t};var m=(t,e,r)=>(r=t!=null?zp(Gp(t)):{},jp(e||!t||!t.__esModule?vs(r,"default",{value:t,enumerable:!0}):r,t));var T=Sr((wf,Ss)=>{Ss.exports=ftGlobals.wcUtils});var $=Sr((Ef,Cs)=>{Cs.exports=ftGlobals.lit});var K=Sr((Af,Os)=>{Os.exports=ftGlobals.litDecorators});var rl=Sr((rr,tl)=>{var ei=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,ti=function(){function t(){this.fetch=!1,this.DOMException=ei.DOMException}return t.prototype=ei,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(y){return y&&DataView.prototype.isPrototypeOf(y)}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(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function p(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function u(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var v={next:function(){var P=y.shift();return{done:P===void 0,value:P}}};return n.iterable&&(v[Symbol.iterator]=function(){return v}),v}function g(y){this.map={},y instanceof g?y.forEach(function(v,P){this.append(P,v)},this):Array.isArray(y)?y.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):y&&Object.getOwnPropertyNames(y).forEach(function(v){this.append(v,y[v])},this)}g.prototype.append=function(y,v){y=p(y),v=u(v);var P=this.map[y];this.map[y]=P?P+", "+v:v},g.prototype.delete=function(y){delete this.map[p(y)]},g.prototype.get=function(y){return y=p(y),this.has(y)?this.map[y]:null},g.prototype.has=function(y){return this.map.hasOwnProperty(p(y))},g.prototype.set=function(y,v){this.map[p(y)]=u(v)},g.prototype.forEach=function(y,v){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(v,this.map[P],P,this)},g.prototype.keys=function(){var y=[];return this.forEach(function(v,P){y.push(P)}),h(y)},g.prototype.values=function(){var y=[];return this.forEach(function(v){y.push(v)}),h(y)},g.prototype.entries=function(){var y=[];return this.forEach(function(v,P){y.push([P,v])}),h(y)},n.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function b(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function x(y){return new Promise(function(v,P){y.onload=function(){v(y.result)},y.onerror=function(){P(y.error)}})}function S(y){var v=new FileReader,P=x(v);return v.readAsArrayBuffer(y),P}function w(y){var v=new FileReader,P=x(v),Y=/charset=([A-Za-z0-9_-]+)/.exec(y.type),ce=Y?Y[1]:"utf-8";return v.readAsText(y,ce),P}function _(y){for(var v=new Uint8Array(y),P=new Array(v.length),Y=0;Y<v.length;Y++)P[Y]=String.fromCharCode(v[Y]);return P.join("")}function I(y){if(y.slice)return y.slice(0);var v=new Uint8Array(y.byteLength);return v.set(new Uint8Array(y)),v.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:n.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:n.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():n.arrayBuffer&&n.blob&&a(y)?(this._bodyArrayBuffer=I(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||c(y))?this._bodyArrayBuffer=I(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="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(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var y=b(this);if(y)return y;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 y=b(this);return y||(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 y=b(this);if(y)return y;if(this._bodyBlob)return w(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(qe)}),this.json=function(){return this.text().then(JSON.parse)},this}var M=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function H(y){var v=y.toUpperCase();return M.indexOf(v)>-1?v:y}function W(y,v){if(!(this instanceof W))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var P=v.body;if(y instanceof W){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,v.headers||(this.headers=new g(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!P&&y._bodyInit!=null&&(P=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new g(v.headers)),this.method=H(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in i){var G=new AbortController;return G.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var Y=/([?&])_=[^&]*/;if(Y.test(this.url))this.url=this.url.replace(Y,"$1_="+new Date().getTime());else{var ce=/\?/;this.url+=(ce.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})};function qe(y){var v=new FormData;return y.trim().split("&").forEach(function(P){if(P){var Y=P.split("="),ce=Y.shift().replace(/\+/g," "),G=Y.join("=").replace(/\+/g," ");v.append(decodeURIComponent(ce),decodeURIComponent(G))}}),v}function Rt(y){var v=new g,P=y.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function(Y){return Y.indexOf(`
2
+ `)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var ce=Y.split(":"),G=ce.shift().trim();if(G){var Xo=ce.join(":").trim();try{v.append(G,Xo)}catch(Cn){console.warn("Response "+Cn.message)}}}),v}L.call(W.prototype);function Ge(y,v){if(!(this instanceof Ge))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 g(v.headers),this.url=v.url||"",this._initBody(y)}L.call(Ge.prototype),Ge.prototype.clone=function(){return new Ge(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},Ge.error=function(){var y=new Ge(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Tt=[301,302,303,307,308];Ge.redirect=function(y,v){if(Tt.indexOf(v)===-1)throw new RangeError("Invalid status code");return new Ge(null,{status:v,headers:{location:y}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(v,P){this.message=v,this.name=P;var Y=Error(v);this.stack=Y.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Ne(y,v){return new Promise(function(P,Y){var ce=new W(y,v);if(ce.signal&&ce.signal.aborted)return Y(new r.DOMException("Aborted","AbortError"));var G=new XMLHttpRequest;function Xo(){G.abort()}G.onload=function(){var ke={statusText:G.statusText,headers:Rt(G.getAllResponseHeaders()||"")};ce.url.indexOf("file://")===0&&(G.status<200||G.status>599)?ke.status=200:ke.status=G.status,ke.url="responseURL"in G?G.responseURL:ke.headers.get("X-Request-URL");var vr="response"in G?G.response:G.responseText;setTimeout(function(){P(new Ge(vr,ke))},0)},G.onerror=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},G.ontimeout=function(){setTimeout(function(){Y(new TypeError("Network request timed out"))},0)},G.onabort=function(){setTimeout(function(){Y(new r.DOMException("Aborted","AbortError"))},0)};function Cn(ke){try{return ke===""&&i.location.href?i.location.href:ke}catch{return ke}}if(G.open(ce.method,Cn(ce.url),!0),ce.credentials==="include"?G.withCredentials=!0:ce.credentials==="omit"&&(G.withCredentials=!1),"responseType"in G&&(n.blob?G.responseType="blob":n.arrayBuffer&&(G.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof g||i.Headers&&v.headers instanceof i.Headers)){var xs=[];Object.getOwnPropertyNames(v.headers).forEach(function(ke){xs.push(p(ke)),G.setRequestHeader(ke,u(v.headers[ke]))}),ce.headers.forEach(function(ke,vr){xs.indexOf(vr)===-1&&G.setRequestHeader(vr,ke)})}else ce.headers.forEach(function(ke,vr){G.setRequestHeader(vr,ke)});ce.signal&&(ce.signal.addEventListener("abort",Xo),G.onreadystatechange=function(){G.readyState===4&&ce.signal.removeEventListener("abort",Xo)}),G.send(typeof ce._bodyInit>"u"?null:ce._bodyInit)})}return Ne.polyfill=!0,i.fetch||(i.fetch=Ne,i.Headers=g,i.Request=W,i.Response=Ge),r.Headers=g,r.Request=W,r.Response=Ge,r.fetch=Ne,r}({})})(ti);ti.fetch.ponyfill=!0;delete ti.fetch.polyfill;var Zr=ei.fetch?ei:ti;rr=Zr.fetch;rr.default=Zr.fetch;rr.fetch=Zr.fetch;rr.Headers=Zr.Headers;rr.Request=Zr.Request;rr.Response=Zr.Response;tl.exports=rr});var Ht=Sr((wx,Jl)=>{Jl.exports=ftGlobals.litClassMap});var kc=Sr((pv,Nc)=>{Nc.exports=ftGlobals.litUnsafeHTML});var Ra=Sr((Z0,id)=>{id.exports=ftGlobals.litRepeat});var bs=m(T());var Bp=m($()),mt=m(K()),He=m(T());var Qo=m(T()),ws=m(K());var wo;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change"})(wo||(wo={}));var lt;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(lt||(lt={}));var Kp=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 Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},On=Symbol("registerInterval"),Zp=(0,Qo.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[On]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[On]):this.dispatchEvent(new wn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=On,Kp([(0,ws.state)()],r.prototype,"stateManager",void 0),r}),Xt=class extends Zp(Qo.FtLitElementRedux){};var ye=m($()),me=m(K()),bn=m(T());var Js=m($()),ee=m(T());var Xs=m($()),F=m(T());var _s=m($()),be=m(T()),Es=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorContent),O={color:Es,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Es),opacityContentOnSurfacePressed:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:be.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},As=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorPrimary),Rs={color:As,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",As)},Ts=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorSecondary),Is={color:Ts,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ts)},Ls=_s.css`
3
3
  :host {
4
4
  display: contents;
5
5
  }
@@ -54,19 +54,19 @@
54
54
  }
55
55
 
56
56
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
57
- background-color: ${ts.backgroundColor};
57
+ background-color: ${Is.backgroundColor};
58
58
  }
59
59
 
60
60
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
61
- background-color: ${ts.color};
61
+ background-color: ${Is.color};
62
62
  }
63
63
 
64
64
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
65
- background-color: ${Ja.backgroundColor};
65
+ background-color: ${Rs.backgroundColor};
66
66
  }
67
67
 
68
68
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
69
- background-color: ${Ja.color};
69
+ background-color: ${Rs.color};
70
70
  }
71
71
 
72
72
  .ft-ripple .ft-ripple--background {
@@ -111,9 +111,9 @@
111
111
  opacity: ${O.opacityContentOnSurfacePressed};
112
112
  transform: translate(-50%, -50%) scale(1);
113
113
  }
114
- `;var ct=m($()),R=m(T());var Mt=m($(),1),Xt=t=>typeof t=="string"?(0,Mt.unsafeCSS)(t):t,o=class{static create(e,r,i,n){let a=c=>Xt(c??n),s=Mt.css`var(${Xt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>is(s,c??a(n)),s.get=c=>Mt.css`var(${Xt(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=c=>i.get(c??n),s=Mt.css`var(${Xt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>is(s,c??a(n)),s.get=c=>Mt.css`var(${Xt(e)}, ${a(c)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.defaultCssValue(a),n=Mt.css`var(${Xt(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>Mt.css`var(${Xt(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function is(t,e){return Xt(`${t.name}: ${e}`)}var l={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ftds-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ftds-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ftds-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ftds-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ftds-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ftds-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ftds-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ftds-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ftds-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},ns={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},as={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},ss={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},ls={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},cs={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},ds={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},us={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},ps={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Mr={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Hu={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},fs={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},hs={fontFamily:o.create("--ftds-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-medium-text-decoration","","UNKNOWN","none")},gs={fontFamily:o.create("--ftds-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},ys={fontFamily:o.create("--ftds-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-bold-text-decoration","","UNKNOWN","none")},ms={fontFamily:o.create("--ftds-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-medium-text-decoration","","UNKNOWN","none")},bs={fontFamily:o.create("--ftds-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},xs={fontFamily:o.create("--ftds-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-bold-text-decoration","","UNKNOWN","none")},vs={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Ss={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Cs={fontFamily:o.create("--ftds-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},vr={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Os={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},ws={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Es={fontFamily:o.create("--ftds-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},As={fontFamily:o.create("--ftds-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},Rs={fontFamily:o.create("--ftds-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},Ko={display:ns,"title-1":as,"title-2":ss,"title-3":ls,"body-1-regular":cs,"body-1-medium":ds,"body-1-semibold":us,"body-2-regular":ps,"body-2-medium":Mr,"body-2-medium-underline":Hu,"body-2-semibold":fs,"label-1-medium":hs,"label-1-semibold":gs,"label-1-bold":ys,"label-2-medium":ms,"label-2-semibold":bs,"label-2-bold":xs,"caption-1-medium":vs,"caption-1-semibold":Ss,"caption-1-bold":Cs,"caption-2-medium":vr,"caption-2-semibold":Os,"caption-2-bold":ws,"caption-3-medium":Es,"caption-3-semibold":As,"caption-3-bold":Rs};var d={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
115
- Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for element like input.",l.colorGray50),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",l.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",l.colorGray200)};var f={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",l.spacing4),largeGap:o.extend("--ftds-button-large-gap","",l.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",l.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",l.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",l.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",l.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",l.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",l.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",l.spacing2),smallGap:o.extend("--ftds-button-small-gap","",l.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",l.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",l.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",l.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",l.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",d.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",d.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",l.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",l.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",l.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",d.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",l.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",l.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",l.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",l.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",d.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",d.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",l.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",l.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",l.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",l.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",d.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",d.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",l.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",l.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",l.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",l.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",d.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",d.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",l.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",l.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",l.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",l.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",d.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",d.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",l.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",l.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",l.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",l.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",d.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",d.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",l.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",l.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",l.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",l.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",d.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",d.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",l.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",l.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",l.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",l.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",d.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",l.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",l.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",l.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",l.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",d.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",d.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",l.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",l.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",l.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",l.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",d.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",d.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",l.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",l.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",l.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",l.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",d.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",d.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",l.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",l.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",l.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",l.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",d.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",d.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",l.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",l.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",l.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",l.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",d.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",d.contentErrorPrimary)};var Mf={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",l.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",l.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",d.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",d.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",d.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",l.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",l.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",l.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",l.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",l.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",l.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",l.spacing3),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",l.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",l.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",d.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",d.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",d.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",d.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",d.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",d.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",d.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",d.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",d.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",d.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",l.spacing3),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",l.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",l.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",l.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",d.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",d.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",d.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",d.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",l.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",l.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",l.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",l.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",d.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",d.contentGlobalSecondary)};var zf={iconSize:o.extend("--ftds-checkbox-icon-size","",l.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ftds-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",l.spacing3),leftPadding:o.extend("--ftds-checkbox-left-padding","",l.spacing2)};var jf={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",d.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",l.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",l.spacing3)};var Xf={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",d.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",d.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",d.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",d.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",d.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",d.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",l.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",l.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",l.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",l.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",l.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",l.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",d.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",l.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",d.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",l.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",l.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",l.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",l.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",l.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",l.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",l.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",l.spacing1)};var rh={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",l.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",l.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",d.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",l.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",d.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",d.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",l.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",l.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",l.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",d.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",l.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",d.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",d.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",l.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",l.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",l.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",l.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",l.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",l.iconSize2)};var sh={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",l.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",l.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",l.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",l.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",l.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",l.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",l.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",l.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",d.borderErrorSubtle)};var ph={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",l.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",l.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",l.colorBrand100)};var mh={iconSize:o.extend("--ftds-banner-icon-size","",l.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",l.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",l.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",l.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",d.borderInfoSubtle)};var Ch={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",l.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",l.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",l.borderRadiusPill),color:o.extend("--ftds-badge-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",d.contentActionPrimary)};var Rh={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",l.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",d.contentGlobalSubtle)};var Lh={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",l.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",l.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",l.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",l.spacing1),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",d.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",l.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",l.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",l.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",l.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",l.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",l.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",l.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",l.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",l.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",l.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",l.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",l.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",l.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",l.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",l.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",l.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",l.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",d.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var $h={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",l.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",l.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",l.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",l.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",d.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",l.spacing4)};var zh={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",l.spacing6)};var jh={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",l.spacing6),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",l.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",l.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",l.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",l.opacity40),shadow:o.extend("--ftds-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",l.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",l.spacing6),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",d.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",l.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",l.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",l.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",l.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ftds-modal-border-radius","",l.borderRadiusM)};var Xh={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",l.opacity40),shadow:o.extend("--ftds-drawer-shadow","",l.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",l.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",l.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",l.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",l.colorGray700)};var rg={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",l.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",l.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",l.opacity40),offColor:o.extend("--ftds-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",d.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",l.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",l.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",l.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",l.opacity24),onColor:o.extend("--ftds-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",l.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var sg={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",l.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",l.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",l.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",l.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",l.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",l.opacity40)};var pg={backgroundColor:o.extend("--ftds-text-area-background-color","",l.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:o.extend("--ftds-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ftds-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ftds-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ftds-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:o.extend("--ftds-text-area-helper-icon-size","",l.iconSize2),borderRadius:o.extend("--ftds-text-area-border-radius","",l.borderRadiusS)};var mg={height:o.create("--ftds-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",l.spacing4),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",d.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",l.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",l.opacity8),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",l.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",l.shadowElevation02)};var Cg={largeFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:o.extend("--ftds-combobox-single-select-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:o.extend("--ftds-combobox-single-select-large-field-vertical-gap","",l.spacing05),largeFieldHeight:o.create("--ftds-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-combobox-single-select-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-combobox-single-select-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:o.create("--ftds-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-combobox-single-select-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:o.extend("--ftds-combobox-single-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-single-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:o.extend("--ftds-combobox-single-select-helper-vertical-gap","",l.spacing1),helperIconSize:o.extend("--ftds-combobox-single-select-helper-icon-size","",l.iconSize2),menuVerticalGap:o.extend("--ftds-combobox-single-select-menu-vertical-gap","",l.spacing2),borderRadius:o.extend("--ftds-combobox-single-select-border-radius","",l.borderRadiusS),backgroundColor:o.extend("--ftds-combobox-single-select-background-color","",l.colorWhite),labelColor:o.extend("--ftds-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:o.extend("--ftds-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:o.create("--ftds-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:o.create("--ftds-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-single-select-disabled-component-opacity","",l.opacity40)};var Rg={backgroundColor:o.extend("--ftds-combobox-multi-select-background-color","",l.colorWhite),labelColor:o.extend("--ftds-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:o.extend("--ftds-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ftds-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:o.extend("--ftds-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:o.create("--ftds-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-multi-select-disabled-component-opacity","",l.opacity40),helperHorizontalPadding:o.extend("--ftds-combobox-multi-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-multi-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:o.extend("--ftds-combobox-multi-select-helper-vertical-gap","",l.spacing1),helperIconSize:o.extend("--ftds-combobox-multi-select-helper-icon-size","",l.iconSize2),fieldHorizontalPadding:o.extend("--ftds-combobox-multi-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ftds-combobox-multi-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ftds-combobox-multi-select-field-vertical-gap","",l.spacing05),fieldIconSize:o.extend("--ftds-combobox-multi-select-field-icon-size","",l.iconSize3),fieldMaxHeight:o.create("--ftds-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ftds-combobox-multi-select-content-values-horizontal-gap","",l.spacing1),contentValuesVerticalGap:o.extend("--ftds-combobox-multi-select-content-values-vertical-gap","",l.spacing1),borderRadius:o.extend("--ftds-combobox-multi-select-border-radius","",l.borderRadiusS)};var Lg={backgroundColor:o.extend("--ftds-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ftds-popover-horizontal-padding","",l.spacing6),verticalPadding:o.extend("--ftds-popover-vertical-padding","",l.spacing6),titleColor:o.extend("--ftds-popover-title-color","",d.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",d.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",l.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",l.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",l.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",l.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",l.spacing6)};var $g={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",l.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",l.spacing3),color:o.extend("--ftds-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",d.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",l.iconSize3)};var Hg={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",l.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",l.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",l.opacity40),offColor:o.extend("--ftds-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",l.opacity40),onColor:o.extend("--ftds-switch-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",l.borderRadiusS)};var jg={color1Light:o.extend("--ftds-chart-1-light","for area color charts",l.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",l.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",l.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",l.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",l.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",l.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",l.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",l.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",l.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",l.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",l.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",l.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",l.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",l.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",l.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",l.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",l.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",l.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",l.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",l.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",l.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",l.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",l.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",l.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",l.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",l.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",l.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",l.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",l.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",l.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",l.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",l.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",l.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",l.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",l.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",l.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",l.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",l.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",l.colorCyan200)};var Yg={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",l.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",l.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",l.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",l.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",l.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",l.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",l.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",l.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",l.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",l.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",l.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",l.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",l.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",l.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",l.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",l.colorBrown0)};var ty={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",l.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",l.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",l.borderRadiusS),gap:o.extend("--ftds-notice-gap","",l.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",l.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",d.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",d.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",d.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",d.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",d.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",l.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",l.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")};var ay={offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",d.contentActionPrimary),color:o.extend("--ftds-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",l.spacing3)};var uy={iconSize:o.extend("--ftds-notification-icon-size","",l.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",l.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",l.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",l.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",d.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",l.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",l.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",l.spacing8)};var yy={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",l.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",l.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",l.borderRadiusS),color:o.extend("--ftds-tooltip-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",l.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",l.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",l.spacing05)};var Sy={verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",l.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",l.spacing1),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",l.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",l.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",d.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",l.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",l.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",l.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",d.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",l.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",d.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",l.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",d.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",l.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",l.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",l.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",l.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",l.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",d.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)};var Ey={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",l.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",l.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",l.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",l.spacing2)};var Zo;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Zo||(Zo={}));var $r;(function(t){t.large="large",t.medium="medium",t.small="small"})($r||($r={}));var Br=m($());function Ts(t,e){let r=Ko[t];return Br.css`
116
- ${e?(0,Br.unsafeCSS)(e):Br.css`.ft-typography--${(0,Br.unsafeCSS)(t)}`} {
114
+ `;var dt=m($()),R=m(T());var Bt=m($(),1),Qt=t=>typeof t=="string"?(0,Bt.unsafeCSS)(t):t,o=class{static create(e,r,i,n){let a=c=>Qt(c??n),s=Bt.css`var(${Qt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>Ns(s,c??a(n)),s.get=c=>Bt.css`var(${Qt(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=c=>i.get(c??n),s=Bt.css`var(${Qt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>Ns(s,c??a(n)),s.get=c=>Bt.css`var(${Qt(e)}, ${a(c)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.defaultCssValue(a),n=Bt.css`var(${Qt(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>Bt.css`var(${Qt(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function Ns(t,e){return Qt(`${t.name}: ${e}`)}var l={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ftds-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ftds-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ftds-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ftds-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ftds-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ftds-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ftds-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ftds-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ftds-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},En={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},An={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Rn={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Tn={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},In={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},_n={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Ln={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Nn={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Cr={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},qp={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},kn={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Pn={fontFamily:o.create("--ftds-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-medium-text-decoration","","UNKNOWN","none")},Dn={fontFamily:o.create("--ftds-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},Mn={fontFamily:o.create("--ftds-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-bold-text-decoration","","UNKNOWN","none")},$n={fontFamily:o.create("--ftds-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-medium-text-decoration","","UNKNOWN","none")},Bn={fontFamily:o.create("--ftds-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},Fn={fontFamily:o.create("--ftds-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-bold-text-decoration","","UNKNOWN","none")},Un={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},zn={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Hn={fontFamily:o.create("--ftds-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},Jt={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Wn={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Gn={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Vn={fontFamily:o.create("--ftds-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},jn={fontFamily:o.create("--ftds-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},Kn={fontFamily:o.create("--ftds-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},Or={display:En,"title-1":An,"title-2":Rn,"title-3":Tn,"body-1-regular":In,"body-1-medium":_n,"body-1-semibold":Ln,"body-2-regular":Nn,"body-2-medium":Cr,"body-2-medium-underline":qp,"body-2-semibold":kn,"label-1-medium":Pn,"label-1-semibold":Dn,"label-1-bold":Mn,"label-2-medium":$n,"label-2-semibold":Bn,"label-2-bold":Fn,"caption-1-medium":Un,"caption-1-semibold":zn,"caption-1-bold":Hn,"caption-2-medium":Jt,"caption-2-semibold":Wn,"caption-2-bold":Gn,"caption-3-medium":Vn,"caption-3-semibold":jn,"caption-3-bold":Kn};var d={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
115
+ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for element like input.",l.colorGray50),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",l.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",l.colorGray200)};var f={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",l.spacing4),largeGap:o.extend("--ftds-button-large-gap","",l.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",l.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",l.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",l.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",l.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",l.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",l.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",l.spacing2),smallGap:o.extend("--ftds-button-small-gap","",l.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",l.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",l.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",l.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",l.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",d.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",d.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",l.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",l.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",l.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",d.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",l.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",l.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",l.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",l.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",d.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",d.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",l.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",l.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",l.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",l.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",d.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",d.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",l.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",l.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",l.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",l.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",d.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",d.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",l.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",l.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",l.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",l.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",d.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",d.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",l.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",l.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",l.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",l.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",d.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",d.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",l.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",l.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",l.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",l.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",d.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",d.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",l.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",l.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",l.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",l.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",d.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",l.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",l.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",l.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",l.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",d.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",d.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",l.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",l.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",l.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",l.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",d.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",d.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",l.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",l.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",l.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",l.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",d.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",d.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",l.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",l.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",l.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",l.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",d.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",d.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",l.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",l.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",l.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",l.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",d.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",d.contentErrorPrimary)};var Gf={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",l.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",l.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",d.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",d.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",d.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",l.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",l.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",l.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",l.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",l.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",l.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",l.spacing3),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",l.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",l.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",d.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",d.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",d.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",d.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",d.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",d.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",d.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",d.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",d.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",d.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",l.spacing3),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",l.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",l.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",l.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",d.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",d.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",d.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",d.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",l.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",l.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",l.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",l.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",d.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",d.contentGlobalSecondary)};var qf={iconSize:o.extend("--ftds-checkbox-icon-size","",l.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ftds-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",l.spacing3),leftPadding:o.extend("--ftds-checkbox-left-padding","",l.spacing2)};var eh={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",d.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",l.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",l.spacing3)};var nh={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",d.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",d.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",d.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",d.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",d.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",d.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",l.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",l.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",l.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",l.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",l.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",l.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",d.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",l.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",d.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",l.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",l.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",l.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",l.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",l.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",l.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",l.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",l.spacing1)};var dh={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",l.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",l.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",d.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",l.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",d.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",d.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",l.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",l.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",l.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",d.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",l.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",d.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",d.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",l.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",l.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",l.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",l.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",l.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",l.iconSize2)};var gh={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",l.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",l.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",l.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",l.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",l.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",l.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",l.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",l.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",d.borderErrorSubtle)};var vh={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",l.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",l.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",l.colorBrand100)};var Eh={iconSize:o.extend("--ftds-banner-icon-size","",l.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",l.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",l.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",l.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",d.borderInfoSubtle)};var _h={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",l.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",l.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",l.borderRadiusPill),color:o.extend("--ftds-badge-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",d.contentActionPrimary)};var Dh={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",l.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",d.contentGlobalSubtle)};var Uh={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",l.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",l.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",l.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",l.spacing1),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",d.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",l.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",l.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",l.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",l.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",l.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",l.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",l.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",l.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",l.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",l.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",l.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",l.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",l.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",l.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",l.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",l.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",l.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",d.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var Vh={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",l.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",l.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",l.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",l.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",d.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",l.spacing4)};var qh={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",l.spacing6)};var eg={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",l.spacing6),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",l.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",l.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",l.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",l.opacity40),shadow:o.extend("--ftds-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",l.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",l.spacing6),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",d.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",l.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",l.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",l.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",l.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ftds-modal-border-radius","",l.borderRadiusM)};var ng={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",l.opacity40),shadow:o.extend("--ftds-drawer-shadow","",l.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",l.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",l.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",l.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",l.colorGray700)};var dg={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",l.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",l.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",l.opacity40),offColor:o.extend("--ftds-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",d.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",l.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",l.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",l.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",l.opacity24),onColor:o.extend("--ftds-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",l.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var gg={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",l.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",l.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",l.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",l.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",l.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",l.opacity40)};var vg={backgroundColor:o.extend("--ftds-text-area-background-color","",l.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:o.extend("--ftds-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ftds-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ftds-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ftds-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:o.extend("--ftds-text-area-helper-icon-size","",l.iconSize2),borderRadius:o.extend("--ftds-text-area-border-radius","",l.borderRadiusS)};var Eg={height:o.create("--ftds-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",l.spacing4),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",d.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",l.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",l.opacity8),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",l.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",l.shadowElevation02)};var _g={largeFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:o.extend("--ftds-combobox-single-select-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:o.extend("--ftds-combobox-single-select-large-field-vertical-gap","",l.spacing05),largeFieldHeight:o.create("--ftds-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-combobox-single-select-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-combobox-single-select-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:o.create("--ftds-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-combobox-single-select-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:o.extend("--ftds-combobox-single-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-single-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:o.extend("--ftds-combobox-single-select-helper-vertical-gap","",l.spacing1),helperIconSize:o.extend("--ftds-combobox-single-select-helper-icon-size","",l.iconSize2),menuVerticalGap:o.extend("--ftds-combobox-single-select-menu-vertical-gap","",l.spacing2),borderRadius:o.extend("--ftds-combobox-single-select-border-radius","",l.borderRadiusS),backgroundColor:o.extend("--ftds-combobox-single-select-background-color","",l.colorWhite),labelColor:o.extend("--ftds-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:o.extend("--ftds-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:o.create("--ftds-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:o.create("--ftds-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-single-select-disabled-component-opacity","",l.opacity40)};var Dg={backgroundColor:o.extend("--ftds-combobox-multi-select-background-color","",l.colorWhite),labelColor:o.extend("--ftds-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:o.extend("--ftds-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ftds-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:o.extend("--ftds-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:o.create("--ftds-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-multi-select-disabled-component-opacity","",l.opacity40),helperHorizontalPadding:o.extend("--ftds-combobox-multi-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-multi-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:o.extend("--ftds-combobox-multi-select-helper-vertical-gap","",l.spacing1),helperIconSize:o.extend("--ftds-combobox-multi-select-helper-icon-size","",l.iconSize2),fieldHorizontalPadding:o.extend("--ftds-combobox-multi-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ftds-combobox-multi-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ftds-combobox-multi-select-field-vertical-gap","",l.spacing05),fieldIconSize:o.extend("--ftds-combobox-multi-select-field-icon-size","",l.iconSize3),fieldMaxHeight:o.create("--ftds-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ftds-combobox-multi-select-content-values-horizontal-gap","",l.spacing1),contentValuesVerticalGap:o.extend("--ftds-combobox-multi-select-content-values-vertical-gap","",l.spacing1),borderRadius:o.extend("--ftds-combobox-multi-select-border-radius","",l.borderRadiusS)};var Ug={backgroundColor:o.extend("--ftds-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ftds-popover-horizontal-padding","",l.spacing6),verticalPadding:o.extend("--ftds-popover-vertical-padding","",l.spacing6),titleColor:o.extend("--ftds-popover-title-color","",d.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",d.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",l.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",l.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",l.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",l.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",l.spacing6)};var Vg={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",l.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",l.spacing3),color:o.extend("--ftds-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",d.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",l.iconSize3)};var Yg={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",l.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",l.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",l.opacity40),offColor:o.extend("--ftds-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",l.opacity40),onColor:o.extend("--ftds-switch-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",l.borderRadiusS)};var ey={color1Light:o.extend("--ftds-chart-1-light","for area color charts",l.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",l.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",l.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",l.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",l.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",l.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",l.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",l.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",l.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",l.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",l.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",l.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",l.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",l.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",l.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",l.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",l.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",l.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",l.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",l.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",l.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",l.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",l.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",l.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",l.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",l.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",l.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",l.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",l.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",l.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",l.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",l.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",l.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",l.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",l.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",l.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",l.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",l.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",l.colorCyan200)};var iy={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",l.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",l.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",l.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",l.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",l.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",l.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",l.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",l.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",l.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",l.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",l.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",l.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",l.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",l.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",l.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",l.colorBrown0)};var cy={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",l.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",l.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",l.borderRadiusS),gap:o.extend("--ftds-notice-gap","",l.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",l.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",d.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",d.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",d.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",d.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",d.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",l.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",l.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")};var hy={offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",d.contentActionPrimary),color:o.extend("--ftds-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",l.spacing3)};var xy={iconSize:o.extend("--ftds-notification-icon-size","",l.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",l.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",l.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",l.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",d.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",l.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",l.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",l.spacing8)};var wy={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",l.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",l.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",l.borderRadiusS),color:o.extend("--ftds-tooltip-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",l.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",l.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",l.spacing05)};var Iy={verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",l.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",l.spacing1),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",l.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",l.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",d.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",l.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",l.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",l.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",d.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",l.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",d.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",l.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",d.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",l.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",l.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",l.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",l.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",l.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",d.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)};var ky={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",l.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",l.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",l.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",l.spacing2)};var Jo;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Jo||(Jo={}));var Fr;(function(t){t.large="large",t.medium="medium",t.small="small"})(Fr||(Fr={}));var Ur=m($());function ks(t,e){let r=Or[t];return Ur.css`
116
+ ${e?(0,Ur.unsafeCSS)(e):Ur.css`.ft-typography--${(0,Ur.unsafeCSS)(t)}`} {
117
117
  font-family: ${r.fontFamily};
118
118
  font-size: ${r.fontSize};
119
119
  font-weight: ${r.fontWeight};
@@ -122,54 +122,26 @@ 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 Is=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.titleFont),$t=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.contentFont),L={fontFamily:$t,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")},Qt={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Is),fontSize:R.FtCssVariableFactory.extend("--ft-typography-title-font-size","",L.fontSize,"20px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",L.letterSpacing,"0.15px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-title-line-height","",L.lineHeight,"1.2"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",L.textTransform,"inherit")},Jt={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Is),fontSize:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",L.letterSpacing,"0.105px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",L.lineHeight,"1.7"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",L.textTransform,"inherit")},Fr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",$t),fontSize:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",L.fontSize,"16px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",L.fontWeight,"600"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",L.letterSpacing,"0.144px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",L.lineHeight,"1.5"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",L.textTransform,"inherit")},Ur={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",$t),fontSize:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",L.letterSpacing,"0.098px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",L.lineHeight,"1.7"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",L.textTransform,"inherit")},lt={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",$t),fontSize:R.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",L.fontSize,"16px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",L.letterSpacing,"0.496px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",L.lineHeight,"1.5"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",L.textTransform,"inherit")},zr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",$t),fontSize:R.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",L.letterSpacing,"0.252px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",L.lineHeight,"1.4"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",L.textTransform,"inherit")},Ie={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",$t),fontSize:R.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",L.fontSize,"12px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",L.letterSpacing,"0.396px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",L.lineHeight,"1.33"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",L.textTransform,"inherit")},Hr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",$t),fontSize:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",L.fontSize,"10px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",L.letterSpacing,"0.33px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",L.lineHeight,"1.6"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",L.textTransform,"inherit")},Wr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",$t),fontSize:R.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",L.fontSize,"10px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",L.letterSpacing,"1.5px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",L.lineHeight,"1.6"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",L.textTransform,"uppercase")},Ve={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-button-font-family","",$t),fontSize:R.FtCssVariableFactory.extend("--ft-typography-button-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",L.fontWeight,"600"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",L.letterSpacing,"1.246px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-button-line-height","",L.lineHeight,"1.15"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",L.textTransform,"uppercase")},_s=ct.css`
125
+ `}var Ps=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.titleFont),Ft=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.contentFont),N={fontFamily:Ft,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")},er={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ps),fontSize:R.FtCssVariableFactory.extend("--ft-typography-title-font-size","",N.fontSize,"20px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",N.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",N.letterSpacing,"0.15px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-title-line-height","",N.lineHeight,"1.2"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",N.textTransform,"inherit")},tr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ps),fontSize:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",N.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",N.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",N.letterSpacing,"0.105px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",N.lineHeight,"1.7"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",N.textTransform,"inherit")},zr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ft),fontSize:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",N.fontSize,"16px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",N.fontWeight,"600"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",N.letterSpacing,"0.144px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",N.lineHeight,"1.5"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",N.textTransform,"inherit")},Hr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ft),fontSize:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",N.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",N.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",N.letterSpacing,"0.098px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",N.lineHeight,"1.7"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",N.textTransform,"inherit")},ct={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ft),fontSize:R.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",N.fontSize,"16px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",N.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",N.letterSpacing,"0.496px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",N.lineHeight,"1.5"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",N.textTransform,"inherit")},Wr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ft),fontSize:R.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",N.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",N.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",N.letterSpacing,"0.252px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",N.lineHeight,"1.4"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",N.textTransform,"inherit")},Ie={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ft),fontSize:R.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",N.fontSize,"12px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",N.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",N.letterSpacing,"0.396px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",N.lineHeight,"1.33"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",N.textTransform,"inherit")},Gr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ft),fontSize:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",N.fontSize,"10px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",N.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",N.letterSpacing,"0.33px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",N.lineHeight,"1.6"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",N.textTransform,"inherit")},Vr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ft),fontSize:R.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",N.fontSize,"10px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",N.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",N.letterSpacing,"1.5px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",N.lineHeight,"1.6"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",N.textTransform,"uppercase")},Ve={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ft),fontSize:R.FtCssVariableFactory.extend("--ft-typography-button-font-size","",N.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",N.fontWeight,"600"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",N.letterSpacing,"1.246px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-button-line-height","",N.lineHeight,"1.15"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",N.textTransform,"uppercase")},Ds=dt.css`
126
126
  .ft-typography--title {
127
- font-family: ${Qt.fontFamily};
128
- font-size: ${Qt.fontSize};
129
- font-weight: ${Qt.fontWeight};
130
- letter-spacing: ${Qt.letterSpacing};
131
- line-height: ${Qt.lineHeight};
132
- text-transform: ${Qt.textTransform};
133
- }
134
- `,Ns=ct.css`
127
+ font-family: ${er.fontFamily};
128
+ font-size: ${er.fontSize};
129
+ font-weight: ${er.fontWeight};
130
+ letter-spacing: ${er.letterSpacing};
131
+ line-height: ${er.lineHeight};
132
+ text-transform: ${er.textTransform};
133
+ }
134
+ `,Ms=dt.css`
135
135
  .ft-typography--title-dense {
136
- font-family: ${Jt.fontFamily};
137
- font-size: ${Jt.fontSize};
138
- font-weight: ${Jt.fontWeight};
139
- letter-spacing: ${Jt.letterSpacing};
140
- line-height: ${Jt.lineHeight};
141
- text-transform: ${Jt.textTransform};
142
- }
143
- `,Ls=ct.css`
136
+ font-family: ${tr.fontFamily};
137
+ font-size: ${tr.fontSize};
138
+ font-weight: ${tr.fontWeight};
139
+ letter-spacing: ${tr.letterSpacing};
140
+ line-height: ${tr.lineHeight};
141
+ text-transform: ${tr.textTransform};
142
+ }
143
+ `,$s=dt.css`
144
144
  .ft-typography--subtitle1 {
145
- font-family: ${Fr.fontFamily};
146
- font-size: ${Fr.fontSize};
147
- font-weight: ${Fr.fontWeight};
148
- letter-spacing: ${Fr.letterSpacing};
149
- line-height: ${Fr.lineHeight};
150
- text-transform: ${Fr.textTransform};
151
- }
152
- `,ks=ct.css`
153
- .ft-typography--subtitle2 {
154
- font-family: ${Ur.fontFamily};
155
- font-size: ${Ur.fontSize};
156
- font-weight: ${Ur.fontWeight};
157
- letter-spacing: ${Ur.letterSpacing};
158
- line-height: ${Ur.lineHeight};
159
- text-transform: ${Ur.textTransform};
160
- }
161
-
162
- `,Gr=ct.css`
163
- .ft-typography--body1 {
164
- font-family: ${lt.fontFamily};
165
- font-size: ${lt.fontSize};
166
- font-weight: ${lt.fontWeight};
167
- letter-spacing: ${lt.letterSpacing};
168
- line-height: ${lt.lineHeight};
169
- text-transform: ${lt.textTransform};
170
- }
171
- `,Ps=ct.css`
172
- .ft-typography--body2 {
173
145
  font-family: ${zr.fontFamily};
174
146
  font-size: ${zr.fontSize};
175
147
  font-weight: ${zr.fontWeight};
@@ -177,17 +149,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
177
149
  line-height: ${zr.lineHeight};
178
150
  text-transform: ${zr.textTransform};
179
151
  }
180
- `,Vr=ct.css`
181
- .ft-typography--caption {
182
- font-family: ${Ie.fontFamily};
183
- font-size: ${Ie.fontSize};
184
- font-weight: ${Ie.fontWeight};
185
- letter-spacing: ${Ie.letterSpacing};
186
- line-height: ${Ie.lineHeight};
187
- text-transform: ${Ie.textTransform};
188
- }
189
- `,Ds=ct.css`
190
- .ft-typography--breadcrumb {
152
+ `,Bs=dt.css`
153
+ .ft-typography--subtitle2 {
191
154
  font-family: ${Hr.fontFamily};
192
155
  font-size: ${Hr.fontSize};
193
156
  font-weight: ${Hr.fontWeight};
@@ -195,8 +158,18 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
195
158
  line-height: ${Hr.lineHeight};
196
159
  text-transform: ${Hr.textTransform};
197
160
  }
198
- `,Ms=ct.css`
199
- .ft-typography--overline {
161
+
162
+ `,jr=dt.css`
163
+ .ft-typography--body1 {
164
+ font-family: ${ct.fontFamily};
165
+ font-size: ${ct.fontSize};
166
+ font-weight: ${ct.fontWeight};
167
+ letter-spacing: ${ct.letterSpacing};
168
+ line-height: ${ct.lineHeight};
169
+ text-transform: ${ct.textTransform};
170
+ }
171
+ `,Fs=dt.css`
172
+ .ft-typography--body2 {
200
173
  font-family: ${Wr.fontFamily};
201
174
  font-size: ${Wr.fontSize};
202
175
  font-weight: ${Wr.fontWeight};
@@ -204,7 +177,34 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
204
177
  line-height: ${Wr.lineHeight};
205
178
  text-transform: ${Wr.textTransform};
206
179
  }
207
- `,$s=ct.css`
180
+ `,Kr=dt.css`
181
+ .ft-typography--caption {
182
+ font-family: ${Ie.fontFamily};
183
+ font-size: ${Ie.fontSize};
184
+ font-weight: ${Ie.fontWeight};
185
+ letter-spacing: ${Ie.letterSpacing};
186
+ line-height: ${Ie.lineHeight};
187
+ text-transform: ${Ie.textTransform};
188
+ }
189
+ `,Us=dt.css`
190
+ .ft-typography--breadcrumb {
191
+ font-family: ${Gr.fontFamily};
192
+ font-size: ${Gr.fontSize};
193
+ font-weight: ${Gr.fontWeight};
194
+ letter-spacing: ${Gr.letterSpacing};
195
+ line-height: ${Gr.lineHeight};
196
+ text-transform: ${Gr.textTransform};
197
+ }
198
+ `,zs=dt.css`
199
+ .ft-typography--overline {
200
+ font-family: ${Vr.fontFamily};
201
+ font-size: ${Vr.fontSize};
202
+ font-weight: ${Vr.fontWeight};
203
+ letter-spacing: ${Vr.letterSpacing};
204
+ line-height: ${Vr.lineHeight};
205
+ text-transform: ${Vr.textTransform};
206
+ }
207
+ `,Hs=dt.css`
208
208
  .ft-typography--button {
209
209
  font-family: ${Ve.fontFamily};
210
210
  font-size: ${Ve.fontSize};
@@ -213,11 +213,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
213
213
  line-height: ${Ve.lineHeight};
214
214
  text-transform: ${Ve.textTransform};
215
215
  }
216
- `,Bs=ct.css`
216
+ `,Ws=dt.css`
217
217
  .ft-typography {
218
218
  vertical-align: inherit;
219
219
  }
220
- `,Fs=[Object.keys(Ko).map(t=>Ts(t))];var Us=m($()),xo=m(T()),ne={color:xo.FtCssVariableFactory.extend("--ft-loader-color","",xo.designSystemVariables.colorPrimary),size:xo.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},zs=Us.css`
220
+ `,Gs=[Object.keys(Or).map(t=>ks(t))];var Vs=m($()),Eo=m(T()),ne={color:Eo.FtCssVariableFactory.extend("--ft-loader-color","",Eo.designSystemVariables.colorPrimary),size:Eo.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},js=Vs.css`
221
221
  :host {
222
222
  line-height: 0;
223
223
  }
@@ -286,7 +286,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
286
286
  transform: translate(calc(0.35 * ${ne.size}), 0);
287
287
  }
288
288
  }
289
- `;var Hs=m($()),bt=m(T()),Oe={size:bt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:bt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",bt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:bt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",bt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:bt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",bt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:bt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ws=[Hs.css`
289
+ `;var Ks=m($()),xt=m(T()),Oe={size:xt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",xt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",xt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",xt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Zs=[Ks.css`
290
290
  :host, i.ft-icon {
291
291
  display: inline-flex;
292
292
  align-items: center;
@@ -334,7 +334,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
334
334
  .ft-icon--material {
335
335
  font-family: ${Oe.materialFontFamily}, "Material Icons", sans-serif;
336
336
  }
337
- `,bt.noTextSelect];var Gs=F.FtCssVariableFactory.extend("--ft-button-color","",F.designSystemVariables.colorPrimary),ee={backgroundColor:F.FtCssVariableFactory.extend("--ft-button-background-color","",F.designSystemVariables.colorSurface),borderRadius:F.FtCssVariableFactory.extend("--ft-button-border-radius","",F.designSystemVariables.borderRadiusL),color:Gs,fontSize:F.FtCssVariableFactory.extend("--ft-button-font-size","",Ve.fontSize),iconSize:F.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:F.FtCssVariableFactory.extend("--ft-button-ripple-color","",Gs),verticalPadding:F.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:F.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:F.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:F.FtCssVariableFactory.external(F.designSystemVariables.colorOpacityDisabled,"Design system")},Vs=F.FtCssVariableFactory.extend("--ft-button-primary-color","",F.FtCssVariableFactory.extend("--ft-button-color","",F.designSystemVariables.colorOnPrimary)),vn={backgroundColor:F.FtCssVariableFactory.extend("--ft-button-primary-background-color","",F.FtCssVariableFactory.extend("--ft-button-background-color","",F.designSystemVariables.colorPrimary)),color:Vs,rippleColor:F.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Vs)},It={borderRadius:F.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",F.FtCssVariableFactory.extend("--ft-button-border-radius","",F.designSystemVariables.borderRadiusM)),verticalPadding:F.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:F.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:F.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Ks=[js.css`
337
+ `,xt.noTextSelect];var qs=F.FtCssVariableFactory.extend("--ft-button-color","",F.designSystemVariables.colorPrimary),te={backgroundColor:F.FtCssVariableFactory.extend("--ft-button-background-color","",F.designSystemVariables.colorSurface),borderRadius:F.FtCssVariableFactory.extend("--ft-button-border-radius","",F.designSystemVariables.borderRadiusL),color:qs,fontSize:F.FtCssVariableFactory.extend("--ft-button-font-size","",Ve.fontSize),iconSize:F.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:F.FtCssVariableFactory.extend("--ft-button-ripple-color","",qs),verticalPadding:F.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:F.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:F.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:F.FtCssVariableFactory.external(F.designSystemVariables.colorOpacityDisabled,"Design system")},Ys=F.FtCssVariableFactory.extend("--ft-button-primary-color","",F.FtCssVariableFactory.extend("--ft-button-color","",F.designSystemVariables.colorOnPrimary)),Zn={backgroundColor:F.FtCssVariableFactory.extend("--ft-button-primary-background-color","",F.FtCssVariableFactory.extend("--ft-button-background-color","",F.designSystemVariables.colorPrimary)),color:Ys,rippleColor:F.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ys)},It={borderRadius:F.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",F.FtCssVariableFactory.extend("--ft-button-border-radius","",F.designSystemVariables.borderRadiusM)),verticalPadding:F.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:F.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:F.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Qs=[Xs.css`
338
338
  :host {
339
339
  display: inline-block;
340
340
  max-width: 100%;
@@ -345,7 +345,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
345
345
  box-shadow: 0px 0px 0px transparent;
346
346
  border: 0px solid transparent;
347
347
  text-shadow: 0px 0px 0px transparent;
348
- font-size: ${ee.fontSize};
348
+ font-size: ${te.fontSize};
349
349
  text-decoration: none;
350
350
  }
351
351
 
@@ -375,21 +375,21 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
375
375
  border: none;
376
376
  pointer-events: auto;
377
377
 
378
- --button-internal-line-height: max(calc(${ee.fontSize} + 2px), ${ee.iconSize});
379
- --button-internal-color: ${ee.color};
380
- ${(0,F.setVariable)(Oe.size,ee.iconSize)};
381
- ${(0,F.setVariable)(O.color,ee.rippleColor)};
378
+ --button-internal-line-height: max(calc(${te.fontSize} + 2px), ${te.iconSize});
379
+ --button-internal-color: ${te.color};
380
+ ${(0,F.setVariable)(Oe.size,te.iconSize)};
381
+ ${(0,F.setVariable)(O.color,te.rippleColor)};
382
382
 
383
- border-radius: ${ee.borderRadius};
384
- padding: ${ee.verticalPadding} ${ee.horizontalPadding};
385
- background-color: ${ee.backgroundColor};
383
+ border-radius: ${te.borderRadius};
384
+ padding: ${te.verticalPadding} ${te.horizontalPadding};
385
+ background-color: ${te.backgroundColor};
386
386
  color: var(--button-internal-color);
387
387
  -webkit-mask-image: radial-gradient(white, black);
388
388
  }
389
389
 
390
390
  .ft-button.ft-button--outlined {
391
391
  border: 1px solid var(--button-internal-color);
392
- padding: calc(${ee.verticalPadding} - 1px) calc(${ee.horizontalPadding} - 1px);
392
+ padding: calc(${te.verticalPadding} - 1px) calc(${te.horizontalPadding} - 1px);
393
393
  }
394
394
 
395
395
  .ft-button.ft-button--dense {
@@ -407,7 +407,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
407
407
  }
408
408
 
409
409
  .ft-button--round {
410
- border-radius: calc(var(--button-internal-line-height) / 2 + ${ee.verticalPadding});
410
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${te.verticalPadding});
411
411
  }
412
412
 
413
413
  .ft-button--round.ft-button--dense {
@@ -416,13 +416,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
416
416
 
417
417
  .ft-button[disabled] {
418
418
  filter: grayscale(1);
419
- opacity: ${ee.opacityDisabled};
419
+ opacity: ${te.opacityDisabled};
420
420
  }
421
421
 
422
422
  .ft-button.ft-button--primary {
423
- background-color: ${vn.backgroundColor};
424
- --button-internal-color: ${vn.color};
425
- ${(0,F.setVariable)(O.color,vn.rippleColor)};
423
+ background-color: ${Zn.backgroundColor};
424
+ --button-internal-color: ${Zn.color};
425
+ ${(0,F.setVariable)(O.color,Zn.rippleColor)};
426
426
  }
427
427
 
428
428
  .ft-button:focus {
@@ -435,7 +435,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
435
435
  white-space: nowrap;
436
436
  text-overflow: ellipsis;
437
437
  display: block;
438
- margin: 0 ${ee.iconPadding};
438
+ margin: 0 ${te.iconPadding};
439
439
  ${(0,F.setVariable)(Ve.fontSize,"1em")};
440
440
  ${(0,F.setVariable)(Ve.lineHeight,"var(--button-internal-line-height)")};
441
441
  }
@@ -454,8 +454,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
454
454
  }
455
455
 
456
456
  .ft-button--label[hidden] + [part="icon"] {
457
- margin: 0 calc(${ee.horizontalPadding} * -1);
458
- padding: 0 ${ee.verticalPadding};
457
+ margin: 0 calc(${te.horizontalPadding} * -1);
458
+ padding: 0 ${te.verticalPadding};
459
459
  }
460
460
 
461
461
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
@@ -468,10 +468,10 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
468
468
  }
469
469
 
470
470
  ft-loader {
471
- ${(0,F.setVariable)(ne.size,ee.iconSize)};
471
+ ${(0,F.setVariable)(ne.size,te.iconSize)};
472
472
  ${(0,F.setVariable)(ne.color,"var(--button-internal-color)")};
473
473
  }
474
- `,F.noTextSelect];var de=m(T());var ue={textColor:de.FtCssVariableFactory.extend("--ft-switch-text-color","",de.designSystemVariables.colorOnSurfaceHigh),backgroundColor:de.FtCssVariableFactory.extend("--ft-switch-background-color","",de.designSystemVariables.colorSurface),selectedTextColor:de.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",de.designSystemVariables.colorPrimary),selectedBackgroundColor:de.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",de.designSystemVariables.colorPrimary),borderColor:de.FtCssVariableFactory.extend("--ft-switch-border-color","",de.designSystemVariables.colorOutline),borderRadius:de.FtCssVariableFactory.extend("--ft-switch-border-radius","",de.designSystemVariables.borderRadiusL),fontSize:de.FtCssVariableFactory.extend("--ft-switch-font-size","",Ve.fontSize),iconSize:de.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:de.FtCssVariableFactory.extend("--ft-switch-text-color","",de.designSystemVariables.colorOnSurfaceMedium),rippleColor:de.FtCssVariableFactory.extend("--ft-switch-ripple-color","",de.designSystemVariables.colorPrimary),outlineColor:de.FtCssVariableFactory.extend("--ft-switch-outline-color","",de.designSystemVariables.colorPrimary)};var _t={feedbackInputMinWidth:J.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:J.FtCssVariableFactory.external(J.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",J.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",J.designSystemVariables.colorPrimary),filledRatingColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",J.designSystemVariables.colorPrimary),emptyRatingColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",J.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:J.FtCssVariableFactory.external(Qt.fontSize,"Typography"),sectionTitleFontSize:J.FtCssVariableFactory.external(Jt.fontSize,"Typography"),starsBackgroundColor:J.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",J.designSystemVariables.colorSurface)},qs=Zs.css`
474
+ `,F.noTextSelect];var de=m(T());var pe={textColor:de.FtCssVariableFactory.extend("--ft-switch-text-color","",de.designSystemVariables.colorOnSurfaceHigh),backgroundColor:de.FtCssVariableFactory.extend("--ft-switch-background-color","",de.designSystemVariables.colorSurface),selectedTextColor:de.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",de.designSystemVariables.colorPrimary),selectedBackgroundColor:de.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",de.designSystemVariables.colorPrimary),borderColor:de.FtCssVariableFactory.extend("--ft-switch-border-color","",de.designSystemVariables.colorOutline),borderRadius:de.FtCssVariableFactory.extend("--ft-switch-border-radius","",de.designSystemVariables.borderRadiusL),fontSize:de.FtCssVariableFactory.extend("--ft-switch-font-size","",Ve.fontSize),iconSize:de.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:de.FtCssVariableFactory.extend("--ft-switch-text-color","",de.designSystemVariables.colorOnSurfaceMedium),rippleColor:de.FtCssVariableFactory.extend("--ft-switch-ripple-color","",de.designSystemVariables.colorPrimary),outlineColor:de.FtCssVariableFactory.extend("--ft-switch-outline-color","",de.designSystemVariables.colorPrimary)};var _t={feedbackInputMinWidth:ee.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:ee.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",ee.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:ee.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",ee.designSystemVariables.colorPrimary),filledRatingColor:ee.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",ee.designSystemVariables.colorPrimary),emptyRatingColor:ee.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",ee.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:ee.FtCssVariableFactory.external(er.fontSize,"Typography"),sectionTitleFontSize:ee.FtCssVariableFactory.external(tr.fontSize,"Typography"),starsBackgroundColor:ee.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",ee.designSystemVariables.colorSurface)},el=Js.css`
475
475
  .ft-reader-feedback {
476
476
  box-sizing: border-box;
477
477
  display: flex;
@@ -484,7 +484,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
484
484
  flex-direction: row;
485
485
  align-items: center;
486
486
  margin-left: -6px;
487
- ${(0,J.setVariable)(ee.backgroundColor,_t.starsBackgroundColor)}
487
+ ${(0,ee.setVariable)(te.backgroundColor,_t.starsBackgroundColor)}
488
488
  }
489
489
 
490
490
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -497,14 +497,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
497
497
  }
498
498
 
499
499
  .ft-reader-feedback--rating {
500
- ${(0,J.setVariable)(ee.color,_t.emptyRatingColor)};
501
- ${(0,J.setVariable)(ee.rippleColor,_t.filledRatingColor)};
502
- ${(0,J.setVariable)(ue.textColor,_t.emptyRatingColor)};
503
- ${(0,J.setVariable)(ue.selectedTextColor,_t.filledRatingColor)};
500
+ ${(0,ee.setVariable)(te.color,_t.emptyRatingColor)};
501
+ ${(0,ee.setVariable)(te.rippleColor,_t.filledRatingColor)};
502
+ ${(0,ee.setVariable)(pe.textColor,_t.emptyRatingColor)};
503
+ ${(0,ee.setVariable)(pe.selectedTextColor,_t.filledRatingColor)};
504
504
  }
505
505
 
506
506
  .ft-reader-feedback--rating .ft-reader-feedback--active {
507
- ${(0,J.setVariable)(ee.color,_t.filledRatingColor)};
507
+ ${(0,ee.setVariable)(te.color,_t.filledRatingColor)};
508
508
  }
509
509
 
510
510
  .ft-reader-feedback--feedback {
@@ -520,35 +520,53 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
520
520
  }
521
521
 
522
522
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
523
- ${(0,J.setVariable)(ee.color,_t.sendFeedbackColor)};
524
- ${(0,J.setVariable)(ee.backgroundColor,_t.sendFeedbackBackgroundColor)};
523
+ ${(0,ee.setVariable)(te.color,_t.sendFeedbackColor)};
524
+ ${(0,ee.setVariable)(te.backgroundColor,_t.sendFeedbackBackgroundColor)};
525
525
  }
526
526
 
527
527
  [part="buttons-container"] {
528
528
  align-self: flex-end;
529
529
  }
530
- `;var Gu=m(Xs(),1);var Qs;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Qs||(Qs={}));var Js;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Js||(Js={}));var el;(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"})(el||(el={}));var tl;(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"})(tl||(tl={}));var rl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(rl||(rl={}));var ol;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ol||(ol={}));var il;(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"})(il||(il={}));var nl;(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"})(nl||(nl={}));var al;(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"})(al||(al={}));var sl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(sl||(sl={}));var ll;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(ll||(ll={}));var cl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(cl||(cl={}));var xe;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(xe||(xe={}));var dl;(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"})(dl||(dl={}));var ul;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ul||(ul={}));var pl;(function(t){t.ASC="ASC",t.DESC="DESC"})(pl||(pl={}));var fl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(fl||(fl={}));var hl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(hl||(hl={}));var gl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(gl||(gl={}));var yl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(yl||(yl={}));var ml;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(ml||(ml={}));var bl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(bl||(bl={}));var xl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(xl||(xl={}));var vl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(vl||(vl={}));var Sl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Sl||(Sl={}));var te;(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"})(te||(te={}));var dt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(dt||(dt={}));var Cl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Cl||(Cl={}));var Ol;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ol||(Ol={}));var wl;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(wl||(wl={}));var El;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(El||(El={}));var Al;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Al||(Al={}));var Wu={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function Rl(t,e){return t===e||(Wu[t]??[]).some(r=>Rl(r,e))}function Bt(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=>Rl(i,e))}var Vl=m(T());var Rn=globalThis,Xo=Rn.trustedTypes,Tl=Xo?Xo.createPolicy("lit-html",{createHTML:t=>t}):void 0,Pl="$lit$",tr=`lit$${Math.random().toFixed(9).slice(2)}$`,Dl="?"+tr,Vu=`<${Dl}>`,Or=document,Qo=()=>Or.createComment(""),So=t=>t===null||typeof t!="object"&&typeof t!="function",Tn=Array.isArray,ju=t=>Tn(t)||typeof t?.[Symbol.iterator]=="function",Sn=`[
531
- \f\r]`,vo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Il=/-->/g,_l=/>/g,Sr=RegExp(`>|${Sn}(?:([^\\s"'>=/]+)(${Sn}*=${Sn}*(?:[^
532
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Nl=/'/g,Ll=/"/g,Ml=/^(?:script|style|textarea|title)$/i,In=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),$l=In(1),Bl=In(2),Fl=In(3),Co=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),kl=new WeakMap,Cr=Or.createTreeWalker(Or,129);function Ul(t,e){if(!Tn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Tl!==void 0?Tl.createHTML(e):e}var Ku=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=vo;for(let c=0;c<r;c++){let u=t[c],p,h,g=-1,b=0;for(;b<u.length&&(s.lastIndex=b,h=s.exec(u),h!==null);)b=s.lastIndex,s===vo?h[1]==="!--"?s=Il:h[1]!==void 0?s=_l:h[2]!==void 0?(Ml.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=Sr):h[3]!==void 0&&(s=Sr):s===Sr?h[0]===">"?(s=n??vo,g=-1):h[1]===void 0?g=-2:(g=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?Sr:h[3]==='"'?Ll:Nl):s===Ll||s===Nl?s=Sr:s===Il||s===_l?s=vo:(s=Sr,n=void 0);let x=s===Sr&&t[c+1].startsWith("/>")?" ":"";a+=s===vo?u+Vu:g>=0?(i.push(p),u.slice(0,g)+Pl+u.slice(g)+tr+x):u+tr+(g===-2?c:x)}return[Ul(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Oo=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,c=e.length-1,u=this.parts,[p,h]=Ku(e,r);if(this.el=t.createElement(p,i),Cr.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=Cr.nextNode())!==null&&u.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(Pl)){let b=h[s++],x=n.getAttribute(g).split(tr),S=/([.?@])?(.*)/.exec(b);u.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?On:S[1]==="?"?wn:S[1]==="@"?En:Zr}),n.removeAttribute(g)}else g.startsWith(tr)&&(u.push({type:6,index:a}),n.removeAttribute(g));if(Ml.test(n.tagName)){let g=n.textContent.split(tr),b=g.length-1;if(b>0){n.textContent=Xo?Xo.emptyScript:"";for(let x=0;x<b;x++)n.append(g[x],Qo()),Cr.nextNode(),u.push({type:2,index:++a});n.append(g[b],Qo())}}}else if(n.nodeType===8)if(n.data===Dl)u.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(tr,g+1))!==-1;)u.push({type:7,index:a}),g+=tr.length-1}a++}}static createElement(e,r){let i=Or.createElement("template");return i.innerHTML=e,i}};function Kr(t,e,r=t,i){if(e===Co)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=So(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=Kr(t,n._$AS(t,e.values),n,i)),e}var Cn=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??Or).importNode(r,!0);Cr.currentNode=n;let a=Cr.nextNode(),s=0,c=0,u=i[0];for(;u!==void 0;){if(s===u.index){let p;u.type===2?p=new Jo(a,a.nextSibling,this,e):u.type===1?p=new u.ctor(a,u.name,u.strings,this,e):u.type===6&&(p=new An(a,this,e)),this._$AV.push(p),u=i[++c]}s!==u?.index&&(a=Cr.nextNode(),s++)}return Cr.currentNode=Or,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++}},Jo=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=ve,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=Kr(this,e,r),So(e)?e===ve||e==null||e===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):e!==this._$AH&&e!==Co&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ju(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!==ve&&So(this._$AH)?this._$AA.nextSibling.data=e:this.T(Or.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=Oo.createElement(Ul(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Cn(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=kl.get(e.strings);return r===void 0&&kl.set(e.strings,r=new Oo(e)),r}k(e){Tn(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(Qo()),this.O(Qo()),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))}},Zr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=ve,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=ve}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Kr(this,e,r,0),s=!So(e)||e!==this._$AH&&e!==Co,s&&(this._$AH=e);else{let c=e,u,p;for(e=a[0],u=0;u<a.length-1;u++)p=Kr(this,c[i+u],r,u),p===Co&&(p=this._$AH[u]),s||=!So(p)||p!==this._$AH[u],p===ve?e=ve:e!==ve&&(e+=(p??"")+a[u+1]),this._$AH[u]=p}s&&!n&&this.j(e)}j(e){e===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},On=class extends Zr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ve?void 0:e}},wn=class extends Zr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ve)}},En=class extends Zr{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=Kr(this,e,r,0)??ve)===Co)return;let i=this._$AH,n=e===ve&&i!==ve||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==ve&&(i===ve||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)}},An=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){Kr(this,e)}};var Zu=Rn.litHtmlPolyfillSupport;Zu?.(Oo,Jo),(Rn.litHtmlVersions??=[]).push("3.3.0");var Hl=Symbol.for(""),qu=t=>{if(t?.r===Hl)return t?._$litStatic$},_n=t=>({_$litStatic$:t,r:Hl});var zl=new Map,Nn=t=>(e,...r)=>{let i=r.length,n,a,s=[],c=[],u,p=0,h=!1;for(;p<i;){for(u=e[p];p<i&&(a=r[p],(n=qu(a))!==void 0);)u+=n+e[++p],h=!0;p!==i&&c.push(a),s.push(u),p++}if(p===i&&s.push(e[i]),h){let g=s.join("$$lit$$");(e=zl.get(g))===void 0&&(s.raw=s,zl.set(g,e=s)),r=c}return t(e,...r)},Ln=Nn($l),xb=Nn(Bl),vb=Nn(Fl);var kn=m(Z()),Gl=m(T());var rr;(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"})(rr||(rr={}));var Wl=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},pe=class extends Gl.FtLitElement{constructor(){super(...arguments),this.variant=rr.body1}render(){return this.element?Ln`
533
- <${_n(this.element)}
530
+ `;var Xp=m(rl(),1);var ol;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ol||(ol={}));var il;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(il||(il={}));var nl;(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"})(nl||(nl={}));var al;(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"})(al||(al={}));var sl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(sl||(sl={}));var ll;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ll||(ll={}));var cl;(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"})(cl||(cl={}));var dl;(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"})(dl||(dl={}));var pl;(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"})(pl||(pl={}));var ul;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ul||(ul={}));var fl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(fl||(fl={}));var hl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(hl||(hl={}));var xe;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(xe||(xe={}));var gl;(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"})(gl||(gl={}));var yl;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(yl||(yl={}));var ml;(function(t){t.ASC="ASC",t.DESC="DESC"})(ml||(ml={}));var bl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(bl||(bl={}));var xl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(xl||(xl={}));var vl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(vl||(vl={}));var Sl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Sl||(Sl={}));var Cl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Cl||(Cl={}));var Ol;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ol||(Ol={}));var wl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(wl||(wl={}));var El;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(El||(El={}));var Al;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Al||(Al={}));var re;(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"})(re||(re={}));var pt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(pt||(pt={}));var Rl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Rl||(Rl={}));var Tl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Tl||(Tl={}));var Il;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Il||(Il={}));var _l;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(_l||(_l={}));var Ll;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Ll||(Ll={}));var Yp={[re.PERSONAL_BOOK_SHARE_USER]:[re.PERSONAL_BOOK_USER],[re.HTML_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.PDF_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.KHUB_ADMIN]:[re.CONTENT_PUBLISHER],[re.ADMIN]:[re.KHUB_ADMIN,re.USERS_ADMIN,re.PORTAL_ADMIN],[re.GENERATIVE_AI_EXPORT_USER]:[re.GENERATIVE_AI_USER]};function Nl(t,e){return t===e||(Yp[t]??[]).some(r=>Nl(r,e))}function Ut(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=>Nl(i,e))}var sa=m(T());var ta=globalThis,ri=ta.trustedTypes,kl=ri?ri.createPolicy("lit-html",{createHTML:t=>t}):void 0,Fl="$lit$",or=`lit$${Math.random().toFixed(9).slice(2)}$`,Ul="?"+or,Qp=`<${Ul}>`,Ar=document,oi=()=>Ar.createComment(""),Ro=t=>t===null||typeof t!="object"&&typeof t!="function",ra=Array.isArray,Jp=t=>ra(t)||typeof t?.[Symbol.iterator]=="function",qn=`[
531
+ \f\r]`,Ao=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Pl=/-->/g,Dl=/>/g,wr=RegExp(`>|${qn}(?:([^\\s"'>=/]+)(${qn}*=${qn}*(?:[^
532
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ml=/'/g,$l=/"/g,zl=/^(?:script|style|textarea|title)$/i,oa=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Hl=oa(1),Wl=oa(2),Gl=oa(3),To=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),Bl=new WeakMap,Er=Ar.createTreeWalker(Ar,129);function Vl(t,e){if(!ra(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return kl!==void 0?kl.createHTML(e):e}var eu=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Ao;for(let c=0;c<r;c++){let p=t[c],u,h,g=-1,b=0;for(;b<p.length&&(s.lastIndex=b,h=s.exec(p),h!==null);)b=s.lastIndex,s===Ao?h[1]==="!--"?s=Pl:h[1]!==void 0?s=Dl:h[2]!==void 0?(zl.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=wr):h[3]!==void 0&&(s=wr):s===wr?h[0]===">"?(s=n??Ao,g=-1):h[1]===void 0?g=-2:(g=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?wr:h[3]==='"'?$l:Ml):s===$l||s===Ml?s=wr:s===Pl||s===Dl?s=Ao:(s=wr,n=void 0);let x=s===wr&&t[c+1].startsWith("/>")?" ":"";a+=s===Ao?p+Qp:g>=0?(i.push(u),p.slice(0,g)+Fl+p.slice(g)+or+x):p+or+(g===-2?c:x)}return[Vl(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Io=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,h]=eu(e,r);if(this.el=t.createElement(u,i),Er.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=Er.nextNode())!==null&&p.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(Fl)){let b=h[s++],x=n.getAttribute(g).split(or),S=/([.?@])?(.*)/.exec(b);p.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?Xn:S[1]==="?"?Qn:S[1]==="@"?Jn:Yr}),n.removeAttribute(g)}else g.startsWith(or)&&(p.push({type:6,index:a}),n.removeAttribute(g));if(zl.test(n.tagName)){let g=n.textContent.split(or),b=g.length-1;if(b>0){n.textContent=ri?ri.emptyScript:"";for(let x=0;x<b;x++)n.append(g[x],oi()),Er.nextNode(),p.push({type:2,index:++a});n.append(g[b],oi())}}}else if(n.nodeType===8)if(n.data===Ul)p.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(or,g+1))!==-1;)p.push({type:7,index:a}),g+=or.length-1}a++}}static createElement(e,r){let i=Ar.createElement("template");return i.innerHTML=e,i}};function qr(t,e,r=t,i){if(e===To)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=Ro(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=qr(t,n._$AS(t,e.values),n,i)),e}var Yn=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??Ar).importNode(r,!0);Er.currentNode=n;let a=Er.nextNode(),s=0,c=0,p=i[0];for(;p!==void 0;){if(s===p.index){let u;p.type===2?u=new ii(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=Er.nextNode(),s++)}return Er.currentNode=Ar,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++}},ii=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=ve,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=qr(this,e,r),Ro(e)?e===ve||e==null||e===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):e!==this._$AH&&e!==To&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Jp(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!==ve&&Ro(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ar.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=Io.createElement(Vl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Yn(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=Bl.get(e.strings);return r===void 0&&Bl.set(e.strings,r=new Io(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(oi()),this.O(oi()),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))}},Yr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=ve,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=ve}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=qr(this,e,r,0),s=!Ro(e)||e!==this._$AH&&e!==To,s&&(this._$AH=e);else{let c=e,p,u;for(e=a[0],p=0;p<a.length-1;p++)u=qr(this,c[i+p],r,p),u===To&&(u=this._$AH[p]),s||=!Ro(u)||u!==this._$AH[p],u===ve?e=ve:e!==ve&&(e+=(u??"")+a[p+1]),this._$AH[p]=u}s&&!n&&this.j(e)}j(e){e===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Xn=class extends Yr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ve?void 0:e}},Qn=class extends Yr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ve)}},Jn=class extends Yr{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=qr(this,e,r,0)??ve)===To)return;let i=this._$AH,n=e===ve&&i!==ve||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==ve&&(i===ve||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){qr(this,e)}};var tu=ta.litHtmlPolyfillSupport;tu?.(Io,ii),(ta.litHtmlVersions??=[]).push("3.3.0");var Kl=Symbol.for(""),ru=t=>{if(t?.r===Kl)return t?._$litStatic$},Xr=t=>({_$litStatic$:t,r:Kl});var jl=new Map,ia=t=>(e,...r)=>{let i=r.length,n,a,s=[],c=[],p,u=0,h=!1;for(;u<i;){for(p=e[u];u<i&&(a=r[u],(n=ru(a))!==void 0);)p+=n+e[++u],h=!0;u!==i&&c.push(a),s.push(p),u++}if(u===i&&s.push(e[i]),h){let g=s.join("$$lit$$");(e=jl.get(g))===void 0&&(s.raw=s,jl.set(g,e=s)),r=c}return t(e,...r)},Qr=ia(Hl),Rb=ia(Wl),Tb=ia(Gl);var na=m(K()),ql=m(T());var Jr;(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"})(Jr||(Jr={}));var Zl=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 ql.FtLitElement{constructor(){super(...arguments),this.variant=Jr.body1}render(){return this.element?Qr`
533
+ <${Xr(this.element)}
534
534
  part="text"
535
535
  class="ft-typography ft-typography--${this.variant}">
536
536
  <slot></slot>
537
- </${_n(this.element)}>
538
- `:Ln`
537
+ </${Xr(this.element)}>
538
+ `:Qr`
539
539
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
540
- `}};pe.styles=[_s,Ns,Ls,ks,Gr,Ps,Vr,Ds,Ms,$s,Bs,...Fs];Wl([(0,kn.property)()],pe.prototype,"element",void 0);Wl([(0,kn.property)()],pe.prototype,"variant",void 0);(0,Vl.customElement)("ft-typography")(pe);var Zn=m(T());var ai=m($()),Lt=m(Z()),kc=m(Ft()),Gt=m(T());var eo=m($()),Je=m(Z()),to=m(T());var ql=m(T());var Kl=m($()),ke=m(Z()),Zl=m(Ft()),wo=m(T());var Ye=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 wo.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 wo.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 wo.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 Kl.html`
540
+ `}};ue.styles=[Ds,Ms,$s,Bs,jr,Fs,Kr,Us,zs,Hs,Ws,...Gs];Zl([(0,na.property)()],ue.prototype,"element",void 0);Zl([(0,na.property)()],ue.prototype,"variant",void 0);var aa=m(K()),Ql=m(T());var ir;(function(t){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"})(ir||(ir={}));var eo=m($());function ou(t,e){let r=Or[t];return eo.css`
541
+ ${e?(0,eo.unsafeCSS)(e):eo.css`.ftds-typography--${(0,eo.unsafeCSS)(t)}`} {
542
+ font-family: ${r.fontFamily};
543
+ font-size: ${r.fontSize};
544
+ font-weight: ${r.fontWeight};
545
+ letter-spacing: ${r.letterSpacing};
546
+ line-height: ${r.lineHeight};
547
+ text-decoration: ${r.textDecoration};
548
+ text-transform: ${r.textCase};
549
+ }
550
+ `}var Yl=[Object.keys(Or).map(t=>ou(t))];var Xl=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},zt=class extends Ql.FtLitElement{constructor(){super(...arguments),this.variant=ir.body2medium}render(){return this.element?Qr`
551
+ <${Xr(this.element)}
552
+ part="text"
553
+ class="ftds-typography ftds-typography--${this.variant}">
554
+ <slot></slot>
555
+ </${Xr(this.element)}>
556
+ `:Qr`
557
+ <slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
558
+ `}};zt.styles=[...Yl];Xl([(0,aa.property)()],zt.prototype,"element",void 0);Xl([(0,aa.property)()],zt.prototype,"variant",void 0);(0,sa.customElement)("ft-typography")(ue);(0,sa.customElement)("ftds-typography")(zt);var Ca=m(T());var pi=m($()),Nt=m(K()),Uc=m(Ht()),Kt=m(T());var ao=m($()),Je=m(K()),so=m(T());var rc=m(T());var ec=m($()),Pe=m(K()),tc=m(Ht()),_o=m(T());var Ye=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},Z=class extends _o.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 _o.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 _o.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 ec.html`
541
559
  <style>
542
560
  .ft-ripple .ft-ripple--effect {
543
561
  left: ${this.originX}px;
544
562
  top: ${this.originY}px;
545
563
  }
546
564
  </style>
547
- <div class="${(0,Zl.classMap)(e)}">
565
+ <div class="${(0,tc.classMap)(e)}">
548
566
  <div class="ft-ripple--background"></div>
549
567
  <div class="ft-ripple--effect"></div>
550
568
  </div>
551
- `}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)=>u=>{c.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},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=os;Ye([(0,ke.property)({type:Boolean})],K.prototype,"primary",void 0);Ye([(0,ke.property)({type:Boolean})],K.prototype,"secondary",void 0);Ye([(0,ke.property)({type:Boolean})],K.prototype,"unbounded",void 0);Ye([(0,ke.property)({type:Boolean})],K.prototype,"activated",void 0);Ye([(0,ke.property)({type:Boolean})],K.prototype,"selected",void 0);Ye([(0,ke.property)({type:Boolean})],K.prototype,"disabled",void 0);Ye([(0,ke.state)()],K.prototype,"hovered",void 0);Ye([(0,ke.state)()],K.prototype,"focused",void 0);Ye([(0,ke.state)()],K.prototype,"pressed",void 0);Ye([(0,ke.state)()],K.prototype,"rippling",void 0);Ye([(0,ke.state)()],K.prototype,"originX",void 0);Ye([(0,ke.state)()],K.prototype,"originY",void 0);Ye([(0,ke.query)(".ft-ripple")],K.prototype,"ripple",void 0);Ye([(0,ke.query)(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);(0,ql.customElement)("ft-ripple")(K);var Lc=m(Ft());var wc=m(T());var Oc=m($()),ot=m(Z()),Qe=m(T());var Yl=m($()),Ut=m(T()),qr={distance:Ut.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ut.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ut.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Ut.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Ut.FtCssVariableFactory.external(Ut.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Ut.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Xl=Yl.css`
569
+ `}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()}};Z.elementDefinitions={};Z.styles=Ls;Ye([(0,Pe.property)({type:Boolean})],Z.prototype,"primary",void 0);Ye([(0,Pe.property)({type:Boolean})],Z.prototype,"secondary",void 0);Ye([(0,Pe.property)({type:Boolean})],Z.prototype,"unbounded",void 0);Ye([(0,Pe.property)({type:Boolean})],Z.prototype,"activated",void 0);Ye([(0,Pe.property)({type:Boolean})],Z.prototype,"selected",void 0);Ye([(0,Pe.property)({type:Boolean})],Z.prototype,"disabled",void 0);Ye([(0,Pe.state)()],Z.prototype,"hovered",void 0);Ye([(0,Pe.state)()],Z.prototype,"focused",void 0);Ye([(0,Pe.state)()],Z.prototype,"pressed",void 0);Ye([(0,Pe.state)()],Z.prototype,"rippling",void 0);Ye([(0,Pe.state)()],Z.prototype,"originX",void 0);Ye([(0,Pe.state)()],Z.prototype,"originY",void 0);Ye([(0,Pe.query)(".ft-ripple")],Z.prototype,"ripple",void 0);Ye([(0,Pe.query)(".ft-ripple--effect")],Z.prototype,"rippleEffect",void 0);(0,rc.customElement)("ft-ripple")(Z);var Fc=m(Ht());var Lc=m(T());var _c=m($()),ot=m(K()),Qe=m(T());var oc=m($()),Wt=m(T()),to={distance:Wt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Wt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Wt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Wt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Wt.FtCssVariableFactory.external(Wt.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Wt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},ic=oc.css`
552
570
  .ft-tooltip--container {
553
571
  display: block;
554
572
  }
@@ -563,21 +581,21 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
563
581
  box-sizing: border-box;
564
582
  overflow: hidden;
565
583
  width: max-content;
566
- max-width: ${qr.maxWidth};
584
+ max-width: ${to.maxWidth};
567
585
  text-align: center;
568
- padding: ${qr.distance};
569
- z-index: ${qr.zIndex};
586
+ padding: ${to.distance};
587
+ z-index: ${to.zIndex};
570
588
  }
571
589
 
572
590
  .ft-tooltip--content {
573
591
  padding: 4px 8px;
574
- border-radius: ${qr.borderRadiusS};
575
- background-color: ${qr.backgroundColor};
576
- color: ${qr.color};
592
+ border-radius: ${to.borderRadiusS};
593
+ background-color: ${to.backgroundColor};
594
+ color: ${to.color};
577
595
  position: relative;
578
596
  word-break: break-word;
579
597
  }
580
- `;var Jl=["top","right","bottom","left"],Ql=["start","end"],Dn=Jl.reduce((t,e)=>t.concat(e,e+"-"+Ql[0],e+"-"+Ql[1]),[]),ec=Math.min,tc=Math.max;var Yu={left:"right",right:"left",bottom:"top",top:"bottom"},Xu={start:"end",end:"start"};function Mn(t,e,r){return tc(t,ec(e,r))}function ei(t,e){return typeof t=="function"?t(e):t}function Yr(t){return t.split("-")[0]}function or(t){return t.split("-")[1]}function $n(t){return t==="x"?"y":"x"}function Bn(t){return t==="y"?"height":"width"}function ti(t){return["top","bottom"].includes(Yr(t))?"y":"x"}function Fn(t){return $n(ti(t))}function rc(t,e,r){r===void 0&&(r=!1);let i=or(t),n=Fn(t),a=Bn(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Pn(s)),[s,Pn(s)]}function oc(t){return t.replace(/start|end/g,e=>Xu[e])}function Pn(t){return t.replace(/left|right|bottom|top/g,e=>Yu[e])}function Qu(t){return{top:0,right:0,bottom:0,left:0,...t}}function ic(t){return typeof t!="number"?Qu(t):{top:t,right:t,bottom:t,left:t}}function wr(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 nc(t,e,r){let{reference:i,floating:n}=t,a=ti(e),s=Fn(e),c=Bn(s),u=Yr(e),p=a==="y",h=i.x+i.width/2-n.width/2,g=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,x;switch(u){case"top":x={x:h,y:i.y-n.height};break;case"bottom":x={x:h,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:g};break;case"left":x={x:i.x-n.width,y:g};break;default:x={x:i.x,y:i.y}}switch(or(e)){case"start":x[s]-=b*(r&&p?-1:1);break;case"end":x[s]+=b*(r&&p?-1:1);break}return x}var ac=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,c=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:h,y:g}=nc(p,i,u),b=i,x={},S=0;for(let w=0;w<c.length;w++){let{name:_,fn:I}=c[w],{x:N,y:M,data:H,reset:W}=await I({x:h,y:g,initialPlacement:i,placement:b,strategy:n,middlewareData:x,rects:p,platform:s,elements:{reference:t,floating:e}});h=N??h,g=M??g,x={...x,[_]:{...x[_],...H}},W&&S<=50&&(S++,typeof W=="object"&&(W.placement&&(b=W.placement),W.rects&&(p=W.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):W.rects),{x:h,y:g}=nc(p,b,u)),w=-1)}return{x:h,y:g,placement:b,strategy:n,middlewareData:x}};async function Un(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:u}=t,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:b=!1,padding:x=0}=ei(e,t),S=ic(x),_=c[b?g==="floating"?"reference":"floating":g],I=wr(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:p,rootBoundary:h,strategy:u})),N=g==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),H=await(a.isElement==null?void 0:a.isElement(M))?await(a.getScale==null?void 0:a.getScale(M))||{x:1,y:1}:{x:1,y:1},W=wr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:M,strategy:u}):N);return{top:(I.top-W.top+S.top)/H.y,bottom:(W.bottom-I.bottom+S.bottom)/H.y,left:(I.left-W.left+S.left)/H.x,right:(W.right-I.right+S.right)/H.x}}function Ju(t,e,r){return(t?[...r.filter(n=>or(n)===t),...r.filter(n=>or(n)!==t)]:r.filter(n=>Yr(n)===n)).filter(n=>t?or(n)===t||(e?oc(n)!==n:!1):!0)}var zn=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:u,elements:p}=e,{crossAxis:h=!1,alignment:g,allowedPlacements:b=Dn,autoAlignment:x=!0,...S}=ei(t,e),w=g!==void 0||b===Dn?Ju(g||null,x,b):b,_=await Un(e,S),I=((r=s.autoPlacement)==null?void 0:r.index)||0,N=w[I];if(N==null)return{};let M=rc(N,a,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(c!==N)return{reset:{placement:w[0]}};let H=[_[Yr(N)],_[M[0]],_[M[1]]],W=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:N,overflows:H}],qe=w[I+1];if(qe)return{data:{index:I+1,overflows:W},reset:{placement:qe}};let Rt=W.map(Ne=>{let y=or(Ne.placement);return[Ne.placement,y&&h?Ne.overflows.slice(0,2).reduce((v,P)=>v+P,0):Ne.overflows[0],Ne.overflows]}).sort((Ne,y)=>Ne[1]-y[1]),Tt=((n=Rt.filter(Ne=>Ne[2].slice(0,or(Ne[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||Rt[0][0];return Tt!==c?{data:{index:I+1,overflows:W},reset:{placement:Tt}}:{}}}};var Hn=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:I,y:N}=_;return{x:I,y:N}}},...u}=ei(t,e),p={x:r,y:i},h=await Un(e,u),g=ti(Yr(n)),b=$n(g),x=p[b],S=p[g];if(a){let _=b==="y"?"top":"left",I=b==="y"?"bottom":"right",N=x+h[_],M=x-h[I];x=Mn(N,x,M)}if(s){let _=g==="y"?"top":"left",I=g==="y"?"bottom":"right",N=S+h[_],M=S-h[I];S=Mn(N,S,M)}let w=c.fn({...e,[b]:x,[g]:S});return{...w,data:{x:w.x-r,y:w.y-i,enabled:{[b]:a,[g]:s}}}}}};var Wn=Math.min,Xr=Math.max,Eo=Math.round;var zt=t=>({x:t,y:t});function Ht(t){return lc(t)?(t.nodeName||"").toLowerCase():"#document"}function Xe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Wt(t){var e;return(e=(lc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function lc(t){return t instanceof Node||t instanceof Xe(t).Node}function Nt(t){return t instanceof Element||t instanceof Xe(t).Element}function xt(t){return t instanceof HTMLElement||t instanceof Xe(t).HTMLElement}function sc(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Xe(t).ShadowRoot}function Qr(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function cc(t){return["table","td","th"].includes(Ht(t))}function oi(t){let e=ii(),r=rt(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 dc(t){let e=Er(t);for(;xt(e)&&!Ao(e);){if(oi(e))return e;e=Er(e)}return null}function ii(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ao(t){return["html","body","#document"].includes(Ht(t))}function rt(t){return Xe(t).getComputedStyle(t)}function Ro(t){return Nt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Er(t){if(Ht(t)==="html")return t;let e=t.assignedSlot||t.parentNode||sc(t)&&t.host||Wt(t);return sc(e)?e.host:e}function uc(t){let e=Er(t);return Ao(e)?t.ownerDocument?t.ownerDocument.body:t.body:xt(e)&&Qr(e)?e:uc(e)}function ri(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=uc(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Xe(n);return a?e.concat(s,s.visualViewport||[],Qr(n)?n:[],s.frameElement&&r?ri(s.frameElement):[]):e.concat(n,ri(n,[],r))}function hc(t){let e=rt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=xt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,c=Eo(r)!==a||Eo(i)!==s;return c&&(r=a,i=s),{width:r,height:i,$:c}}function gc(t){return Nt(t)?t:t.contextElement}function Jr(t){let e=gc(t);if(!xt(e))return zt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=hc(e),s=(a?Eo(r.width):r.width)/i,c=(a?Eo(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var rp=zt(0);function yc(t){let e=Xe(t);return!ii()||!e.visualViewport?rp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function op(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Xe(t)?!1:e}function To(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=gc(t),s=zt(1);e&&(i?Nt(i)&&(s=Jr(i)):s=Jr(t));let c=op(a,r,i)?yc(a):zt(0),u=(n.left+c.x)/s.x,p=(n.top+c.y)/s.y,h=n.width/s.x,g=n.height/s.y;if(a){let b=Xe(a),x=i&&Nt(i)?Xe(i):i,S=b.frameElement;for(;S&&i&&x!==b;){let w=Jr(S),_=S.getBoundingClientRect(),I=rt(S),N=_.left+(S.clientLeft+parseFloat(I.paddingLeft))*w.x,M=_.top+(S.clientTop+parseFloat(I.paddingTop))*w.y;u*=w.x,p*=w.y,h*=w.x,g*=w.y,u+=N,p+=M,S=Xe(S).frameElement}}return wr({width:h,height:g,x:u,y:p})}function ip(t){let{rect:e,offsetParent:r,strategy:i}=t,n=xt(r),a=Wt(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},c=zt(1),u=zt(0);if((n||!n&&i!=="fixed")&&((Ht(r)!=="body"||Qr(a))&&(s=Ro(r)),xt(r))){let p=To(r);c=Jr(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+u.x,y:e.y*c.y-s.scrollTop*c.y+u.y}}function np(t){return Array.from(t.getClientRects())}function mc(t){return To(Wt(t)).left+Ro(t).scrollLeft}function ap(t){let e=Wt(t),r=Ro(t),i=t.ownerDocument.body,n=Xr(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=Xr(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+mc(t),c=-r.scrollTop;return rt(i).direction==="rtl"&&(s+=Xr(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function sp(t,e){let r=Xe(t),i=Wt(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,u=0;if(n){a=n.width,s=n.height;let p=ii();(!p||p&&e==="fixed")&&(c=n.offsetLeft,u=n.offsetTop)}return{width:a,height:s,x:c,y:u}}function lp(t,e){let r=To(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=xt(t)?Jr(t):zt(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,u=n*a.x,p=i*a.y;return{width:s,height:c,x:u,y:p}}function pc(t,e,r){let i;if(e==="viewport")i=sp(t,r);else if(e==="document")i=ap(Wt(t));else if(Nt(e))i=lp(e,r);else{let n=yc(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return wr(i)}function bc(t,e){let r=Er(t);return r===e||!Nt(r)||Ao(r)?!1:rt(r).position==="fixed"||bc(r,e)}function cp(t,e){let r=e.get(t);if(r)return r;let i=ri(t,[],!1).filter(c=>Nt(c)&&Ht(c)!=="body"),n=null,a=rt(t).position==="fixed",s=a?Er(t):t;for(;Nt(s)&&!Ao(s);){let c=rt(s),u=oi(s);!u&&c.position==="fixed"&&(n=null),(a?!u&&!n:!u&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Qr(s)&&!u&&bc(t,s))?i=i.filter(h=>h!==s):n=c,s=Er(s)}return e.set(t,i),i}function dp(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?cp(e,this._c):[].concat(r),i],c=s[0],u=s.reduce((p,h)=>{let g=pc(e,h,n);return p.top=Xr(g.top,p.top),p.right=Wn(g.right,p.right),p.bottom=Wn(g.bottom,p.bottom),p.left=Xr(g.left,p.left),p},pc(e,c,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function up(t){return hc(t)}function pp(t,e,r){let i=xt(e),n=Wt(e),a=r==="fixed",s=To(t,!0,a,e),c={scrollLeft:0,scrollTop:0},u=zt(0);if(i||!i&&!a)if((Ht(e)!=="body"||Qr(n))&&(c=Ro(e)),i){let p=To(e,!0,a,e);u.x=p.x+e.clientLeft,u.y=p.y+e.clientTop}else n&&(u.x=mc(n));return{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function fc(t,e){return!xt(t)||rt(t).position==="fixed"?null:e?e(t):t.offsetParent}function xc(t,e){let r=Xe(t);if(!xt(t))return r;let i=fc(t,e);for(;i&&cc(i)&&rt(i).position==="static";)i=fc(i,e);return i&&(Ht(i)==="html"||Ht(i)==="body"&&rt(i).position==="static"&&!oi(i))?r:i||dc(t)||r}var fp=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||xc,a=this.getDimensions;return{reference:pp(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function hp(t){return rt(t).direction==="rtl"}var ni={convertOffsetParentRelativeRectToViewportRelativeRect:ip,getDocumentElement:Wt,getClippingRect:dp,getOffsetParent:xc,getElementRects:fp,getClientRects:np,getDimensions:up,getScale:Jr,isElement:Nt,isRTL:hp};var vc=(t,e,r)=>{let i=new Map,n={platform:ni,...r},a={...n.platform,_c:i};return ac(t,e,{...n,platform:a})};function Sc(t){return gp(t)}function Gn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function gp(t){for(let e=t;e;e=Gn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Gn(t);e;e=Gn(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 Cc(t,e,r){return vc(t,e,{platform:{...ni,getOffsetParent:i=>ni.getOffsetParent(i,Sc)},middleware:[Hn({crossAxis:!0}),zn({allowedPlacements:[r]})]})}var vt=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},fe=class extends Qe.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 Qe.Debouncer,this.revealDebouncer=new Qe.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 Oc.html`
598
+ `;var ac=["top","right","bottom","left"],nc=["start","end"],ca=ac.reduce((t,e)=>t.concat(e,e+"-"+nc[0],e+"-"+nc[1]),[]),sc=Math.min,lc=Math.max;var iu={left:"right",right:"left",bottom:"top",top:"bottom"},nu={start:"end",end:"start"};function da(t,e,r){return lc(t,sc(e,r))}function ni(t,e){return typeof t=="function"?t(e):t}function ro(t){return t.split("-")[0]}function nr(t){return t.split("-")[1]}function pa(t){return t==="x"?"y":"x"}function ua(t){return t==="y"?"height":"width"}function ai(t){return["top","bottom"].includes(ro(t))?"y":"x"}function fa(t){return pa(ai(t))}function cc(t,e,r){r===void 0&&(r=!1);let i=nr(t),n=fa(t),a=ua(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=la(s)),[s,la(s)]}function dc(t){return t.replace(/start|end/g,e=>nu[e])}function la(t){return t.replace(/left|right|bottom|top/g,e=>iu[e])}function au(t){return{top:0,right:0,bottom:0,left:0,...t}}function pc(t){return typeof t!="number"?au(t):{top:t,right:t,bottom:t,left:t}}function Rr(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 uc(t,e,r){let{reference:i,floating:n}=t,a=ai(e),s=fa(e),c=ua(s),p=ro(e),u=a==="y",h=i.x+i.width/2-n.width/2,g=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,x;switch(p){case"top":x={x:h,y:i.y-n.height};break;case"bottom":x={x:h,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:g};break;case"left":x={x:i.x-n.width,y:g};break;default:x={x:i.x,y:i.y}}switch(nr(e)){case"start":x[s]-=b*(r&&u?-1:1);break;case"end":x[s]+=b*(r&&u?-1:1);break}return x}var fc=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:h,y:g}=uc(u,i,p),b=i,x={},S=0;for(let w=0;w<c.length;w++){let{name:_,fn:I}=c[w],{x:L,y:M,data:H,reset:W}=await I({x:h,y:g,initialPlacement:i,placement:b,strategy:n,middlewareData:x,rects:u,platform:s,elements:{reference:t,floating:e}});h=L??h,g=M??g,x={...x,[_]:{...x[_],...H}},W&&S<=50&&(S++,typeof W=="object"&&(W.placement&&(b=W.placement),W.rects&&(u=W.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):W.rects),{x:h,y:g}=uc(u,b,p)),w=-1)}return{x:h,y:g,placement:b,strategy:n,middlewareData:x}};async function ha(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:h="viewport",elementContext:g="floating",altBoundary:b=!1,padding:x=0}=ni(e,t),S=pc(x),_=c[b?g==="floating"?"reference":"floating":g],I=Rr(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:h,strategy:p})),L=g==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),H=await(a.isElement==null?void 0:a.isElement(M))?await(a.getScale==null?void 0:a.getScale(M))||{x:1,y:1}:{x:1,y:1},W=Rr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:L,offsetParent:M,strategy:p}):L);return{top:(I.top-W.top+S.top)/H.y,bottom:(W.bottom-I.bottom+S.bottom)/H.y,left:(I.left-W.left+S.left)/H.x,right:(W.right-I.right+S.right)/H.x}}function su(t,e,r){return(t?[...r.filter(n=>nr(n)===t),...r.filter(n=>nr(n)!==t)]:r.filter(n=>ro(n)===n)).filter(n=>t?nr(n)===t||(e?dc(n)!==n:!1):!0)}var ga=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:h=!1,alignment:g,allowedPlacements:b=ca,autoAlignment:x=!0,...S}=ni(t,e),w=g!==void 0||b===ca?su(g||null,x,b):b,_=await ha(e,S),I=((r=s.autoPlacement)==null?void 0:r.index)||0,L=w[I];if(L==null)return{};let M=cc(L,a,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(c!==L)return{reset:{placement:w[0]}};let H=[_[ro(L)],_[M[0]],_[M[1]]],W=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:L,overflows:H}],qe=w[I+1];if(qe)return{data:{index:I+1,overflows:W},reset:{placement:qe}};let Rt=W.map(Ne=>{let y=nr(Ne.placement);return[Ne.placement,y&&h?Ne.overflows.slice(0,2).reduce((v,P)=>v+P,0):Ne.overflows[0],Ne.overflows]}).sort((Ne,y)=>Ne[1]-y[1]),Tt=((n=Rt.filter(Ne=>Ne[2].slice(0,nr(Ne[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||Rt[0][0];return Tt!==c?{data:{index:I+1,overflows:W},reset:{placement:Tt}}:{}}}};var ya=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:I,y:L}=_;return{x:I,y:L}}},...p}=ni(t,e),u={x:r,y:i},h=await ha(e,p),g=ai(ro(n)),b=pa(g),x=u[b],S=u[g];if(a){let _=b==="y"?"top":"left",I=b==="y"?"bottom":"right",L=x+h[_],M=x-h[I];x=da(L,x,M)}if(s){let _=g==="y"?"top":"left",I=g==="y"?"bottom":"right",L=S+h[_],M=S-h[I];S=da(L,S,M)}let w=c.fn({...e,[b]:x,[g]:S});return{...w,data:{x:w.x-r,y:w.y-i,enabled:{[b]:a,[g]:s}}}}}};var ma=Math.min,oo=Math.max,Lo=Math.round;var Gt=t=>({x:t,y:t});function Vt(t){return gc(t)?(t.nodeName||"").toLowerCase():"#document"}function Xe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function jt(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 Xe(t).Node}function Lt(t){return t instanceof Element||t instanceof Xe(t).Element}function vt(t){return t instanceof HTMLElement||t instanceof Xe(t).HTMLElement}function hc(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Xe(t).ShadowRoot}function io(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function yc(t){return["table","td","th"].includes(Vt(t))}function li(t){let e=ci(),r=rt(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 mc(t){let e=Tr(t);for(;vt(e)&&!No(e);){if(li(e))return e;e=Tr(e)}return null}function ci(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function No(t){return["html","body","#document"].includes(Vt(t))}function rt(t){return Xe(t).getComputedStyle(t)}function ko(t){return Lt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Tr(t){if(Vt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||hc(t)&&t.host||jt(t);return hc(e)?e.host:e}function bc(t){let e=Tr(t);return No(e)?t.ownerDocument?t.ownerDocument.body:t.body:vt(e)&&io(e)?e:bc(e)}function si(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=bc(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Xe(n);return a?e.concat(s,s.visualViewport||[],io(n)?n:[],s.frameElement&&r?si(s.frameElement):[]):e.concat(n,si(n,[],r))}function Sc(t){let e=rt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=vt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,c=Lo(r)!==a||Lo(i)!==s;return c&&(r=a,i=s),{width:r,height:i,$:c}}function Cc(t){return Lt(t)?t:t.contextElement}function no(t){let e=Cc(t);if(!vt(e))return Gt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=Sc(e),s=(a?Lo(r.width):r.width)/i,c=(a?Lo(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var du=Gt(0);function Oc(t){let e=Xe(t);return!ci()||!e.visualViewport?du:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function pu(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Xe(t)?!1:e}function Po(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=Cc(t),s=Gt(1);e&&(i?Lt(i)&&(s=no(i)):s=no(t));let c=pu(a,r,i)?Oc(a):Gt(0),p=(n.left+c.x)/s.x,u=(n.top+c.y)/s.y,h=n.width/s.x,g=n.height/s.y;if(a){let b=Xe(a),x=i&&Lt(i)?Xe(i):i,S=b.frameElement;for(;S&&i&&x!==b;){let w=no(S),_=S.getBoundingClientRect(),I=rt(S),L=_.left+(S.clientLeft+parseFloat(I.paddingLeft))*w.x,M=_.top+(S.clientTop+parseFloat(I.paddingTop))*w.y;p*=w.x,u*=w.y,h*=w.x,g*=w.y,p+=L,u+=M,S=Xe(S).frameElement}}return Rr({width:h,height:g,x:p,y:u})}function uu(t){let{rect:e,offsetParent:r,strategy:i}=t,n=vt(r),a=jt(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},c=Gt(1),p=Gt(0);if((n||!n&&i!=="fixed")&&((Vt(r)!=="body"||io(a))&&(s=ko(r)),vt(r))){let u=Po(r);c=no(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 fu(t){return Array.from(t.getClientRects())}function wc(t){return Po(jt(t)).left+ko(t).scrollLeft}function hu(t){let e=jt(t),r=ko(t),i=t.ownerDocument.body,n=oo(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=oo(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+wc(t),c=-r.scrollTop;return rt(i).direction==="rtl"&&(s+=oo(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function gu(t,e){let r=Xe(t),i=jt(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,p=0;if(n){a=n.width,s=n.height;let u=ci();(!u||u&&e==="fixed")&&(c=n.offsetLeft,p=n.offsetTop)}return{width:a,height:s,x:c,y:p}}function yu(t,e){let r=Po(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=vt(t)?no(t):Gt(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 xc(t,e,r){let i;if(e==="viewport")i=gu(t,r);else if(e==="document")i=hu(jt(t));else if(Lt(e))i=yu(e,r);else{let n=Oc(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return Rr(i)}function Ec(t,e){let r=Tr(t);return r===e||!Lt(r)||No(r)?!1:rt(r).position==="fixed"||Ec(r,e)}function mu(t,e){let r=e.get(t);if(r)return r;let i=si(t,[],!1).filter(c=>Lt(c)&&Vt(c)!=="body"),n=null,a=rt(t).position==="fixed",s=a?Tr(t):t;for(;Lt(s)&&!No(s);){let c=rt(s),p=li(s);!p&&c.position==="fixed"&&(n=null),(a?!p&&!n:!p&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||io(s)&&!p&&Ec(t,s))?i=i.filter(h=>h!==s):n=c,s=Tr(s)}return e.set(t,i),i}function bu(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?mu(e,this._c):[].concat(r),i],c=s[0],p=s.reduce((u,h)=>{let g=xc(e,h,n);return u.top=oo(g.top,u.top),u.right=ma(g.right,u.right),u.bottom=ma(g.bottom,u.bottom),u.left=oo(g.left,u.left),u},xc(e,c,n));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function xu(t){return Sc(t)}function vu(t,e,r){let i=vt(e),n=jt(e),a=r==="fixed",s=Po(t,!0,a,e),c={scrollLeft:0,scrollTop:0},p=Gt(0);if(i||!i&&!a)if((Vt(e)!=="body"||io(n))&&(c=ko(e)),i){let u=Po(e,!0,a,e);p.x=u.x+e.clientLeft,p.y=u.y+e.clientTop}else n&&(p.x=wc(n));return{x:s.left+c.scrollLeft-p.x,y:s.top+c.scrollTop-p.y,width:s.width,height:s.height}}function vc(t,e){return!vt(t)||rt(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ac(t,e){let r=Xe(t);if(!vt(t))return r;let i=vc(t,e);for(;i&&yc(i)&&rt(i).position==="static";)i=vc(i,e);return i&&(Vt(i)==="html"||Vt(i)==="body"&&rt(i).position==="static"&&!li(i))?r:i||mc(t)||r}var Su=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||Ac,a=this.getDimensions;return{reference:vu(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function Cu(t){return rt(t).direction==="rtl"}var di={convertOffsetParentRelativeRectToViewportRelativeRect:uu,getDocumentElement:jt,getClippingRect:bu,getOffsetParent:Ac,getElementRects:Su,getClientRects:fu,getDimensions:xu,getScale:no,isElement:Lt,isRTL:Cu};var Rc=(t,e,r)=>{let i=new Map,n={platform:di,...r},a={...n.platform,_c:i};return fc(t,e,{...n,platform:a})};function Tc(t){return Ou(t)}function ba(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Ou(t){for(let e=t;e;e=ba(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ba(t);e;e=ba(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 Ic(t,e,r){return Rc(t,e,{platform:{...di,getOffsetParent:i=>di.getOffsetParent(i,Tc)},middleware:[ya({crossAxis:!0}),ga({allowedPlacements:[r]})]})}var St=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},fe=class extends Qe.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 Qe.Debouncer,this.revealDebouncer=new Qe.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 _c.html`
581
599
  <div part="container"
582
600
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
583
601
  <slot part="slot"></slot>
@@ -590,12 +608,12 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
590
608
  </div>
591
609
  </div>
592
610
  </div>
593
- `}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="",Cc(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 ${Qe.designSystemVariables.transitionDuration}, left ${Qe.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||(0,Qe.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}};fe.elementDefinitions={"ft-typography":pe};fe.styles=Xl;vt([(0,ot.property)()],fe.prototype,"text",void 0);vt([(0,ot.property)({type:Boolean})],fe.prototype,"manual",void 0);vt([(0,ot.property)({type:Boolean})],fe.prototype,"inline",void 0);vt([(0,Qe.numberProperty)()],fe.prototype,"delay",void 0);vt([(0,ot.property)()],fe.prototype,"position",void 0);vt([(0,Qe.jsonProperty)([])],fe.prototype,"ignoreMatchingElements",void 0);vt([(0,ot.queryAssignedNodes)()],fe.prototype,"slotNodes",void 0);vt([(0,ot.query)(".ft-tooltip--container")],fe.prototype,"container",void 0);vt([(0,ot.query)(".ft-tooltip")],fe.prototype,"tooltip",void 0);vt([(0,ot.query)(".ft-tooltip--content")],fe.prototype,"tooltipContent",void 0);vt([(0,ot.state)()],fe.prototype,"visible",void 0);(0,wc.customElement)("ft-tooltip")(fe);var Ic=m(T());var Io=m($()),ir=m(Z()),Rc=m(T()),Tc=m(Ac());var Ar;(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;"})(Ar||(Ar={}));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 Cx=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])]);var Ox={[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 _o=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},he=class extends Rc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Io.nothing}render(){let e=this.variant&&Object.values(Fe).includes(this.variant)?this.variant:Fe.fluid_topics,r=e!==Fe.material||!!this.value;return Io.html`
611
+ `}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="",Ic(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 ${Qe.designSystemVariables.transitionDuration}, left ${Qe.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||(0,Qe.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}};fe.elementDefinitions={"ft-typography":ue};fe.styles=ic;St([(0,ot.property)()],fe.prototype,"text",void 0);St([(0,ot.property)({type:Boolean})],fe.prototype,"manual",void 0);St([(0,ot.property)({type:Boolean})],fe.prototype,"inline",void 0);St([(0,Qe.numberProperty)()],fe.prototype,"delay",void 0);St([(0,ot.property)()],fe.prototype,"position",void 0);St([(0,Qe.jsonProperty)([])],fe.prototype,"ignoreMatchingElements",void 0);St([(0,ot.queryAssignedNodes)()],fe.prototype,"slotNodes",void 0);St([(0,ot.query)(".ft-tooltip--container")],fe.prototype,"container",void 0);St([(0,ot.query)(".ft-tooltip")],fe.prototype,"tooltip",void 0);St([(0,ot.query)(".ft-tooltip--content")],fe.prototype,"tooltipContent",void 0);St([(0,ot.state)()],fe.prototype,"visible",void 0);(0,Lc.customElement)("ft-tooltip")(fe);var Mc=m(T());var Do=m($()),ar=m(K()),Pc=m(T()),Dc=m(kc());var Ir;(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;"})(Ir||(Ir={}));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 uv=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])]);var fv={[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 Mo=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},he=class extends Pc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Do.nothing}render(){let e=this.variant&&Object.values(Fe).includes(this.variant)?this.variant:Fe.fluid_topics,r=e!==Fe.material||!!this.value;return Do.html`
594
612
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
595
- ${(0,Tc.unsafeHTML)(this.resolvedIcon)}
613
+ ${(0,Dc.unsafeHTML)(this.resolvedIcon)}
596
614
  <slot ?hidden=${r}></slot>
597
615
  </i>
598
- `}get textContent(){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.textContent;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||Io.nothing;break;default:this.resolvedIcon=(r=Ar[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};he.elementDefinitions={};he.styles=Ws;_o([(0,ir.property)()],he.prototype,"variant",void 0);_o([(0,ir.property)()],he.prototype,"value",void 0);_o([(0,ir.property)({reflect:!0,attribute:"aria-hidden"})],he.prototype,"ariaHidden",void 0);_o([(0,ir.state)()],he.prototype,"resolvedIcon",void 0);_o([(0,ir.query)("slot")],he.prototype,"slottedContent",void 0);(0,Ic.customElement)("ft-icon")(he);var _c=m($()),je=m(T());var we={borderRadiusLeft:je.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",je.designSystemVariables.borderRadiusL),borderRadiusRight:je.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",je.designSystemVariables.borderRadiusL),borderWidthLeft:je.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:je.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:je.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Nc=_c.css`
616
+ `}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||Do.nothing;break;default:this.resolvedIcon=(r=Ir[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};he.elementDefinitions={};he.styles=Zs;Mo([(0,ar.property)()],he.prototype,"variant",void 0);Mo([(0,ar.property)()],he.prototype,"value",void 0);Mo([(0,ar.property)({reflect:!0,attribute:"aria-hidden"})],he.prototype,"ariaHidden",void 0);Mo([(0,ar.state)()],he.prototype,"resolvedIcon",void 0);Mo([(0,ar.query)("slot")],he.prototype,"slottedContent",void 0);(0,Mc.customElement)("ft-icon")(he);var $c=m($()),je=m(T());var we={borderRadiusLeft:je.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",je.designSystemVariables.borderRadiusL),borderRadiusRight:je.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",je.designSystemVariables.borderRadiusL),borderWidthLeft:je.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:je.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:je.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Bc=$c.css`
599
617
  .ft-switch-option {
600
618
  position: relative;
601
619
  display: inline-block;
@@ -609,20 +627,20 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
609
627
  }
610
628
 
611
629
  .ft-switch-option--content {
612
- --switch-option-internal-line-height: calc(${ue.fontSize} + 2px);
613
- --switch-option-internal-content-height: max(var(--switch-option-internal-line-height), ${ue.iconSize});
630
+ --switch-option-internal-line-height: calc(${pe.fontSize} + 2px);
631
+ --switch-option-internal-content-height: max(var(--switch-option-internal-line-height), ${pe.iconSize});
614
632
 
615
633
  border-style: solid;
616
- border-color: ${ue.borderColor};
634
+ border-color: ${pe.borderColor};
617
635
  border-width: ${we.borderWidthVertical} ${we.borderWidthRight} ${we.borderWidthVertical} ${we.borderWidthLeft};
618
636
  border-radius: ${we.borderRadiusLeft} ${we.borderRadiusRight} ${we.borderRadiusRight} ${we.borderRadiusLeft};
619
637
  display: flex;
620
638
  align-items: center;
621
639
  justify-content: center;
622
640
  overflow: hidden;
623
- ${(0,je.setVariable)(Oe.size,ue.iconSize)};
641
+ ${(0,je.setVariable)(Oe.size,pe.iconSize)};
624
642
  padding: var(--switch-internal-vertical-padding, 6px) var(--switch-internal-horizontal-padding, 8px);
625
- background-color: ${ue.backgroundColor};
643
+ background-color: ${pe.backgroundColor};
626
644
  -webkit-mask-image: radial-gradient(white, black);
627
645
  }
628
646
 
@@ -631,7 +649,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
631
649
  }
632
650
 
633
651
  .ft-switch-option--selected .ft-switch-option--content:before {
634
- background-color: ${ue.selectedBackgroundColor};
652
+ background-color: ${pe.selectedBackgroundColor};
635
653
  border-radius: ${we.borderRadiusLeft} ${we.borderRadiusRight} ${we.borderRadiusRight} ${we.borderRadiusLeft};
636
654
  position: absolute;
637
655
  inset: 0;
@@ -641,22 +659,22 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
641
659
  }
642
660
 
643
661
  .ft-switch-option--label {
644
- color: ${ue.textColor};
662
+ color: ${pe.textColor};
645
663
  overflow: hidden;
646
664
  white-space: nowrap;
647
665
  text-overflow: ellipsis;
648
666
  display: block;
649
667
  margin: 0 8px;
650
- ${(0,je.setVariable)(Ve.fontSize,ue.fontSize)};
668
+ ${(0,je.setVariable)(Ve.fontSize,pe.fontSize)};
651
669
  ${(0,je.setVariable)(Ve.lineHeight,"var(--switch-option-internal-content-height)")}
652
670
  }
653
671
 
654
672
  .ft-switch-option--selected .ft-switch-option--label {
655
- color: ${ue.selectedTextColor};
673
+ color: ${pe.selectedTextColor};
656
674
  }
657
675
 
658
676
  .ft-switch-option--focused {
659
- outline: 1px solid ${ue.outlineColor};
677
+ outline: 1px solid ${pe.outlineColor};
660
678
  }
661
679
 
662
680
  .ft-switch-option--label[hidden] {
@@ -664,7 +682,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
664
682
  }
665
683
 
666
684
  .ft-switch-option--ripple {
667
- ${(0,je.setVariable)(O.color,ue.rippleColor)};
685
+ ${(0,je.setVariable)(O.color,pe.rippleColor)};
668
686
  }
669
687
 
670
688
  ft-icon, ft-ripple, ft-typography {
@@ -677,20 +695,20 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
677
695
 
678
696
  ft-icon {
679
697
  flex-shrink: 0;
680
- color: ${ue.iconColor};
698
+ color: ${pe.iconColor};
681
699
  }
682
700
 
683
701
  .ft-switch-option--selected ft-icon {
684
- color: ${ue.selectedTextColor};
702
+ color: ${pe.selectedTextColor};
685
703
  }
686
- `;var St=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},Vn=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},jn=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},ge=class extends to.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new jn(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(eo.html`
687
- <label part="label" for="input" class="${(0,Lc.classMap)(e)}"
704
+ `;var Ct=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},xa=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},va=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},ge=class extends so.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new va(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(ao.html`
705
+ <label part="label" for="input" class="${(0,Fc.classMap)(e)}"
688
706
  @click=${this.onChange}>
689
707
  <div class="ft-switch-option--content">
690
708
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
691
709
  <ft-typography part="text"
692
710
  variant="button"
693
- class="ft-switch-option--label ${to.isSafari?"ft-safari-ellipsis-fix":""}"
711
+ class="ft-switch-option--label ${so.isSafari?"ft-safari-ellipsis-fix":""}"
694
712
  ?hidden=${!this.hasTextContent()}>
695
713
  <slot @slotchange=${this.onSlotchange}></slot>
696
714
  </ft-typography>
@@ -699,29 +717,29 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
699
717
  </label>
700
718
  <input id="input" type="radio" class="ft-switch-option--input"
701
719
  .checked=${this.selected}>
702
- `)}addTooltip(e){return this.hasTextContent()||this.getLabel().trim().length===0?e:eo.html`
720
+ `)}addTooltip(e){return this.hasTextContent()||this.getLabel().trim().length===0?e:ao.html`
703
721
  <ft-tooltip part="tooltip"
704
722
  text="${this.getLabel()}"
705
723
  position="${this.tooltipPosition}">
706
724
  ${e}
707
725
  </ft-tooltip>
708
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(e){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new Vn(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?eo.html`
726
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new xa(this.selected))}getLabel(){return this.label||this.getTextContent()}resolveIcon(){return this.icon?ao.html`
709
727
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
710
- `:eo.nothing}get textContent(){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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};ge.elementDefinitions={"ft-ripple":K,"ft-typography":pe,"ft-tooltip":fe,"ft-icon":he};ge.styles=[to.safariEllipsisFix,Nc];St([(0,Je.property)()],ge.prototype,"value",void 0);St([(0,Je.property)()],ge.prototype,"icon",void 0);St([(0,Je.property)()],ge.prototype,"iconVariant",void 0);St([(0,Je.property)()],ge.prototype,"label",void 0);St([(0,Je.property)()],ge.prototype,"tooltipPosition",void 0);St([(0,Je.property)({type:Boolean,reflect:!0})],ge.prototype,"selected",void 0);St([(0,Je.property)({type:Boolean})],ge.prototype,"trailingIcon",void 0);St([(0,Je.property)({type:Boolean})],ge.prototype,"unselectable",void 0);St([(0,Je.query)(".ft-switch-option--content slot")],ge.prototype,"slottedContent",void 0);St([(0,Je.query)(".ft-switch-option--input")],ge.prototype,"input",void 0);St([(0,Je.state)()],ge.prototype,"isFocused",void 0);var Rr=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},Kn=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ke=class extends Gt.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return ai.html`
711
- <div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,kc.classMap)(e)}" role="radiogroup" aria-label="${this.label}">
728
+ `:ao.nothing}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:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};ge.elementDefinitions={"ft-ripple":Z,"ft-typography":ue,"ft-tooltip":fe,"ft-icon":he};ge.styles=[so.safariEllipsisFix,Bc];Ct([(0,Je.property)()],ge.prototype,"value",void 0);Ct([(0,Je.property)()],ge.prototype,"icon",void 0);Ct([(0,Je.property)()],ge.prototype,"iconVariant",void 0);Ct([(0,Je.property)()],ge.prototype,"label",void 0);Ct([(0,Je.property)()],ge.prototype,"tooltipPosition",void 0);Ct([(0,Je.property)({type:Boolean,reflect:!0})],ge.prototype,"selected",void 0);Ct([(0,Je.property)({type:Boolean})],ge.prototype,"trailingIcon",void 0);Ct([(0,Je.property)({type:Boolean})],ge.prototype,"unselectable",void 0);Ct([(0,Je.query)(".ft-switch-option--content slot")],ge.prototype,"slottedContent",void 0);Ct([(0,Je.query)(".ft-switch-option--input")],ge.prototype,"input",void 0);Ct([(0,Je.state)()],ge.prototype,"isFocused",void 0);var _r=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},Sa=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ke=class extends Kt.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return pi.html`
729
+ <div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,Uc.classMap)(e)}" role="radiogroup" aria-label="${this.label}">
712
730
  <slot @slotchange=${this.onSlotchange}
713
731
  @option-change=${this.onOptionChangeByScript}
714
732
  @option-change-by-user=${this.onOptionChangeByUser}
715
733
  ></slot>
716
734
  </div>
717
- `}onKeyDown(e){let r;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.code=="Space"&&(r=this.options.indexOf(e.target)),r!=null&&(e.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(r=>{r instanceof ge&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(e){var r;(r=e.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let r=e.target;this.onOptionChange(r)}onOptionChangeByUser(e){var r;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new Kn((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};Ke.elementDefinitions={};Ke.styles=ai.css`
735
+ `}onKeyDown(e){let r;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.code=="Space"&&(r=this.options.indexOf(e.target)),r!=null&&(e.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(r=>{r instanceof ge&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(e){var r;(r=e.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let r=e.target;this.onOptionChange(r)}onOptionChangeByUser(e){var r;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new Sa((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};Ke.elementDefinitions={};Ke.styles=pi.css`
718
736
  :host {
719
737
  display: inline-block;
720
738
  }
721
739
 
722
740
  .ft-switch {
723
- border-radius: ${ue.borderRadius};
724
- outline-color: ${ue.outlineColor};
741
+ border-radius: ${pe.borderRadius};
742
+ outline-color: ${pe.outlineColor};
725
743
  }
726
744
 
727
745
  .ft-switch slot {
@@ -730,25 +748,25 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
730
748
  }
731
749
 
732
750
  .ft-switch slot::slotted(ft-switch-option) {
733
- ${(0,Gt.setVariable)(we.borderRadiusLeft,"0")};
734
- ${(0,Gt.setVariable)(we.borderRadiusRight,"0")};
735
- ${(0,Gt.setVariable)(we.borderWidthLeft,"0")};
751
+ ${(0,Kt.setVariable)(we.borderRadiusLeft,"0")};
752
+ ${(0,Kt.setVariable)(we.borderRadiusRight,"0")};
753
+ ${(0,Kt.setVariable)(we.borderWidthLeft,"0")};
736
754
  }
737
755
 
738
756
  .ft-switch slot::slotted(ft-switch-option:first-child) {
739
- ${(0,Gt.setVariable)(we.borderRadiusLeft,ue.borderRadius)};
740
- ${(0,Gt.setVariable)(we.borderWidthLeft,"1px")};
757
+ ${(0,Kt.setVariable)(we.borderRadiusLeft,pe.borderRadius)};
758
+ ${(0,Kt.setVariable)(we.borderWidthLeft,"1px")};
741
759
  }
742
760
 
743
761
  .ft-switch slot::slotted(ft-switch-option:last-child) {
744
- ${(0,Gt.setVariable)(we.borderRadiusRight,ue.borderRadius)};
762
+ ${(0,Kt.setVariable)(we.borderRadiusRight,pe.borderRadius)};
745
763
  }
746
764
 
747
765
  .ft-switch--dense slot::slotted(ft-switch-option) {
748
766
  --switch-internal-vertical-padding: 2px;
749
767
  --switch-internal-horizontal-padding: 4px;
750
768
  }
751
- `;Rr([(0,Lt.property)({type:Boolean})],Ke.prototype,"dense",void 0);Rr([(0,Lt.property)({type:Boolean})],Ke.prototype,"unselectable",void 0);Rr([(0,Lt.property)()],Ke.prototype,"label",void 0);Rr([(0,Lt.query)(".ft-switch slot")],Ke.prototype,"slottedContent",void 0);Rr([(0,Lt.state)()],Ke.prototype,"selectedOption",void 0);Rr([(0,Lt.state)()],Ke.prototype,"displayFocusWhenUsingKeyboard",void 0);Rr([(0,Lt.query)(".ft-switch")],Ke.prototype,"ftSwitchDiv",void 0);(0,Zn.customElement)("ft-switch")(Ke);(0,Zn.customElement)("ft-switch-option")(ge);var Yc=m(T());var ui=m($()),pt=m(Z()),qc=m(Ft()),pi=m(T());var $c=m(T());var li=m($()),ut=m(Z()),ci=m(T());var Dc=m($()),ro=m(T()),Pc={colorOutline:ro.FtCssVariableFactory.external(ro.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:ro.FtCssVariableFactory.external(ro.designSystemVariables.colorOnSurfaceMedium,"Design system")},Mc=Dc.css`
769
+ `;_r([(0,Nt.property)({type:Boolean})],Ke.prototype,"dense",void 0);_r([(0,Nt.property)({type:Boolean})],Ke.prototype,"unselectable",void 0);_r([(0,Nt.property)()],Ke.prototype,"label",void 0);_r([(0,Nt.query)(".ft-switch slot")],Ke.prototype,"slottedContent",void 0);_r([(0,Nt.state)()],Ke.prototype,"selectedOption",void 0);_r([(0,Nt.state)()],Ke.prototype,"displayFocusWhenUsingKeyboard",void 0);_r([(0,Nt.query)(".ft-switch")],Ke.prototype,"ftSwitchDiv",void 0);(0,Ca.customElement)("ft-switch")(Ke);(0,Ca.customElement)("ft-switch-option")(ge);var od=m(T());var yi=m($()),ut=m(K()),rd=m(Ht()),mi=m(T());var Gc=m(T());var fi=m($()),it=m(K()),hi=m(T());var Hc=m($()),lo=m(T()),zc={colorOutline:lo.FtCssVariableFactory.external(lo.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:lo.FtCssVariableFactory.external(lo.designSystemVariables.colorOnSurfaceMedium,"Design system")},Wc=Hc.css`
752
770
  :host {
753
771
  display: block;
754
772
  }
@@ -759,29 +777,30 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
759
777
 
760
778
  ft-icon {
761
779
  transform: rotate(-45deg);
762
- color: ${Pc.colorOutline};
780
+ color: ${zc.colorOutline};
763
781
  }
764
782
 
765
783
  .ft-resizer--dragging ft-icon,
766
784
  .ft-resizer:hover ft-icon,
767
785
  [role="button"][aria-pressed="true"] ft-icon{
768
- color: ${Pc.colorOnSurfaceMedium};
786
+ color: ${zc.colorOnSurfaceMedium};
769
787
  }
770
- `;var Vt=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},si=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},Pe=class extends ci.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Fe.material,this.cursor="nwse-resize",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return li.html`
788
+ `;var kt=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},ui=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},_e=class extends hi.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Fe.material,this.cursor="nwse-resize",this.ariaLabel="",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return fi.html`
771
789
  <style>
772
790
  .ft-resizer {
773
- cursor: ${(0,li.unsafeCSS)(this.cursor)}
791
+ cursor: ${(0,fi.unsafeCSS)(this.cursor)}
774
792
  }
775
793
  </style>
776
794
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
777
795
  role="button"
778
796
  tabindex="0"
797
+ aria-label="${this.ariaLabel}"
779
798
  @mousedown=${this.initDragFromMouse}
780
799
  @touchstart=${this.initDragFromTouch}
781
800
  @keydown="${this.initKeydownPress}">
782
801
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}" focusable="false" aria-hidden="true"></ft-icon>
783
802
  </div>
784
- `}initDragFromMouse(e){this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let r=e.key;if(["Enter","Space","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,r==="Enter"||r==="Space"){let n=e.currentTarget;this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())}else r==="Escape"&&(this.isAriaPressed=!1);this.isAriaPressed&&(r==="ArrowLeft"?this.fixedWidth-=10:r==="ArrowRight"?this.fixedWidth+=10:r==="ArrowUp"?this.fixedHeight-=10:r==="ArrowDown"&&(this.fixedHeight+=10)),this.dispatchEvent(new si(this.fixedWidth,this.fixedHeight))}initDrag(e,r){this.dragging=!0,this.startX=e,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,r){let i=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new si(i,n))}};Pe.elementDefinitions={"ft-icon":he};Pe.styles=[ci.noTextSelect,Mc];Vt([(0,ut.property)({type:Number})],Pe.prototype,"initialWidth",void 0);Vt([(0,ut.property)({type:Number})],Pe.prototype,"initialHeight",void 0);Vt([(0,ut.property)()],Pe.prototype,"icon",void 0);Vt([(0,ut.property)()],Pe.prototype,"iconVariant",void 0);Vt([(0,ut.property)()],Pe.prototype,"cursor",void 0);Vt([(0,ut.state)()],Pe.prototype,"dragging",void 0);Vt([(0,ut.state)()],Pe.prototype,"isAriaPressed",void 0);Vt([(0,ut.eventOptions)({passive:!0})],Pe.prototype,"initDragFromMouse",null);Vt([(0,ut.eventOptions)({passive:!0})],Pe.prototype,"initDragFromTouch",null);(0,$c.customElement)("ft-resizer")(Pe);var Qn=m(T());var di=m(Z());var Bc=m($()),re=m(T());var k={fontSize:re.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:re.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:re.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:re.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:re.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:re.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:re.FtCssVariableFactory.extend("--ft-input-label-border-color","",re.designSystemVariables.colorOutline),textColor:re.FtCssVariableFactory.extend("--ft-input-label-text-color","",re.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:re.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",re.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:re.FtCssVariableFactory.extend("--ft-input-label-background-color","",re.designSystemVariables.colorSurface),borderRadius:re.FtCssVariableFactory.extend("--ft-input-label-border-radius","",re.designSystemVariables.borderRadiusS),colorError:re.FtCssVariableFactory.external(re.designSystemVariables.colorError,"Design system")},Fc=Bc.css`
803
+ `}initDragFromMouse(e){this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let r=e.key;if(["Enter","Space","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,r==="Enter"||r==="Space"){let n=e.currentTarget;this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())}else r==="Escape"&&(this.isAriaPressed=!1);this.isAriaPressed&&(r==="ArrowLeft"?this.fixedWidth-=10:r==="ArrowRight"?this.fixedWidth+=10:r==="ArrowUp"?this.fixedHeight-=10:r==="ArrowDown"&&(this.fixedHeight+=10)),this.dispatchEvent(new ui(this.fixedWidth,this.fixedHeight))}initDrag(e,r){this.dragging=!0,this.startX=e,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,r){let i=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new ui(i,n))}};_e.elementDefinitions={"ft-icon":he};_e.styles=[hi.noTextSelect,Wc];kt([(0,it.property)({type:Number})],_e.prototype,"initialWidth",void 0);kt([(0,it.property)({type:Number})],_e.prototype,"initialHeight",void 0);kt([(0,it.property)()],_e.prototype,"icon",void 0);kt([(0,it.property)()],_e.prototype,"iconVariant",void 0);kt([(0,it.property)()],_e.prototype,"cursor",void 0);kt([(0,it.property)()],_e.prototype,"ariaLabel",void 0);kt([(0,it.state)()],_e.prototype,"dragging",void 0);kt([(0,it.state)()],_e.prototype,"isAriaPressed",void 0);kt([(0,it.eventOptions)({passive:!0})],_e.prototype,"initDragFromMouse",null);kt([(0,it.eventOptions)({passive:!0})],_e.prototype,"initDragFromTouch",null);(0,Gc.customElement)("ft-resizer")(_e);var Aa=m(T());var gi=m(K());var Vc=m($()),oe=m(T());var k={fontSize:oe.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:oe.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:oe.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:oe.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:oe.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:oe.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:oe.FtCssVariableFactory.extend("--ft-input-label-border-color","",oe.designSystemVariables.colorOutline),textColor:oe.FtCssVariableFactory.extend("--ft-input-label-text-color","",oe.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:oe.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",oe.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:oe.FtCssVariableFactory.extend("--ft-input-label-background-color","",oe.designSystemVariables.colorSurface),borderRadius:oe.FtCssVariableFactory.extend("--ft-input-label-border-radius","",oe.designSystemVariables.borderRadiusS),colorError:oe.FtCssVariableFactory.external(oe.designSystemVariables.colorError,"Design system")},jc=Vc.css`
785
804
  .ft-input-label {
786
805
  position: absolute;
787
806
  inset: 0;
@@ -832,8 +851,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
832
851
  transition: font-size 250ms, line-height 250ms, color 250ms;
833
852
  max-width: calc(${k.labelMaxWidth} - 2 * (${k.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
834
853
  text-overflow: ellipsis;
835
- ${(0,re.setVariable)(Ie.fontSize,k.fontSize)};
836
- ${(0,re.setVariable)(Ie.lineHeight,k.fontSize)};
854
+ ${(0,oe.setVariable)(Ie.fontSize,k.fontSize)};
855
+ ${(0,oe.setVariable)(Ie.lineHeight,k.fontSize)};
837
856
  }
838
857
 
839
858
  .ft-input-label--in-error .ft-input-label--text {
@@ -865,8 +884,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
865
884
  }
866
885
 
867
886
  .ft-input-label--raised .ft-input-label--text {
868
- ${(0,re.setVariable)(Ie.fontSize,k.raisedFontSize)};
869
- ${(0,re.setVariable)(Ie.lineHeight,k.raisedFontSize)};
887
+ ${(0,oe.setVariable)(Ie.fontSize,k.raisedFontSize)};
888
+ ${(0,oe.setVariable)(Ie.lineHeight,k.raisedFontSize)};
870
889
  }
871
890
 
872
891
  .ft-input-label--raised .ft-input-label--floating-text {
@@ -903,24 +922,24 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
903
922
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
904
923
  border-top: none;
905
924
  }
906
- `;var qn=m($()),Yn=m(Z());function Uc(t,e,r){return t?e(t):r?.(t)}var Hc=m(Ft()),Wc=m(T()),zc=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},jt=class extends Wc.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return qn.html`
907
- <div class="${(0,Hc.classMap)(this.inputLabelClasses)}">
908
- ${Uc(this.text,()=>qn.html`
925
+ `;var Oa=m($()),wa=m(K());function Kc(t,e,r){return t?e(t):r?.(t)}var qc=m(Ht()),Yc=m(T()),Zc=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},Zt=class extends Yc.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Oa.html`
926
+ <div class="${(0,qc.classMap)(this.inputLabelClasses)}">
927
+ ${Kc(this.text,()=>Oa.html`
909
928
  <div class="ft-input-label--text ft-typography--caption">
910
929
  <label class="ft-input-label--floating-text">${this.text}</label>
911
930
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
912
931
  </div>
913
932
  `)}
914
933
  </div>
915
- `}};jt.elementDefinitions={};zc([(0,Yn.property)({type:String})],jt.prototype,"text",void 0);zc([(0,Yn.property)({type:Boolean})],jt.prototype,"raised",void 0);var Xn=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},it=class extends jt{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};it.elementDefinitions={};it.styles=[Vr,Fc];Xn([(0,di.property)({type:Boolean})],it.prototype,"outlined",void 0);Xn([(0,di.property)({type:Boolean})],it.prototype,"error",void 0);Xn([(0,di.property)({type:Boolean})],it.prototype,"disabled",void 0);var jc=m(T());var Gc=m($());var Se=m(T()),Ue={fontSize:Se.FtCssVariableFactory.extend("--ft-input-label-font-size","",Mr.fontSize),fontSizeRaised:Se.FtCssVariableFactory.extend("--ft-input-label-font-size-raised","",vr.fontSize),lineHeight:Se.FtCssVariableFactory.extend("--ft-input-label-line-height","",vr.lineHeight),color:Se.FtCssVariableFactory.extend("--ft-input-label-color","",Se.semantic.contentGlobalSubtle),largeFieldHeight:Se.FtCssVariableFactory.create("--ft-input-label-large-height","","SIZE","50px"),largeFieldVerticalGap:Se.FtCssVariableFactory.extend("--ft-input-label-large-field-vertical-gap","",l.spacing05),largeFieldHorizontalPadding:Se.FtCssVariableFactory.extend("--ft-input-label-large-field-horizontal-padding","",l.spacing4),mediumFieldHeight:Se.FtCssVariableFactory.create("--ft-input-label-medium-height","","SIZE","40px"),mediumFieldVerticalGap:Se.FtCssVariableFactory.create("--ft-input-label-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHorizontalPadding:Se.FtCssVariableFactory.extend("--ft-input-label-medium-field-horizontal-padding","",l.spacing4),additionalPaddingLeft:Se.FtCssVariableFactory.create("--ft-input-label-additional-padding-left","","SIZE","0px"),additionalPaddingRight:Se.FtCssVariableFactory.create("--ft-input-label-additional-padding-right","","SIZE","0px")},Vc=[Gc.css`
934
+ `}};Zt.elementDefinitions={};Zc([(0,wa.property)({type:String})],Zt.prototype,"text",void 0);Zc([(0,wa.property)({type:Boolean})],Zt.prototype,"raised",void 0);var Ea=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},nt=class extends Zt{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};nt.elementDefinitions={};nt.styles=[Kr,jc];Ea([(0,gi.property)({type:Boolean})],nt.prototype,"outlined",void 0);Ea([(0,gi.property)({type:Boolean})],nt.prototype,"error",void 0);Ea([(0,gi.property)({type:Boolean})],nt.prototype,"disabled",void 0);var Jc=m(T());var Xc=m($());var Se=m(T()),Ue={fontSize:Se.FtCssVariableFactory.extend("--ft-input-label-font-size","",Cr.fontSize),fontSizeRaised:Se.FtCssVariableFactory.extend("--ft-input-label-font-size-raised","",Jt.fontSize),lineHeight:Se.FtCssVariableFactory.extend("--ft-input-label-line-height","",Jt.lineHeight),color:Se.FtCssVariableFactory.extend("--ft-input-label-color","",Se.semantic.contentGlobalSubtle),largeFieldHeight:Se.FtCssVariableFactory.create("--ft-input-label-large-height","","SIZE","50px"),largeFieldVerticalGap:Se.FtCssVariableFactory.extend("--ft-input-label-large-field-vertical-gap","",l.spacing05),largeFieldHorizontalPadding:Se.FtCssVariableFactory.extend("--ft-input-label-large-field-horizontal-padding","",l.spacing4),mediumFieldHeight:Se.FtCssVariableFactory.create("--ft-input-label-medium-height","","SIZE","40px"),mediumFieldVerticalGap:Se.FtCssVariableFactory.create("--ft-input-label-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHorizontalPadding:Se.FtCssVariableFactory.extend("--ft-input-label-medium-field-horizontal-padding","",l.spacing4),additionalPaddingLeft:Se.FtCssVariableFactory.create("--ft-input-label-additional-padding-left","","SIZE","0px"),additionalPaddingRight:Se.FtCssVariableFactory.create("--ft-input-label-additional-padding-right","","SIZE","0px")},Qc=[Xc.css`
916
935
 
917
936
  :root {
918
937
  --field-height: ${Ue.largeFieldHeight};
919
938
  --field-vertical-gap: ${Ue.largeFieldVerticalGap};
920
939
  --field-horizontal-padding: ${Ue.largeFieldHorizontalPadding};
921
940
 
922
- --typo-caption-height: calc(${vr.lineHeight} * ${vr.fontSize});
923
- --typo-body-height: calc(${Mr.lineHeight} * ${Mr.fontSize});
941
+ --typo-caption-height: calc(${Jt.lineHeight} * ${Jt.fontSize});
942
+ --typo-body-height: calc(${Cr.lineHeight} * ${Cr.fontSize});
924
943
  --caption-label-and-value-combined-height: calc(var(--field-vertical-gap) + var(--typo-caption-height) + var(--typo-body-height));
925
944
  --input-content-vertical-padding: calc((var(--field-height) - var(--caption-label-and-value-combined-height)) / 2);
926
945
  }
@@ -994,7 +1013,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
994
1013
  top: var(--input-content-vertical-padding);
995
1014
  }
996
1015
 
997
- `];var No=class extends(0,jc.toFtdsBase)(jt){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};No.styles=[Vr,Vc];(0,Qn.customElement)("ft-input-label")(it);(0,Qn.customElement)("ftds-input-label")(No);var Kc=m($()),q=m(T());var X={fontSize:q.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:q.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:q.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:q.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:q.FtCssVariableFactory.extend("--ft-text-area-helper-color","",q.designSystemVariables.colorOnSurfaceMedium),colorPrimary:q.FtCssVariableFactory.external(q.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:q.FtCssVariableFactory.external(q.designSystemVariables.borderRadiusS,"Design system"),colorError:q.FtCssVariableFactory.external(q.designSystemVariables.colorError,"Design system")},Zc=Kc.css`
1016
+ `];var $o=class extends(0,Jc.toFtdsBase)(Zt){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};$o.styles=[Kr,Qc];(0,Aa.customElement)("ft-input-label")(nt);(0,Aa.customElement)("ftds-input-label")($o);var ed=m($()),q=m(T());var X={fontSize:q.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:q.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:q.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:q.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:q.FtCssVariableFactory.extend("--ft-text-area-helper-color","",q.designSystemVariables.colorOnSurfaceMedium),colorPrimary:q.FtCssVariableFactory.external(q.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:q.FtCssVariableFactory.external(q.designSystemVariables.borderRadiusS,"Design system"),colorError:q.FtCssVariableFactory.external(q.designSystemVariables.colorError,"Design system")},td=ed.css`
998
1017
  *:focus {
999
1018
  outline: none;
1000
1019
  }
@@ -1040,8 +1059,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1040
1059
  align-self: stretch;
1041
1060
  resize: none;
1042
1061
 
1043
- ${(0,q.setVariable)(lt.fontSize,X.fontSize)};
1044
- ${(0,q.setVariable)(lt.lineHeight,X.fontSize)};
1062
+ ${(0,q.setVariable)(ct.fontSize,X.fontSize)};
1063
+ ${(0,q.setVariable)(ct.lineHeight,X.fontSize)};
1045
1064
  color: ${X.colorOnSurface};
1046
1065
 
1047
1066
  padding: 0 ${X.horizontalSpacing};
@@ -1094,7 +1113,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1094
1113
  position: absolute;
1095
1114
  bottom: 0;
1096
1115
  }
1097
- `;var Kt=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(0,pi.toFtFormComponent)(pi.FtLitElement){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return ui.html`
1116
+ `;var qt=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(0,mi.toFtFormComponent)(mi.FtLitElement){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return yi.html`
1098
1117
  <style>
1099
1118
  .ft-text-area--main-panel {
1100
1119
  height: calc(4 * ${X.verticalSpacing} + ${X.labelSize} + ${X.fontSize} + ${this.height}px);
@@ -1104,7 +1123,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1104
1123
  right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1105
1124
  }
1106
1125
  </style>
1107
- <div class="${(0,qc.classMap)(e)}">
1126
+ <div class="${(0,rd.classMap)(e)}">
1108
1127
  <div class="ft-text-area--main-panel">
1109
1128
  <ft-input-label text="${this.label}"
1110
1129
  ?disabled=${this.disabled}
@@ -1114,7 +1133,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1114
1133
  aria-hidden="true"
1115
1134
  ></ft-input-label>
1116
1135
  <div class="ft-text-area--input-panel">
1117
- ${this.outlined?null:ui.html`
1136
+ ${this.outlined?null:yi.html`
1118
1137
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1119
1138
  `}
1120
1139
  <textarea
@@ -1131,62 +1150,63 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1131
1150
  </div>
1132
1151
  <ft-resizer @resize=${this.onResize}
1133
1152
  initialHeight="${this.height}"
1134
- cursor="ns-resize"></ft-resizer>
1153
+ cursor="ns-resize"
1154
+ ariaLabel="Resize text area"></ft-resizer>
1135
1155
  </div>
1136
- ${this.helper?ui.html`
1156
+ ${this.helper?yi.html`
1137
1157
  <ft-typography class="ft-text-area--helper-text" variant="caption">
1138
1158
  ${this.helper}
1139
1159
  </ft-typography>`:void 0}
1140
1160
  </div>
1141
- `}setValue(e,r=!1){this.value=e,this.setFormValue(e),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(this.height=e.detail.height)}};De.elementDefinitions={"ft-input-label":it,"ft-resizer":Pe,"ft-ripple":K,"ft-typography":pe};De.styles=[Gr,Zc];Kt([(0,pt.property)({type:String})],De.prototype,"label",void 0);Kt([(0,pt.property)({reflect:!0})],De.prototype,"value",void 0);Kt([(0,pt.property)({type:String})],De.prototype,"helper",void 0);Kt([(0,pt.property)({type:Boolean})],De.prototype,"outlined",void 0);Kt([(0,pt.property)({type:Boolean})],De.prototype,"disabled",void 0);Kt([(0,pt.property)({type:Boolean})],De.prototype,"error",void 0);Kt([(0,pt.property)({type:Number,reflect:!0})],De.prototype,"height",void 0);Kt([(0,pt.query)("textarea")],De.prototype,"textarea",void 0);Kt([(0,pt.state)()],De.prototype,"focused",void 0);(0,Yc.customElement)("ft-text-area")(De);var _u=m(Jn());var ta=m(T());var Lo=m(Z()),td=m(T());var ar=m(T());var ed=m(T());var Qc=m($()),Jc=m(T());var Tr=class extends Jc.FtLitElement{render(){return Qc.html`
1161
+ `}setValue(e,r=!1){this.value=e,this.setFormValue(e),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(this.height=e.detail.height)}};De.elementDefinitions={"ft-input-label":nt,"ft-resizer":_e,"ft-ripple":Z,"ft-typography":ue};De.styles=[jr,td];qt([(0,ut.property)({type:String})],De.prototype,"label",void 0);qt([(0,ut.property)({reflect:!0})],De.prototype,"value",void 0);qt([(0,ut.property)({type:String})],De.prototype,"helper",void 0);qt([(0,ut.property)({type:Boolean})],De.prototype,"outlined",void 0);qt([(0,ut.property)({type:Boolean})],De.prototype,"disabled",void 0);qt([(0,ut.property)({type:Boolean})],De.prototype,"error",void 0);qt([(0,ut.property)({type:Number,reflect:!0})],De.prototype,"height",void 0);qt([(0,ut.query)("textarea")],De.prototype,"textarea",void 0);qt([(0,ut.state)()],De.prototype,"focused",void 0);(0,od.customElement)("ft-text-area")(De);var $p=m(Ra());var Ia=m(T());var Bo=m(K()),ld=m(T());var lr=m(T());var sd=m(T());var nd=m($()),ad=m(T());var Lr=class extends ad.FtLitElement{render(){return nd.html`
1142
1162
  <div class="ft-loader">
1143
1163
  <div></div>
1144
1164
  <div></div>
1145
1165
  <div></div>
1146
1166
  <div></div>
1147
1167
  </div>
1148
- `}};Tr.styles=zs;(0,ed.customElement)("ft-loader")(Tr);var nr=m($()),ea=m(Ft()),Ce=m(Z());var oo=t=>t??ve;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},oe=class extends(0,ar.toFtFormComponent)(ar.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=nr.html`
1168
+ `}};Lr.styles=js;(0,sd.customElement)("ft-loader")(Lr);var sr=m($()),Ta=m(Ht()),Ce=m(K());var co=t=>t??ve;var Le=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},Q=class extends(0,lr.toFtFormComponent)(lr.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=sr.html`
1149
1169
  <ft-ripple part="ripple"
1150
1170
  ?disabled=${this.isDisabled()}
1151
1171
  ?activated=${this.activated}
1152
1172
  ></ft-ripple>
1153
- <ft-typography part="label"
1154
- variant="${this.typographyVariant}"
1155
- element="span"
1156
- class="ft-button--label ${ar.isSafari?"ft-safari-ellipsis-fix":""}"
1157
- ?hidden=${!this.hasTextContent()}>
1173
+ <ft-or-ftds-typography part="label"
1174
+ variant="${this.typographyVariant}"
1175
+ element="span"
1176
+ class="ft-button--label ${lr.isSafari?"ft-safari-ellipsis-fix":""}"
1177
+ ?hidden=${!this.hasTextContent()}>
1158
1178
  <slot @slotchange=${this.onSlotchange}></slot>
1159
- </ft-typography>
1179
+ </ft-or-ftds-typography>
1160
1180
  ${this.resolveIcon()}
1161
- `,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?nr.html`
1181
+ `,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?sr.html`
1162
1182
  <a href="${a}"
1163
1183
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
1164
1184
  part="button"
1165
- class="${(0,ea.classMap)(this.buttonClasses)}"
1185
+ class="${(0,Ta.classMap)(this.buttonClasses)}"
1166
1186
  aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.getLabel()}"
1167
1187
  ?disabled=${this.isDisabled()}>
1168
1188
  ${n}
1169
1189
  </a>
1170
- `:nr.html`
1190
+ `:sr.html`
1171
1191
  <button part="button"
1172
- class="${(0,ea.classMap)(this.buttonClasses)}"
1192
+ class="${(0,Ta.classMap)(this.buttonClasses)}"
1173
1193
  aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
1174
- aria-haspopup="${oo(this.ariaHasPopup)}"
1194
+ aria-haspopup="${co(this.ariaHasPopup)}"
1175
1195
  ?disabled=${this.isDisabled()}>
1176
1196
  ${n}
1177
1197
  </button>
1178
- `)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?nr.html`
1198
+ `)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?sr.html`
1179
1199
  <ft-tooltip part="tooltip"
1180
1200
  text="${this.getLabel()}"
1181
1201
  position="${this.tooltipPosition}">
1182
1202
  ${e}
1183
1203
  </ft-tooltip>
1184
- `:e}resolveIcon(){return this.loading?nr.html`
1185
- <ft-loader part="loader icon"></ft-loader> `:this.icon?nr.html`
1204
+ `:e}resolveIcon(){return this.loading?sr.html`
1205
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?sr.html`
1186
1206
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
1187
- `:nr.html`
1207
+ `:sr.html`
1188
1208
  <slot part="icon" name="icon"></slot>
1189
- `}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.textContent}get textContent(){return(0,ar.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};oe.elementDefinitions={"ft-ripple":K,"ft-tooltip":fe,"ft-typography":pe,"ft-icon":he,"ft-loader":Tr};_e([(0,Ce.property)()],oe.prototype,"href",void 0);_e([(0,Ce.property)()],oe.prototype,"target",void 0);_e([(0,Ce.property)()],oe.prototype,"type",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"disabled",void 0);_e([(0,Ce.property)()],oe.prototype,"label",void 0);_e([(0,Ce.property)()],oe.prototype,"icon",void 0);_e([(0,Ce.property)()],oe.prototype,"iconVariant",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"trailingIcon",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"loading",void 0);_e([(0,Ce.property)({attribute:"aria-label"})],oe.prototype,"ariaLabel",void 0);_e([(0,Ce.property)()],oe.prototype,"ariaHasPopup",void 0);_e([(0,Ce.property)()],oe.prototype,"tooltipPosition",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"hideTooltip",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"forceTooltip",void 0);_e([(0,Ce.property)({type:Boolean})],oe.prototype,"activated",void 0);_e([(0,Ce.query)(".ft-button")],oe.prototype,"button",void 0);_e([(0,Ce.query)(".ft-button--label slot")],oe.prototype,"slottedContent",void 0);_e([(0,Ce.query)("[part=tooltip]")],oe.prototype,"tooltip",void 0);var fi=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 oe{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};Ct.styles=[td.safariEllipsisFix,Ks];fi([(0,Lo.property)({type:Boolean})],Ct.prototype,"primary",void 0);fi([(0,Lo.property)({type:Boolean})],Ct.prototype,"outlined",void 0);fi([(0,Lo.property)({type:Boolean})],Ct.prototype,"dense",void 0);fi([(0,Lo.property)({type:Boolean})],Ct.prototype,"round",void 0);var ko=m(Z());var gi=m(T());var rd=m($()),C=m(T());var yp={...f,iconOnlyScale:C.FtCssVariableFactory.create("--ft-button-icon-only-scale","","NUMBER","1")},od=[rd.css`
1209
+ `}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,lr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Q.elementDefinitions={"ft-ripple":Z,"ft-tooltip":fe,"ft-icon":he,"ft-loader":Lr};Le([(0,Ce.property)()],Q.prototype,"href",void 0);Le([(0,Ce.property)()],Q.prototype,"target",void 0);Le([(0,Ce.property)()],Q.prototype,"type",void 0);Le([(0,Ce.property)({type:Boolean})],Q.prototype,"disabled",void 0);Le([(0,Ce.property)()],Q.prototype,"label",void 0);Le([(0,Ce.property)()],Q.prototype,"icon",void 0);Le([(0,Ce.property)()],Q.prototype,"iconVariant",void 0);Le([(0,Ce.property)({type:Boolean})],Q.prototype,"trailingIcon",void 0);Le([(0,Ce.property)({type:Boolean})],Q.prototype,"loading",void 0);Le([(0,Ce.property)({attribute:"aria-label"})],Q.prototype,"ariaLabel",void 0);Le([(0,Ce.property)()],Q.prototype,"ariaHasPopup",void 0);Le([(0,Ce.property)()],Q.prototype,"tooltipPosition",void 0);Le([(0,Ce.property)({type:Boolean})],Q.prototype,"hideTooltip",void 0);Le([(0,Ce.property)({type:Boolean})],Q.prototype,"forceTooltip",void 0);Le([(0,Ce.property)({type:Boolean})],Q.prototype,"activated",void 0);Le([(0,Ce.query)(".ft-button")],Q.prototype,"button",void 0);Le([(0,Ce.query)(".ft-button--label slot")],Q.prototype,"slottedContent",void 0);Le([(0,Ce.query)("[part=tooltip]")],Q.prototype,"tooltip",void 0);var bi=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},ft=class extends Q{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 Jr.button}};ft.elementDefinitions={...Q.elementDefinitions,"ft-or-ftds-typography":ue};ft.styles=[ld.safariEllipsisFix,Qs];bi([(0,Bo.property)({type:Boolean})],ft.prototype,"primary",void 0);bi([(0,Bo.property)({type:Boolean})],ft.prototype,"outlined",void 0);bi([(0,Bo.property)({type:Boolean})],ft.prototype,"dense",void 0);bi([(0,Bo.property)({type:Boolean})],ft.prototype,"round",void 0);var Fo=m(K()),vi=m(T());var cd=m($()),C=m(T());var wu={...f,iconOnlyScale:C.FtCssVariableFactory.create("--ft-button-icon-only-scale","","NUMBER","1")},dd=[cd.css`
1190
1210
  :host {
1191
1211
  display: inline-block;
1192
1212
  max-width: 100%;
@@ -1269,7 +1289,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1269
1289
  }
1270
1290
 
1271
1291
  .ft-button.ft-button--icon-only ft-icon {
1272
- transform: scale(${yp.iconOnlyScale});
1292
+ transform: scale(${wu.iconOnlyScale});
1273
1293
  }
1274
1294
 
1275
1295
  /** Brand Primary styles **/
@@ -1656,15 +1676,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1656
1676
  .ftds--size-small.ft-button--icon-only {
1657
1677
  width: ${f.smallIconOnlyWidth};
1658
1678
  }
1659
- `,C.noTextSelect];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},Zt=class extends(0,gi.toFtdsBase)(oe){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Zo.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 $r.large:return rr.body2medium;case $r.medium:return rr.caption1medium;case $r.small:return rr.caption2medium}}};Zt.styles=[gi.safariEllipsisFix,od];hi([(0,ko.property)({type:Boolean})],Zt.prototype,"primary",void 0);hi([(0,ko.property)({type:Boolean})],Zt.prototype,"secondary",void 0);hi([(0,ko.property)({type:Boolean})],Zt.prototype,"tertiary",void 0);hi([(0,ko.property)({type:Boolean})],Zt.prototype,"round",void 0);(0,ta.customElement)("ft-button")(Ct);(0,ta.customElement)("ftds-button")(Zt);var gu=m(T());var Wi=m($()),Gi=m(Z()),Vi=m(T());var id=m($());var nd=id.css`
1660
- `;var go=m(T());var uu=m(T());var gd=m($()),Me=m(Z()),Ot=m(T());var ad=m($());var sd=ad.css`
1661
- `;var yi=m(T()),mp="ft-app-info",kt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};kt.eventName="authentication-change";var bp={session:(t,e)=>{(0,yi.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>E.dispatchEvent(new kt(e.payload)),0))}},E=yi.FtReduxStore.get({name:mp,reducers:bp,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 ra=m(T());var Ir=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=E.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=E.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var mi=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ir.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ir.await()}};var Ze=class extends mi{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],[u])=>c.localeCompare(u)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new ra.CacheRegistry,this.cache=e?n.commonCache:new ra.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 bi=class extends Ze{async listMyBookmarks(){let e=E.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var oa=class{addCommand(e,r=!1){E.commands.add(e,r)}consumeCommand(e){return E.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new oa;var ft=m(T());var ld,io=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},xp=Symbol("clearAfterUnitTest"),xi=class extends(0,ft.withEventBus)(Ze){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ld]=()=>{this.defaultMessages={},this.cache=new ft.CacheRegistry,this.listeners={}},this.currentUiLocale=E.getState().uiLocale,E.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=E.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,ft.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 ft.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 ft.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 io({loadedContexts:e})),this.dispatchEvent(new io({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new io({loadedContexts:[e]})),this.dispatchEvent(new io({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,ft.delay)(0).then(()=>i()).catch(()=>null)))}};ld=xp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends xi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends xi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var no=window.FluidTopicsI18nService,vi=window.FluidTopicsCustomI18nService;var cd=m(T()),ia=class{highlightHtml(e,r,i){(0,cd.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new ia;var Si=class extends Ze{async listMySearches(){let{session:e}=E.getState();return Bt(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var dd=m(T());var na=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=E.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 dd.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:E.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new na;var ud=m(T());var Po=class{static get(e,r){var i,n;let a=E.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 ud.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${c}`)}};var aa=class{urlToSearchRequest(e){return Po.get().parse(e)}searchRequestToUrl(e){return Po.get().serialize(e)}};window.FluidTopicsUrlService=new aa;var sr=m(T());var _r=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};_r.eventName="change";var sa=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))}},pd=new sa;var Ci=class t extends sr.WithEventBus{static build(){return new t(window.history,pd,()=>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,sr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new _r(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,c])=>{let u=r(),p={...u===this.currentIndex?this.currentState:void 0,...a,index:u,href:typeof c=="string"?c:(c??this.windowLocation()).href};i.apply(n,[p,s,c]),this.setCurrentState(p,!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(_r.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(_r.eventName,e)}currentItem(){return(0,sr.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,sr.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,sr.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=Ci.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 ao=class{constructor(){this.storeListeners=[]}store(e,r){if(this.isAuthenticated())return;let i=JSON.stringify(r);window.localStorage.setItem(e,i),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:i,storageArea:window.localStorage}))}get(e){var r,i;if(!this.isAuthenticated())return(i=JSON.parse((r=window.localStorage.getItem(e))!==null&&r!==void 0?r:"null"))!==null&&i!==void 0?i:void 0}addStoreListener(e,r){let i=n=>{n.key===e()&&!this.isAuthenticated()&&r()};this.storeListeners.push(i),window.addEventListener("storage",i)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var fd=E;function hd(t,e){var r;return fd.getState().authenticationRequired&&!(!((r=fd.getState().session)===null||r===void 0)&&r.sessionAuthenticated)?Promise.resolve(e):t()}var Ee=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 Ot.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=()=>Ir.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Ot.CacheRegistry,this.cleanSessionDebouncer=new Ot.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return gd.html`
1679
+ `,C.noTextSelect];var xi=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},Pt=class extends(0,vi.toFtdsBase)(Q){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Jo.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 Fr.large:return ir.body2medium;case Fr.medium:return ir.caption1medium;case Fr.small:return ir.caption2medium}}};Pt.elementDefinitions={...Q.elementDefinitions,"ft-or-ftds-typography":zt};Pt.styles=[vi.safariEllipsisFix,dd];xi([(0,Fo.property)({type:Boolean})],Pt.prototype,"primary",void 0);xi([(0,Fo.property)({type:Boolean})],Pt.prototype,"secondary",void 0);xi([(0,Fo.property)({type:Boolean})],Pt.prototype,"tertiary",void 0);xi([(0,Fo.property)({type:Boolean})],Pt.prototype,"round",void 0);(0,Ia.customElement)("ft-button")(ft);(0,Ia.customElement)("ftds-button")(Pt);var Cp=m(T());var Zi=m($()),qi=m(K()),Yi=m(T());var pd=m($());var ud=pd.css`
1680
+ `;var So=m(T());var bp=m(T());var Cd=m($()),Me=m(K()),Ot=m(T());var fd=m($());var hd=fd.css`
1681
+ `;var Si=m(T()),Eu="ft-app-info",Dt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Dt.eventName="authentication-change";var Au={session:(t,e)=>{(0,Si.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>E.dispatchEvent(new Dt(e.payload)),0))}},E=Si.FtReduxStore.get({name:Eu,reducers:Au,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 _a=m(T());var Nr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=E.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=E.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var Ci=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Nr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Nr.await()}};var Ze=class extends Ci{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 _a.CacheRegistry,this.cache=e?n.commonCache:new _a.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 Oi=class extends Ze{async listMyBookmarks(){let e=E.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var La=class{addCommand(e,r=!1){E.commands.add(e,r)}consumeCommand(e){return E.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new La;var ht=m(T());var gd,po=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Ru=Symbol("clearAfterUnitTest"),wi=class extends(0,ht.withEventBus)(Ze){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[gd]=()=>{this.defaultMessages={},this.cache=new ht.CacheRegistry,this.listeners={}},this.currentUiLocale=E.getState().uiLocale,E.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=E.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,ht.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 ht.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 ht.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 po({loadedContexts:e})),this.dispatchEvent(new po({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new po({loadedContexts:[e]})),this.dispatchEvent(new po({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,ht.delay)(0).then(()=>i()).catch(()=>null)))}};gd=Ru;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends wi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends wi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var uo=window.FluidTopicsI18nService,Ei=window.FluidTopicsCustomI18nService;var yd=m(T()),Na=class{highlightHtml(e,r,i){(0,yd.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Na;var Ai=class extends Ze{async listMySearches(){let{session:e}=E.getState();return Ut(e,re.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var md=m(T());var ka=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=E.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 md.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:E.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ka;var bd=m(T());var Uo=class{static get(e,r){var i,n;let a=E.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 bd.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${c}`)}};var Pa=class{urlToSearchRequest(e){return Uo.get().parse(e)}searchRequestToUrl(e){return Uo.get().serialize(e)}};window.FluidTopicsUrlService=new Pa;var cr=m(T());var kr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};kr.eventName="change";var Da=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))}},xd=new Da;var Ri=class t extends cr.WithEventBus{static build(){return new t(window.history,xd,()=>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,cr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new kr(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(kr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(kr.eventName,e)}currentItem(){return(0,cr.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,cr.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,cr.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=Ri.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 fo=class{constructor(){this.storeListeners=[]}store(e,r){if(this.isAuthenticated())return;let i=JSON.stringify(r);window.localStorage.setItem(e,i),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:i,storageArea:window.localStorage}))}get(e){var r,i;if(!this.isAuthenticated())return(i=JSON.parse((r=window.localStorage.getItem(e))!==null&&r!==void 0?r:"null"))!==null&&i!==void 0?i:void 0}addStoreListener(e,r){let i=n=>{n.key===e()&&!this.isAuthenticated()&&r()};this.storeListeners.push(i),window.addEventListener("storage",i)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var vd=E;function Sd(t,e){var r;return vd.getState().authenticationRequired&&!(!((r=vd.getState().session)===null||r===void 0)&&r.sessionAuthenticated)?Promise.resolve(e):t()}var Ee=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 Ot.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=()=>Nr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Ot.CacheRegistry,this.cleanSessionDebouncer=new Ot.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Cd.html`
1662
1682
  <slot></slot>
1663
- `}connectedCallback(){super.connectedCallback(),E.addEventListener(kt.eventName,this.reloadConfiguration)}disconnectedCallback(){E.addEventListener(kt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,i,n,a,s,c,u;super.update(e),e.has("baseUrl")&&(E.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&E.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&E.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&E.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&E.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&E.actions.noCustom(this.noCustom),e.has("editorMode")&&E.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&E.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&E.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>no.addContext(p)),e.has("openExternalDocumentInNewTab")&&E.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&E.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&E.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(E.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),E.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),E.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&E.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&E.actions.availableContentLocales((u=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&u!==void 0?u:[]),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",()=>hd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};ie.elementDefinitions={};ie.styles=sd;Ee([(0,Me.property)()],ie.prototype,"baseUrl",void 0);Ee([(0,Me.property)()],ie.prototype,"apiIntegrationIdentifier",void 0);Ee([(0,Me.property)()],ie.prototype,"apiIntegrationAppVersion",void 0);Ee([(0,Me.property)()],ie.prototype,"uiLocale",void 0);Ee([(0,Ot.jsonProperty)(null)],ie.prototype,"availableUiLocales",void 0);Ee([(0,Ot.jsonProperty)(null)],ie.prototype,"metadataConfiguration",void 0);Ee([(0,Me.property)({type:Boolean})],ie.prototype,"editorMode",void 0);Ee([(0,Me.property)({type:Boolean})],ie.prototype,"noCustom",void 0);Ee([(0,Me.property)({type:Boolean})],ie.prototype,"openExternalDocumentInNewTab",void 0);Ee([(0,Me.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomComponent",void 0);Ee([(0,Me.property)({type:Boolean})],ie.prototype,"withManualResources",void 0);Ee([(0,Me.property)({type:Boolean})],ie.prototype,"navigatorOnline",void 0);Ee([(0,Me.property)({type:Boolean})],ie.prototype,"forcedOffline",void 0);Ee([(0,Me.property)({type:Object})],ie.prototype,"apiProvider",void 0);Ee([(0,Me.property)({type:Boolean})],ie.prototype,"authenticationRequired",void 0);Ee([(0,Ot.jsonProperty)([])],ie.prototype,"messageContexts",void 0);Ee([(0,Ot.jsonProperty)(void 0)],ie.prototype,"session",void 0);Ee([(0,Me.state)()],ie.prototype,"localesConfiguration",void 0);Ee([(0,Me.state)()],ie.prototype,"availableContentLocales",void 0);var La=m(Z());function vp(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(!Oi(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(!Oi(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(!Oi(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Oi(t,e){try{return vp(t,e)}catch{return!1}}function Do(t,e){return!Oi(t,e)}function wi(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 yd=m(Z(),1);var la=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:Do,attribute:!1,...e};(0,yd.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 Ei=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 Nr=m(Z(),1);var md=m(Z(),1);function bd(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,md.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:Do,...e??{}})}var Ai=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 vd=m($(),1);var Ri=globalThis,Sp=Ri.ShadowRoot&&(Ri.ShadyCSS===void 0||Ri.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,aC=Symbol();var xd=(t,e)=>{if(Sp)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Ri.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var Ti=class extends vd.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 xd(i,e.elementStyles),i}};function Sd(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 lo=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},Ed,Cd=Symbol("constructorPrototype"),Od=Symbol("constructorName"),Ad=Symbol("exportpartsDebouncer"),wd=Symbol("dynamicDependenciesLoaded"),so=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};so.eventName="exportparts-updated";var Pt=class extends Ti{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ed]=new Ai(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[Ad].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[Od]=this.constructor.name,this[Cd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Od]&&Object.setPrototypeOf(this,this[Cd])}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[wd]||(r[wd]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(so.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(so.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 so)})}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=Sd(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 u=b=>b!=null&&b.trim().length>0,p=e.filter(u).map(b=>b.trim());if(p.length===0){this.exportparts=void 0;return}let h=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 x=(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:[],w=[...x,...S].filter(u).map(_=>_.trim());for(let _ of w)h.add(_)}if(h.size===0){this.exportparts=void 0;return}let g=[...h.values()].flatMap(b=>p.map(x=>`${b}:${x}--${b}`));this.exportparts=[...this.part,...g].join(", ")}};Ed=Ad;lo([(0,Nr.property)()],Pt.prototype,"exportpartsPrefix",void 0);lo([bd([])],Pt.prototype,"exportpartsPrefixes",void 0);lo([(0,Nr.property)({reflect:!0})],Pt.prototype,"exportparts",void 0);lo([(0,Nr.property)()],Pt.prototype,"customStylesheet",void 0);lo([(0,Nr.property)()],Pt.prototype,"elementToFocus",void 0);lo([(0,Nr.state)()],Pt.prototype,"useAdoptedStyleSheets",void 0);function Ii(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Mo=Symbol("internalReduxEventsUnsubscribers"),lr=Symbol("internalStoresUnsubscribers"),Lr=Symbol("internalStores"),Cp=wi(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[Lr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Lr].get(s)}addStore(s,c){var u;c=(u=c??s.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(c),this[Lr].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Lr].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Lr].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let u=this.constructor.getPropertyOptions(c);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:c)){let p=this.getStore(s.store);p&&(s.store?this[lr].has(s.store):this[lr].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var u;this[lr].set(s,c.subscribe(()=>this.updateFromStores())),this[Mo].set(s,[]),Ii(c)&&c.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||c.name===p.store)){let g=b=>this[h](b);c.addEventListener(p.eventName,g),this[Mo].get(s).push(()=>c.removeEventListener(p.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[lr].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[lr].has(s)&&this[lr].get(s)(),this[lr].delete(s),(c=this[Mo].get(s))===null||c===void 0||c.forEach(u=>u()),this[Mo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=lr,r=Lr,i=Mo,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Rd=class extends Cp(Pt){};function ht(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 qt(t){return!!t&&!!t[ae]}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)===_p}(t)||Array.isArray(t)||!!t[Pd]||!!(!((e=t.constructor)===null||e===void 0)&&e[Pd])||ma(t)||ba(t))}function kr(t,e,r){r===void 0&&(r=!1),po(t)===0?(r?Object.keys:uo)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function po(t){var e=t[ae];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ma(t)?2:ba(t)?3:0}function co(t,e){return po(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Op(t,e){return po(t)===2?t.get(e):t[e]}function Dd(t,e,r){var i=po(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function Md(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ma(t){return Tp&&t instanceof Map}function ba(t){return Ip&&t instanceof Set}function cr(t){return t.o||t.t}function xa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Fd(t);delete e[ae];for(var r=uo(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 va(t,e){return e===void 0&&(e=!1),Sa(t)||qt(t)||!wt(t)||(po(t)>1&&(t.set=t.add=t.clear=t.delete=wp),Object.freeze(t),e&&kr(t,function(r,i){return va(i,!0)},!0)),t}function wp(){ht(2)}function Sa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Dt(t){var e=ya[t];return e||ht(18,t),e}function Ep(t,e){ya[t]||(ya[t]=e)}function fa(){return Bo}function ca(t,e){e&&(Dt("Patches"),t.u=[],t.s=[],t.v=e)}function _i(t){ha(t),t.p.forEach(Ap),t.p=null}function ha(t){t===Bo&&(Bo=t.l)}function Td(t){return Bo={p:[],l:Bo,h:t,m:!0,_:0}}function Ap(t){var e=t[ae];e.i===0||e.i===1?e.j():e.g=!0}function da(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||Dt("ES5").S(e,t,i),i?(r[ae].P&&(_i(e),ht(4)),wt(t)&&(t=Ni(e,t),e.l||Li(e,t)),e.u&&Dt("Patches").M(r[ae].t,t,e.u,e.s)):t=Ni(e,r,[]),_i(e),e.u&&e.v(e.u,e.s),t!==Bd?t:void 0}function Ni(t,e,r){if(Sa(e))return e;var i=e[ae];if(!i)return kr(e,function(c,u){return Id(t,i,e,c,u,r)},!0),e;if(i.A!==t)return e;if(!i.P)return Li(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=xa(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),kr(a,function(c,u){return Id(t,i,n,c,u,r,s)}),Li(t,n,!1),r&&t.u&&Dt("Patches").N(i,r,t.u,t.s)}return i.o}function Id(t,e,r,i,n,a,s){if(qt(n)){var c=Ni(t,n,a&&e&&e.i!==3&&!co(e.R,i)?a.concat(i):void 0);if(Dd(r,i,c),!qt(c))return;t.m=!1}else s&&r.add(n);if(wt(n)&&!Sa(n)){if(!t.h.D&&t._<1)return;Ni(t,n),e&&e.A.l||Li(t,n)}}function Li(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&va(e,r)}function ua(t,e){var r=t[ae];return(r?cr(r):t)[e]}function _d(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 dr(t){t.P||(t.P=!0,t.l&&dr(t.l))}function pa(t){t.o||(t.o=xa(t.t))}function ga(t,e,r){var i=ma(e)?Dt("MapSet").F(e,r):ba(e)?Dt("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:fa(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},u=c,p=Fo;s&&(u=[c],p=$o);var h=Proxy.revocable(u,p),g=h.revoke,b=h.proxy;return c.k=b,c.j=g,b}(e,r):Dt("ES5").J(e,r);return(r?r.A:fa()).p.push(i),i}function Rp(t){return qt(t)||ht(22,t),function e(r){if(!wt(r))return r;var i,n=r[ae],a=po(r);if(n){if(!n.P&&(n.i<4||!Dt("ES5").K(n)))return n.t;n.I=!0,i=Nd(r,a),n.I=!1}else i=Nd(r,a);return kr(i,function(s,c){n&&Op(n.t,s)===c||Dd(i,s,e(c))}),a===3?new Set(i):i}(t)}function Nd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return xa(t)}function $d(){function t(s,c){var u=a[s];return u?u.enumerable=c:a[s]=u={configurable:!0,enumerable:c,get:function(){var p=this[ae];return Fo.get(p,s)},set:function(p){var h=this[ae];Fo.set(h,s,p)}},u}function e(s){for(var c=s.length-1;c>=0;c--){var u=s[c][ae];if(!u.P)switch(u.i){case 5:i(u)&&dr(u);break;case 4:r(u)&&dr(u)}}}function r(s){for(var c=s.t,u=s.k,p=uo(u),h=p.length-1;h>=0;h--){var g=p[h];if(g!==ae){var b=c[g];if(b===void 0&&!co(c,g))return!0;var x=u[g],S=x&&x[ae];if(S?S.t!==b:!Md(x,b))return!0}}var w=!!c[ae];return p.length!==uo(c).length+(w?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(c,c.length-1);if(u&&!u.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&ht(3,JSON.stringify(cr(s)))}var a={};Ep("ES5",{J:function(s,c){var u=Array.isArray(s),p=function(g,b){if(g){for(var x=Array(b.length),S=0;S<b.length;S++)Object.defineProperty(x,""+S,t(S,!0));return x}var w=Fd(b);delete w[ae];for(var _=uo(w),I=0;I<_.length;I++){var N=_[I];w[N]=t(N,g||!!w[N].enumerable)}return Object.create(Object.getPrototypeOf(b),w)}(u,s),h={i:u?5:4,A:c?c.A:fa(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ae,{value:h,writable:!0}),p},S:function(s,c,u){u?qt(c)&&c[ae].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var g=h[ae];if(g){var b=g.t,x=g.k,S=g.R,w=g.i;if(w===4)kr(x,function(H){H!==ae&&(b[H]!==void 0||co(b,H)?S[H]||p(x[H]):(S[H]=!0,dr(g)))}),kr(b,function(H){x[H]!==void 0||co(x,H)||(S[H]=!1,dr(g))});else if(w===5){if(i(g)&&(dr(g),S.length=!0),x.length<b.length)for(var _=x.length;_<b.length;_++)S[_]=!1;else for(var I=b.length;I<x.length;I++)S[I]=!0;for(var N=Math.min(x.length,b.length),M=0;M<N;M++)x.hasOwnProperty(M)||(S[M]=!0),S[M]===void 0&&p(x[M])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Ld,Bo,Ca=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Tp=typeof Map<"u",Ip=typeof Set<"u",kd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Bd=Ca?Symbol.for("immer-nothing"):((Ld={})["immer-nothing"]=!0,Ld),Pd=Ca?Symbol.for("immer-draftable"):"__$immer_draftable",ae=Ca?Symbol.for("immer-state"):"__$immer_state";var _p=""+Object.prototype.constructor,uo=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Fd=Object.getOwnPropertyDescriptors||function(t){var e={};return uo(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},ya={},Fo={get:function(t,e){if(e===ae)return t;var r=cr(t);if(!co(r,e))return function(n,a,s){var c,u=_d(a,s);return u?"value"in u?u.value:(c=u.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===ua(t.t,e)?(pa(t),t.o[e]=ga(t.A.h,i,t)):i},has:function(t,e){return e in cr(t)},ownKeys:function(t){return Reflect.ownKeys(cr(t))},set:function(t,e,r){var i=_d(cr(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=ua(cr(t),e),a=n?.[ae];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Md(r,n)&&(r!==void 0||co(t.t,e)))return!0;pa(t),dr(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 ua(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,pa(t),dr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=cr(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){ht(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ht(12)}},$o={};kr(Fo,function(t,e){$o[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),$o.deleteProperty=function(t,e){return $o.set.call(this,t,e,void 0)},$o.set=function(t,e,r){return Fo.set.call(this,t[0],e,r,t[0])};var Np=function(){function t(r){var i=this;this.O=kd,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var u=i;return function(w){var _=this;w===void 0&&(w=c);for(var I=arguments.length,N=Array(I>1?I-1:0),M=1;M<I;M++)N[M-1]=arguments[M];return u.produce(w,function(H){var W;return(W=a).call.apply(W,[_,H].concat(N))})}}var p;if(typeof a!="function"&&ht(6),s!==void 0&&typeof s!="function"&&ht(7),wt(n)){var h=Td(i),g=ga(i,n,void 0),b=!0;try{p=a(g),b=!1}finally{b?_i(h):ha(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(w){return ca(h,s),da(w,h)},function(w){throw _i(h),w}):(ca(h,s),da(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Bd&&(p=void 0),i.D&&va(p,!0),s){var x=[],S=[];Dt("Patches").M(n,p,x,S),s(x,S)}return p}ht(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,g=Array(h>1?h-1:0),b=1;b<h;b++)g[b-1]=arguments[b];return i.produceWithPatches(p,function(x){return n.apply(void 0,[x].concat(g))})};var s,c,u=i.produce(n,a,function(p,h){s=p,c=h});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,s,c]}):[u,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)||ht(8),qt(r)&&(r=Rp(r));var i=Td(this),n=ga(this,r,void 0);return n[ae].C=!0,ha(i),n},e.finishDraft=function(r,i){var n=r&&r[ae],a=n.A;return ca(a,i),da(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!kd&&ht(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=Dt("Patches").$;return qt(r)?s(r,i):this.produce(r,function(c){return s(c,i)})},t}(),nt=new Np,Lp=nt.produce,SC=nt.produceWithPatches.bind(nt),CC=nt.setAutoFreeze.bind(nt),OC=nt.setUseProxies.bind(nt),wC=nt.applyPatches.bind(nt),EC=nt.createDraft.bind(nt),AC=nt.finishDraft.bind(nt),ki=Lp;function Pr(t){"@babel/helpers - typeof";return Pr=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},Pr(t)}function Ud(t,e){if(Pr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Pr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zd(t){var e=Ud(t,"string");return Pr(e)=="symbol"?e:e+""}function Hd(t,e,r){return(e=zd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wd(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 Oa(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Wd(Object(r),!0).forEach(function(i){Hd(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wd(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function ze(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 Gd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),wa=function(){return Math.random().toString(36).substring(7).split("").join(".")},Pi={INIT:"@@redux/INIT"+wa(),REPLACE:"@@redux/REPLACE"+wa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wa()}};function kp(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 Ea(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ze(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ze(1));return r(Ea)(t,e)}if(typeof t!="function")throw new Error(ze(2));var n=t,a=e,s=[],c=s,u=!1;function p(){c===s&&(c=s.slice())}function h(){if(u)throw new Error(ze(3));return a}function g(w){if(typeof w!="function")throw new Error(ze(4));if(u)throw new Error(ze(5));var _=!0;return p(),c.push(w),function(){if(_){if(u)throw new Error(ze(6));_=!1,p();var N=c.indexOf(w);c.splice(N,1),s=null}}}function b(w){if(!kp(w))throw new Error(ze(7));if(typeof w.type>"u")throw new Error(ze(8));if(u)throw new Error(ze(9));try{u=!0,a=n(a,w)}finally{u=!1}for(var _=s=c,I=0;I<_.length;I++){var N=_[I];N()}return w}function x(w){if(typeof w!="function")throw new Error(ze(10));n=w,b({type:Pi.REPLACE})}function S(){var w,_=g;return w={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ze(11));function M(){N.next&&N.next(h())}M();var H=_(M);return{unsubscribe:H}}},w[Gd]=function(){return this},w}return b({type:Pi.INIT}),i={dispatch:b,subscribe:g,getState:h,replaceReducer:x},i[Gd]=S,i}function Pp(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:Pi.INIT});if(typeof i>"u")throw new Error(ze(12));if(typeof r(void 0,{type:Pi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ze(13))})}function Vd(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{Pp(r)}catch(u){c=u}return function(p,h){if(p===void 0&&(p={}),c)throw c;if(0)var g;for(var b=!1,x={},S=0;S<a.length;S++){var w=a[S],_=r[w],I=p[w],N=_(I,h);if(typeof N>"u"){var M=h&&h.type;throw new Error(ze(14))}x[w]=N,b=b||N!==I}return b=b||a.length!==Object.keys(p).length,b?x:p}}function fo(){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 jd(){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(ze(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(u){return u(s)});return a=fo.apply(void 0,c)(n.dispatch),Oa(Oa({},n),{},{dispatch:a})}}}function Kd(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 Zd=Kd();Zd.withExtraArgument=Kd;var Aa=Zd;var Jd=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)}}(),Dp=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(p){return function(h){return u([p,h])}}function u(p){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(h){p=[6,h],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ho=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},Mp=Object.defineProperty,$p=Object.defineProperties,Bp=Object.getOwnPropertyDescriptors,qd=Object.getOwnPropertySymbols,Fp=Object.prototype.hasOwnProperty,Up=Object.prototype.propertyIsEnumerable,Yd=function(t,e,r){return e in t?Mp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},ur=function(t,e){for(var r in e||(e={}))Fp.call(e,r)&&Yd(t,r,e[r]);if(qd)for(var i=0,n=qd(e);i<n.length;i++){var r=n[i];Up.call(e,r)&&Yd(t,r,e[r])}return t},Ra=function(t,e){return $p(t,Bp(e))},zp=function(t,e,r){return new Promise(function(i,n){var a=function(u){try{c(r.next(u))}catch(p){n(p)}},s=function(u){try{c(r.throw(u))}catch(p){n(p)}},c=function(u){return u.done?i(u.value):Promise.resolve(u.value).then(a,s)};c((r=r.apply(t,e)).next())})};var Hp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?fo:fo.apply(null,arguments)},GC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Wp(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 Gp=function(t){Jd(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,ho([void 0],r[0].concat(this)))):new(e.bind.apply(e,ho([void 0],r.concat(this))))},e}(Array),Vp=function(t){Jd(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,ho([void 0],r[0].concat(this)))):new(e.bind.apply(e,ho([void 0],r.concat(this))))},e}(Array);function _a(t){return wt(t)?ki(t,function(){}):t}function jp(t){return typeof t=="boolean"}function Kp(){return function(e){return Zp(e)}}function Zp(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 Gp;if(r&&(jp(r)?c.push(Aa):c.push(Aa.withExtraArgument(r.extraArgument))),0){if(n)var u;if(s)var p}return c}var Ta=!0;function eu(t){var e=Kp(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,c=r.devTools,u=c===void 0?!0:c,p=r.preloadedState,h=p===void 0?void 0:p,g=r.enhancers,b=g===void 0?void 0:g,x;if(typeof n=="function")x=n;else if(Wp(n))x=Vd(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),!Ta&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ta&&S.some(function(H){return typeof H!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=jd.apply(void 0,S),_=fo;u&&(_=Hp(ur({trace:!Ta},typeof u=="object"&&u)));var I=new Vp(w),N=I;Array.isArray(b)?N=ho([w],b):typeof b=="function"&&(N=b(I));var M=_.apply(void 0,N);return Ea(x,h,M)}function pr(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 ur(ur({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 tu(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 qp(t){return typeof t=="function"}function Yp(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?tu(e):[e,r,i],a=n[0],s=n[1],c=n[2],u;if(qp(t))u=function(){return _a(t())};else{var p=_a(t);u=function(){return p}}function h(g,b){g===void 0&&(g=u());var x=ho([a[b.type]],s.filter(function(S){var w=S.matcher;return w(b)}).map(function(S){var w=S.reducer;return w}));return x.filter(function(S){return!!S}).length===0&&(x=[c]),x.reduce(function(S,w){if(w)if(qt(S)){var _=S,I=w(_,b);return I===void 0?S:I}else{if(wt(S))return ki(S,function(N){return w(N,b)});var I=w(S,b);if(I===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return S},g)}return h.getInitialState=u,h}function Xp(t,e){return t+"/"+e}function ru(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:_a(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(h){var g=i[h],b=Xp(e,h),x,S;"reducer"in g?(x=g.reducer,S=g.prepare):x=g,a[h]=x,s[b]=x,c[h]=S?pr(b,S):pr(b)});function u(){var h=typeof t.extraReducers=="function"?tu(t.extraReducers):[t.extraReducers],g=h[0],b=g===void 0?{}:g,x=h[1],S=x===void 0?[]:x,w=h[2],_=w===void 0?void 0:w,I=ur(ur({},b),s);return Yp(r,function(N){for(var M in I)N.addCase(M,I[M]);for(var H=0,W=S;H<W.length;H++){var qe=W[H];N.addMatcher(qe.matcher,qe.reducer)}_&&N.addDefaultCase(_)})}var p;return{name:e,reducer:function(h,g){return p||(p=u()),p(h,g)},actions:c,caseReducers:a,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Qp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Jp=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Qp[Math.random()*64|0];return e},ef=["name","message","stack","code"],Ia=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Xd=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),tf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=ef;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},ZC=function(){function t(e,r,i){var n=pr(e+"/fulfilled",function(h,g,b,x){return{payload:h,meta:Ra(ur({},x||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),a=pr(e+"/pending",function(h,g,b){return{payload:void 0,meta:Ra(ur({},b||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),s=pr(e+"/rejected",function(h,g,b,x,S){return{payload:x,error:(i&&i.serializeError||tf)(h||"Rejected"),meta:Ra(ur({},S||{}),{arg:b,requestId:g,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,u=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(g,b,x){var S=i?.idGenerator?i.idGenerator(h):Jp(),w=new u,_,I=!1;function N(H){_=H,w.abort()}var M=function(){return zp(this,null,function(){var H,W,qe,Rt,Ge,Tt,Ne;return Dp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Rt=(H=i?.condition)==null?void 0:H.call(i,h,{getState:b,extra:x}),of(Rt)?[4,Rt]:[3,2];case 1:Rt=y.sent(),y.label=2;case 2:if(Rt===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Ge=new Promise(function(v,P){return w.signal.addEventListener("abort",function(){return P({name:"AbortError",message:_||"Aborted"})})}),g(a(S,h,(W=i?.getPendingMeta)==null?void 0:W.call(i,{requestId:S,arg:h},{getState:b,extra:x}))),[4,Promise.race([Ge,Promise.resolve(r(h,{dispatch:g,getState:b,extra:x,requestId:S,signal:w.signal,abort:N,rejectWithValue:function(v,P){return new Ia(v,P)},fulfillWithValue:function(v,P){return new Xd(v,P)}})).then(function(v){if(v instanceof Ia)throw v;return v instanceof Xd?n(v.payload,S,h,v.meta):n(v,S,h)})])];case 3:return qe=y.sent(),[3,5];case 4:return Tt=y.sent(),qe=Tt instanceof Ia?s(null,S,h,Tt.payload,Tt.meta):s(Tt,S,h),[3,5];case 5:return Ne=i&&!i.dispatchConditionRejection&&s.match(qe)&&qe.meta.condition,Ne||g(qe),[2,qe]}})})}();return Object.assign(M,{abort:N,requestId:S,arg:h,unwrap:function(){return M.then(rf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function rf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function of(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var ou="listener",iu="completed",nu="cancelled",qC="task-"+nu,YC="task-"+iu,XC=ou+"-"+nu,QC=ou+"-"+iu;var Na="listenerMiddleware";var JC=pr(Na+"/add"),eO=pr(Na+"/removeAll"),tO=pr(Na+"/remove");var Qd,rO=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Qd||(Qd=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},nf=function(t){return function(e){setTimeout(e,t)}},oO=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:nf(10);$d();var af=wi(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)}}}),Di=class extends af(Object){};window.ftReduxStores||(window.ftReduxStores={});var au=class t extends Di{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(Ii(a))return a;if(n==null)return;let s=ru({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),c=eu({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:s.reducer(u,p)});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 Ei;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let u=s,p=a[u];return p?(...h)=>{let g=p(...h.map(n));return this.reduxStore.dispatch(g),g}:h=>{this.setState({[u]:n(h)})}}}),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 Mi=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 su=m(T()),$i=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},RO=(0,su.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(E)}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=>Mi.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return $i([(0,La.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),$i([(0,La.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),$i([la({store:E.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),$i([la({store:E.name})],e.prototype,"uiLocale",void 0),e});var Ui=m(T());var Bi=class extends Ze{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=E.getState().session;return!!e?.sessionAuthenticated}};var Fi=class extends Ze{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=E.getState().session;return!!e?.sessionAuthenticated}};var sf="ft-user-assets",lf={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(dt).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;Pa(t,r,[...ka(t,r),n]),lu(t,r,1,i),cu(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Pa(t,r,ka(t,r).map(n=>n.id===i.id?i:n)),cu(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Pa(t,r,ka(t,r).filter(a=>a.id!==n)),lu(t,r,-1,i)}},du={[dt.SEARCHES]:"savedSearches",[dt.BOOKMARKS]:"bookmarks",[dt.BOOKS]:void 0,[dt.COLLECTIONS]:void 0},ka=(t,e)=>{var r;let i=du[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Pa=(t,e,r)=>{let i=du[e];i&&(t[i]=r)},lu=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===dt.BOOKMARKS&&i)){let a=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,a+r)}},cu=(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)},at=Ui.FtReduxStore.get({name:sf,reducers:lf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(dt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Da=class{constructor(e=new Bi,r=new Fi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new bi,this.savedSearchesService=new Si,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=E.getState();(0,Ui.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(),at.actions.clearAssetCount(),at.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),at.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),at.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();at.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();at.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&at.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&at.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(at.getState().assetCounts.bookmarkByMap).length!==0;e===dt.BOOKMARKS&&r&&at.actions.clearBookmarkCountByMap(),at.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;at.actions.bookmarks(r)}}},Ma=new Da;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ma);(0,uu.customElement)("ft-app-context")(ie);var hu=m(Z());var $a=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-]+$/)}},pu=new $a;var cf=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},df=Symbol("i18nAttributes"),uf=Symbol("i18nListAttributes"),zo=Symbol("i18nProperties"),zi=Symbol("i18nContexts"),Uo=Symbol("i18nUnsubs"),fr=(0,go.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?vi:no}i18n(a){let{context:s,key:c,message:u}=a,{custom:p,args:h,argsProvider:g}=a;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let b=h??(g?g(this):[]);return this.getI18nService(p).resolveMessage(s,c,...b)}return u}async awaitI18n(a){let{context:s,custom:c}=a;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(a)}customI18n(a,s){if(pu.isI18nKey(a)){let[c,u]=a.split(".");return this.i18n({custom:!0,context:c,key:u,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,u)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let u=this,p=(h,g,b)=>b?.context&&b.key&&a(h,g,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...h})}:b;(s=this[df])===null||s===void 0||s.forEach((h,g)=>u[g]=p(h,g,u[g])),(c=this[uf])===null||c===void 0||c.forEach((h,g)=>{var b;return u[g]=(b=u[g])===null||b===void 0?void 0:b.map(x=>p(h,g,x))})}updateI18nProperties(a){var s;(s=this[zo])===null||s===void 0||s.forEach((c,u)=>{a(c,u)&&(this[u]=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 u=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[zi].set(u,{isCustomContext:c}),this[Uo].has(u)||this[Uo].set(u,this.getI18nService(c).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(c).prepareContext(u,s)}hasI18nContext(a){return this[zi].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[zi].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Uo].forEach(a=>a()),this[Uo].clear()}}return e=zi,r=Uo,cf([(0,hu.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),fu=class extends fr(go.FtLitElement){},Hi=class extends fr(go.FtLitElementRedux){};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},Et=class extends Hi{constructor(){super(),this.editorMode=!1,this.addStore(E)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Wi.nothing:Wi.html`
1683
+ `}connectedCallback(){super.connectedCallback(),E.addEventListener(Dt.eventName,this.reloadConfiguration)}disconnectedCallback(){E.addEventListener(Dt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,i,n,a,s,c,p;super.update(e),e.has("baseUrl")&&(E.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&E.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&E.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&E.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&E.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&E.actions.noCustom(this.noCustom),e.has("editorMode")&&E.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&E.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&E.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>uo.addContext(u)),e.has("openExternalDocumentInNewTab")&&E.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&E.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&E.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(E.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),E.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),E.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&E.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&E.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",()=>Sd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};ie.elementDefinitions={};ie.styles=hd;Ee([(0,Me.property)()],ie.prototype,"baseUrl",void 0);Ee([(0,Me.property)()],ie.prototype,"apiIntegrationIdentifier",void 0);Ee([(0,Me.property)()],ie.prototype,"apiIntegrationAppVersion",void 0);Ee([(0,Me.property)()],ie.prototype,"uiLocale",void 0);Ee([(0,Ot.jsonProperty)(null)],ie.prototype,"availableUiLocales",void 0);Ee([(0,Ot.jsonProperty)(null)],ie.prototype,"metadataConfiguration",void 0);Ee([(0,Me.property)({type:Boolean})],ie.prototype,"editorMode",void 0);Ee([(0,Me.property)({type:Boolean})],ie.prototype,"noCustom",void 0);Ee([(0,Me.property)({type:Boolean})],ie.prototype,"openExternalDocumentInNewTab",void 0);Ee([(0,Me.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomComponent",void 0);Ee([(0,Me.property)({type:Boolean})],ie.prototype,"withManualResources",void 0);Ee([(0,Me.property)({type:Boolean})],ie.prototype,"navigatorOnline",void 0);Ee([(0,Me.property)({type:Boolean})],ie.prototype,"forcedOffline",void 0);Ee([(0,Me.property)({type:Object})],ie.prototype,"apiProvider",void 0);Ee([(0,Me.property)({type:Boolean})],ie.prototype,"authenticationRequired",void 0);Ee([(0,Ot.jsonProperty)([])],ie.prototype,"messageContexts",void 0);Ee([(0,Ot.jsonProperty)(void 0)],ie.prototype,"session",void 0);Ee([(0,Me.state)()],ie.prototype,"localesConfiguration",void 0);Ee([(0,Me.state)()],ie.prototype,"availableContentLocales",void 0);var as=m(K());function Tu(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(!Ti(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(!Ti(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(!Ti(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ti(t,e){try{return Tu(t,e)}catch{return!1}}function zo(t,e){return!Ti(t,e)}function Ii(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 Od=m(K(),1);var Ma=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:zo,attribute:!1,...e};(0,Od.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 _i=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 Pr=m(K(),1);var wd=m(K(),1);function Ed(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,wd.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:zo,...e??{}})}var Li=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 Rd=m($(),1);var Ni=globalThis,Iu=Ni.ShadowRoot&&(Ni.ShadyCSS===void 0||Ni.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,YC=Symbol();var Ad=(t,e)=>{if(Iu)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Ni.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var ki=class extends Rd.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 Ad(i,e.elementStyles),i}};function Td(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 go=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},Nd,Id=Symbol("constructorPrototype"),_d=Symbol("constructorName"),kd=Symbol("exportpartsDebouncer"),Ld=Symbol("dynamicDependenciesLoaded"),ho=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};ho.eventName="exportparts-updated";var Mt=class extends ki{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Nd]=new Li(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[kd].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[_d]=this.constructor.name,this[Id]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[_d]&&Object.setPrototypeOf(this,this[Id])}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[Ld]||(r[Ld]=!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=Td(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 h=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 x=(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:[],w=[...x,...S].filter(p).map(_=>_.trim());for(let _ of w)h.add(_)}if(h.size===0){this.exportparts=void 0;return}let g=[...h.values()].flatMap(b=>u.map(x=>`${b}:${x}--${b}`));this.exportparts=[...this.part,...g].join(", ")}};Nd=kd;go([(0,Pr.property)()],Mt.prototype,"exportpartsPrefix",void 0);go([Ed([])],Mt.prototype,"exportpartsPrefixes",void 0);go([(0,Pr.property)({reflect:!0})],Mt.prototype,"exportparts",void 0);go([(0,Pr.property)()],Mt.prototype,"customStylesheet",void 0);go([(0,Pr.property)()],Mt.prototype,"elementToFocus",void 0);go([(0,Pr.state)()],Mt.prototype,"useAdoptedStyleSheets",void 0);function Pi(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ho=Symbol("internalReduxEventsUnsubscribers"),dr=Symbol("internalStoresUnsubscribers"),Dr=Symbol("internalStores"),_u=Ii(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[Dr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Dr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Dr].get(s)}addStore(s,c){var p;c=(p=c??s.name)!==null&&p!==void 0?p:"default-store",this.unsubscribeFromStore(c),this[Dr].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Dr].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Dr].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[dr].has(s.store):this[dr].size>0)&&(this[c]=s.selector(u.getState(),this))}})}subscribeToStore(s,c){var p;this[dr].set(s,c.subscribe(()=>this.updateFromStores())),this[Ho].set(s,[]),Pi(c)&&c.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||c.name===u.store)){let g=b=>this[h](b);c.addEventListener(u.eventName,g),this[Ho].get(s).push(()=>c.removeEventListener(u.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[dr].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[dr].has(s)&&this[dr].get(s)(),this[dr].delete(s),(c=this[Ho].get(s))===null||c===void 0||c.forEach(p=>p()),this[Ho].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=dr,r=Dr,i=Ho,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Pd=class extends _u(Mt){};function gt(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 Yt(t){return!!t&&!!t[ae]}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)===Bu}(t)||Array.isArray(t)||!!t[zd]||!!(!((e=t.constructor)===null||e===void 0)&&e[zd])||Va(t)||ja(t))}function Mr(t,e,r){r===void 0&&(r=!1),bo(t)===0?(r?Object.keys:mo)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function bo(t){var e=t[ae];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Va(t)?2:ja(t)?3:0}function yo(t,e){return bo(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Lu(t,e){return bo(t)===2?t.get(e):t[e]}function Hd(t,e,r){var i=bo(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function Wd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Va(t){return Mu&&t instanceof Map}function ja(t){return $u&&t instanceof Set}function pr(t){return t.o||t.t}function Ka(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=jd(t);delete e[ae];for(var r=mo(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 Za(t,e){return e===void 0&&(e=!1),qa(t)||Yt(t)||!wt(t)||(bo(t)>1&&(t.set=t.add=t.clear=t.delete=Nu),Object.freeze(t),e&&Mr(t,function(r,i){return Za(i,!0)},!0)),t}function Nu(){gt(2)}function qa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function $t(t){var e=Ga[t];return e||gt(18,t),e}function ku(t,e){Ga[t]||(Ga[t]=e)}function za(){return Go}function $a(t,e){e&&($t("Patches"),t.u=[],t.s=[],t.v=e)}function Di(t){Ha(t),t.p.forEach(Pu),t.p=null}function Ha(t){t===Go&&(Go=t.l)}function Dd(t){return Go={p:[],l:Go,h:t,m:!0,_:0}}function Pu(t){var e=t[ae];e.i===0||e.i===1?e.j():e.g=!0}function Ba(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||$t("ES5").S(e,t,i),i?(r[ae].P&&(Di(e),gt(4)),wt(t)&&(t=Mi(e,t),e.l||$i(e,t)),e.u&&$t("Patches").M(r[ae].t,t,e.u,e.s)):t=Mi(e,r,[]),Di(e),e.u&&e.v(e.u,e.s),t!==Vd?t:void 0}function Mi(t,e,r){if(qa(e))return e;var i=e[ae];if(!i)return Mr(e,function(c,p){return Md(t,i,e,c,p,r)},!0),e;if(i.A!==t)return e;if(!i.P)return $i(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Ka(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Mr(a,function(c,p){return Md(t,i,n,c,p,r,s)}),$i(t,n,!1),r&&t.u&&$t("Patches").N(i,r,t.u,t.s)}return i.o}function Md(t,e,r,i,n,a,s){if(Yt(n)){var c=Mi(t,n,a&&e&&e.i!==3&&!yo(e.R,i)?a.concat(i):void 0);if(Hd(r,i,c),!Yt(c))return;t.m=!1}else s&&r.add(n);if(wt(n)&&!qa(n)){if(!t.h.D&&t._<1)return;Mi(t,n),e&&e.A.l||$i(t,n)}}function $i(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Za(e,r)}function Fa(t,e){var r=t[ae];return(r?pr(r):t)[e]}function $d(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 ur(t){t.P||(t.P=!0,t.l&&ur(t.l))}function Ua(t){t.o||(t.o=Ka(t.t))}function Wa(t,e,r){var i=Va(e)?$t("MapSet").F(e,r):ja(e)?$t("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:za(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},p=c,u=Vo;s&&(p=[c],u=Wo);var h=Proxy.revocable(p,u),g=h.revoke,b=h.proxy;return c.k=b,c.j=g,b}(e,r):$t("ES5").J(e,r);return(r?r.A:za()).p.push(i),i}function Du(t){return Yt(t)||gt(22,t),function e(r){if(!wt(r))return r;var i,n=r[ae],a=bo(r);if(n){if(!n.P&&(n.i<4||!$t("ES5").K(n)))return n.t;n.I=!0,i=Bd(r,a),n.I=!1}else i=Bd(r,a);return Mr(i,function(s,c){n&&Lu(n.t,s)===c||Hd(i,s,e(c))}),a===3?new Set(i):i}(t)}function Bd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ka(t)}function Gd(){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[ae];return Vo.get(u,s)},set:function(u){var h=this[ae];Vo.set(h,s,u)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][ae];if(!p.P)switch(p.i){case 5:i(p)&&ur(p);break;case 4:r(p)&&ur(p)}}}function r(s){for(var c=s.t,p=s.k,u=mo(p),h=u.length-1;h>=0;h--){var g=u[h];if(g!==ae){var b=c[g];if(b===void 0&&!yo(c,g))return!0;var x=p[g],S=x&&x[ae];if(S?S.t!==b:!Wd(x,b))return!0}}var w=!!c[ae];return u.length!==mo(c).length+(w?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&&gt(3,JSON.stringify(pr(s)))}var a={};ku("ES5",{J:function(s,c){var p=Array.isArray(s),u=function(g,b){if(g){for(var x=Array(b.length),S=0;S<b.length;S++)Object.defineProperty(x,""+S,t(S,!0));return x}var w=jd(b);delete w[ae];for(var _=mo(w),I=0;I<_.length;I++){var L=_[I];w[L]=t(L,g||!!w[L].enumerable)}return Object.create(Object.getPrototypeOf(b),w)}(p,s),h={i:p?5:4,A:c?c.A:za(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,ae,{value:h,writable:!0}),u},S:function(s,c,p){p?Yt(c)&&c[ae].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var g=h[ae];if(g){var b=g.t,x=g.k,S=g.R,w=g.i;if(w===4)Mr(x,function(H){H!==ae&&(b[H]!==void 0||yo(b,H)?S[H]||u(x[H]):(S[H]=!0,ur(g)))}),Mr(b,function(H){x[H]!==void 0||yo(x,H)||(S[H]=!1,ur(g))});else if(w===5){if(i(g)&&(ur(g),S.length=!0),x.length<b.length)for(var _=x.length;_<b.length;_++)S[_]=!1;else for(var I=b.length;I<x.length;I++)S[I]=!0;for(var L=Math.min(x.length,b.length),M=0;M<L;M++)x.hasOwnProperty(M)||(S[M]=!0),S[M]===void 0&&u(x[M])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Fd,Go,Ya=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Mu=typeof Map<"u",$u=typeof Set<"u",Ud=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Vd=Ya?Symbol.for("immer-nothing"):((Fd={})["immer-nothing"]=!0,Fd),zd=Ya?Symbol.for("immer-draftable"):"__$immer_draftable",ae=Ya?Symbol.for("immer-state"):"__$immer_state";var Bu=""+Object.prototype.constructor,mo=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,jd=Object.getOwnPropertyDescriptors||function(t){var e={};return mo(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Ga={},Vo={get:function(t,e){if(e===ae)return t;var r=pr(t);if(!yo(r,e))return function(n,a,s){var c,p=$d(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===Fa(t.t,e)?(Ua(t),t.o[e]=Wa(t.A.h,i,t)):i},has:function(t,e){return e in pr(t)},ownKeys:function(t){return Reflect.ownKeys(pr(t))},set:function(t,e,r){var i=$d(pr(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=Fa(pr(t),e),a=n?.[ae];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Wd(r,n)&&(r!==void 0||yo(t.t,e)))return!0;Ua(t),ur(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 Fa(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ua(t),ur(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=pr(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){gt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){gt(12)}},Wo={};Mr(Vo,function(t,e){Wo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Wo.deleteProperty=function(t,e){return Wo.set.call(this,t,e,void 0)},Wo.set=function(t,e,r){return Vo.set.call(this,t[0],e,r,t[0])};var Fu=function(){function t(r){var i=this;this.O=Ud,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(w){var _=this;w===void 0&&(w=c);for(var I=arguments.length,L=Array(I>1?I-1:0),M=1;M<I;M++)L[M-1]=arguments[M];return p.produce(w,function(H){var W;return(W=a).call.apply(W,[_,H].concat(L))})}}var u;if(typeof a!="function"&&gt(6),s!==void 0&&typeof s!="function"&&gt(7),wt(n)){var h=Dd(i),g=Wa(i,n,void 0),b=!0;try{u=a(g),b=!1}finally{b?Di(h):Ha(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(w){return $a(h,s),Ba(w,h)},function(w){throw Di(h),w}):($a(h,s),Ba(u,h))}if(!n||typeof n!="object"){if((u=a(n))===void 0&&(u=n),u===Vd&&(u=void 0),i.D&&Za(u,!0),s){var x=[],S=[];$t("Patches").M(n,u,x,S),s(x,S)}return u}gt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(u){for(var h=arguments.length,g=Array(h>1?h-1:0),b=1;b<h;b++)g[b-1]=arguments[b];return i.produceWithPatches(u,function(x){return n.apply(void 0,[x].concat(g))})};var s,c,p=i.produce(n,a,function(u,h){s=u,c=h});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)||gt(8),Yt(r)&&(r=Du(r));var i=Dd(this),n=Wa(this,r,void 0);return n[ae].C=!0,Ha(i),n},e.finishDraft=function(r,i){var n=r&&r[ae],a=n.A;return $a(a,i),Ba(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Ud&&gt(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=$t("Patches").$;return Yt(r)?s(r,i):this.produce(r,function(c){return s(c,i)})},t}(),at=new Fu,Uu=at.produce,pO=at.produceWithPatches.bind(at),uO=at.setAutoFreeze.bind(at),fO=at.setUseProxies.bind(at),hO=at.applyPatches.bind(at),gO=at.createDraft.bind(at),yO=at.finishDraft.bind(at),Bi=Uu;function $r(t){"@babel/helpers - typeof";return $r=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},$r(t)}function Kd(t,e){if($r(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if($r(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Zd(t){var e=Kd(t,"string");return $r(e)=="symbol"?e:e+""}function qd(t,e,r){return(e=Zd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yd(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 Xa(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Yd(Object(r),!0).forEach(function(i){qd(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function ze(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 Xd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Qa=function(){return Math.random().toString(36).substring(7).split("").join(".")},Fi={INIT:"@@redux/INIT"+Qa(),REPLACE:"@@redux/REPLACE"+Qa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Qa()}};function zu(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 Ja(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ze(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ze(1));return r(Ja)(t,e)}if(typeof t!="function")throw new Error(ze(2));var n=t,a=e,s=[],c=s,p=!1;function u(){c===s&&(c=s.slice())}function h(){if(p)throw new Error(ze(3));return a}function g(w){if(typeof w!="function")throw new Error(ze(4));if(p)throw new Error(ze(5));var _=!0;return u(),c.push(w),function(){if(_){if(p)throw new Error(ze(6));_=!1,u();var L=c.indexOf(w);c.splice(L,1),s=null}}}function b(w){if(!zu(w))throw new Error(ze(7));if(typeof w.type>"u")throw new Error(ze(8));if(p)throw new Error(ze(9));try{p=!0,a=n(a,w)}finally{p=!1}for(var _=s=c,I=0;I<_.length;I++){var L=_[I];L()}return w}function x(w){if(typeof w!="function")throw new Error(ze(10));n=w,b({type:Fi.REPLACE})}function S(){var w,_=g;return w={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(ze(11));function M(){L.next&&L.next(h())}M();var H=_(M);return{unsubscribe:H}}},w[Xd]=function(){return this},w}return b({type:Fi.INIT}),i={dispatch:b,subscribe:g,getState:h,replaceReducer:x},i[Xd]=S,i}function Hu(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:Fi.INIT});if(typeof i>"u")throw new Error(ze(12));if(typeof r(void 0,{type:Fi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ze(13))})}function Qd(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{Hu(r)}catch(p){c=p}return function(u,h){if(u===void 0&&(u={}),c)throw c;if(0)var g;for(var b=!1,x={},S=0;S<a.length;S++){var w=a[S],_=r[w],I=u[w],L=_(I,h);if(typeof L>"u"){var M=h&&h.type;throw new Error(ze(14))}x[w]=L,b=b||L!==I}return b=b||a.length!==Object.keys(u).length,b?x:u}}function xo(){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 Jd(){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(ze(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=xo.apply(void 0,c)(n.dispatch),Xa(Xa({},n),{},{dispatch:a})}}}function ep(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 tp=ep();tp.withExtraArgument=ep;var es=tp;var ap=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)}}(),Wu=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(h){return p([u,h])}}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(h){u=[6,h],n=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},vo=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},Gu=Object.defineProperty,Vu=Object.defineProperties,ju=Object.getOwnPropertyDescriptors,rp=Object.getOwnPropertySymbols,Ku=Object.prototype.hasOwnProperty,Zu=Object.prototype.propertyIsEnumerable,op=function(t,e,r){return e in t?Gu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},fr=function(t,e){for(var r in e||(e={}))Ku.call(e,r)&&op(t,r,e[r]);if(rp)for(var i=0,n=rp(e);i<n.length;i++){var r=n[i];Zu.call(e,r)&&op(t,r,e[r])}return t},ts=function(t,e){return Vu(t,ju(e))},qu=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 Yu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?xo:xo.apply(null,arguments)},PO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Xu(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 Qu=function(t){ap(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,vo([void 0],r[0].concat(this)))):new(e.bind.apply(e,vo([void 0],r.concat(this))))},e}(Array),Ju=function(t){ap(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,vo([void 0],r[0].concat(this)))):new(e.bind.apply(e,vo([void 0],r.concat(this))))},e}(Array);function is(t){return wt(t)?Bi(t,function(){}):t}function ef(t){return typeof t=="boolean"}function tf(){return function(e){return rf(e)}}function rf(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 Qu;if(r&&(ef(r)?c.push(es):c.push(es.withExtraArgument(r.extraArgument))),0){if(n)var p;if(s)var u}return c}var rs=!0;function sp(t){var e=tf(),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,h=u===void 0?void 0:u,g=r.enhancers,b=g===void 0?void 0:g,x;if(typeof n=="function")x=n;else if(Xu(n))x=Qd(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),!rs&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!rs&&S.some(function(H){return typeof H!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Jd.apply(void 0,S),_=xo;p&&(_=Yu(fr({trace:!rs},typeof p=="object"&&p)));var I=new Ju(w),L=I;Array.isArray(b)?L=vo([w],b):typeof b=="function"&&(L=b(I));var M=_.apply(void 0,L);return Ja(x,h,M)}function hr(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 fr(fr({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 lp(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 of(t){return typeof t=="function"}function nf(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?lp(e):[e,r,i],a=n[0],s=n[1],c=n[2],p;if(of(t))p=function(){return is(t())};else{var u=is(t);p=function(){return u}}function h(g,b){g===void 0&&(g=p());var x=vo([a[b.type]],s.filter(function(S){var w=S.matcher;return w(b)}).map(function(S){var w=S.reducer;return w}));return x.filter(function(S){return!!S}).length===0&&(x=[c]),x.reduce(function(S,w){if(w)if(Yt(S)){var _=S,I=w(_,b);return I===void 0?S:I}else{if(wt(S))return Bi(S,function(L){return w(L,b)});var I=w(S,b);if(I===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return S},g)}return h.getInitialState=p,h}function af(t,e){return t+"/"+e}function cp(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:is(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(h){var g=i[h],b=af(e,h),x,S;"reducer"in g?(x=g.reducer,S=g.prepare):x=g,a[h]=x,s[b]=x,c[h]=S?hr(b,S):hr(b)});function p(){var h=typeof t.extraReducers=="function"?lp(t.extraReducers):[t.extraReducers],g=h[0],b=g===void 0?{}:g,x=h[1],S=x===void 0?[]:x,w=h[2],_=w===void 0?void 0:w,I=fr(fr({},b),s);return nf(r,function(L){for(var M in I)L.addCase(M,I[M]);for(var H=0,W=S;H<W.length;H++){var qe=W[H];L.addMatcher(qe.matcher,qe.reducer)}_&&L.addDefaultCase(_)})}var u;return{name:e,reducer:function(h,g){return u||(u=p()),u(h,g)},actions:c,caseReducers:a,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var sf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",lf=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=sf[Math.random()*64|0];return e},cf=["name","message","stack","code"],os=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),ip=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),df=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=cf;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},BO=function(){function t(e,r,i){var n=hr(e+"/fulfilled",function(h,g,b,x){return{payload:h,meta:ts(fr({},x||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),a=hr(e+"/pending",function(h,g,b){return{payload:void 0,meta:ts(fr({},b||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),s=hr(e+"/rejected",function(h,g,b,x,S){return{payload:x,error:(i&&i.serializeError||df)(h||"Rejected"),meta:ts(fr({},S||{}),{arg:b,requestId:g,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,p=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(g,b,x){var S=i?.idGenerator?i.idGenerator(h):lf(),w=new p,_,I=!1;function L(H){_=H,w.abort()}var M=function(){return qu(this,null,function(){var H,W,qe,Rt,Ge,Tt,Ne;return Wu(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Rt=(H=i?.condition)==null?void 0:H.call(i,h,{getState:b,extra:x}),uf(Rt)?[4,Rt]:[3,2];case 1:Rt=y.sent(),y.label=2;case 2:if(Rt===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Ge=new Promise(function(v,P){return w.signal.addEventListener("abort",function(){return P({name:"AbortError",message:_||"Aborted"})})}),g(a(S,h,(W=i?.getPendingMeta)==null?void 0:W.call(i,{requestId:S,arg:h},{getState:b,extra:x}))),[4,Promise.race([Ge,Promise.resolve(r(h,{dispatch:g,getState:b,extra:x,requestId:S,signal:w.signal,abort:L,rejectWithValue:function(v,P){return new os(v,P)},fulfillWithValue:function(v,P){return new ip(v,P)}})).then(function(v){if(v instanceof os)throw v;return v instanceof ip?n(v.payload,S,h,v.meta):n(v,S,h)})])];case 3:return qe=y.sent(),[3,5];case 4:return Tt=y.sent(),qe=Tt instanceof os?s(null,S,h,Tt.payload,Tt.meta):s(Tt,S,h),[3,5];case 5:return Ne=i&&!i.dispatchConditionRejection&&s.match(qe)&&qe.meta.condition,Ne||g(qe),[2,qe]}})})}();return Object.assign(M,{abort:L,requestId:S,arg:h,unwrap:function(){return M.then(pf)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function pf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function uf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var dp="listener",pp="completed",up="cancelled",FO="task-"+up,UO="task-"+pp,zO=dp+"-"+up,HO=dp+"-"+pp;var ns="listenerMiddleware";var WO=hr(ns+"/add"),GO=hr(ns+"/removeAll"),VO=hr(ns+"/remove");var np,jO=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(np||(np=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},ff=function(t){return function(e){setTimeout(e,t)}},KO=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ff(10);Gd();var hf=Ii(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)}}}),Ui=class extends hf(Object){};window.ftReduxStores||(window.ftReduxStores={});var fp=class t extends Ui{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(Pi(a))return a;if(n==null)return;let s=cp({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),c=sp({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 _i;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?(...h)=>{let g=u(...h.map(n));return this.reduxStore.dispatch(g),g}:h=>{this.setState({[p]:n(h)})}}}),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 zi=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 hp=m(T()),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},mw=(0,hp.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(E)}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=>zi.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Hi([(0,as.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Hi([(0,as.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Hi([Ma({store:E.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),Hi([Ma({store:E.name})],e.prototype,"uiLocale",void 0),e});var Vi=m(T());var Wi=class extends Ze{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=E.getState().session;return!!e?.sessionAuthenticated}};var Gi=class extends Ze{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=E.getState().session;return!!e?.sessionAuthenticated}};var gf="ft-user-assets",yf={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(pt).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;ls(t,r,[...ss(t,r),n]),gp(t,r,1,i),yp(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;ls(t,r,ss(t,r).map(n=>n.id===i.id?i:n)),yp(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;ls(t,r,ss(t,r).filter(a=>a.id!==n)),gp(t,r,-1,i)}},mp={[pt.SEARCHES]:"savedSearches",[pt.BOOKMARKS]:"bookmarks",[pt.BOOKS]:void 0,[pt.COLLECTIONS]:void 0},ss=(t,e)=>{var r;let i=mp[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},ls=(t,e,r)=>{let i=mp[e];i&&(t[i]=r)},gp=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===pt.BOOKMARKS&&i)){let a=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,a+r)}},yp=(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)},st=Vi.FtReduxStore.get({name:gf,reducers:yf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(pt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),cs=class{constructor(e=new Wi,r=new Gi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Oi,this.savedSearchesService=new Ai,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=E.getState();(0,Vi.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(),st.actions.clearAssetCount(),st.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),st.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),st.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();st.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();st.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&st.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&st.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(st.getState().assetCounts.bookmarkByMap).length!==0;e===pt.BOOKMARKS&&r&&st.actions.clearBookmarkCountByMap(),st.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;st.actions.bookmarks(r)}}},ds=new cs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ds);(0,bp.customElement)("ft-app-context")(ie);var Sp=m(K());var ps=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-]+$/)}},xp=new ps;var mf=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},bf=Symbol("i18nAttributes"),xf=Symbol("i18nListAttributes"),Ko=Symbol("i18nProperties"),ji=Symbol("i18nContexts"),jo=Symbol("i18nUnsubs"),gr=(0,So.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?Ei:uo}i18n(a){let{context:s,key:c,message:p}=a,{custom:u,args:h,argsProvider:g}=a;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let b=h??(g?g(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(xp.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=(h,g,b)=>b?.context&&b.key&&a(h,g,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...h})}:b;(s=this[bf])===null||s===void 0||s.forEach((h,g)=>p[g]=u(h,g,p[g])),(c=this[xf])===null||c===void 0||c.forEach((h,g)=>{var b;return p[g]=(b=p[g])===null||b===void 0?void 0:b.map(x=>u(h,g,x))})}updateI18nProperties(a){var s;(s=this[Ko])===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[ji].set(p,{isCustomContext:c}),this[jo].has(p)||this[jo].set(p,this.getI18nService(c).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(c).prepareContext(p,s)}hasI18nContext(a){return this[ji].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ji].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[jo].forEach(a=>a()),this[jo].clear()}}return e=ji,r=jo,mf([(0,Sp.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),vp=class extends gr(So.FtLitElement){},Ki=class extends gr(So.FtLitElementRedux){};var Zo=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},Et=class extends Ki{constructor(){super(),this.editorMode=!1,this.addStore(E)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Zi.nothing:Zi.html`
1664
1684
  <span class="ft-i18n">
1665
1685
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
1666
1686
  </span>
1667
- `}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:""})}};Et.elementDefinitions={};Et.styles=nd;Ho([(0,Vi.redux)()],Et.prototype,"editorMode",void 0);Ho([(0,Gi.property)()],Et.prototype,"context",void 0);Ho([(0,Gi.property)()],Et.prototype,"key",void 0);Ho([(0,Vi.jsonProperty)([])],Et.prototype,"args",void 0);Ho([(0,Gi.property)()],Et.prototype,"defaultMessage",void 0);var hr=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?vi:no}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)})})}};var ji=(t,e)=>(r,i)=>{var n,a;r.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};r[zo]=(a=r[zo])!==null&&a!==void 0?a:new Map,r[zo].set(i,s)};(0,gu.customElement)("ft-i18n")(Et);var V=hr.build("integratedFeedbackComponent"),yu={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var Fa=m(T());var Ae=m($()),z=m(Z()),Ou=m(Jn()),wu=m(Ft());var gr=m(T());var mu=m($()),D=m(T());var U={fontSize:D.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:D.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:D.FtCssVariableFactory.extend("--ft-text-field-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system"),prefixColor:D.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",D.designSystemVariables.colorOnSurfaceMedium),iconColor:D.FtCssVariableFactory.extend("--ft-text-field-icon-color","",D.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:D.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-text-field-background-color","",D.designSystemVariables.colorSurface),colorOutline:D.FtCssVariableFactory.external(D.designSystemVariables.colorOutline,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),suggestSize:D.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},bu=mu.css`
1687
+ `}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:""})}};Et.elementDefinitions={};Et.styles=ud;Zo([(0,Yi.redux)()],Et.prototype,"editorMode",void 0);Zo([(0,qi.property)()],Et.prototype,"context",void 0);Zo([(0,qi.property)()],Et.prototype,"key",void 0);Zo([(0,Yi.jsonProperty)([])],Et.prototype,"args",void 0);Zo([(0,qi.property)()],Et.prototype,"defaultMessage",void 0);var yr=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?Ei: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)})})}};var Xi=(t,e)=>(r,i)=>{var n,a;r.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};r[Ko]=(a=r[Ko])!==null&&a!==void 0?a:new Map,r[Ko].set(i,s)};(0,Cp.customElement)("ft-i18n")(Et);var V=yr.build("integratedFeedbackComponent"),Op={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var fs=m(T());var Ae=m($()),z=m(K()),_p=m(Ra()),Lp=m(Ht());var mr=m(T());var wp=m($()),D=m(T());var U={fontSize:D.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:D.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:D.FtCssVariableFactory.extend("--ft-text-field-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system"),prefixColor:D.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",D.designSystemVariables.colorOnSurfaceMedium),iconColor:D.FtCssVariableFactory.extend("--ft-text-field-icon-color","",D.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:D.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-text-field-background-color","",D.designSystemVariables.colorSurface),colorOutline:D.FtCssVariableFactory.external(D.designSystemVariables.colorOutline,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),suggestSize:D.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Ep=wp.css`
1668
1688
  *:focus {
1669
1689
  outline: none;
1670
1690
  }
@@ -1699,8 +1719,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1699
1719
  overflow: hidden;
1700
1720
  padding: 0 ${U.horizontalSpacing};
1701
1721
 
1702
- ${(0,D.setVariable)(lt.fontSize,U.fontSize)};
1703
- ${(0,D.setVariable)(lt.lineHeight,U.fontSize)};
1722
+ ${(0,D.setVariable)(ct.fontSize,U.fontSize)};
1723
+ ${(0,D.setVariable)(ct.lineHeight,U.fontSize)};
1704
1724
  }
1705
1725
 
1706
1726
  .ft-text-field--input-panel ft-ripple {
@@ -1823,7 +1843,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1823
1843
  .ft-text-field--with-password ft-icon:hover {
1824
1844
  cursor: pointer;
1825
1845
  }
1826
- `;var Su=m(T()),Wo=m($()),Dr=m(Z());var xu=m($());var vu=xu.css`
1846
+ `;var Tp=m(T()),qo=m($()),Br=m(K());var Ap=m($());var Rp=Ap.css`
1827
1847
  .ft-text-field-suggestion {
1828
1848
  position: relative;
1829
1849
  padding: 8px 16px;
@@ -1859,24 +1879,24 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1859
1879
  slot {
1860
1880
  pointer-events: none;
1861
1881
  }
1862
- `;var Cu=m(Ft()),Ki=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},Ba=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},gt=class extends Su.FtLitElement{render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return Wo.html`
1863
- <div class=${(0,Cu.classMap)(e)}
1882
+ `;var Ip=m(Ht()),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},us=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},yt=class extends Tp.FtLitElement{render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return qo.html`
1883
+ <div class="${(0,Ip.classMap)(e)}"
1864
1884
  tabindex="-1"
1865
1885
  @keydown=${this.onKeyDown}
1866
1886
  @click=${this.confirmSuggestion}>
1867
1887
  <ft-ripple></ft-ripple>
1868
- ${this.helper?Wo.html`
1888
+ ${this.helper?qo.html`
1869
1889
  <ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
1870
1890
  ${this.helper}
1871
- </ft-typography>`:Wo.nothing}
1891
+ </ft-typography>`:qo.nothing}
1872
1892
  <ft-typography part="label"
1873
1893
  variant="body1"
1874
1894
  class="ft-text-field-suggestion--label">
1875
1895
  <slot></slot>
1876
1896
  </ft-typography>
1877
1897
  </div>
1878
- `}focus(e){var r;(r=this.container)===null||r===void 0||r.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new Ba(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};gt.elementDefinitions={"ft-ripple":K,"ft-typography":pe,"ft-icon":he};gt.styles=vu;Ki([(0,Dr.property)()],gt.prototype,"value",void 0);Ki([(0,Dr.property)()],gt.prototype,"helper",void 0);Ki([(0,Dr.query)(".ft-text-field-suggestion")],gt.prototype,"container",void 0);Ki([(0,Dr.queryAssignedNodes)()],gt.prototype,"assignedNodes",void 0);var j=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},B=class extends(0,gr.toFtFormComponent)(gr.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Ar.EYE_SLASH,this.passwordRevealedIcon=Ar.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let r=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){let e={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},r=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),n=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||r;return Ae.html`
1879
- <div class="${(0,wu.classMap)(e)}">
1898
+ `}focus(e){var r;(r=this.container)===null||r===void 0||r.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new us(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};yt.elementDefinitions={"ft-ripple":Z,"ft-typography":ue,"ft-icon":he};yt.styles=Rp;Qi([(0,Br.property)()],yt.prototype,"value",void 0);Qi([(0,Br.property)()],yt.prototype,"helper",void 0);Qi([(0,Br.query)(".ft-text-field-suggestion")],yt.prototype,"container",void 0);Qi([(0,Br.queryAssignedNodes)()],yt.prototype,"assignedNodes",void 0);var j=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},B=class extends(0,mr.toFtFormComponent)(mr.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Ir.EYE_SLASH,this.passwordRevealedIcon=Ir.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let r=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){let e={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},r=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),n=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||r;return Ae.html`
1899
+ <div class="${(0,Lp.classMap)(e)}">
1880
1900
  <div class="ft-text-field--main-panel"
1881
1901
  @keydown=${this.handleKeyboardNavigation}
1882
1902
  @focusout=${this.onMainPanelBlur}>
@@ -1895,10 +1915,10 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1895
1915
  </ft-typography>
1896
1916
  `:Ae.nothing}
1897
1917
  <input type="${this.resolveInputType()}"
1898
- name="${oo(this.name)}"
1899
- maxlength="${oo(this.maxLength||void 0)}"
1918
+ name="${co(this.name)}"
1919
+ maxlength="${co(this.maxLength||void 0)}"
1900
1920
  aria-label="${this.label}"
1901
- autocomplete="${oo(this.autocomplete)}"
1921
+ autocomplete="${co(this.autocomplete)}"
1902
1922
  class="ft-typography--body1 ft-text-field--input"
1903
1923
  part="input"
1904
1924
  ?disabled=${this.disabled}
@@ -1925,7 +1945,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1925
1945
  `:Ae.nothing}
1926
1946
  </div>
1927
1947
  `}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?Ae.html`
1928
- ${(0,Ou.repeat)(this.providedSuggestions,e=>Ae.html`
1948
+ ${(0,_p.repeat)(this.providedSuggestions,e=>Ae.html`
1929
1949
  <ft-text-field-suggestion value="${e.value}" @click=${r=>this.onSuggestionClick(r,e.clickHandler)}>
1930
1950
  ${e.icon?Ae.html`
1931
1951
  <ft-icon .value=${e.icon}></ft-icon>
@@ -1944,15 +1964,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1944
1964
  .variant=${this.iconVariant}
1945
1965
  .value=${this.icon}
1946
1966
  @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
1947
- `:Ae.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){this.value!==e&&(this.setInternalValue(e),this.dispatchEvent(new CustomEvent("live-change",{detail:e}))),r&&this.dispatchedValue!==e&&(this.dispatchedValue=e,this.dispatchEvent(new CustomEvent("change",{detail:e})))}handleInput(e){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,gr.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};B.elementDefinitions={"ft-input-label":it,"ft-ripple":K,"ft-typography":pe,"ft-icon":he,"ft-text-field-suggestion":gt};B.styles=[Gr,gr.noTextInputDefaultClearButton,bu];j([(0,z.property)()],B.prototype,"label",void 0);j([(0,z.property)({noAccessor:!0})],B.prototype,"value",null);j([(0,z.state)()],B.prototype,"dispatchedValue",void 0);j([(0,z.property)()],B.prototype,"helper",void 0);j([(0,z.property)()],B.prototype,"suggestionsHelper",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"outlined",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"disabled",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"error",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"fixedMenuPosition",void 0);j([(0,z.property)()],B.prototype,"prefix",void 0);j([(0,z.property)()],B.prototype,"icon",void 0);j([(0,z.property)()],B.prototype,"name",void 0);j([(0,z.property)()],B.prototype,"type",void 0);j([(0,z.property)()],B.prototype,"passwordHiddenIcon",void 0);j([(0,z.property)()],B.prototype,"passwordRevealedIcon",void 0);j([(0,z.property)()],B.prototype,"iconVariant",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"filterSuggestions",void 0);j([(0,z.property)({type:Number})],B.prototype,"maxLength",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"password",void 0);j([(0,z.property)({type:String})],B.prototype,"autocomplete",void 0);j([(0,z.property)({attribute:!1})],B.prototype,"suggestionsProvider",void 0);j([(0,z.state)()],B.prototype,"focused",void 0);j([(0,z.state)()],B.prototype,"hidePassword",void 0);j([(0,z.state)()],B.prototype,"hideSuggestions",void 0);j([(0,z.state)()],B.prototype,"visibleSuggestions",void 0);j([(0,z.state)()],B.prototype,"providedSuggestions",void 0);j([(0,z.query)(".ft-text-field--main-panel")],B.prototype,"mainPanel",void 0);j([(0,z.query)(".ft-text-field--input")],B.prototype,"input",void 0);j([(0,z.query)(".ft-text-field-suggestion--new-value")],B.prototype,"newValueSuggestion",void 0);j([(0,z.query)(".ft-text-field--suggestions")],B.prototype,"suggestionsContainer",void 0);j([(0,z.queryAll)("ft-text-field-suggestion")],B.prototype,"providedSuggestionsInDom",void 0);j([(0,z.queryAssignedElements)({selector:"ft-text-field-suggestion"})],B.prototype,"slottedSuggestions",void 0);(0,Fa.customElement)("ft-text-field")(B);(0,Fa.customElement)("ft-text-field-suggestion")(gt);var Iu=m(T());var Go=m($()),yr=m(Z()),et=m(T());var At=m(T());var Eu=m(T()),pf={setTranslationDestinationLanguage:(t,e)=>{t.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(t,e)=>{t.translation.sourceLanguage=e.payload},setTranslationProfileId:(t,e)=>{t.translation.profileId=e.payload},setTranslationLoading:(t,e)=>{t.translation.isLoading=e.payload},setTranslationError:(t,e)=>{t.translation.isError=e.payload},setTopicsRating:(t,e)=>{for(let r in e.payload)t.topicsRating[r]=e.payload[r]}},Au=t=>Eu.FtReduxStore.get({name:"ft-reader-"+t,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}},reducers:pf});var Ua=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(e,r,i){return e.flatMap(n=>{var a;return n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,r,i):[{tocId:n.tocId,title:(a=n.title)!==null&&a!==void 0?a:"",untranslatedTitle:n.untranslatedTitle,depth:r,children:this.extractPagesToc(n.children,r+1,n.tocId)}]})}convertNodes(e,r,i){return e.flatMap(n=>{var a,s,c;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],r,n.tocId),...this.convertNodes(n.children,r,n.tocId)];let u=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,untranslatedTitle:n.untranslatedTitle,hasRating:n.hasRating,origin:n.origin,prettyUrl:u,depth:r,parentTocId:i,children:[]};this.register(p);let h=this.convertSectionNodes((c=n.pageToc)!==null&&c!==void 0?c:[],r+1,n.tocId),g=this.convertNodes(n.children,r+1,p.tocId);return p.children=[...h,...g],[p]})}convertSectionNodes(e,r,i){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={...n,prettyUrl:s,depth:r,parentTocId:i,children:[]};return this.register(c),c.children=this.convertSectionNodes(n.children,r+1,n.tocId),[c]})}buildPage(e,r){var i,n,a,s,c,u;let p={number:this.pages.length+1,title:(i=e.title)!==null&&i!==void 0?i:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(n=e.tocId)!==null&&n!==void 0?n:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(b=>this.nodeByTocId[b.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(b,x)=>(x?p.topics:p.hiddenTopics).push(b),g=(c=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&c!==void 0?c:[];return p.breadcrumb.forEach((b,x)=>{h(b,g[x])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),p.topics.push(...this.tocIds((u=e.pageToc)!==null&&u!==void 0?u:[])),p}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Zi=class{convertPaginatedToc(e,r){return new Ua(e,r).build()}};var qi=class extends Ze{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,i){super(!1,r),this.converter=e,this._mapId=i,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return Bt((r=(e=E.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,r){return e+(r?"-destinationLanguage-"+r?.destinationLanguage:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e),()=>this.fetchPages(this.mapId,e).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getTocNode(e,r){return(await this.getEnrichedToc(r)).nodeByTocId[e]}getTocNodeNow(e,r){var i;return(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.nodeByTocId[e]}getTocNodeNowByUrl(e,r){var i,n;let a=this.getMapNow(r);return a?.prettyUrl==e||`${a?.id}/root`===e?(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.toc[0]:(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByUrl[e]}async getPage(e,r){let i=await this.getEnrichedToc(r);return i.pages[e-1]||i.pages[0]}async getPageByTocId(e,r){let i=await this.getEnrichedToc(r);return i.pageByTocId[e]||i.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(e,r))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,i){return this.cache.get("topic-relatives-"+[e,r,...i].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,i))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,r,i){let n=this.getNavigationData(e,r,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(e,r,i,n){var a,s;e=e||"root";let c=this.getEnrichedTocNow(n),u=c?.pageByTocId[e],p=c?.nodeByTocId[e],h=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(a=p?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:p?.untranslatedTitle,page:r&&u&&u.number!==r?r:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(s=c?.duplicatedPrettyUrls.has(h??""))!==null&&s!==void 0?s:!1,section:i}}async getAccurateNavigationData(e,r,i,n){return await this.getEnrichedToc(n),this.getNavigationData(e,r,i,n)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var i;return r?{type:r.topics.type,rating:(i=r.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,i){return this.makeRateTopicRequest(e,r,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=E.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,i){return this.makeTopicFeedbackRequest(e,r,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,r){let i=this.getTocNodeNow(e,r),n=[{tocId:i.tocId,title:i.title,untranslatedTitle:i.untranslatedTitle}],a=this.getTocNodeNow(i.parentTocId,r);for(;a;)n.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,r);return n}isFeatureAccessible(e,{session:r}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case st.FEEDBACK:return Bt(r??[],te.FEEDBACK_USER);case st.RATING:return Bt(r??[],te.RATING_USER);case st.PRINT:return Bt(r??[],te.PRINT_USER);case st.BOOKMARK:return!!r?.sessionAuthenticated;case st.COLLECTIONS:return Bt(r??[],te.COLLECTION_USER);case st.PERSONAL_BOOKS:return Bt(r??[],te.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Yi=class t extends qi{static async build(e){return new t(new Zi,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,r){let i=await this.api.getMap(e,r);return this.fingerprint=i.fingerprint,i}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,r){return await this.getMap(r),this.api.getPages(e,this.fingerprint,r)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(e,r,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,i){return this.api.rateTopic(this.mapId,e,r,i)}makeTopicFeedbackRequest(e,r,i){return this.api.sendTopicFeedback(this.mapId,e,r,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var Xi=class t{static build(e,r){return new t(Au(e.trim()||"context"),r??Yi.build)}loaded(){return(0,At.waitUntil)(()=>this._loaded)}constructor(e,r,i){this.store=e,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new At.Debouncer(10),this.initService(r)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return(0,At.waitFor)(()=>this.service)}async navigateToTopic(e,r,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i,this.getTranslationSettings()):n.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(a);let s=this.resolveValidNonRootTocId(e,a);this.store.actions.scrollTarget({tocId:s,section:r}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,r){var i,n,a;let s=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:r.rootTocId;return r.topics.includes(s)?s:(a=(n=r.topics[0])!==null&&n!==void 0?n:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){await this.loaded();let i=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(e){var r,i,n,a,s;try{e&&this.setTranslationLoading(!0);let c=u=>{throw e&&this.setTranslationError(!0),u};await Promise.all([this.loadConfiguration(),(r=this.service)===null||r===void 0?void 0:r.getMap(e).then(u=>this.store.actions.map(u)).catch(c),(i=this.service)===null||i===void 0?void 0:i.getToc(e).then(u=>this.store.actions.toc(u)).catch(c),(n=this.service)===null||n===void 0?void 0:n.getPagesToc(e).then(u=>this.store.actions.pagesToc(u)).catch(c),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(u=>this.store.actions.paginationConfiguration(u)).catch(c),(s=this.service)===null||s===void 0?void 0:s.getTranslationError(e).then(u=>this.setTranslationError(u))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(c){this.errorHandler&&!(c instanceof At.CanceledPromiseError)&&this.errorHandler(c)}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}fetchRelatives(){var e,r;let i=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(n=>{var a;return n.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(n=>n.values);i!==void 0&&i.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,i).then(n=>{let a=n.results.flatMap(s=>s.entries);this.store.actions.relatives(a),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(bo.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var c;return((c=s.map)===null||c===void 0?void 0:c.mapId)==this.store.getState().mapId}),a=(r=(e=E.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new At.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var r,i,n;await this.loaded();let a=await(0,At.waitFor)(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,u=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((n=(i=(r=u?.results)===null||r===void 0?void 0:r[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let p=u.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(e=r.map)===null||e===void 0?void 0:e.lang}:void 0}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var r;let i=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(e));i&&this.store.actions.setTopicsRating({[e]:i})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}getAccurateNavigationData(e,r,i){return this.service.getAccurateNavigationData(e,r?.number,i?.section,this.getTranslationSettings())}buildBreadcrumb(e){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var r,i;let n=this.getTranslationSettings();return n?(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(e,n).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content)):(i=this.service)===null||i===void 0?void 0:i.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(bo.mapAttachmentsUpdate))}};var Ru=m($());var Tu=Ru.css`
1948
- `;var Qi=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},Ji=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},en=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},tn=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},rn=class extends Event{constructor(){super("ft-reader-map-not-found")}},on=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},nn=class extends Event{constructor(){super("ft-reader-map-forbidden")}},an=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var sn=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}};var tt=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},ff=t=>e=>+(e??"NaN")>0?+e:t,Re=class extends et.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new et.Debouncer(5),this.navigationDebouncer=new et.Debouncer(10),this.mapLoadedEventDebouncer=new et.Debouncer(50),this.addStore(E)}render(){return Go.html`
1967
+ `:Ae.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){this.value!==e&&(this.setInternalValue(e),this.dispatchEvent(new CustomEvent("live-change",{detail:e}))),r&&this.dispatchedValue!==e&&(this.dispatchedValue=e,this.dispatchEvent(new CustomEvent("change",{detail:e})))}handleInput(e){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,mr.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};B.elementDefinitions={"ft-input-label":nt,"ft-ripple":Z,"ft-typography":ue,"ft-icon":he,"ft-text-field-suggestion":yt};B.styles=[jr,mr.noTextInputDefaultClearButton,Ep];j([(0,z.property)()],B.prototype,"label",void 0);j([(0,z.property)({noAccessor:!0})],B.prototype,"value",null);j([(0,z.state)()],B.prototype,"dispatchedValue",void 0);j([(0,z.property)()],B.prototype,"helper",void 0);j([(0,z.property)()],B.prototype,"suggestionsHelper",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"outlined",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"disabled",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"error",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"fixedMenuPosition",void 0);j([(0,z.property)()],B.prototype,"prefix",void 0);j([(0,z.property)()],B.prototype,"icon",void 0);j([(0,z.property)()],B.prototype,"name",void 0);j([(0,z.property)()],B.prototype,"type",void 0);j([(0,z.property)()],B.prototype,"passwordHiddenIcon",void 0);j([(0,z.property)()],B.prototype,"passwordRevealedIcon",void 0);j([(0,z.property)()],B.prototype,"iconVariant",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"filterSuggestions",void 0);j([(0,z.property)({type:Number})],B.prototype,"maxLength",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"password",void 0);j([(0,z.property)({type:String})],B.prototype,"autocomplete",void 0);j([(0,z.property)({attribute:!1})],B.prototype,"suggestionsProvider",void 0);j([(0,z.state)()],B.prototype,"focused",void 0);j([(0,z.state)()],B.prototype,"hidePassword",void 0);j([(0,z.state)()],B.prototype,"hideSuggestions",void 0);j([(0,z.state)()],B.prototype,"visibleSuggestions",void 0);j([(0,z.state)()],B.prototype,"providedSuggestions",void 0);j([(0,z.query)(".ft-text-field--main-panel")],B.prototype,"mainPanel",void 0);j([(0,z.query)(".ft-text-field--input")],B.prototype,"input",void 0);j([(0,z.query)(".ft-text-field-suggestion--new-value")],B.prototype,"newValueSuggestion",void 0);j([(0,z.query)(".ft-text-field--suggestions")],B.prototype,"suggestionsContainer",void 0);j([(0,z.queryAll)("ft-text-field-suggestion")],B.prototype,"providedSuggestionsInDom",void 0);j([(0,z.queryAssignedElements)({selector:"ft-text-field-suggestion"})],B.prototype,"slottedSuggestions",void 0);(0,fs.customElement)("ft-text-field")(B);(0,fs.customElement)("ft-text-field-suggestion")(yt);var Mp=m(T());var Yo=m($()),br=m(K()),et=m(T());var At=m(T());var Np=m(T()),vf={setTranslationDestinationLanguage:(t,e)=>{t.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(t,e)=>{t.translation.sourceLanguage=e.payload},setTranslationProfileId:(t,e)=>{t.translation.profileId=e.payload},setTranslationLoading:(t,e)=>{t.translation.isLoading=e.payload},setTranslationError:(t,e)=>{t.translation.isError=e.payload},setTopicsRating:(t,e)=>{for(let r in e.payload)t.topicsRating[r]=e.payload[r]}},kp=t=>Np.FtReduxStore.get({name:"ft-reader-"+t,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}},reducers:vf});var hs=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(e,r,i){return e.flatMap(n=>{var a;return n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,r,i):[{tocId:n.tocId,title:(a=n.title)!==null&&a!==void 0?a:"",untranslatedTitle:n.untranslatedTitle,depth:r,children:this.extractPagesToc(n.children,r+1,n.tocId)}]})}convertNodes(e,r,i){return e.flatMap(n=>{var a,s,c;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],r,n.tocId),...this.convertNodes(n.children,r,n.tocId)];let p=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),u={tocId:n.tocId,contentId:n.contentId,title:n.title,untranslatedTitle:n.untranslatedTitle,hasRating:n.hasRating,origin:n.origin,prettyUrl:p,depth:r,parentTocId:i,children:[]};this.register(u);let h=this.convertSectionNodes((c=n.pageToc)!==null&&c!==void 0?c:[],r+1,n.tocId),g=this.convertNodes(n.children,r+1,u.tocId);return u.children=[...h,...g],[u]})}convertSectionNodes(e,r,i){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={...n,prettyUrl:s,depth:r,parentTocId:i,children:[]};return this.register(c),c.children=this.convertSectionNodes(n.children,r+1,n.tocId),[c]})}buildPage(e,r){var i,n,a,s,c,p;let u={number:this.pages.length+1,title:(i=e.title)!==null&&i!==void 0?i:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(n=e.tocId)!==null&&n!==void 0?n:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(b=>this.nodeByTocId[b.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(b,x)=>(x?u.topics:u.hiddenTopics).push(b),g=(c=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&c!==void 0?c:[];return u.breadcrumb.forEach((b,x)=>{h(b,g[x])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),u.topics.push(...this.tocIds((p=e.pageToc)!==null&&p!==void 0?p:[])),u}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Ji=class{convertPaginatedToc(e,r){return new hs(e,r).build()}};var en=class extends Ze{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,i){super(!1,r),this.converter=e,this._mapId=i,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return Ut((r=(e=E.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,r){return e+(r?"-destinationLanguage-"+r?.destinationLanguage:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e),()=>this.fetchPages(this.mapId,e).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getTocNode(e,r){return(await this.getEnrichedToc(r)).nodeByTocId[e]}getTocNodeNow(e,r){var i;return(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.nodeByTocId[e]}getTocNodeNowByUrl(e,r){var i,n;let a=this.getMapNow(r);return a?.prettyUrl==e||`${a?.id}/root`===e?(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.toc[0]:(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByUrl[e]}async getPage(e,r){let i=await this.getEnrichedToc(r);return i.pages[e-1]||i.pages[0]}async getPageByTocId(e,r){let i=await this.getEnrichedToc(r);return i.pageByTocId[e]||i.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(e,r))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,i){return this.cache.get("topic-relatives-"+[e,r,...i].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,i))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,r,i){let n=this.getNavigationData(e,r,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(e,r,i,n){var a,s;e=e||"root";let c=this.getEnrichedTocNow(n),p=c?.pageByTocId[e],u=c?.nodeByTocId[e],h=u?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(a=u?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:u?.untranslatedTitle,page:r&&p&&p.number!==r?r:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(s=c?.duplicatedPrettyUrls.has(h??""))!==null&&s!==void 0?s:!1,section:i}}async getAccurateNavigationData(e,r,i,n){return await this.getEnrichedToc(n),this.getNavigationData(e,r,i,n)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var i;return r?{type:r.topics.type,rating:(i=r.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,i){return this.makeRateTopicRequest(e,r,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=E.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,i){return this.makeTopicFeedbackRequest(e,r,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,r){let i=this.getTocNodeNow(e,r),n=[{tocId:i.tocId,title:i.title,untranslatedTitle:i.untranslatedTitle}],a=this.getTocNodeNow(i.parentTocId,r);for(;a;)n.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,r);return n}isFeatureAccessible(e,{session:r}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case lt.FEEDBACK:return Ut(r??[],re.FEEDBACK_USER);case lt.RATING:return Ut(r??[],re.RATING_USER);case lt.PRINT:return Ut(r??[],re.PRINT_USER);case lt.BOOKMARK:return!!r?.sessionAuthenticated;case lt.COLLECTIONS:return Ut(r??[],re.COLLECTION_USER);case lt.PERSONAL_BOOKS:return Ut(r??[],re.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var tn=class t extends en{static async build(e){return new t(new Ji,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,r){let i=await this.api.getMap(e,r);return this.fingerprint=i.fingerprint,i}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,r){return await this.getMap(r),this.api.getPages(e,this.fingerprint,r)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(e,r,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,i){return this.api.rateTopic(this.mapId,e,r,i)}makeTopicFeedbackRequest(e,r,i){return this.api.sendTopicFeedback(this.mapId,e,r,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var rn=class t{static build(e,r){return new t(kp(e.trim()||"context"),r??tn.build)}loaded(){return(0,At.waitUntil)(()=>this._loaded)}constructor(e,r,i){this.store=e,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new At.Debouncer(10),this.initService(r)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return(0,At.waitFor)(()=>this.service)}async navigateToTopic(e,r,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i,this.getTranslationSettings()):n.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(a);let s=this.resolveValidNonRootTocId(e,a);this.store.actions.scrollTarget({tocId:s,section:r}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,r){var i,n,a;let s=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:r.rootTocId;return r.topics.includes(s)?s:(a=(n=r.topics[0])!==null&&n!==void 0?n:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){await this.loaded();let i=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(e){var r,i,n,a,s;try{e&&this.setTranslationLoading(!0);let c=p=>{throw e&&this.setTranslationError(!0),p};await Promise.all([this.loadConfiguration(),(r=this.service)===null||r===void 0?void 0:r.getMap(e).then(p=>this.store.actions.map(p)).catch(c),(i=this.service)===null||i===void 0?void 0:i.getToc(e).then(p=>this.store.actions.toc(p)).catch(c),(n=this.service)===null||n===void 0?void 0:n.getPagesToc(e).then(p=>this.store.actions.pagesToc(p)).catch(c),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(p=>this.store.actions.paginationConfiguration(p)).catch(c),(s=this.service)===null||s===void 0?void 0:s.getTranslationError(e).then(p=>this.setTranslationError(p))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(c){this.errorHandler&&!(c instanceof At.CanceledPromiseError)&&this.errorHandler(c)}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}fetchRelatives(){var e,r;let i=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(n=>{var a;return n.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(n=>n.values);i!==void 0&&i.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,i).then(n=>{let a=n.results.flatMap(s=>s.entries);this.store.actions.relatives(a),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(wo.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var c;return((c=s.map)===null||c===void 0?void 0:c.mapId)==this.store.getState().mapId}),a=(r=(e=E.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new At.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var r,i,n;await this.loaded();let a=await(0,At.waitFor)(()=>{var u;return(u=this.store.getState().configuration)===null||u===void 0?void 0:u.relativeTopicPivotMetadata}),s=this.store.getState().mapId,p=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((n=(i=(r=p?.results)===null||r===void 0?void 0:r[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let u=p.results[0].entries[0].topic.tocId;return await this.navigateToTopic(u),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(e=r.map)===null||e===void 0?void 0:e.lang}:void 0}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var r;let i=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(e));i&&this.store.actions.setTopicsRating({[e]:i})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}getAccurateNavigationData(e,r,i){return this.service.getAccurateNavigationData(e,r?.number,i?.section,this.getTranslationSettings())}buildBreadcrumb(e){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var r,i;let n=this.getTranslationSettings();return n?(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(e,n).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content)):(i=this.service)===null||i===void 0?void 0:i.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(wo.mapAttachmentsUpdate))}};var Pp=m($());var Dp=Pp.css`
1968
+ `;var on=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},nn=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},an=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},sn=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},ln=class extends Event{constructor(){super("ft-reader-map-not-found")}},cn=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},dn=class extends Event{constructor(){super("ft-reader-map-forbidden")}},pn=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var un=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}};var tt=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},Sf=t=>e=>+(e??"NaN")>0?+e:t,Re=class extends et.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new et.Debouncer(5),this.navigationDebouncer=new et.Debouncer(10),this.mapLoadedEventDebouncer=new et.Debouncer(50),this.addStore(E)}render(){return Yo.html`
1949
1969
  ${this.importStyleIfNeeded()}
1950
1970
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1951
- `}importStyleIfNeeded(){var e,r;let i=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!i||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?Go.nothing:Go.html`
1971
+ `}importStyleIfNeeded(){var e,r;let i=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!i||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?Yo.nothing:Yo.html`
1952
1972
  <style>
1953
1973
  @import "${i}"
1954
1974
  </style>
1955
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=Xi.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let r=e.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",r),document.head.append(i)}window.FluidTopicsReaderService=new sn(this.stateManager)}),E.addEventListener(kt.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),E.addEventListener(kt.eventName,this.updateConfiguration)}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>e.has(r))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let n=e.get("scrollTarget");n?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(n.tocId,this.currentPage,n).then(a=>this.dispatchEvent(new en(a))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((i=this.scrollTarget)===null||i===void 0?void 0:i.tocId)==null&&Promise.all(this.visibleTopics.map(n=>this.stateManager.getAccurateNavigationData(n,this.currentPage))).then(n=>{let a=n.filter(s=>s!=null&&s.topicTitle!=="").map(s=>({tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(s.tocId)}));this.dispatchEvent(new Ji(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new an),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)}),this.tocId&&!this.section&&(this.stateManager.store.commands.clear(/^focus-topic-/),this.stateManager.store.commands.add({type:`focus-topic-${this.tocId}`}))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let r=e;r.status===401?this.dispatchEvent(new on):r.status===403?this.dispatchEvent(new nn):r.status===404?this.dispatchEvent(new rn):this.dispatchEvent(new tn(e))}reloadBookmarks(){Ma.reloadBookmarks()}async reloadRating(){var e,r;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Qi(this.map,this.toc))})}};Re.styles=Tu;tt([(0,et.redux)({store:E.name})],Re.prototype,"baseUrl",void 0);tt([(0,et.redux)({store:E.name})],Re.prototype,"session",void 0);tt([(0,yr.property)()],Re.prototype,"mapId",void 0);tt([(0,yr.property)()],Re.prototype,"tocId",void 0);tt([(0,yr.property)()],Re.prototype,"section",void 0);tt([(0,yr.property)()],Re.prototype,"topicPivot",void 0);tt([(0,yr.property)()],Re.prototype,"searchInDocumentQuery",void 0);tt([(0,yr.property)({type:Number,converter:{fromAttribute:ff()}})],Re.prototype,"page",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"map",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"toc",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"visibleTopics",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"currentPage",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"scrollTarget",void 0);tt([(0,yr.property)({attribute:!1})],Re.prototype,"readerServiceProvider",void 0);(0,Iu.customElement)("ft-reader-context")(Re);var ln=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},cn=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},dn=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},un=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},pn=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Te=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},Q=class extends fr(Yt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(V,yu)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(st.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(st.RATING,{session:this.session}))&&this.ratingAllowed&&this.configuredRatingType!=xe.NO_RATING}get configuredRatingType(){var e,r;return(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&r!==void 0?r:xe.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:xe.NO_RATING}get ratingValue(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var e,r;let i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?(0,fn.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?ye.nothing:ye.html`
1975
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=rn.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let r=e.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",r),document.head.append(i)}window.FluidTopicsReaderService=new un(this.stateManager)}),E.addEventListener(Dt.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),E.addEventListener(Dt.eventName,this.updateConfiguration)}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>e.has(r))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let n=e.get("scrollTarget");n?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(n.tocId,this.currentPage,n).then(a=>this.dispatchEvent(new an(a))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((i=this.scrollTarget)===null||i===void 0?void 0:i.tocId)==null&&Promise.all(this.visibleTopics.map(n=>this.stateManager.getAccurateNavigationData(n,this.currentPage))).then(n=>{let a=n.filter(s=>s!=null&&s.topicTitle!=="").map(s=>({tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(s.tocId)}));this.dispatchEvent(new nn(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new pn),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)}),this.tocId&&!this.section&&(this.stateManager.store.commands.clear(/^focus-topic-/),this.stateManager.store.commands.add({type:`focus-topic-${this.tocId}`}))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let r=e;r.status===401?this.dispatchEvent(new cn):r.status===403?this.dispatchEvent(new dn):r.status===404?this.dispatchEvent(new ln):this.dispatchEvent(new sn(e))}reloadBookmarks(){ds.reloadBookmarks()}async reloadRating(){var e,r;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new on(this.map,this.toc))})}};Re.styles=Dp;tt([(0,et.redux)({store:E.name})],Re.prototype,"baseUrl",void 0);tt([(0,et.redux)({store:E.name})],Re.prototype,"session",void 0);tt([(0,br.property)()],Re.prototype,"mapId",void 0);tt([(0,br.property)()],Re.prototype,"tocId",void 0);tt([(0,br.property)()],Re.prototype,"section",void 0);tt([(0,br.property)()],Re.prototype,"topicPivot",void 0);tt([(0,br.property)()],Re.prototype,"searchInDocumentQuery",void 0);tt([(0,br.property)({type:Number,converter:{fromAttribute:Sf()}})],Re.prototype,"page",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"map",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"toc",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"visibleTopics",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"currentPage",void 0);tt([(0,et.redux)({store:"reader"})],Re.prototype,"scrollTarget",void 0);tt([(0,br.property)({attribute:!1})],Re.prototype,"readerServiceProvider",void 0);(0,Mp.customElement)("ft-reader-context")(Re);var fn=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},hn=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},gn=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},yn=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},mn=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Te=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},J=class extends gr(Xt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(V,Op)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(lt.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(lt.RATING,{session:this.session}))&&this.ratingAllowed&&this.configuredRatingType!=xe.NO_RATING}get configuredRatingType(){var e,r;return(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&r!==void 0?r:xe.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:xe.NO_RATING}get ratingValue(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var e,r;let i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?(0,bn.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?ye.nothing:ye.html`
1956
1976
  <div class="ft-reader-feedback">
1957
1977
  ${this.hideTitle?ye.nothing:ye.html`
1958
1978
  <ft-typography variant="title" part="main-title">
@@ -1974,14 +1994,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1974
1994
  </div>
1975
1995
  `:ye.nothing}renderRatingDate(){let e=this.ratingDate;if(e==null)return V.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return V.messages.ratedNow();let r=new Date().toLocaleDateString(),i=e.toLocaleDateString();return r===i?V.messages.ratedToday():V.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case xe.STARS:return ye.html`
1976
1996
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1977
- ${(0,_u.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let c=this.ratingTypeOfDoneRatingOfThisContent===xe.STARS&&this.ratingValue>s,u=s+1;return ye.html`
1978
- <ft-button round part="rating-stars-${u}"
1979
- label="${V.messages.starsRating(u)}"
1997
+ ${(0,$p.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let c=this.ratingTypeOfDoneRatingOfThisContent===xe.STARS&&this.ratingValue>s,p=s+1;return ye.html`
1998
+ <ft-button round part="rating-stars-${p}"
1999
+ label="${V.messages.starsRating(p)}"
1980
2000
  tooltipPosition="top"
1981
2001
  .iconVariant=${this.iconVariant}
1982
2002
  icon="${c?this.filledStarIcon:this.emptyStarIcon}"
1983
2003
  class="ft-reader-feedback--${c?"active":"inactive"}"
1984
- @click=${()=>this.rate(this.ratingValue===u?void 0:u)}
2004
+ @click=${()=>this.rate(this.ratingValue===p?void 0:p)}
1985
2005
  ></ft-button>
1986
2006
  `})}
1987
2007
  </div>
@@ -2030,7 +2050,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2030
2050
  <a class="ft-reader-feedback--feedback-link" href="${s}">
2031
2051
  ${c}
2032
2052
  </a>
2033
- `);let u=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?ye.html`
2053
+ `);let p=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?ye.html`
2034
2054
  <ft-button outlined
2035
2055
  type="button" name="more-options"
2036
2056
  class="ft-reader-feedback--more-options"
@@ -2040,7 +2060,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2040
2060
  </ft-button>
2041
2061
  `:ye.nothing;return ye.html`
2042
2062
  <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
2043
- @submit="${p=>this.onFormSubmitEvent(p,!!s)}">
2063
+ @submit="${u=>this.onFormSubmitEvent(u,!!s)}">
2044
2064
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
2045
2065
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
2046
2066
  </ft-typography>
@@ -2048,7 +2068,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2048
2068
  <ft-text-field outlined name="email" type="email" autocomplete="email"
2049
2069
  class="ft-reader-feedback--from-input"
2050
2070
  label=${V.messages.feedbackfromEmail()}
2051
- @change=${p=>this.from=p.detail.trim()}
2071
+ @change=${u=>this.from=u.detail.trim()}
2052
2072
  ?error=${this.from&&!this.validFromEmail()}
2053
2073
  helper=${this.from&&!this.validFromEmail()?V.messages.feedbackfromEmailInvalid():""}
2054
2074
  />
@@ -2056,14 +2076,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2056
2076
  <ft-text-area outlined
2057
2077
  class="ft-reader-feedback--feedback-input" part="feedback-input"
2058
2078
  label="${V.messages.feedbackInputLabel()}"
2059
- @live-change=${p=>this.feedbackMessage=p.detail.trim()}
2079
+ @live-change=${u=>this.feedbackMessage=u.detail.trim()}
2060
2080
  ></ft-text-area>
2061
2081
  <div part="buttons-container">
2062
- ${u}
2082
+ ${p}
2063
2083
  ${c}
2064
2084
  </div>
2065
2085
  </form>
2066
- `}return ye.nothing}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0?void 0:r.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new ln({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.setValue("",!0),0)}};Q.elementDefinitions={"ft-button":Ct,"ft-typography":pe,"ft-switch":Ke,"ft-switch-option":ge,"ft-text-area":De,"ft-text-field":B};Q.styles=qs;Te([(0,me.property)({type:Boolean})],Q.prototype,"editorMode",void 0);Te([(0,me.property)({type:Boolean})],Q.prototype,"hideTitle",void 0);Te([(0,me.property)({type:Boolean})],Q.prototype,"withMoreOptionsButton",void 0);Te([(0,me.property)({type:Boolean})],Q.prototype,"ratingAllowed",void 0);Te([(0,me.property)({attribute:!1})],Q.prototype,"i18nProperties",void 0);Te([(0,me.property)({attribute:!1})],Q.prototype,"ratingSummary",void 0);Te([(0,me.property)({attribute:!1})],Q.prototype,"session",void 0);Te([(0,me.query)(".ft-reader-feedback--feedback-input")],Q.prototype,"feedbackInput",void 0);Te([(0,me.state)()],Q.prototype,"from",void 0);Te([(0,me.state)()],Q.prototype,"feedbackMessage",void 0);Te([(0,me.property)()],Q.prototype,"iconVariant",void 0);Te([(0,me.property)()],Q.prototype,"emptyStarIcon",void 0);Te([(0,me.property)()],Q.prototype,"filledStarIcon",void 0);Te([(0,me.property)()],Q.prototype,"emptyLikeIcon",void 0);Te([(0,me.property)()],Q.prototype,"filledLikeIcon",void 0);Te([(0,me.property)()],Q.prototype,"emptyDislikeIcon",void 0);Te([(0,me.property)()],Q.prototype,"filledDislikeIcon",void 0);Te([(0,fn.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],Q.prototype,"configuration",void 0);Te([(0,me.property)()],Q.prototype,"feedbackMailLinkBuilder",void 0);var yo=hr.fromGwt("server");var mo=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,r,i,n,a){var s;this.subject=e,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(c=>"["+c.values[c.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(c=>"["+c.values.join(", ")+"]").join(" ")}filterMetadata(e,r){return r.map(i=>e.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var e,r;let i=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(e){var r;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
2086
+ `}return ye.nothing}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0?void 0:r.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new fn({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.setValue("",!0),0)}};J.elementDefinitions={"ft-button":ft,"ft-typography":ue,"ft-switch":Ke,"ft-switch-option":ge,"ft-text-area":De,"ft-text-field":B};J.styles=el;Te([(0,me.property)({type:Boolean})],J.prototype,"editorMode",void 0);Te([(0,me.property)({type:Boolean})],J.prototype,"hideTitle",void 0);Te([(0,me.property)({type:Boolean})],J.prototype,"withMoreOptionsButton",void 0);Te([(0,me.property)({type:Boolean})],J.prototype,"ratingAllowed",void 0);Te([(0,me.property)({attribute:!1})],J.prototype,"i18nProperties",void 0);Te([(0,me.property)({attribute:!1})],J.prototype,"ratingSummary",void 0);Te([(0,me.property)({attribute:!1})],J.prototype,"session",void 0);Te([(0,me.query)(".ft-reader-feedback--feedback-input")],J.prototype,"feedbackInput",void 0);Te([(0,me.state)()],J.prototype,"from",void 0);Te([(0,me.state)()],J.prototype,"feedbackMessage",void 0);Te([(0,me.property)()],J.prototype,"iconVariant",void 0);Te([(0,me.property)()],J.prototype,"emptyStarIcon",void 0);Te([(0,me.property)()],J.prototype,"filledStarIcon",void 0);Te([(0,me.property)()],J.prototype,"emptyLikeIcon",void 0);Te([(0,me.property)()],J.prototype,"filledLikeIcon",void 0);Te([(0,me.property)()],J.prototype,"emptyDislikeIcon",void 0);Te([(0,me.property)()],J.prototype,"filledDislikeIcon",void 0);Te([(0,bn.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],J.prototype,"configuration",void 0);Te([(0,me.property)()],J.prototype,"feedbackMailLinkBuilder",void 0);var Co=yr.fromGwt("server");var Oo=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,r,i,n,a){var s;this.subject=e,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(c=>"["+c.values[c.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(c=>"["+c.values.join(", ")+"]").join(" ")}filterMetadata(e,r){return r.map(i=>e.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var e,r;let i=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(e){var r;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
2067
2087
  ${this.bodyMetadata}
2068
2088
  ${this.url}
2069
2089
  _________________________________________________________________
@@ -2071,7 +2091,7 @@ _________________________________________________________________
2071
2091
  ${e??""}
2072
2092
 
2073
2093
  _________________________________________________________________
2074
- ${yo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var mr=hr.build("inDesignerFeedbackComponent"),hn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};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},se=class extends fr(Yt){constructor(e=new ao){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Fe.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new mo,this.i18nProperties={feedbackMainTitle:V.properties.mapFeedbackMainTitle(),ratingSectionTitle:V.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.mapFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-map-feedback-guest-rating-"+((r=this.map)===null||r===void 0?void 0:r.id)},this.sendRatingDebouncer=new He.Debouncer(500),this.addStore(E)}render(){return Nu.html`
2094
+ ${Co.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var xr=yr.build("inDesignerFeedbackComponent"),xn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};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},se=class extends gr(Xt){constructor(e=new fo){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Fe.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Oo,this.i18nProperties={feedbackMainTitle:V.properties.mapFeedbackMainTitle(),ratingSectionTitle:V.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.mapFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-map-feedback-guest-rating-"+((r=this.map)===null||r===void 0?void 0:r.id)},this.sendRatingDebouncer=new He.Debouncer(500),this.addStore(E)}render(){return Bp.html`
2075
2095
  <ft-reader-feedback
2076
2096
  ratingAllowed
2077
2097
  .i18nProperties=${this.i18nProperties}
@@ -2093,7 +2113,7 @@ ${yo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2093
2113
  @mailer-feedback="${this.onMailerFeedbackSent}"
2094
2114
  @open-more-options="${this.openMoreOptions}"
2095
2115
  ></ft-reader-feedback>
2096
- `}willUpdate(e){var r,i,n,a,s;super.willUpdate(e),e.has("map")&&this.map&&((r=this.stateManager)===null||r===void 0||r.fetchMapRating()),e.has("editorMode")&&this.editorMode&&this.addI18nContext(mr,hn),["map","configuration","user","mailSubject"].some(c=>e.has(c))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink())!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null),["session","map"].some(c=>e.has(c))&&this.session&&this.map&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var e;await((e=this.stateManager)===null||e===void 0?void 0:e.fetchMapRating())}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n,a;if(!this.editorMode&&this.ratingSummary){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new He.FtNotificationEvent({type:"error",message:V.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchMapRating())}else this.editorMode&&this.dispatchEvent(new He.FtNotificationEvent({type:"info",message:mr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new He.FtNotificationEvent({type:"info",message:mr.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new He.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new He.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new pn)}openMoreOptions(){var e,r,i;this.dispatchEvent(new dn({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((e=this.map)===null||e===void 0?void 0:e.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||xe.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};se.elementDefinitions={"ft-reader-feedback":Q};se.storedRatingIfAuthenticated=(t,e)=>{var r,i;return!((r=e.session)===null||r===void 0)&&r.sessionAuthenticated?t.mapRating:(i=e.ratingSummary)!==null&&i!==void 0?i:t.mapRating};$e([(0,He.redux)({store:E.name})],se.prototype,"session",void 0);$e([(0,He.redux)({store:"reader"})],se.prototype,"map",void 0);$e([(0,He.redux)({store:E.name})],se.prototype,"editorMode",void 0);$e([(0,He.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],se.prototype,"configuration",void 0);$e([(0,He.redux)({store:"reader",selector:se.storedRatingIfAuthenticated})],se.prototype,"ratingSummary",void 0);$e([(0,yt.property)({type:Boolean})],se.prototype,"hideTitle",void 0);$e([(0,yt.property)({type:Boolean})],se.prototype,"withMoreOptionsButton",void 0);$e([(0,yt.property)()],se.prototype,"iconVariant",void 0);$e([(0,yt.property)()],se.prototype,"emptyStarIcon",void 0);$e([(0,yt.property)()],se.prototype,"filledStarIcon",void 0);$e([(0,yt.property)()],se.prototype,"emptyLikeIcon",void 0);$e([(0,yt.property)()],se.prototype,"filledLikeIcon",void 0);$e([(0,yt.property)()],se.prototype,"emptyDislikeIcon",void 0);$e([(0,yt.property)()],se.prototype,"filledDislikeIcon",void 0);$e([(0,yt.query)("ft-reader-feedback")],se.prototype,"readerFeedback",void 0);$e([ji(yo.properties["mail.map_feedback.subject"](t=>{var e;return[(e=t.map)===null||e===void 0?void 0:e.title]}))],se.prototype,"mailSubject",void 0);$e([(0,He.reduxEventListener)({eventName:"rating-changed"})],se.prototype,"fetchRatingSummary",null);var ku=m($()),mt=m(Z()),We=m(T());var gn=m(Z()),Lu=m(T());var za=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},Wa=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Ha=Symbol("registerInterval"),hf=(0,Lu.applyMixinOnce)(Symbol("toFtReaderTopicComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[e]=0}connectedCallback(){super.connectedCallback(),this[Ha]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Ha]):this.dispatchEvent(new Wa)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Ha,za([(0,gn.state)()],r.prototype,"tocNode",void 0),za([(0,gn.state)()],r.prototype,"disableContextInteractions",void 0),za([(0,gn.state)()],r.prototype,"headingLevelsShift",void 0),r}),yn=class extends hf(Yt){};var Be=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},le=class extends fr(yn){constructor(e=new ao){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Fe.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new mo,this.i18nProperties={feedbackMainTitle:V.properties.topicFeedbackMainTitle(),ratingSectionTitle:V.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.topicFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-topic-feedback-guest-rating-"+((r=this.tocNode)===null||r===void 0?void 0:r.tocId)},this.sendRatingDebouncer=new We.Debouncer(500),this.addStore(E)}render(){var e;return ku.html`
2116
+ `}willUpdate(e){var r,i,n,a,s;super.willUpdate(e),e.has("map")&&this.map&&((r=this.stateManager)===null||r===void 0||r.fetchMapRating()),e.has("editorMode")&&this.editorMode&&this.addI18nContext(xr,xn),["map","configuration","user","mailSubject"].some(c=>e.has(c))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink())!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null),["session","map"].some(c=>e.has(c))&&this.session&&this.map&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var e;await((e=this.stateManager)===null||e===void 0?void 0:e.fetchMapRating())}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n,a;if(!this.editorMode&&this.ratingSummary){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new He.FtNotificationEvent({type:"error",message:V.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchMapRating())}else this.editorMode&&this.dispatchEvent(new He.FtNotificationEvent({type:"info",message:xr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new He.FtNotificationEvent({type:"info",message:xr.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new He.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new He.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new mn)}openMoreOptions(){var e,r,i;this.dispatchEvent(new gn({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((e=this.map)===null||e===void 0?void 0:e.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||xe.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};se.elementDefinitions={"ft-reader-feedback":J};se.storedRatingIfAuthenticated=(t,e)=>{var r,i;return!((r=e.session)===null||r===void 0)&&r.sessionAuthenticated?t.mapRating:(i=e.ratingSummary)!==null&&i!==void 0?i:t.mapRating};$e([(0,He.redux)({store:E.name})],se.prototype,"session",void 0);$e([(0,He.redux)({store:"reader"})],se.prototype,"map",void 0);$e([(0,He.redux)({store:E.name})],se.prototype,"editorMode",void 0);$e([(0,He.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],se.prototype,"configuration",void 0);$e([(0,He.redux)({store:"reader",selector:se.storedRatingIfAuthenticated})],se.prototype,"ratingSummary",void 0);$e([(0,mt.property)({type:Boolean})],se.prototype,"hideTitle",void 0);$e([(0,mt.property)({type:Boolean})],se.prototype,"withMoreOptionsButton",void 0);$e([(0,mt.property)()],se.prototype,"iconVariant",void 0);$e([(0,mt.property)()],se.prototype,"emptyStarIcon",void 0);$e([(0,mt.property)()],se.prototype,"filledStarIcon",void 0);$e([(0,mt.property)()],se.prototype,"emptyLikeIcon",void 0);$e([(0,mt.property)()],se.prototype,"filledLikeIcon",void 0);$e([(0,mt.property)()],se.prototype,"emptyDislikeIcon",void 0);$e([(0,mt.property)()],se.prototype,"filledDislikeIcon",void 0);$e([(0,mt.query)("ft-reader-feedback")],se.prototype,"readerFeedback",void 0);$e([Xi(Co.properties["mail.map_feedback.subject"](t=>{var e;return[(e=t.map)===null||e===void 0?void 0:e.title]}))],se.prototype,"mailSubject",void 0);$e([(0,He.reduxEventListener)({eventName:"rating-changed"})],se.prototype,"fetchRatingSummary",null);var Up=m($()),bt=m(K()),We=m(T());var vn=m(K()),Fp=m(T());var gs=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 Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},ys=Symbol("registerInterval"),Cf=(0,Fp.applyMixinOnce)(Symbol("toFtReaderTopicComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[e]=0}connectedCallback(){super.connectedCallback(),this[ys]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[ys]):this.dispatchEvent(new ms)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=ys,gs([(0,vn.state)()],r.prototype,"tocNode",void 0),gs([(0,vn.state)()],r.prototype,"disableContextInteractions",void 0),gs([(0,vn.state)()],r.prototype,"headingLevelsShift",void 0),r}),Sn=class extends Cf(Xt){};var Be=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},le=class extends gr(Sn){constructor(e=new fo){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Fe.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Oo,this.i18nProperties={feedbackMainTitle:V.properties.topicFeedbackMainTitle(),ratingSectionTitle:V.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.topicFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-topic-feedback-guest-rating-"+((r=this.tocNode)===null||r===void 0?void 0:r.tocId)},this.sendRatingDebouncer=new We.Debouncer(500),this.addStore(E)}render(){var e;return Up.html`
2097
2117
  <ft-reader-feedback
2098
2118
  .i18nProperties=${this.i18nProperties}
2099
2119
  ?ratingAllowed=${(e=this.tocNode)===null||e===void 0?void 0:e.hasRating}
@@ -2115,7 +2135,7 @@ ${yo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2115
2135
  @mailer-feedback="${this.onMailerFeedbackSent}"
2116
2136
  @open-more-options="${this.openMoreOptions}"
2117
2137
  ></ft-reader-feedback>
2118
- `}willUpdate(e){var r,i,n,a,s;super.willUpdate(e),["tocNode","user"].some(c=>e.has(c))&&this.tocNode&&((r=this.stateManager)===null||r===void 0||r.fetchTopicRating(this.tocNode.tocId)),e.has("editorMode")&&this.editorMode&&this.addI18nContext(mr,hn),["map","tocNode","configuration","user","mailSubject"].some(c=>e.has(c))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink(this.tocNode.tocId))!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null),["session","tocNode"].some(c=>e.has(c))&&this.session&&this.tocNode&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var e;await((e=this.stateManager)===null||e===void 0?void 0:e.fetchTopicRating(this.tocNode.tocId))}rate(e){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n,a;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new We.FtNotificationEvent({type:"error",message:V.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchTopicRating(this.tocNode.tocId))}else this.editorMode&&this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:mr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,e.detail.message,e.detail.from)),this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:mr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new We.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new un(e))}openMoreOptions(){var e,r,i,n,a,s,c,u;this.dispatchEvent(new cn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(c=this.ratingSummary)===null||c===void 0?void 0:c.type:xe.NO_RATING)||xe.NO_RATING,ratingValue:(u=this.ratingSummary)===null||u===void 0?void 0:u.rating}))}};le.elementDefinitions={"ft-reader-feedback":Q};le.storedRatingIfAuthenticated=(t,e)=>{var r,i,n,a;let s=t.topicsRating[(i=(r=e.tocNode)===null||r===void 0?void 0:r.tocId)!==null&&i!==void 0?i:""];return!((n=e.session)===null||n===void 0)&&n.sessionAuthenticated?s:(a=e.ratingSummary)!==null&&a!==void 0?a:s};Be([(0,We.redux)({store:E.name})],le.prototype,"session",void 0);Be([(0,We.redux)({store:"reader"})],le.prototype,"map",void 0);Be([(0,We.redux)({store:E.name})],le.prototype,"editorMode",void 0);Be([(0,We.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],le.prototype,"configuration",void 0);Be([(0,We.redux)({store:"reader",selector:le.storedRatingIfAuthenticated})],le.prototype,"ratingSummary",void 0);Be([(0,mt.property)({type:Boolean})],le.prototype,"hideTitle",void 0);Be([(0,mt.property)({type:Boolean})],le.prototype,"withMoreOptionsButton",void 0);Be([(0,mt.property)()],le.prototype,"iconVariant",void 0);Be([(0,mt.property)()],le.prototype,"emptyStarIcon",void 0);Be([(0,mt.property)()],le.prototype,"filledStarIcon",void 0);Be([(0,mt.property)()],le.prototype,"emptyLikeIcon",void 0);Be([(0,mt.property)()],le.prototype,"filledLikeIcon",void 0);Be([(0,mt.property)()],le.prototype,"emptyDislikeIcon",void 0);Be([(0,mt.property)()],le.prototype,"filledDislikeIcon",void 0);Be([(0,mt.query)("ft-reader-feedback")],le.prototype,"readerFeedback",void 0);Be([ji(yo.properties["mail.feedback.subject"](t=>{var e,r;return[(e=t.tocNode)===null||e===void 0?void 0:e.title,(r=t.map)===null||r===void 0?void 0:r.title]}))],le.prototype,"mailSubject",void 0);Be([(0,We.reduxEventListener)({eventName:"rating-changed"})],le.prototype,"fetchRatingSummary",null);(0,Ga.customElement)("ft-reader-map-feedback")(se);(0,Ga.customElement)("ft-reader-topic-feedback")(le);})();
2138
+ `}willUpdate(e){var r,i,n,a,s;super.willUpdate(e),["tocNode","user"].some(c=>e.has(c))&&this.tocNode&&((r=this.stateManager)===null||r===void 0||r.fetchTopicRating(this.tocNode.tocId)),e.has("editorMode")&&this.editorMode&&this.addI18nContext(xr,xn),["map","tocNode","configuration","user","mailSubject"].some(c=>e.has(c))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink(this.tocNode.tocId))!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null),["session","tocNode"].some(c=>e.has(c))&&this.session&&this.tocNode&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var e;await((e=this.stateManager)===null||e===void 0?void 0:e.fetchTopicRating(this.tocNode.tocId))}rate(e){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n,a;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new We.FtNotificationEvent({type:"error",message:V.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchTopicRating(this.tocNode.tocId))}else this.editorMode&&this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:xr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,e.detail.message,e.detail.from)),this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:xr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new We.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new yn(e))}openMoreOptions(){var e,r,i,n,a,s,c,p;this.dispatchEvent(new hn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(c=this.ratingSummary)===null||c===void 0?void 0:c.type:xe.NO_RATING)||xe.NO_RATING,ratingValue:(p=this.ratingSummary)===null||p===void 0?void 0:p.rating}))}};le.elementDefinitions={"ft-reader-feedback":J};le.storedRatingIfAuthenticated=(t,e)=>{var r,i,n,a;let s=t.topicsRating[(i=(r=e.tocNode)===null||r===void 0?void 0:r.tocId)!==null&&i!==void 0?i:""];return!((n=e.session)===null||n===void 0)&&n.sessionAuthenticated?s:(a=e.ratingSummary)!==null&&a!==void 0?a:s};Be([(0,We.redux)({store:E.name})],le.prototype,"session",void 0);Be([(0,We.redux)({store:"reader"})],le.prototype,"map",void 0);Be([(0,We.redux)({store:E.name})],le.prototype,"editorMode",void 0);Be([(0,We.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],le.prototype,"configuration",void 0);Be([(0,We.redux)({store:"reader",selector:le.storedRatingIfAuthenticated})],le.prototype,"ratingSummary",void 0);Be([(0,bt.property)({type:Boolean})],le.prototype,"hideTitle",void 0);Be([(0,bt.property)({type:Boolean})],le.prototype,"withMoreOptionsButton",void 0);Be([(0,bt.property)()],le.prototype,"iconVariant",void 0);Be([(0,bt.property)()],le.prototype,"emptyStarIcon",void 0);Be([(0,bt.property)()],le.prototype,"filledStarIcon",void 0);Be([(0,bt.property)()],le.prototype,"emptyLikeIcon",void 0);Be([(0,bt.property)()],le.prototype,"filledLikeIcon",void 0);Be([(0,bt.property)()],le.prototype,"emptyDislikeIcon",void 0);Be([(0,bt.property)()],le.prototype,"filledDislikeIcon",void 0);Be([(0,bt.query)("ft-reader-feedback")],le.prototype,"readerFeedback",void 0);Be([Xi(Co.properties["mail.feedback.subject"](t=>{var e,r;return[(e=t.tocNode)===null||e===void 0?void 0:e.title,(r=t.map)===null||r===void 0?void 0:r.title]}))],le.prototype,"mailSubject",void 0);Be([(0,We.reduxEventListener)({eventName:"rating-changed"})],le.prototype,"fetchRatingSummary",null);(0,bs.customElement)("ft-reader-map-feedback")(se);(0,bs.customElement)("ft-reader-topic-feedback")(le);})();
2119
2139
  /*! Bundled license information:
2120
2140
 
2121
2141
  lit-html/lit-html.js: