@fluid-topics/ft-reader-feedback 1.3.15 → 1.3.17

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 gu=Object.create;var Pa=Object.defineProperty;var yu=Object.getOwnPropertyDescriptor;var mu=Object.getOwnPropertyNames;var bu=Object.getPrototypeOf,xu=Object.prototype.hasOwnProperty;var mr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var vu=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of mu(e))!xu.call(t,n)&&n!==o&&Pa(t,n,{get:()=>e[n],enumerable:!(i=yu(e,n))||i.enumerable});return t};var m=(t,e,o)=>(o=t!=null?gu(bu(t)):{},vu(e||!t||!t.__esModule?Pa(o,"default",{value:t,enumerable:!0}):o,t));var T=mr((Xp,Da)=>{Da.exports=ftGlobals.wcUtils});var B=mr((Qp,$a)=>{$a.exports=ftGlobals.lit});var Z=mr((Jp,Ba)=>{Ba.exports=ftGlobals.litDecorators});var Us=mr((Qt,Fs)=>{var Wo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Go=function(){function t(){this.fetch=!1,this.DOMException=Wo.DOMException}return t.prototype=Wo,new t}();(function(t){var e=function(o){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 O(y){var v=new FileReader,P=x(v),Y=/charset=([A-Za-z0-9_-]+)/.exec(y.type),de=Y?Y[1]:"utf-8";return v.readAsText(y,de),P}function N(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 _(){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 O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(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 $=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function H(y){var v=y.toUpperCase();return $.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 de=/\?/;this.url+=(de.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("="),de=Y.shift().replace(/\+/g," "),G=Y.join("=").replace(/\+/g," ");v.append(decodeURIComponent(de),decodeURIComponent(G))}}),v}function wt(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 de=Y.split(":"),G=de.shift().trim();if(G){var Fo=de.join(":").trim();try{v.append(G,Fo)}catch(dn){console.warn("Response "+dn.message)}}}),v}_.call(W.prototype);function Ve(y,v){if(!(this instanceof Ve))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)}_.call(Ve.prototype),Ve.prototype.clone=function(){return new Ve(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},Ve.error=function(){var y=new Ve(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Et=[301,302,303,307,308];Ve.redirect=function(y,v){if(Et.indexOf(v)===-1)throw new RangeError("Invalid status code");return new Ve(null,{status:v,headers:{location:y}})},o.DOMException=i.DOMException;try{new o.DOMException}catch{o.DOMException=function(v,P){this.message=v,this.name=P;var Y=Error(v);this.stack=Y.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function _e(y,v){return new Promise(function(P,Y){var de=new W(y,v);if(de.signal&&de.signal.aborted)return Y(new o.DOMException("Aborted","AbortError"));var G=new XMLHttpRequest;function Fo(){G.abort()}G.onload=function(){var Ne={statusText:G.statusText,headers:wt(G.getAllResponseHeaders()||"")};de.url.indexOf("file://")===0&&(G.status<200||G.status>599)?Ne.status=200:Ne.status=G.status,Ne.url="responseURL"in G?G.responseURL:Ne.headers.get("X-Request-URL");var yr="response"in G?G.response:G.responseText;setTimeout(function(){P(new Ve(yr,Ne))},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 o.DOMException("Aborted","AbortError"))},0)};function dn(Ne){try{return Ne===""&&i.location.href?i.location.href:Ne}catch{return Ne}}if(G.open(de.method,dn(de.url),!0),de.credentials==="include"?G.withCredentials=!0:de.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 ka=[];Object.getOwnPropertyNames(v.headers).forEach(function(Ne){ka.push(u(Ne)),G.setRequestHeader(Ne,p(v.headers[Ne]))}),de.headers.forEach(function(Ne,yr){ka.indexOf(yr)===-1&&G.setRequestHeader(yr,Ne)})}else de.headers.forEach(function(Ne,yr){G.setRequestHeader(yr,Ne)});de.signal&&(de.signal.addEventListener("abort",Fo),G.onreadystatechange=function(){G.readyState===4&&de.signal.removeEventListener("abort",Fo)}),G.send(typeof de._bodyInit>"u"?null:de._bodyInit)})}return _e.polyfill=!0,i.fetch||(i.fetch=_e,i.Headers=g,i.Request=W,i.Response=Ve),o.Headers=g,o.Request=W,o.Response=Ve,o.fetch=_e,o}({})})(Go);Go.fetch.ponyfill=!0;delete Go.fetch.polyfill;var Wr=Wo.fetch?Wo:Go;Qt=Wr.fetch;Qt.default=Wr.fetch;Qt.fetch=Wr.fetch;Qt.Headers=Wr.Headers;Qt.Request=Wr.Request;Qt.Response=Wr.Response;Fs.exports=Qt});var $t=mr((ub,Nl)=>{Nl.exports=ftGlobals.litClassMap});var uc=mr((Qb,dc)=>{dc.exports=ftGlobals.litUnsafeHTML});var jn=mr((Dv,$c)=>{$c.exports=ftGlobals.litRepeat});var La=m(T());var fu=m(B()),ht=m(Z()),We=m(T());var Ma=m(T()),Fa=m(Z());var uo;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change"})(uo||(uo={}));var at;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(at||(at={}));var Su=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},pn=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},un=Symbol("registerInterval");function Cu(t){var e;class o 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[un]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[un]):this.dispatchEvent(new pn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=un,Su([(0,Fa.state)()],o.prototype,"stateManager",void 0),o}var Zt=class extends Cu(Ma.FtLitElementRedux){};var ye=m(B()),me=m(Z()),an=m(T());var Bs=m(B()),J=m(T());var Ds=m(B()),F=m(T());var Va=m(B()),be=m(T()),Ua=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorContent),w={color:Ua,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ua),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")},za=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorPrimary),Ha={color:za,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",za)},Wa=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorSecondary),Ga={color:Wa,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Wa)},ja=Va.css`
1
+ "use strict";(()=>{var mu=Object.create;var Da=Object.defineProperty;var bu=Object.getOwnPropertyDescriptor;var xu=Object.getOwnPropertyNames;var vu=Object.getPrototypeOf,Su=Object.prototype.hasOwnProperty;var br=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Cu=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of xu(e))!Su.call(t,n)&&n!==o&&Da(t,n,{get:()=>e[n],enumerable:!(i=bu(e,n))||i.enumerable});return t};var m=(t,e,o)=>(o=t!=null?mu(vu(t)):{},Cu(e||!t||!t.__esModule?Da(o,"default",{value:t,enumerable:!0}):o,t));var T=br((Jp,$a)=>{$a.exports=ftGlobals.wcUtils});var B=br((ef,Ba)=>{Ba.exports=ftGlobals.lit});var Z=br((tf,Ma)=>{Ma.exports=ftGlobals.litDecorators});var zs=br((Qt,Us)=>{var Go=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Vo=function(){function t(){this.fetch=!1,this.DOMException=Go.DOMException}return t.prototype=Go,new t}();(function(t){var e=function(o){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 O(y){var v=new FileReader,P=x(v),Y=/charset=([A-Za-z0-9_-]+)/.exec(y.type),de=Y?Y[1]:"utf-8";return v.readAsText(y,de),P}function N(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 _(){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 O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(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 $=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function H(y){var v=y.toUpperCase();return $.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 de=/\?/;this.url+=(de.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("="),de=Y.shift().replace(/\+/g," "),G=Y.join("=").replace(/\+/g," ");v.append(decodeURIComponent(de),decodeURIComponent(G))}}),v}function Et(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 de=Y.split(":"),G=de.shift().trim();if(G){var zo=de.join(":").trim();try{v.append(G,zo)}catch(un){console.warn("Response "+un.message)}}}),v}_.call(W.prototype);function Ve(y,v){if(!(this instanceof Ve))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)}_.call(Ve.prototype),Ve.prototype.clone=function(){return new Ve(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},Ve.error=function(){var y=new Ve(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var At=[301,302,303,307,308];Ve.redirect=function(y,v){if(At.indexOf(v)===-1)throw new RangeError("Invalid status code");return new Ve(null,{status:v,headers:{location:y}})},o.DOMException=i.DOMException;try{new o.DOMException}catch{o.DOMException=function(v,P){this.message=v,this.name=P;var Y=Error(v);this.stack=Y.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function Ne(y,v){return new Promise(function(P,Y){var de=new W(y,v);if(de.signal&&de.signal.aborted)return Y(new o.DOMException("Aborted","AbortError"));var G=new XMLHttpRequest;function zo(){G.abort()}G.onload=function(){var Le={statusText:G.statusText,headers:Et(G.getAllResponseHeaders()||"")};de.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 mr="response"in G?G.response:G.responseText;setTimeout(function(){P(new Ve(mr,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 o.DOMException("Aborted","AbortError"))},0)};function un(Le){try{return Le===""&&i.location.href?i.location.href:Le}catch{return Le}}if(G.open(de.method,un(de.url),!0),de.credentials==="include"?G.withCredentials=!0:de.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 Pa=[];Object.getOwnPropertyNames(v.headers).forEach(function(Le){Pa.push(u(Le)),G.setRequestHeader(Le,p(v.headers[Le]))}),de.headers.forEach(function(Le,mr){Pa.indexOf(mr)===-1&&G.setRequestHeader(mr,Le)})}else de.headers.forEach(function(Le,mr){G.setRequestHeader(mr,Le)});de.signal&&(de.signal.addEventListener("abort",zo),G.onreadystatechange=function(){G.readyState===4&&de.signal.removeEventListener("abort",zo)}),G.send(typeof de._bodyInit>"u"?null:de._bodyInit)})}return Ne.polyfill=!0,i.fetch||(i.fetch=Ne,i.Headers=g,i.Request=W,i.Response=Ve),o.Headers=g,o.Request=W,o.Response=Ve,o.fetch=Ne,o}({})})(Vo);Vo.fetch.ponyfill=!0;delete Vo.fetch.polyfill;var Vr=Go.fetch?Go:Vo;Qt=Vr.fetch;Qt.default=Vr.fetch;Qt.fetch=Vr.fetch;Qt.Headers=Vr.Headers;Qt.Request=Vr.Request;Qt.Response=Vr.Response;Us.exports=Qt});var $t=br((bb,kl)=>{kl.exports=ftGlobals.litClassMap});var fc=br((nx,pc)=>{pc.exports=ftGlobals.litUnsafeHTML});var Kn=br((Hv,Mc)=>{Mc.exports=ftGlobals.litRepeat});var ka=m(T());var gu=m(B()),gt=m(Z()),We=m(T());var Fa=m(T()),Ua=m(Z());var ho;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change"})(ho||(ho={}));var at;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(at||(at={}));var Ou=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},fn=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},pn=Symbol("registerInterval");function wu(t){var e;class o 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[pn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[pn]):this.dispatchEvent(new fn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=pn,Ou([(0,Ua.state)()],o.prototype,"stateManager",void 0),o}var Zt=class extends wu(Fa.FtLitElementRedux){};var ye=m(B()),me=m(Z()),sn=m(T());var Ms=m(B()),J=m(T());var $s=m(B()),F=m(T());var ja=m(B()),be=m(T()),za=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorContent),w={color:za,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",za),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")},Ha=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorPrimary),Wa={color:Ha,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ha)},Ga=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorSecondary),Va={color:Ga,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ga)},Ka=ja.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: ${Ga.backgroundColor};
57
+ background-color: ${Va.backgroundColor};
58
58
  }
59
59
 
60
60
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
61
- background-color: ${Ga.color};
61
+ background-color: ${Va.color};
62
62
  }
63
63
 
64
64
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
65
- background-color: ${Ha.backgroundColor};
65
+ background-color: ${Wa.backgroundColor};
66
66
  }
67
67
 
68
68
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
69
- background-color: ${Ha.color};
69
+ background-color: ${Wa.color};
70
70
  }
71
71
 
72
72
  .ft-ripple .ft-ripple--background {
@@ -111,17 +111,18 @@
111
111
  opacity: ${w.opacityContentOnSurfacePressed};
112
112
  transform: translate(-50%, -50%) scale(1);
113
113
  }
114
- `;var lt=m(B()),R=m(T());var kt=m(B(),1),qt=t=>typeof t=="string"?(0,kt.unsafeCSS)(t):t,r=class{static create(e,o,i,n){let a=c=>qt(c??n),s=kt.css`var(${qt(e)}, ${a(n)})`;return s.name=e,s.description=o,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>Ka(s,c??a(n)),s.get=c=>kt.css`var(${qt(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,o,i,n){let a=c=>i.get(c??n),s=kt.css`var(${qt(e)}, ${a(n)})`;return s.name=e,s.description=o,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>Ka(s,c??a(n)),s.get=c=>kt.css`var(${qt(e)}, ${a(c)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,o){let i=a=>e.defaultCssValue(a),n=kt.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=o,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>kt.css`var(${qt(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function Ka(t,e){return qt(`${t.name}: ${e}`)}var l={colorWhite:r.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:r.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:r.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:r.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:r.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:r.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:r.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:r.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:r.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:r.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:r.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:r.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:r.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:r.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:r.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:r.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:r.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:r.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:r.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:r.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:r.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:r.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:r.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:r.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:r.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:r.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:r.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:r.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:r.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:r.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:r.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:r.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:r.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:r.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:r.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:r.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:r.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:r.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:r.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:r.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:r.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:r.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:r.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:r.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:r.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:r.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:r.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:r.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:r.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:r.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:r.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:r.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:r.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:r.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:r.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:r.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:r.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:r.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:r.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:r.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:r.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:r.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:r.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:r.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:r.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:r.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:r.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:r.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:r.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:r.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:r.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:r.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:r.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:r.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:r.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:r.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:r.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:r.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:r.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:r.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:r.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:r.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:r.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:r.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:r.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:r.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:r.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:r.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:r.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:r.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:r.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:r.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:r.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:r.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:r.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:r.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:r.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:r.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:r.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:r.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:r.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:r.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:r.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:r.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:r.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:r.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:r.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:r.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:r.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:r.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:r.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:r.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:r.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:r.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:r.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:r.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:r.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:r.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:r.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:r.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:r.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:r.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:r.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:r.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:r.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:r.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:r.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:r.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:r.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:r.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:r.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:r.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:r.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:r.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:r.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:r.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:r.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:r.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:r.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:r.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:r.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:r.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:r.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:r.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:r.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:r.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:r.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:r.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:r.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:r.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:r.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:r.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:r.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:r.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:r.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:r.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:r.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:r.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:r.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:r.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:r.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:r.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:r.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:r.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:r.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:r.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:r.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:r.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:r.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:r.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:r.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:r.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:r.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:r.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:r.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:r.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:r.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:r.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:r.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:r.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:r.create("--ft-opacity-0","","NUMBER","0"),opacity8:r.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:r.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:r.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:r.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:r.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:r.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:r.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:r.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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)")},Za={fontFamily:r.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-display-lineHeight","","SIZE","1.2"),fontSize:r.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:r.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-display-textCase","","UNKNOWN","none")},qa={fontFamily:r.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-title-1-lineHeight","","SIZE","1.2"),fontSize:r.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:r.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Ya={fontFamily:r.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-2-lineHeight","","SIZE","1.2"),fontSize:r.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:r.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Xa={fontFamily:r.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-3-lineHeight","","SIZE","1.2"),fontSize:r.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:r.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:r.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Qa={fontFamily:r.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-1-regular-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},Ja={fontFamily:r.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-1-medium-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},es={fontFamily:r.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},ts={fontFamily:r.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-2-regular-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Pr={fontFamily:r.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Ou={fontFamily:r.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:r.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:r.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},rs={fontFamily:r.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},os={fontFamily:r.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},is={fontFamily:r.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},ns={fontFamily:r.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},as={fontFamily:r.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},ss={fontFamily:r.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},ls={fontFamily:r.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},cs={fontFamily:r.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},ds={fontFamily:r.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},us={fontFamily:r.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},br={fontFamily:r.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},ps={fontFamily:r.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},fs={fontFamily:r.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},hs={fontFamily:r.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},gs={fontFamily:r.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},ys={fontFamily:r.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Uo={display:Za,"title-1":qa,"title-2":Ya,"title-3":Xa,"body-1-regular":Qa,"body-1-medium":Ja,"body-1-semibold":es,"body-2-regular":ts,"body-2-medium":Pr,"body-2-medium-underline":Ou,"body-2-semibold":rs,"label-1-medium":os,"label-1-semibold":is,"label-1-bold":ns,"label-2-medium":as,"label-2-semibold":ss,"label-2-bold":ls,"caption-1-medium":cs,"caption-1-semibold":ds,"caption-1-bold":us,"caption-2-medium":br,"caption-2-semibold":ps,"caption-2-bold":fs,"caption-3-medium":hs,"caption-3-semibold":gs,"caption-3-bold":ys};var d={backgroundActionPrimary:r.extend("--ft-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:r.extend("--ft-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:r.extend("--ft-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:r.extend("--ft-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:r.extend("--ft-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:r.extend("--ft-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:r.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:r.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:r.extend("--ft-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:r.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:r.extend("--ft-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:r.extend("--ft-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:r.extend("--ft-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:r.extend("--ft-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:r.extend("--ft-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:r.extend("--ft-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:r.extend("--ft-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:r.extend("--ft-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:r.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
115
- Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:r.extend("--ft-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:r.extend("--ft-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:r.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:r.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:r.extend("--ft-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:r.extend("--ft-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:r.extend("--ft-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:r.extend("--ft-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:r.extend("--ft-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:r.extend("--ft-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:r.extend("--ft-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:r.extend("--ft-border-global-primary","Used as border for element like input.",l.colorGray50),borderGlobalSubtle:r.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",l.colorGray30),borderInputPrimary:r.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80),borderNeutralPrimary:r.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",l.colorGray200)};var f={largeHeight:r.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:r.extend("--ft-button-large-horizontal-padding","",l.spacing4),largeGap:r.extend("--ft-button-large-gap","",l.spacing2),largeBorderRadius:r.extend("--ft-button-large-border-radius","",l.borderRadiusS),largeIconSize:r.extend("--ft-button-large-icon-size","",l.iconSize3),largeBorderWidth:r.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:r.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:r.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:r.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:r.extend("--ft-button-medium-horizontal-padding","",l.spacing3),mediumGap:r.extend("--ft-button-medium-gap","",l.spacing2),mediumBorderRadius:r.extend("--ft-button-medium-border-radius","",l.borderRadiusS),mediumIconSize:r.extend("--ft-button-medium-icon-size","",l.iconSize2),mediumBorderWidth:r.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:r.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:r.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:r.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-button-small-horizontal-padding","",l.spacing2),smallGap:r.extend("--ft-button-small-gap","",l.spacing1),smallBorderRadius:r.extend("--ft-button-small-border-radius","",l.borderRadiusS),smallIconSize:r.extend("--ft-button-small-icon-size","",l.iconSize1),smallBorderWidth:r.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:r.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:r.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:r.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:r.extend("--ft-button-x-small-icon-size","",l.iconSize1),xSmallFocusOutlineOffset:r.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:r.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:r.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:r.extend("--ft-button-round-border-radius","",l.borderRadiusPill),primaryBrandBackgroundColor:r.extend("--ft-button-primary-brand-background-color","",d.backgroundActionPrimary),primaryBrandColor:r.extend("--ft-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:r.extend("--ft-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:r.extend("--ft-button-primary-brand-state-layer-color","",d.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:r.extend("--ft-button-primary-brand-hover-state-layer-opacity","",l.opacity16),primaryBrandFocusStateLayerOpacity:r.extend("--ft-button-primary-brand-focus-state-layer-opacity","",l.opacity16),primaryBrandActiveStateLayerOpacity:r.extend("--ft-button-primary-brand-active-state-layer-opacity","",l.opacity24),primaryBrandDisabledComponentOpacity:r.extend("--ft-button-primary-brand-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:r.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:r.extend("--ft-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:r.extend("--ft-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:r.extend("--ft-button-tertiary-brand-state-layer-color","",d.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:r.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",l.opacity8),tertiaryBrandFocusStateLayerOpacity:r.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",l.opacity8),tertiaryBrandActiveStateLayerOpacity:r.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",l.opacity16),tertiaryBrandDisabledComponentOpacity:r.extend("--ft-button-tertiary-brand-disabled-component-opacity","",l.opacity40),tertiaryInfoBackgroundColor:r.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:r.extend("--ft-button-tertiary-info-color","",d.contentInfoPrimary),tertiaryInfoIconColor:r.extend("--ft-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:r.extend("--ft-button-tertiary-info-state-layer-color","",d.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:r.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",l.opacity8),tertiaryInfoHoverStateLayerOpacity:r.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",l.opacity8),tertiaryInfoActiveStateLayerOpacity:r.extend("--ft-button-tertiary-info-active-state-layer-opacity","",l.opacity16),tertiaryInfoDisabledComponentOpacity:r.extend("--ft-button-tertiary-info-disabled-component-opacity","",l.opacity40),tertiarySuccessBackgroundColor:r.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:r.extend("--ft-button-tertiary-success-color","",d.contentSuccessPrimary),tertiarySuccessIconColor:r.extend("--ft-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:r.extend("--ft-button-tertiary-success-state-layer-color","",d.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:r.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",l.opacity8),tertiarySuccessFocusStateLayerOpacity:r.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",l.opacity8),tertiarySuccessActiveStateLayerOpacity:r.extend("--ft-button-tertiary-success-active-state-layer-opacity","",l.opacity16),tertiarySuccessDisabledComponentOpacity:r.extend("--ft-button-tertiary-success-disabled-component-opacity","",l.opacity40),tertiaryWarningBackgroundColor:r.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:r.extend("--ft-button-tertiary-warning-color","",d.contentWarningPrimary),tertiaryWarningIconColor:r.extend("--ft-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:r.extend("--ft-button-tertiary-warning-state-layer-color","",d.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:r.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",l.opacity8),tertiaryWarningFocusStateLayerOpacity:r.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",l.opacity8),tertiaryWarningActiveStateLayerOpacity:r.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",l.opacity16),tertiaryWarningDisabledComponentOpacity:r.extend("--ft-button-tertiary-warning-disabled-component-opacity","",l.opacity40),tertiaryErrorBackgroundColor:r.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:r.extend("--ft-button-tertiary-error-color","",d.contentErrorPrimary),tertiaryErrorIconColor:r.extend("--ft-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:r.extend("--ft-button-tertiary-error-state-layer-color","",d.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:r.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",l.opacity8),tertiaryErrorFocusStateLayerOpacity:r.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",l.opacity8),tertiaryErrorActiveStateLayerOpacity:r.extend("--ft-button-tertiary-error-active-state-layer-opacity","",l.opacity16),tertiaryErrorDisabledComponentOpacity:r.extend("--ft-button-tertiary-error-disabled-component-opacity","",l.opacity40),tertiaryNeutralBackgroundColor:r.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:r.extend("--ft-button-tertiary-neutral-icon-color","",d.contentGlobalSecondary),tertiaryNeutralColor:r.extend("--ft-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:r.extend("--ft-button-tertiary-neutral-state-layer-color","",d.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",l.opacity8),tertiaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",l.opacity8),tertiaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",l.opacity16),tertiaryNeutralDisabledComponentOpacity:r.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",l.opacity40),secondaryBrandBackgroundColor:r.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:r.extend("--ft-button-secondary-brand-color","",d.contentActionPrimary),secondaryBrandIconColor:r.extend("--ft-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:r.extend("--ft-button-secondary-brand-state-layer-color","",d.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:r.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",l.opacity8),secondaryBrandFocusStateLayerOpacity:r.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",l.opacity8),secondaryBrandActiveStateLayerOpacity:r.extend("--ft-button-secondary-brand-active-state-layer-opacity","",l.opacity16),secondaryBrandDisabledComponentOpacity:r.extend("--ft-button-secondary-brand-disabled-component-opacity","",l.opacity40),secondaryBrandBorderColor:r.extend("--ft-button-secondary-brand-border-color","",d.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:r.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",l.opacity8),secondaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",l.opacity8),secondaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",l.opacity16),secondaryNeutralDisabledComponentOpacity:r.extend("--ft-button-secondary-neutral-disabled-component-opacity","",l.opacity40),secondaryNeutralBackgroundColor:r.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:r.extend("--ft-button-secondary-neutral-color","",d.contentGlobalSecondary),secondaryNeutralIconColor:r.extend("--ft-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:r.extend("--ft-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:r.extend("--ft-button-secondary-neutral-border-color","",d.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:r.extend("--ft-button-secondary-info-hover-state-layer-opacity","",l.opacity8),secondaryInfoFocusStateLayerOpacity:r.extend("--ft-button-secondary-info-focus-state-layer-opacity","",l.opacity8),secondaryInfoActiveStateLayerOpacity:r.extend("--ft-button-secondary-info-active-state-layer-opacity","",l.opacity16),secondaryInfoDisabledComponentOpacity:r.extend("--ft-button-secondary-info-disabled-component-opacity","",l.opacity40),secondaryInfoBackgroundColor:r.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:r.extend("--ft-button-secondary-info-border-color","",d.borderInfoPrimary),secondaryInfoColor:r.extend("--ft-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:r.extend("--ft-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:r.extend("--ft-button-secondary-info-state-layer-color","",d.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:r.extend("--ft-button-secondary-success-hover-state-layer-opacity","",l.opacity8),secondarySuccessFocusStateLayerOpacity:r.extend("--ft-button-secondary-success-focus-state-layer-opacity","",l.opacity8),secondarySuccessActiveStateLayerOpacity:r.extend("--ft-button-secondary-success-active-state-layer-opacity","",l.opacity16),secondarySuccessDisabledComponentOpacity:r.extend("--ft-button-secondary-success-disabled-component-opacity","",l.opacity40),secondarySuccessBackgroundColor:r.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:r.extend("--ft-button-secondary-success-border-color","",d.borderSuccessPrimary),secondarySuccessColor:r.extend("--ft-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:r.extend("--ft-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:r.extend("--ft-button-secondary-success-state-layer-color","",d.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:r.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",l.opacity8),secondaryWarningFocusStateLayerOpacity:r.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",l.opacity8),secondaryWarningActiveStateLayerOpacity:r.extend("--ft-button-secondary-warning-active-state-layer-opacity","",l.opacity16),secondaryWarningDisabledComponentOpacity:r.extend("--ft-button-secondary-warning-disabled-component-opacity","",l.opacity40),secondaryWarningBackgroundColor:r.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:r.extend("--ft-button-secondary-warning-border-color","",d.borderWarningPrimary),secondaryWarningColor:r.extend("--ft-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:r.extend("--ft-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:r.extend("--ft-button-secondary-warning-state-layer-color","",d.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:r.extend("--ft-button-secondary-error-hover-state-layer-opacity","",l.opacity8),secondaryErrorFocusStateLayerOpacity:r.extend("--ft-button-secondary-error-focus-state-layer-opacity","",l.opacity8),secondaryErrorActiveStateLayerOpacity:r.extend("--ft-button-secondary-error-active-state-layer-opacity","",l.opacity16),secondaryErrorDisabledComponentOpacity:r.extend("--ft-button-secondary-error-disabled-component-opacity","",l.opacity40),secondaryErrorBackgroundColor:r.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:r.extend("--ft-button-secondary-error-border-color","",d.contentErrorPrimary),secondaryErrorColor:r.extend("--ft-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:r.extend("--ft-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:r.extend("--ft-button-secondary-error-state-layer-color","",d.contentErrorPrimary)};var bf={iconSize:r.extend("--ft-checkbox-icon-size","",l.iconSize2),boxSize:r.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:r.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:r.create("--ft-checkbox-border-radius","","SIZE","1px"),color:r.extend("--ft-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:r.extend("--ft-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:r.extend("--ft-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:r.extend("--ft-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:r.extend("--ft-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:r.extend("--ft-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:r.extend("--ft-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:r.extend("--ft-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:r.extend("--ft-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:r.extend("--ft-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:r.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:r.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:r.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:r.extend("--ft-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:r.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:r.extend("--ft-checkbox-horizontal-gap","",l.spacing3),leftPadding:r.extend("--ft-checkbox-left-padding","",l.spacing2)};var Of={headerRowBorderWidth:r.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:r.extend("--ft-table-header-row-background-color","",d.backgroundGlobalOnSurfaceDark),headerRowBorderColor:r.extend("--ft-table-header-row-border-color","",d.borderGlobalPrimary),headerRowColor:r.extend("--ft-table-header-row-color","",d.contentGlobalPrimary),dataRowBorderWidth:r.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:r.extend("--ft-table-data-row-background-color","",d.backgroundGlobalOnSurface),dataRowBorderColor:r.extend("--ft-table-data-row-border-color","",d.borderGlobalSubtle),dataRowColor:r.extend("--ft-table-data-row-color","",d.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:r.extend("--ft-table-data-row-default-hover-background-color","",l.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:r.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",l.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:r.extend("--ft-table-data-row-selectable-selected-default-background-color","",l.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:r.extend("--ft-table-data-row-selectable-selected-default-border-color","",l.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:r.extend("--ft-table-data-row-selectable-selected-hover-background-color","",l.colorBrand20),dataRowSelectableSelectedHoverBorderColor:r.extend("--ft-table-data-row-selectable-selected-hover-border-color","",l.colorBrand30),dataRowSelectableSelectedColor:r.extend("--ft-table-data-row-selectable-selected-color","",d.contentActionPrimary),dataRowClickableHoverBackgroundColor:r.extend("--ft-table-data-row-clickable-hover-background-color","",l.colorGray30),dataRowClickableFocusBorderColor:r.extend("--ft-table-data-row-clickable-focus-border-color","",d.borderActionFocusRing),dataRowClickableFocusBackgroundColor:r.extend("--ft-table-data-row-clickable-focus-background-color","",l.colorGray30),dataRowClickableActiveBackgroundColor:r.extend("--ft-table-data-row-clickable-active-background-color","",l.colorGray40),headerCellHorizontalGap:r.extend("--ft-table-header-cell-horizontal-gap","",l.spacing1),headerCellVerticalPadding:r.extend("--ft-table-header-cell-vertical-padding","",l.spacing2),headerCellHorizontalPadding:r.extend("--ft-table-header-cell-horizontal-padding","",l.spacing3),dataCellVerticalPadding:r.extend("--ft-table-data-cell-vertical-padding","",l.spacing2),dataCellHorizontalPadding:r.extend("--ft-table-data-cell-horizontal-padding","",l.spacing3),dataCellVerticalGap:r.extend("--ft-table-data-cell-vertical-gap","",l.spacing1)};var Tf={neutralOffHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",l.opacity8),neutralOffFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",l.opacity8),neutralOffFocusFocusRingColor:r.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",d.borderActionFocusRing),neutralOffActiveStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",l.opacity16),neutralOffBackgroundColor:r.extend("--ft-chip-choice-neutral-off-background-color","",d.backgroundGlobalOnSurface),neutralOffBorderColor:r.extend("--ft-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:r.extend("--ft-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:r.extend("--ft-chip-choice-neutral-off-state-layer-color","",d.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",l.opacity16),neutralOnHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",l.opacity24),neutralOnFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",l.opacity24),neutralOnFocusFocusRingColor:r.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",d.borderActionFocusRing),neutralOnActiveStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",l.opacity32),neutralOnBackgroundColor:r.extend("--ft-chip-choice-neutral-on-background-color","",d.backgroundGlobalOnSurface),neutralOnBorderColor:r.extend("--ft-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:r.extend("--ft-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:r.extend("--ft-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:r.extend("--ft-chip-choice-neutral-on-state-layer-color","",d.contentGlobalPrimary),largeMinHeight:r.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-choice-large-horizontal-padding","",l.spacing3),largeGap:r.extend("--ft-chip-choice-large-gap","",l.spacing1),largeBorderRadius:r.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ft-chip-choice-large-icon-size","",l.iconSize3),mediumMinHeight:r.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-choice-medium-horizontal-padding","",l.spacing2),mediumGap:r.extend("--ft-chip-choice-medium-gap","",l.spacing1),mediumBorderRadius:r.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ft-chip-choice-medium-icon-size","",l.iconSize2)};var kf={largeMinHeight:r.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-large-horizontal-padding","",l.spacing3),largeButtonRightPadding:r.extend("--ft-chip-large-button-right-padding","",l.spacing1),largeGap:r.extend("--ft-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:r.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:r.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ft-chip-large-icon-size","",l.iconSize3),mediumMinHeight:r.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-medium-horizontal-padding","",l.spacing2),mediumButtonRightPadding:r.extend("--ft-chip-medium-button-right-padding","",l.spacing05),mediumGap:r.extend("--ft-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:r.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:r.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ft-chip-medium-icon-size","",l.iconSize2),smallMinHeight:r.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-chip-small-horizontal-padding","",l.spacing1),smallButtonRightPadding:r.extend("--ft-chip-small-button-right-padding","",l.spacing05),smallGap:r.extend("--ft-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:r.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:r.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:r.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:r.extend("--ft-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:r.extend("--ft-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:r.extend("--ft-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:r.extend("--ft-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:r.extend("--ft-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:r.extend("--ft-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-chip-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:r.extend("--ft-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:r.extend("--ft-chip-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:r.extend("--ft-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:r.extend("--ft-chip-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:r.extend("--ft-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:r.extend("--ft-chip-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:r.extend("--ft-chip-error-border-color","",d.borderErrorSubtle)};var Mf={brandHoverOpacity:r.extend("--ft-link-brand-hover-opacity","",l.opacity80),brandHoverColor:r.extend("--ft-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:r.extend("--ft-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:r.extend("--ft-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:r.extend("--ft-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:r.extend("--ft-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:r.extend("--ft-link-info-hover-opacity","",l.opacity80),infoHoverColor:r.extend("--ft-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:r.extend("--ft-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:r.extend("--ft-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:r.extend("--ft-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:r.extend("--ft-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:r.extend("--ft-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:r.extend("--ft-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:r.extend("--ft-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:r.extend("--ft-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:r.extend("--ft-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:r.extend("--ft-link-neutral-visited-color","",l.colorBrand100)};var Wf={iconSize:r.extend("--ft-banner-icon-size","",l.iconSize5),borderWidth:r.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:r.extend("--ft-banner-left-padding","",l.spacing6),rightPadding:r.extend("--ft-banner-right-padding","",l.spacing6),verticalPadding:r.extend("--ft-banner-vertical-padding","",l.spacing6),horizontalSideGap:r.extend("--ft-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:r.extend("--ft-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:r.extend("--ft-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:r.extend("--ft-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:r.extend("--ft-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-banner-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-banner-info-border-color","",d.borderInfoSubtle)};var Zf={horizontalPadding:r.extend("--ft-badge-horizontal-padding","",l.spacing1),verticalPadding:r.extend("--ft-badge-vertical-padding","",l.spacing1),borderRadius:r.extend("--ft-badge-border-radius","",l.borderRadiusPill),color:r.extend("--ft-badge-color","",d.contentGlobalOnColor),backgroundColor:r.extend("--ft-badge-background-color","",d.contentActionPrimary)};var Jf={horizontalGap:r.extend("--ft-title-breadcrumb-horizontal-gap","",l.spacing1),currentColor:r.extend("--ft-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:r.extend("--ft-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:r.extend("--ft-title-breadcrumb-icon-color","",d.contentGlobalSubtle)};var ih={parentHorizontalPadding:r.extend("--ft-page-header-parent-horizontal-padding","",l.spacing6),parentTopPadding:r.extend("--ft-page-header-parent-top-padding","",l.spacing4),parentBottomPadding:r.extend("--ft-page-header-parent-bottom-padding","",l.spacing6),parentHelpLeftMargin:r.extend("--ft-page-header-parent-help-left-margin","",l.spacing1),parentTitleColor:r.extend("--ft-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:r.extend("--ft-page-header-parent-subtitle-color","",d.contentGlobalSecondary),parentChipLeftMargin:r.extend("--ft-page-header-parent-chip-left-margin","",l.spacing4),parentVerticalGap:r.extend("--ft-page-header-parent-vertical-gap","",l.spacing2),parentButtonsGroupHorizontalGap:r.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",l.spacing4),parentButtonsGroupVerticalGap:r.extend("--ft-page-header-parent-buttons-group-vertical-gap","",l.spacing4),parentChipsGroupHorizontalGap:r.extend("--ft-page-header-parent-chips-group-horizontal-gap","",l.spacing2),parentChipsGroupVerticalGap:r.extend("--ft-page-header-parent-chips-group-vertical-gap","",l.spacing2),childHorizontalPadding:r.extend("--ft-page-header-child-horizontal-padding","",l.spacing6),childTopPadding:r.extend("--ft-page-header-child-top-padding","",l.spacing2),childBottomPadding:r.extend("--ft-page-header-child-bottom-padding","",l.spacing2),childHelpLeftMargin:r.extend("--ft-page-header-child-help-left-margin","",l.spacing1),childChipLeftMargin:r.extend("--ft-page-header-child-chip-left-margin","",l.spacing4),childVerticalGap:r.extend("--ft-page-header-child-vertical-gap","",l.spacing2),childMinHeight:r.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:r.extend("--ft-page-header-child-buttons-group-horizontal-gap","",l.spacing4),childButtonsGroupVerticalGap:r.extend("--ft-page-header-child-buttons-group-vertical-gap","",l.spacing4),childChipsGroupHorizontalGap:r.extend("--ft-page-header-child-chips-group-horizontal-gap","",l.spacing2),childChipsGroupVerticalGap:r.extend("--ft-page-header-child-chips-group-vertical-gap","",l.spacing2),backgroundColor:r.extend("--ft-page-header-background-color","",l.colorWhite),bottomBorderColor:r.extend("--ft-page-header-bottom-border-color","",d.borderGlobalSubtle),bottomBorderWidth:r.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var ch={horizontalPadding:r.extend("--ft-page-footer-horizontal-padding","",l.spacing6),verticalPadding:r.extend("--ft-page-footer-vertical-padding","",l.spacing2),verticalGap:r.extend("--ft-page-footer-vertical-gap","",l.spacing2),minHeight:r.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:r.extend("--ft-page-footer-background-color","",l.colorWhite),topBorderColor:r.extend("--ft-page-footer-top-border-color","",d.borderGlobalSubtle),topBorderWidth:r.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:r.extend("--ft-page-footer-buttons-group-gap","",l.spacing4)};var fh={contentHorizontalPadding:r.extend("--ft-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:r.extend("--ft-page-layout-content-vertical-padding","",l.spacing6)};var bh={smallContainerTargetWidth:r.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:r.extend("--ft-modal-small-container-margin","",l.spacing6),mediumContainerTargetWidth:r.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:r.extend("--ft-modal-medium-container-margin","",l.spacing6),largeContainerTargetWidth:r.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:r.extend("--ft-modal-large-container-margin","",l.spacing6),overlayBackgroundColor:r.extend("--ft-modal-overlay-background-color","",l.colorGray700),overlayOpacity:r.extend("--ft-modal-overlay-opacity","",l.opacity40),shadow:r.extend("--ft-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:r.extend("--ft-modal-body-background-color","",l.colorWhite),bodyColor:r.extend("--ft-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:r.extend("--ft-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:r.extend("--ft-modal-body-vertical-gap","",l.spacing6),headerBackgroundColor:r.extend("--ft-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-modal-header-border-color","",d.borderGlobalSubtle),headerColor:r.extend("--ft-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:r.extend("--ft-modal-header-leading-icon-color","",d.contentGlobalPrimary),headerVerticalPadding:r.extend("--ft-modal-header-vertical-padding","",l.spacing1),headerRightPadding:r.extend("--ft-modal-header-right-padding","",l.spacing1),headerLeftPadding:r.extend("--ft-modal-header-left-padding","",l.spacing6),headerGap:r.extend("--ft-modal-header-gap","",l.spacing2),headerBorderBottomWidth:r.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:r.extend("--ft-modal-border-radius","",l.borderRadiusM)};var Oh={overlayOpacity:r.extend("--ft-drawer-overlay-opacity","",l.opacity40),shadow:r.extend("--ft-drawer-shadow","",l.shadowElevation03),bodyColor:r.extend("--ft-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:r.extend("--ft-drawer-body-vertical-padding","",l.spacing6),bodyGap:r.extend("--ft-drawer-body-gap","",l.spacing6),bodyBackgroundColor:r.extend("--ft-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:r.extend("--ft-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:r.extend("--ft-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:r.extend("--ft-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:r.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:r.extend("--ft-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:r.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:r.extend("--ft-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:r.extend("--ft-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:r.extend("--ft-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:r.extend("--ft-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:r.extend("--ft-drawer-buttons-bar-horizontal-padding","",l.spacing6),buttonsBarVerticalPadding:r.extend("--ft-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:r.extend("--ft-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:r.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:r.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:r.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:r.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:r.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:r.extend("--ft-drawer-overlay-background-color","",l.colorGray700)};var Th={offBorderBottomWidth:r.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:r.extend("--ft-tabs-off-hover-state-layer-opacity","",l.opacity8),offDefaultStateLayerOpacity:r.extend("--ft-tabs-off-default-state-layer-opacity","",l.opacity0),offFocusStateLayerOpacity:r.extend("--ft-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:r.extend("--ft-tabs-off-disabled-component-opacity","",l.opacity40),offColor:r.extend("--ft-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:r.extend("--ft-tabs-off-border-bottom-color","",d.borderGlobalSubtle),activeTabIndicatorHeight:r.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:r.extend("--ft-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:r.extend("--ft-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:r.extend("--ft-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:r.extend("--ft-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:r.extend("--ft-tabs-horizontal-gap","",l.spacing1),verticalGap:r.extend("--ft-tabs-vertical-gap","",l.spacing1),onHoverStateLayerOpacity:r.extend("--ft-tabs-on-hover-state-layer-opacity","",l.opacity16),onDefaultStateLayerOpacity:r.extend("--ft-tabs-on-default-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:r.extend("--ft-tabs-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:r.extend("--ft-tabs-on-active-state-layer-opacity","",l.opacity24),onColor:r.extend("--ft-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:r.extend("--ft-tabs-on-active-tab-indicator-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:r.extend("--ft-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:r.extend("--ft-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:r.extend("--ft-tabs-alert-top-padding","",l.spacing1),alertRightPadding:r.extend("--ft-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:r.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var kh={largeFieldHorizontalPadding:r.extend("--ft-text-input-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:r.extend("--ft-text-input-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:r.extend("--ft-text-input-large-field-vertical-gap","",l.spacing05),largeFieldHeight:r.create("--ft-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:r.extend("--ft-text-input-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:r.extend("--ft-text-input-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:r.extend("--ft-text-input-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:r.create("--ft-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:r.create("--ft-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:r.extend("--ft-text-input-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:r.extend("--ft-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-text-input-helper-horizontal-gap","",l.spacing1),helperIconSize:r.extend("--ft-text-input-helper-icon-size","",l.iconSize2),borderRadius:r.extend("--ft-text-input-border-radius","",l.borderRadiusS),backgroundColor:r.extend("--ft-text-input-background-color","",l.colorWhite),contentValueColor:r.extend("--ft-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:r.extend("--ft-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:r.extend("--ft-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderColor:r.extend("--ft-text-input-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-text-input-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-text-input-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:r.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:r.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-input-disabled-component-opacity","",l.opacity40)};var Mh={backgroundColor:r.extend("--ft-text-area-background-color","",l.colorWhite),contentValueColor:r.extend("--ft-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:r.extend("--ft-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:r.extend("--ft-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:r.extend("--ft-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:r.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:r.extend("--ft-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:r.extend("--ft-text-area-helper-icon-size","",l.iconSize2),borderRadius:r.extend("--ft-text-area-border-radius","",l.borderRadiusS)};var Wh={height:r.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:r.extend("--ft-floating-menu-horizontal-padding","",l.spacing4),offIconColor:r.extend("--ft-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:r.extend("--ft-floating-menu-off-color","",d.contentGlobalPrimary),onColor:r.extend("--ft-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:r.extend("--ft-floating-menu-gap","",l.spacing3),focusFocusRingColor:r.extend("--ft-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:r.extend("--ft-floating-menu-focus-state-layer-opacity","",l.opacity8),hoverStateLayerOpacity:r.extend("--ft-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:r.extend("--ft-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:r.extend("--ft-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:r.extend("--ft-floating-menu-icon-size","",l.iconSize3),backgroundColor:r.extend("--ft-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:r.extend("--ft-floating-menu-shadow","",l.shadowElevation02)};var Zh={largeFieldHorizontalPadding:r.extend("--ft-combobox-single-select-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:r.extend("--ft-combobox-single-select-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:r.extend("--ft-combobox-single-select-large-field-vertical-gap","",l.spacing05),largeFieldHeight:r.create("--ft-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:r.extend("--ft-combobox-single-select-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:r.extend("--ft-combobox-single-select-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:r.extend("--ft-combobox-single-select-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:r.create("--ft-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:r.create("--ft-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:r.extend("--ft-combobox-single-select-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:r.extend("--ft-combobox-single-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-combobox-single-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:r.extend("--ft-combobox-single-select-helper-vertical-gap","",l.spacing1),helperIconSize:r.extend("--ft-combobox-single-select-helper-icon-size","",l.iconSize2),menuVerticalGap:r.extend("--ft-combobox-single-select-menu-vertical-gap","",l.spacing2),borderRadius:r.extend("--ft-combobox-single-select-border-radius","",l.borderRadiusS),backgroundColor:r.extend("--ft-combobox-single-select-background-color","",l.colorWhite),labelColor:r.extend("--ft-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:r.extend("--ft-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:r.extend("--ft-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:r.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:r.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-single-select-disabled-component-opacity","",l.opacity40)};var Jh={backgroundColor:r.extend("--ft-combobox-multi-select-background-color","",l.colorWhite),labelColor:r.extend("--ft-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:r.extend("--ft-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:r.extend("--ft-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:r.extend("--ft-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:r.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:r.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-multi-select-disabled-component-opacity","",l.opacity40),helperHorizontalPadding:r.extend("--ft-combobox-multi-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-combobox-multi-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:r.extend("--ft-combobox-multi-select-helper-vertical-gap","",l.spacing1),helperIconSize:r.extend("--ft-combobox-multi-select-helper-icon-size","",l.iconSize2),fieldHorizontalPadding:r.extend("--ft-combobox-multi-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-combobox-multi-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-combobox-multi-select-field-vertical-gap","",l.spacing05),fieldIconSize:r.extend("--ft-combobox-multi-select-field-icon-size","",l.iconSize3),fieldMaxHeight:r.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:r.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",l.spacing1),contentValuesVerticalGap:r.extend("--ft-combobox-multi-select-content-values-vertical-gap","",l.spacing1),borderRadius:r.extend("--ft-combobox-multi-select-border-radius","",l.borderRadiusS)};var ig={backgroundColor:r.extend("--ft-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:r.extend("--ft-popover-horizontal-padding","",l.spacing6),verticalPadding:r.extend("--ft-popover-vertical-padding","",l.spacing6),titleColor:r.extend("--ft-popover-title-color","",d.contentGlobalPrimary),bodyColor:r.extend("--ft-popover-body-color","",d.contentGlobalSecondary),gap:r.extend("--ft-popover-gap","",l.spacing2),borderRadius:r.extend("--ft-popover-border-radius","",l.borderRadiusM),shadow:r.extend("--ft-popover-shadow","",l.shadowElevation02),maxWidth:r.create("--ft-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:r.extend("--ft-popover-content-section-vertical-gap","",l.spacing2),multiSectionVerticalGap:r.extend("--ft-popover-multi-section-vertical-gap","",l.spacing6)};var cg={hoverStateLayerOpacity:r.extend("--ft-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:r.extend("--ft-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:r.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:r.extend("--ft-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:r.extend("--ft-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:r.extend("--ft-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:r.extend("--ft-collapsible-horizontal-padding","",l.spacing4),verticalPadding:r.extend("--ft-collapsible-vertical-padding","",l.spacing3),color:r.extend("--ft-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:r.extend("--ft-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:r.extend("--ft-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:r.extend("--ft-collapsible-border-color","",d.borderGlobalSubtle),iconSize:r.extend("--ft-collapsible-icon-size","",l.iconSize3)};var hg={groupHorizontalPadding:r.extend("--ft-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:r.extend("--ft-switch-group-vertical-padding","",l.spacing1),groupGap:r.extend("--ft-switch-group-gap","",l.spacing1),groupBackgroundColor:r.extend("--ft-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:r.extend("--ft-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:r.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:r.extend("--ft-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:r.extend("--ft-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:r.extend("--ft-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:r.extend("--ft-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:r.extend("--ft-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:r.extend("--ft-switch-off-disabled-component-opacity","",l.opacity40),offColor:r.extend("--ft-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:r.extend("--ft-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:r.extend("--ft-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:r.extend("--ft-switch-on-disabled-component-opacity","",l.opacity40),onColor:r.extend("--ft-switch-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:r.extend("--ft-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:r.extend("--ft-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:r.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:r.extend("--ft-switch-option-border-radius","",l.borderRadiusS)};var bg={color1Light:r.extend("--ft-chart-1-light","for area color charts",l.colorBrand40),color1Base:r.extend("--ft-chart-1-base","for line charts",l.colorBrand0),color2Light:r.extend("--ft-chart-2-light","for area color charts",l.colorYellow60),color2Base:r.extend("--ft-chart-2-base","for line charts",l.colorYellow100),color3Light:r.extend("--ft-chart-3-light","",l.colorUltramarine40),color3Base:r.extend("--ft-chart-3-base","",l.colorUltramarine70),color4Light:r.extend("--ft-chart-4-light","",l.colorCyan50),color4Base:r.extend("--ft-chart-4-base","",l.colorCyan100),color5Light:r.extend("--ft-chart-5-light","",l.colorRed40),color5Base:r.extend("--ft-chart-5-base","",l.colorRed60),color6Light:r.extend("--ft-chart-6-light","",l.colorGreen40),color6Base:r.extend("--ft-chart-6-base","",l.colorGreen70),color7Light:r.extend("--ft-chart-7-light","",l.colorOrange70),color7Base:r.extend("--ft-chart-7-base","",l.colorOrange100),color8Light:r.extend("--ft-chart-8-light","",l.colorAvocado70),color8Base:r.extend("--ft-chart-8-base","",l.colorAvocado200),color9Light:r.extend("--ft-chart-9-light","",l.colorBrown50),color9Base:r.extend("--ft-chart-9-base","",l.colorBrown200),color10Light:r.extend("--ft-chart-10-light","",l.colorGray50),color10Base:r.extend("--ft-chart-10-base","",l.colorGray80),monochrome10:r.extend("--ft-chart-monochrome-10","",l.colorBrand10),monochrome20:r.extend("--ft-chart-monochrome-20","",l.colorBrand20),monochrome30:r.extend("--ft-chart-monochrome-30","",l.colorBrand40),monochrome40:r.extend("--ft-chart-monochrome-40","",l.colorBrand60),monochrome50:r.extend("--ft-chart-monochrome-50","",l.colorBrand0),monochrome60:r.extend("--ft-chart-monochrome-60","",l.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",l.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",l.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",l.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",l.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",l.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:r.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",l.opacity48),scatterplotDatapointInitialHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",l.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",l.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",l.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",l.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:r.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",l.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",l.colorGray70),scatterplotDatapointHoverHoverRingColor:r.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",l.colorCyan200)};var Cg={color1IconColor:r.extend("--ft-page-designer-1-icon-color","for area color charts",l.colorCyan0),color1ToolbarColor:r.extend("--ft-page-designer-1-toolbar-color","for area color charts",l.colorCyan0),color2IconColor:r.extend("--ft-page-designer-2-icon-color","for area color charts",l.colorBrand0),color2ToolbarColor:r.extend("--ft-page-designer-2-toolbar-color","for area color charts",l.colorBrand0),color3IconColor:r.extend("--ft-page-designer-3-icon-color","for area color charts",l.colorYellow200),color3ToolbarColor:r.extend("--ft-page-designer-3-toolbar-color","for area color charts",l.colorYellow200),color4IconColor:r.extend("--ft-page-designer-4-icon-color","for area color charts",l.colorUltramarine50),color4ToolbarColor:r.extend("--ft-page-designer-4-toolbar-color","for area color charts",l.colorUltramarine50),color5IconColor:r.extend("--ft-page-designer-5-icon-color","for area color charts",l.colorGreen0),color5ToolbarColor:r.extend("--ft-page-designer-5-toolbar-color","for area color charts",l.colorGreen0),color6IconColor:r.extend("--ft-page-designer-6-icon-color","for area color charts",l.colorOrange0),color6ToolbarColor:r.extend("--ft-page-designer-6-toolbar-color","for area color charts",l.colorOrange0),color7IconColor:r.extend("--ft-page-designer-7-icon-color","for area color charts",l.colorAvocado200),color7ToolbarColor:r.extend("--ft-page-designer-7-toolbar-color","for area color charts",l.colorAvocado200),color8IconColor:r.extend("--ft-page-designer-8-icon-color","for area color charts",l.colorBrown0),color8ToolbarColor:r.extend("--ft-page-designer-8-toolbar-color","for area color charts",l.colorBrown0)};var Rg={borderWidth:r.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:r.extend("--ft-notice-horizontal-padding","",l.spacing3),verticalPadding:r.extend("--ft-notice-vertical-padding","",l.spacing2),borderRadius:r.extend("--ft-notice-border-radius","",l.borderRadiusS),gap:r.extend("--ft-notice-gap","",l.spacing2),iconSize:r.extend("--ft-notice-icon-size","",l.iconSize3),infoBackgroundColor:r.extend("--ft-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:r.extend("--ft-notice-info-border-color","",d.borderInfoSubtle),infoColor:r.extend("--ft-notice-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:r.extend("--ft-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:r.extend("--ft-notice-warning-border-color","",d.borderWarningSubtle),warningColor:r.extend("--ft-notice-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:r.extend("--ft-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:r.extend("--ft-notice-error-border-color","",d.borderErrorSubtle),errorColor:r.extend("--ft-notice-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:r.extend("--ft-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:r.extend("--ft-notice-success-border-color","",d.borderSuccessSubtle),successColor:r.extend("--ft-notice-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-notice-success-icon-color","",d.contentSuccessIconOnly),denseHorizontalPadding:r.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:r.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:r.extend("--ft-notice-dense-gap","",l.spacing1),denseIconSize:r.extend("--ft-notice-dense-icon-size","",l.iconSize2),denseBorderWidth:r.create("--ft-notice-dense-border-width","","SIZE","0")};var Lg={offHoverStateLayerOpacity:r.extend("--ft-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:r.extend("--ft-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:r.extend("--ft-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:r.extend("--ft-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:r.extend("--ft-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:r.extend("--ft-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:r.extend("--ft-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:r.extend("--ft-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:r.extend("--ft-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:r.extend("--ft-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:r.extend("--ft-toggle-on-icon-color","",d.contentActionPrimary),color:r.extend("--ft-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:r.extend("--ft-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:r.extend("--ft-toggle-gap","",l.spacing3)};var Bg={color:r.extend("--ft-radio-color","",d.contentGlobalPrimary),selectedRadioColor:r.extend("--ft-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:r.extend("--ft-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:r.extend("--ft-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:r.extend("--ft-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:r.extend("--ft-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:r.extend("--ft-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:r.extend("--ft-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:r.extend("--ft-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:r.extend("--ft-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:r.extend("--ft-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:r.extend("--ft-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:r.extend("--ft-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:r.extend("--ft-radio-gap","",l.spacing3)};var Hg={iconSize:r.extend("--ft-notification-icon-size","",l.iconSize4),leftPadding:r.extend("--ft-notification-left-padding","",l.spacing5),rightPadding:r.extend("--ft-notification-right-padding","",l.spacing4),verticalPadding:r.extend("--ft-notification-vertical-padding","",l.spacing3),infoBackgroundColor:r.extend("--ft-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-notification-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:r.extend("--ft-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:r.extend("--ft-notification-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:r.extend("--ft-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:r.extend("--ft-notification-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:r.extend("--ft-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:r.extend("--ft-notification-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:r.extend("--ft-notification-error-border-color","",d.borderErrorSubtle),borderRadius:r.extend("--ft-notification-border-radius","",l.borderRadiusPill),borderWidth:r.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:r.extend("--ft-notification-leading-gap","",l.spacing2),trailingGap:r.extend("--ft-notification-trailing-gap","",l.spacing8)};var Kg={horizontalPadding:r.extend("--ft-tooltip-horizontal-padding","",l.spacing2),verticalPadding:r.extend("--ft-tooltip-vertical-padding","",l.spacing2),borderRadius:r.extend("--ft-tooltip-border-radius","",l.borderRadiusS),color:r.extend("--ft-tooltip-color","",d.contentGlobalOnColor),backgroundColor:r.extend("--ft-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:r.extend("--ft-tooltip-background-opacity","",l.opacity80),shadow:r.extend("--ft-tooltip-shadow","",l.shadowElevation02),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","256px"),gap:r.extend("--ft-tooltip-gap","",l.spacing05)};var Qg={verticalPadding:r.extend("--ft-reorderable-list-vertical-padding","",l.spacing4),gap:r.extend("--ft-reorderable-list-gap","",l.spacing1),borderRadius:r.extend("--ft-reorderable-list-border-radius","",l.borderRadiusM),reorderableItemTitleMarginRight:r.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",l.spacing6),reorderableItemTitleColor:r.extend("--ft-reorderable-list-reorderable-item-title-color","",d.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:r.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",l.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:r.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",l.spacing2),reorderableItemRightButtonsGroupHorizontalGap:r.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",l.spacing2),reorderableItemUsersCountColor:r.extend("--ft-reorderable-list-reorderable-item-users-count-color","",d.contentGlobalPrimary),reorderableItemUsersCountMarginRight:r.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",l.spacing6),reorderableItemBackgroundColor:r.extend("--ft-reorderable-list-reorderable-item-background-color","",d.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:r.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",l.spacing1),reorderableItemWarningMessageColor:r.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:r.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:r.extend("--ft-reorderable-list-reorderable-item-grip-color","",d.contentGlobalSecondary),reorderableItemGripOpacity:r.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",l.opacity48),boxShadow:r.extend("--ft-reorderable-list-box-shadow","",l.shadowElevation01),borderWidth:r.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:r.extend("--ft-reorderable-list-reorderable-items-gap","",l.spacing2),leftPadding:r.extend("--ft-reorderable-list-left-padding","",l.spacing2),rightPadding:r.extend("--ft-reorderable-list-right-padding","",l.spacing6),borderColor:r.extend("--ft-reorderable-list-border-color","",d.borderGlobalPrimary),backgroundColor:r.extend("--ft-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)};var oy={nodeHeight:r.create("--ft-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:r.extend("--ft-tree-list-node-parent-label-margin-left","",l.spacing2),nodeParentLabelMarginRight:r.extend("--ft-tree-list-node-parent-label-margin-right","",l.spacing2),nodeRootPaddingLeft:r.extend("--ft-tree-list-node-root-padding-left","",l.spacing3),nodeChildPaddingLeft:r.extend("--ft-tree-list-node-child-padding-left","",l.spacing5),nodeLeafPaddingLeft:r.extend("--ft-tree-list-node-leaf-padding-left","",l.spacing6),nodeUnselectedDefaultBorderColor:r.extend("--ft-tree-list-node-unselected-default-border-color","",d.borderGlobalSubtle),nodeUnselectedIconColor:r.extend("--ft-tree-list-node-unselected-icon-color","",d.contentGlobalSecondary),nodeUnselectedLabelColor:r.extend("--ft-tree-list-node-unselected-label-color","",d.contentGlobalSecondary),nodeUnselectedCounterColor:r.extend("--ft-tree-list-node-unselected-counter-color","",d.contentGlobalSecondary),nodeHoverBorderColor:r.extend("--ft-tree-list-node-hover-border-color","",d.borderActionPrimary),nodeFocusFocusRingColor:r.extend("--ft-tree-list-node-focus-focus-ring-color","",d.borderActionFocusRing),nodeFocusOutlineWidth:r.create("--ft-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:r.extend("--ft-tree-list-node-selected-default-border-color","",d.borderGlobalPrimary),nodeSelectedIconColor:r.extend("--ft-tree-list-node-selected-icon-color","",d.contentGlobalSecondary),nodeSelectedLabelColor:r.extend("--ft-tree-list-node-selected-label-color","",d.contentGlobalPrimary),nodeSelectedCounterColor:r.extend("--ft-tree-list-node-selected-counter-color","",d.contentGlobalSecondary),nodeSelectedBackgroundColor:r.create("--ft-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:r.extend("--ft-tree-list-node-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:r.extend("--ft-tree-list-node-descendant-of-selected-icon-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:r.extend("--ft-tree-list-node-descendant-of-selected-label-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:r.extend("--ft-tree-list-node-descendant-of-selected-counter-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:r.create("--ft-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:r.create("--ft-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:r.extend("--ft-tree-list-header-section-padding-left","",l.spacing3),headerSectionPaddingRight:r.extend("--ft-tree-list-header-section-padding-right","",l.spacing3),headerSectionHorizontalGap:r.extend("--ft-tree-list-header-section-horizontal-gap","",l.spacing2),headerSectionMarginBottom:r.extend("--ft-tree-list-header-section-margin-bottom","",l.spacing2),headerSectionColor:r.extend("--ft-tree-list-header-section-color","",d.contentGlobalPrimary),headerSectionCounterColor:r.extend("--ft-tree-list-header-section-counter-color","",d.contentGlobalSecondary),listContainerBorderWidth:r.create("--ft-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:r.extend("--ft-tree-list-list-container-background-color","",d.backgroundGlobalSurface),listContainerBorderColor:r.extend("--ft-tree-list-list-container-border-color","",d.borderGlobalSubtle),loadMorePaddingLeft:r.extend("--ft-tree-list-load-more-padding-left","",l.spacing6),loadMoreUnselectedDefaultBorderColor:r.extend("--ft-tree-list-load-more-unselected-default-border-color","",d.borderGlobalSubtle),loadMoreIconColor:r.extend("--ft-tree-list-load-more-icon-color","",d.contentActionPrimary),loadMoreLabelColor:r.extend("--ft-tree-list-load-more-label-color","",d.contentActionPrimary),loadMoreHoverBorderColor:r.extend("--ft-tree-list-load-more-hover-border-color","",l.colorBrand20),loadMoreHoverBackgroundColor:r.create("--ft-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:r.extend("--ft-tree-list-load-more-active-border-color","",l.colorBrand20),loadMoreActiveBackgroundColor:r.create("--ft-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:r.create("--ft-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:r.create("--ft-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:r.extend("--ft-tree-list-load-more-descendant-of-selected-default-border-color","",d.borderGlobalPrimary)};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 Dr;(function(t){t.large="large",t.medium="medium",t.small="small"})(Dr||(Dr={}));var Ho=m(B());function ms(t){let e=Uo[t];return Ho.css`
116
- .ft-typography--${(0,Ho.unsafeCSS)(t)} {
117
- font-family: ${e.fontFamily};
118
- font-size: ${e.fontSize};
119
- font-weight: ${e.fontWeight};
120
- letter-spacing: ${e.letterSpacing};
121
- line-height: ${e.lineHeight};
122
- text-transform: ${e.textCase};
123
- }
124
- `}var bs=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.titleFont),Pt=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.contentFont),L={fontFamily:Pt,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")},Yt={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-font-family","",bs),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")},Xt={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",bs),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")},$r={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Pt),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")},Br={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Pt),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")},st={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Pt),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")},Mr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Pt),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")},Fe={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Pt),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")},Fr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Pt),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")},Ur={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Pt),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")},je={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Pt),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")},xs=lt.css`
114
+ `;var lt=m(B()),R=m(T());var kt=m(B(),1),qt=t=>typeof t=="string"?(0,kt.unsafeCSS)(t):t,r=class{static create(e,o,i,n){let a=c=>qt(c??n),s=kt.css`var(${qt(e)}, ${a(n)})`;return s.name=e,s.description=o,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>Za(s,c??a(n)),s.get=c=>kt.css`var(${qt(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,o,i,n){let a=c=>i.get(c??n),s=kt.css`var(${qt(e)}, ${a(n)})`;return s.name=e,s.description=o,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>Za(s,c??a(n)),s.get=c=>kt.css`var(${qt(e)}, ${a(c)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,o){let i=a=>e.defaultCssValue(a),n=kt.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=o,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>kt.css`var(${qt(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function Za(t,e){return qt(`${t.name}: ${e}`)}var l={colorWhite:r.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:r.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:r.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:r.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:r.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:r.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:r.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:r.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:r.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:r.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:r.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:r.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:r.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:r.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:r.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:r.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:r.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:r.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:r.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:r.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:r.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:r.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:r.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:r.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:r.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:r.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:r.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:r.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:r.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:r.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:r.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:r.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:r.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:r.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:r.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:r.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:r.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:r.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:r.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:r.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:r.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:r.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:r.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:r.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:r.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:r.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:r.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:r.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:r.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:r.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:r.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:r.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:r.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:r.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:r.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:r.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:r.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:r.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:r.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:r.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:r.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:r.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:r.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:r.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:r.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:r.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:r.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:r.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:r.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:r.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:r.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:r.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:r.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:r.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:r.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:r.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:r.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:r.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:r.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:r.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:r.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:r.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:r.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:r.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:r.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:r.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:r.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:r.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:r.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:r.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:r.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:r.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:r.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:r.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:r.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:r.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:r.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:r.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:r.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:r.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:r.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:r.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:r.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:r.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:r.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:r.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:r.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:r.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:r.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:r.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:r.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:r.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:r.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:r.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:r.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:r.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:r.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:r.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:r.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:r.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:r.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:r.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:r.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:r.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:r.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:r.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:r.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:r.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:r.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:r.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:r.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:r.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:r.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:r.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:r.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:r.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:r.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:r.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:r.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:r.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:r.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:r.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:r.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:r.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:r.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:r.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:r.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:r.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:r.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:r.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:r.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:r.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:r.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:r.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:r.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:r.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:r.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:r.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:r.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:r.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:r.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:r.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:r.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:r.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:r.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:r.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:r.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:r.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:r.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:r.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:r.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:r.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:r.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:r.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:r.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:r.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:r.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:r.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:r.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:r.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:r.create("--ft-opacity-0","","NUMBER","0"),opacity8:r.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:r.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:r.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:r.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:r.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:r.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:r.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:r.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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)")},qa={fontFamily:r.create("--ft-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-display-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-display-line-height","","SIZE","1.2"),fontSize:r.create("--ft-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:r.create("--ft-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-display-text-decoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-display-text-case","","UNKNOWN","none")},Ya={fontFamily:r.create("--ft-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-title-1-line-height","","SIZE","1.2"),fontSize:r.create("--ft-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:r.create("--ft-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-1-text-case","","UNKNOWN","none")},Xa={fontFamily:r.create("--ft-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-2-line-height","","SIZE","1.2"),fontSize:r.create("--ft-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:r.create("--ft-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-2-text-case","","UNKNOWN","none")},Qa={fontFamily:r.create("--ft-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-3-line-height","","SIZE","1.2"),fontSize:r.create("--ft-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:r.create("--ft-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:r.create("--ft-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-3-text-case","","UNKNOWN","none")},Ja={fontFamily:r.create("--ft-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-regular-text-case","","UNKNOWN","none")},es={fontFamily:r.create("--ft-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-medium-text-case","","UNKNOWN","none")},ts={fontFamily:r.create("--ft-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-semibold-text-case","","UNKNOWN","none")},rs={fontFamily:r.create("--ft-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-regular-text-case","","UNKNOWN","none")},Dr={fontFamily:r.create("--ft-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-medium-text-case","","UNKNOWN","none")},Eu={fontFamily:r.create("--ft-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:r.create("--ft-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:r.create("--ft-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},os={fontFamily:r.create("--ft-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-semibold-text-case","","UNKNOWN","none")},is={fontFamily:r.create("--ft-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-medium-text-decoration","","UNKNOWN","none")},ns={fontFamily:r.create("--ft-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},as={fontFamily:r.create("--ft-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-bold-text-decoration","","UNKNOWN","none")},ss={fontFamily:r.create("--ft-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-medium-text-decoration","","UNKNOWN","none")},ls={fontFamily:r.create("--ft-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},cs={fontFamily:r.create("--ft-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-bold-text-decoration","","UNKNOWN","none")},ds={fontFamily:r.create("--ft-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},us={fontFamily:r.create("--ft-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},ps={fontFamily:r.create("--ft-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},xr={fontFamily:r.create("--ft-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},fs={fontFamily:r.create("--ft-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},hs={fontFamily:r.create("--ft-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},gs={fontFamily:r.create("--ft-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},ys={fontFamily:r.create("--ft-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},ms={fontFamily:r.create("--ft-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},Ho={display:qa,"title-1":Ya,"title-2":Xa,"title-3":Qa,"body-1-regular":Ja,"body-1-medium":es,"body-1-semibold":ts,"body-2-regular":rs,"body-2-medium":Dr,"body-2-medium-underline":Eu,"body-2-semibold":os,"label-1-medium":is,"label-1-semibold":ns,"label-1-bold":as,"label-2-medium":ss,"label-2-semibold":ls,"label-2-bold":cs,"caption-1-medium":ds,"caption-1-semibold":us,"caption-1-bold":ps,"caption-2-medium":xr,"caption-2-semibold":fs,"caption-2-bold":hs,"caption-3-medium":gs,"caption-3-semibold":ys,"caption-3-bold":ms};var d={backgroundActionPrimary:r.extend("--ft-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:r.extend("--ft-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:r.extend("--ft-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:r.extend("--ft-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:r.extend("--ft-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:r.extend("--ft-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:r.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:r.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:r.extend("--ft-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:r.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:r.extend("--ft-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:r.extend("--ft-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:r.extend("--ft-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:r.extend("--ft-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:r.extend("--ft-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:r.extend("--ft-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:r.extend("--ft-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:r.extend("--ft-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:r.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
115
+ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:r.extend("--ft-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:r.extend("--ft-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:r.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:r.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:r.extend("--ft-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:r.extend("--ft-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:r.extend("--ft-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:r.extend("--ft-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:r.extend("--ft-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:r.extend("--ft-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:r.extend("--ft-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:r.extend("--ft-border-global-primary","Used as border for element like input.",l.colorGray50),borderGlobalSubtle:r.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",l.colorGray30),borderInputPrimary:r.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80),borderNeutralPrimary:r.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",l.colorGray200)};var f={largeHeight:r.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:r.extend("--ft-button-large-horizontal-padding","",l.spacing4),largeGap:r.extend("--ft-button-large-gap","",l.spacing2),largeBorderRadius:r.extend("--ft-button-large-border-radius","",l.borderRadiusS),largeIconSize:r.extend("--ft-button-large-icon-size","",l.iconSize3),largeBorderWidth:r.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:r.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:r.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:r.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:r.extend("--ft-button-medium-horizontal-padding","",l.spacing3),mediumGap:r.extend("--ft-button-medium-gap","",l.spacing2),mediumBorderRadius:r.extend("--ft-button-medium-border-radius","",l.borderRadiusS),mediumIconSize:r.extend("--ft-button-medium-icon-size","",l.iconSize2),mediumBorderWidth:r.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:r.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:r.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:r.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-button-small-horizontal-padding","",l.spacing2),smallGap:r.extend("--ft-button-small-gap","",l.spacing1),smallBorderRadius:r.extend("--ft-button-small-border-radius","",l.borderRadiusS),smallIconSize:r.extend("--ft-button-small-icon-size","",l.iconSize1),smallBorderWidth:r.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:r.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:r.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:r.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:r.extend("--ft-button-x-small-icon-size","",l.iconSize1),xSmallFocusOutlineOffset:r.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:r.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:r.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:r.extend("--ft-button-round-border-radius","",l.borderRadiusPill),primaryBrandBackgroundColor:r.extend("--ft-button-primary-brand-background-color","",d.backgroundActionPrimary),primaryBrandColor:r.extend("--ft-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:r.extend("--ft-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:r.extend("--ft-button-primary-brand-state-layer-color","",d.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:r.extend("--ft-button-primary-brand-hover-state-layer-opacity","",l.opacity16),primaryBrandFocusStateLayerOpacity:r.extend("--ft-button-primary-brand-focus-state-layer-opacity","",l.opacity16),primaryBrandActiveStateLayerOpacity:r.extend("--ft-button-primary-brand-active-state-layer-opacity","",l.opacity24),primaryBrandDisabledComponentOpacity:r.extend("--ft-button-primary-brand-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:r.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:r.extend("--ft-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:r.extend("--ft-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:r.extend("--ft-button-tertiary-brand-state-layer-color","",d.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:r.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",l.opacity8),tertiaryBrandFocusStateLayerOpacity:r.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",l.opacity8),tertiaryBrandActiveStateLayerOpacity:r.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",l.opacity16),tertiaryBrandDisabledComponentOpacity:r.extend("--ft-button-tertiary-brand-disabled-component-opacity","",l.opacity40),tertiaryInfoBackgroundColor:r.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:r.extend("--ft-button-tertiary-info-color","",d.contentInfoPrimary),tertiaryInfoIconColor:r.extend("--ft-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:r.extend("--ft-button-tertiary-info-state-layer-color","",d.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:r.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",l.opacity8),tertiaryInfoHoverStateLayerOpacity:r.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",l.opacity8),tertiaryInfoActiveStateLayerOpacity:r.extend("--ft-button-tertiary-info-active-state-layer-opacity","",l.opacity16),tertiaryInfoDisabledComponentOpacity:r.extend("--ft-button-tertiary-info-disabled-component-opacity","",l.opacity40),tertiarySuccessBackgroundColor:r.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:r.extend("--ft-button-tertiary-success-color","",d.contentSuccessPrimary),tertiarySuccessIconColor:r.extend("--ft-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:r.extend("--ft-button-tertiary-success-state-layer-color","",d.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:r.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",l.opacity8),tertiarySuccessFocusStateLayerOpacity:r.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",l.opacity8),tertiarySuccessActiveStateLayerOpacity:r.extend("--ft-button-tertiary-success-active-state-layer-opacity","",l.opacity16),tertiarySuccessDisabledComponentOpacity:r.extend("--ft-button-tertiary-success-disabled-component-opacity","",l.opacity40),tertiaryWarningBackgroundColor:r.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:r.extend("--ft-button-tertiary-warning-color","",d.contentWarningPrimary),tertiaryWarningIconColor:r.extend("--ft-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:r.extend("--ft-button-tertiary-warning-state-layer-color","",d.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:r.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",l.opacity8),tertiaryWarningFocusStateLayerOpacity:r.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",l.opacity8),tertiaryWarningActiveStateLayerOpacity:r.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",l.opacity16),tertiaryWarningDisabledComponentOpacity:r.extend("--ft-button-tertiary-warning-disabled-component-opacity","",l.opacity40),tertiaryErrorBackgroundColor:r.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:r.extend("--ft-button-tertiary-error-color","",d.contentErrorPrimary),tertiaryErrorIconColor:r.extend("--ft-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:r.extend("--ft-button-tertiary-error-state-layer-color","",d.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:r.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",l.opacity8),tertiaryErrorFocusStateLayerOpacity:r.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",l.opacity8),tertiaryErrorActiveStateLayerOpacity:r.extend("--ft-button-tertiary-error-active-state-layer-opacity","",l.opacity16),tertiaryErrorDisabledComponentOpacity:r.extend("--ft-button-tertiary-error-disabled-component-opacity","",l.opacity40),tertiaryNeutralBackgroundColor:r.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:r.extend("--ft-button-tertiary-neutral-icon-color","",d.contentGlobalSecondary),tertiaryNeutralColor:r.extend("--ft-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:r.extend("--ft-button-tertiary-neutral-state-layer-color","",d.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",l.opacity8),tertiaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",l.opacity8),tertiaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",l.opacity16),tertiaryNeutralDisabledComponentOpacity:r.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",l.opacity40),secondaryBrandBackgroundColor:r.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:r.extend("--ft-button-secondary-brand-color","",d.contentActionPrimary),secondaryBrandIconColor:r.extend("--ft-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:r.extend("--ft-button-secondary-brand-state-layer-color","",d.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:r.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",l.opacity8),secondaryBrandFocusStateLayerOpacity:r.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",l.opacity8),secondaryBrandActiveStateLayerOpacity:r.extend("--ft-button-secondary-brand-active-state-layer-opacity","",l.opacity16),secondaryBrandDisabledComponentOpacity:r.extend("--ft-button-secondary-brand-disabled-component-opacity","",l.opacity40),secondaryBrandBorderColor:r.extend("--ft-button-secondary-brand-border-color","",d.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:r.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",l.opacity8),secondaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",l.opacity8),secondaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",l.opacity16),secondaryNeutralDisabledComponentOpacity:r.extend("--ft-button-secondary-neutral-disabled-component-opacity","",l.opacity40),secondaryNeutralBackgroundColor:r.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:r.extend("--ft-button-secondary-neutral-color","",d.contentGlobalSecondary),secondaryNeutralIconColor:r.extend("--ft-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:r.extend("--ft-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:r.extend("--ft-button-secondary-neutral-border-color","",d.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:r.extend("--ft-button-secondary-info-hover-state-layer-opacity","",l.opacity8),secondaryInfoFocusStateLayerOpacity:r.extend("--ft-button-secondary-info-focus-state-layer-opacity","",l.opacity8),secondaryInfoActiveStateLayerOpacity:r.extend("--ft-button-secondary-info-active-state-layer-opacity","",l.opacity16),secondaryInfoDisabledComponentOpacity:r.extend("--ft-button-secondary-info-disabled-component-opacity","",l.opacity40),secondaryInfoBackgroundColor:r.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:r.extend("--ft-button-secondary-info-border-color","",d.borderInfoPrimary),secondaryInfoColor:r.extend("--ft-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:r.extend("--ft-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:r.extend("--ft-button-secondary-info-state-layer-color","",d.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:r.extend("--ft-button-secondary-success-hover-state-layer-opacity","",l.opacity8),secondarySuccessFocusStateLayerOpacity:r.extend("--ft-button-secondary-success-focus-state-layer-opacity","",l.opacity8),secondarySuccessActiveStateLayerOpacity:r.extend("--ft-button-secondary-success-active-state-layer-opacity","",l.opacity16),secondarySuccessDisabledComponentOpacity:r.extend("--ft-button-secondary-success-disabled-component-opacity","",l.opacity40),secondarySuccessBackgroundColor:r.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:r.extend("--ft-button-secondary-success-border-color","",d.borderSuccessPrimary),secondarySuccessColor:r.extend("--ft-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:r.extend("--ft-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:r.extend("--ft-button-secondary-success-state-layer-color","",d.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:r.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",l.opacity8),secondaryWarningFocusStateLayerOpacity:r.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",l.opacity8),secondaryWarningActiveStateLayerOpacity:r.extend("--ft-button-secondary-warning-active-state-layer-opacity","",l.opacity16),secondaryWarningDisabledComponentOpacity:r.extend("--ft-button-secondary-warning-disabled-component-opacity","",l.opacity40),secondaryWarningBackgroundColor:r.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:r.extend("--ft-button-secondary-warning-border-color","",d.borderWarningPrimary),secondaryWarningColor:r.extend("--ft-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:r.extend("--ft-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:r.extend("--ft-button-secondary-warning-state-layer-color","",d.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:r.extend("--ft-button-secondary-error-hover-state-layer-opacity","",l.opacity8),secondaryErrorFocusStateLayerOpacity:r.extend("--ft-button-secondary-error-focus-state-layer-opacity","",l.opacity8),secondaryErrorActiveStateLayerOpacity:r.extend("--ft-button-secondary-error-active-state-layer-opacity","",l.opacity16),secondaryErrorDisabledComponentOpacity:r.extend("--ft-button-secondary-error-disabled-component-opacity","",l.opacity40),secondaryErrorBackgroundColor:r.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:r.extend("--ft-button-secondary-error-border-color","",d.contentErrorPrimary),secondaryErrorColor:r.extend("--ft-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:r.extend("--ft-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:r.extend("--ft-button-secondary-error-state-layer-color","",d.contentErrorPrimary)};var vf={iconSize:r.extend("--ft-checkbox-icon-size","",l.iconSize2),boxSize:r.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:r.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:r.create("--ft-checkbox-border-radius","","SIZE","1px"),color:r.extend("--ft-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:r.extend("--ft-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:r.extend("--ft-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:r.extend("--ft-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:r.extend("--ft-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:r.extend("--ft-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:r.extend("--ft-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:r.extend("--ft-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:r.extend("--ft-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:r.extend("--ft-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:r.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:r.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:r.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:r.extend("--ft-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:r.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:r.extend("--ft-checkbox-horizontal-gap","",l.spacing3),leftPadding:r.extend("--ft-checkbox-left-padding","",l.spacing2)};var Ef={circleSize:r.create("--ft-radio-circle-size","","SIZE","18px"),borderWidth:r.create("--ft-radio-border-width","","SIZE","2px"),color:r.extend("--ft-radio-color","",d.contentGlobalPrimary),selectedRadioColor:r.extend("--ft-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:r.extend("--ft-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:r.extend("--ft-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:r.extend("--ft-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:r.extend("--ft-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:r.extend("--ft-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:r.extend("--ft-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:r.extend("--ft-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:r.extend("--ft-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:r.extend("--ft-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:r.extend("--ft-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:r.extend("--ft-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-radio-focus-outline-width","","SIZE","2px"),verticalGap:r.extend("--ft-radio-vertical-gap","",l.spacing3),horizontalGap:r.extend("--ft-radio-horizontal-gap","",l.spacing3)};var _f={headerRowBorderWidth:r.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:r.extend("--ft-table-header-row-background-color","",d.backgroundGlobalOnSurfaceDark),headerRowBorderColor:r.extend("--ft-table-header-row-border-color","",d.borderGlobalPrimary),headerRowColor:r.extend("--ft-table-header-row-color","",d.contentGlobalPrimary),dataRowBorderWidth:r.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:r.extend("--ft-table-data-row-background-color","",d.backgroundGlobalOnSurface),dataRowBorderColor:r.extend("--ft-table-data-row-border-color","",d.borderGlobalSubtle),dataRowColor:r.extend("--ft-table-data-row-color","",d.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:r.extend("--ft-table-data-row-default-hover-background-color","",l.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:r.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",l.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:r.extend("--ft-table-data-row-selectable-selected-default-background-color","",l.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:r.extend("--ft-table-data-row-selectable-selected-default-border-color","",l.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:r.extend("--ft-table-data-row-selectable-selected-hover-background-color","",l.colorBrand20),dataRowSelectableSelectedHoverBorderColor:r.extend("--ft-table-data-row-selectable-selected-hover-border-color","",l.colorBrand30),dataRowSelectableSelectedColor:r.extend("--ft-table-data-row-selectable-selected-color","",d.contentActionPrimary),dataRowClickableHoverBackgroundColor:r.extend("--ft-table-data-row-clickable-hover-background-color","",l.colorGray30),dataRowClickableFocusBorderColor:r.extend("--ft-table-data-row-clickable-focus-border-color","",d.borderActionFocusRing),dataRowClickableFocusBackgroundColor:r.extend("--ft-table-data-row-clickable-focus-background-color","",l.colorGray30),dataRowClickableActiveBackgroundColor:r.extend("--ft-table-data-row-clickable-active-background-color","",l.colorGray40),headerCellHorizontalGap:r.extend("--ft-table-header-cell-horizontal-gap","",l.spacing1),headerCellVerticalPadding:r.extend("--ft-table-header-cell-vertical-padding","",l.spacing2),headerCellHorizontalPadding:r.extend("--ft-table-header-cell-horizontal-padding","",l.spacing3),dataCellVerticalPadding:r.extend("--ft-table-data-cell-vertical-padding","",l.spacing2),dataCellHorizontalPadding:r.extend("--ft-table-data-cell-horizontal-padding","",l.spacing3),dataCellVerticalGap:r.extend("--ft-table-data-cell-vertical-gap","",l.spacing1)};var Df={neutralOffHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",l.opacity8),neutralOffFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",l.opacity8),neutralOffFocusFocusRingColor:r.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",d.borderActionFocusRing),neutralOffActiveStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",l.opacity16),neutralOffBackgroundColor:r.extend("--ft-chip-choice-neutral-off-background-color","",d.backgroundGlobalOnSurface),neutralOffBorderColor:r.extend("--ft-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:r.extend("--ft-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:r.extend("--ft-chip-choice-neutral-off-state-layer-color","",d.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",l.opacity16),neutralOnHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",l.opacity24),neutralOnFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",l.opacity24),neutralOnFocusFocusRingColor:r.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",d.borderActionFocusRing),neutralOnActiveStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",l.opacity32),neutralOnBackgroundColor:r.extend("--ft-chip-choice-neutral-on-background-color","",d.backgroundGlobalOnSurface),neutralOnBorderColor:r.extend("--ft-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:r.extend("--ft-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:r.extend("--ft-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:r.extend("--ft-chip-choice-neutral-on-state-layer-color","",d.contentGlobalPrimary),largeMinHeight:r.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-choice-large-horizontal-padding","",l.spacing3),largeGap:r.extend("--ft-chip-choice-large-gap","",l.spacing1),largeBorderRadius:r.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ft-chip-choice-large-icon-size","",l.iconSize3),mediumMinHeight:r.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-choice-medium-horizontal-padding","",l.spacing2),mediumGap:r.extend("--ft-chip-choice-medium-gap","",l.spacing1),mediumBorderRadius:r.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ft-chip-choice-medium-icon-size","",l.iconSize2)};var Uf={largeMinHeight:r.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-large-horizontal-padding","",l.spacing3),largeButtonRightPadding:r.extend("--ft-chip-large-button-right-padding","",l.spacing1),largeGap:r.extend("--ft-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:r.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:r.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ft-chip-large-icon-size","",l.iconSize3),mediumMinHeight:r.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-medium-horizontal-padding","",l.spacing2),mediumButtonRightPadding:r.extend("--ft-chip-medium-button-right-padding","",l.spacing05),mediumGap:r.extend("--ft-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:r.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:r.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ft-chip-medium-icon-size","",l.iconSize2),smallMinHeight:r.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-chip-small-horizontal-padding","",l.spacing1),smallButtonRightPadding:r.extend("--ft-chip-small-button-right-padding","",l.spacing05),smallGap:r.extend("--ft-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:r.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:r.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:r.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:r.extend("--ft-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:r.extend("--ft-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:r.extend("--ft-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:r.extend("--ft-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:r.extend("--ft-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:r.extend("--ft-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-chip-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:r.extend("--ft-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:r.extend("--ft-chip-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:r.extend("--ft-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:r.extend("--ft-chip-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:r.extend("--ft-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:r.extend("--ft-chip-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:r.extend("--ft-chip-error-border-color","",d.borderErrorSubtle)};var Vf={brandHoverOpacity:r.extend("--ft-link-brand-hover-opacity","",l.opacity80),brandHoverColor:r.extend("--ft-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:r.extend("--ft-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:r.extend("--ft-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:r.extend("--ft-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:r.extend("--ft-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:r.extend("--ft-link-info-hover-opacity","",l.opacity80),infoHoverColor:r.extend("--ft-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:r.extend("--ft-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:r.extend("--ft-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:r.extend("--ft-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:r.extend("--ft-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:r.extend("--ft-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:r.extend("--ft-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:r.extend("--ft-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:r.extend("--ft-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:r.extend("--ft-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:r.extend("--ft-link-neutral-visited-color","",l.colorBrand100)};var Yf={iconSize:r.extend("--ft-banner-icon-size","",l.iconSize5),borderWidth:r.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:r.extend("--ft-banner-left-padding","",l.spacing6),rightPadding:r.extend("--ft-banner-right-padding","",l.spacing6),verticalPadding:r.extend("--ft-banner-vertical-padding","",l.spacing6),horizontalSideGap:r.extend("--ft-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:r.extend("--ft-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:r.extend("--ft-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:r.extend("--ft-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:r.extend("--ft-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-banner-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-banner-info-border-color","",d.borderInfoSubtle)};var th={horizontalPadding:r.extend("--ft-badge-horizontal-padding","",l.spacing1),verticalPadding:r.extend("--ft-badge-vertical-padding","",l.spacing1),borderRadius:r.extend("--ft-badge-border-radius","",l.borderRadiusPill),color:r.extend("--ft-badge-color","",d.contentGlobalOnColor),backgroundColor:r.extend("--ft-badge-background-color","",d.contentActionPrimary)};var ah={horizontalGap:r.extend("--ft-title-breadcrumb-horizontal-gap","",l.spacing1),currentColor:r.extend("--ft-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:r.extend("--ft-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:r.extend("--ft-title-breadcrumb-icon-color","",d.contentGlobalSubtle)};var uh={parentHorizontalPadding:r.extend("--ft-page-header-parent-horizontal-padding","",l.spacing6),parentTopPadding:r.extend("--ft-page-header-parent-top-padding","",l.spacing4),parentBottomPadding:r.extend("--ft-page-header-parent-bottom-padding","",l.spacing6),parentHelpLeftMargin:r.extend("--ft-page-header-parent-help-left-margin","",l.spacing1),parentTitleColor:r.extend("--ft-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:r.extend("--ft-page-header-parent-subtitle-color","",d.contentGlobalSecondary),parentChipLeftMargin:r.extend("--ft-page-header-parent-chip-left-margin","",l.spacing4),parentVerticalGap:r.extend("--ft-page-header-parent-vertical-gap","",l.spacing2),parentButtonsGroupHorizontalGap:r.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",l.spacing4),parentButtonsGroupVerticalGap:r.extend("--ft-page-header-parent-buttons-group-vertical-gap","",l.spacing4),parentChipsGroupHorizontalGap:r.extend("--ft-page-header-parent-chips-group-horizontal-gap","",l.spacing2),parentChipsGroupVerticalGap:r.extend("--ft-page-header-parent-chips-group-vertical-gap","",l.spacing2),childHorizontalPadding:r.extend("--ft-page-header-child-horizontal-padding","",l.spacing6),childTopPadding:r.extend("--ft-page-header-child-top-padding","",l.spacing2),childBottomPadding:r.extend("--ft-page-header-child-bottom-padding","",l.spacing2),childHelpLeftMargin:r.extend("--ft-page-header-child-help-left-margin","",l.spacing1),childChipLeftMargin:r.extend("--ft-page-header-child-chip-left-margin","",l.spacing4),childVerticalGap:r.extend("--ft-page-header-child-vertical-gap","",l.spacing2),childMinHeight:r.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:r.extend("--ft-page-header-child-buttons-group-horizontal-gap","",l.spacing4),childButtonsGroupVerticalGap:r.extend("--ft-page-header-child-buttons-group-vertical-gap","",l.spacing4),childChipsGroupHorizontalGap:r.extend("--ft-page-header-child-chips-group-horizontal-gap","",l.spacing2),childChipsGroupVerticalGap:r.extend("--ft-page-header-child-chips-group-vertical-gap","",l.spacing2),backgroundColor:r.extend("--ft-page-header-background-color","",l.colorWhite),bottomBorderColor:r.extend("--ft-page-header-bottom-border-color","",d.borderGlobalSubtle),bottomBorderWidth:r.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var yh={horizontalPadding:r.extend("--ft-page-footer-horizontal-padding","",l.spacing6),verticalPadding:r.extend("--ft-page-footer-vertical-padding","",l.spacing2),verticalGap:r.extend("--ft-page-footer-vertical-gap","",l.spacing2),minHeight:r.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:r.extend("--ft-page-footer-background-color","",l.colorWhite),topBorderColor:r.extend("--ft-page-footer-top-border-color","",d.borderGlobalSubtle),topBorderWidth:r.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:r.extend("--ft-page-footer-buttons-group-gap","",l.spacing4)};var vh={contentHorizontalPadding:r.extend("--ft-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:r.extend("--ft-page-layout-content-vertical-padding","",l.spacing6)};var Eh={smallContainerTargetWidth:r.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:r.extend("--ft-modal-small-container-margin","",l.spacing6),mediumContainerTargetWidth:r.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:r.extend("--ft-modal-medium-container-margin","",l.spacing6),largeContainerTargetWidth:r.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:r.extend("--ft-modal-large-container-margin","",l.spacing6),overlayBackgroundColor:r.extend("--ft-modal-overlay-background-color","",l.colorGray700),overlayOpacity:r.extend("--ft-modal-overlay-opacity","",l.opacity40),shadow:r.extend("--ft-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:r.extend("--ft-modal-body-background-color","",l.colorWhite),bodyColor:r.extend("--ft-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:r.extend("--ft-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:r.extend("--ft-modal-body-vertical-gap","",l.spacing6),headerBackgroundColor:r.extend("--ft-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-modal-header-border-color","",d.borderGlobalSubtle),headerColor:r.extend("--ft-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:r.extend("--ft-modal-header-leading-icon-color","",d.contentGlobalPrimary),headerVerticalPadding:r.extend("--ft-modal-header-vertical-padding","",l.spacing1),headerRightPadding:r.extend("--ft-modal-header-right-padding","",l.spacing1),headerLeftPadding:r.extend("--ft-modal-header-left-padding","",l.spacing6),headerGap:r.extend("--ft-modal-header-gap","",l.spacing2),headerBorderBottomWidth:r.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:r.extend("--ft-modal-border-radius","",l.borderRadiusM)};var _h={overlayOpacity:r.extend("--ft-drawer-overlay-opacity","",l.opacity40),shadow:r.extend("--ft-drawer-shadow","",l.shadowElevation03),bodyColor:r.extend("--ft-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:r.extend("--ft-drawer-body-vertical-padding","",l.spacing6),bodyGap:r.extend("--ft-drawer-body-gap","",l.spacing6),bodyBackgroundColor:r.extend("--ft-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:r.extend("--ft-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:r.extend("--ft-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:r.extend("--ft-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:r.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:r.extend("--ft-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:r.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:r.extend("--ft-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:r.extend("--ft-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:r.extend("--ft-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:r.extend("--ft-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:r.extend("--ft-drawer-buttons-bar-horizontal-padding","",l.spacing6),buttonsBarVerticalPadding:r.extend("--ft-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:r.extend("--ft-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:r.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:r.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:r.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:r.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:r.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:r.extend("--ft-drawer-overlay-background-color","",l.colorGray700)};var Dh={offBorderBottomWidth:r.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:r.extend("--ft-tabs-off-hover-state-layer-opacity","",l.opacity8),offDefaultStateLayerOpacity:r.extend("--ft-tabs-off-default-state-layer-opacity","",l.opacity0),offFocusStateLayerOpacity:r.extend("--ft-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:r.extend("--ft-tabs-off-disabled-component-opacity","",l.opacity40),offColor:r.extend("--ft-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:r.extend("--ft-tabs-off-border-bottom-color","",d.borderGlobalSubtle),activeTabIndicatorHeight:r.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:r.extend("--ft-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:r.extend("--ft-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:r.extend("--ft-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:r.extend("--ft-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:r.extend("--ft-tabs-horizontal-gap","",l.spacing1),verticalGap:r.extend("--ft-tabs-vertical-gap","",l.spacing1),onHoverStateLayerOpacity:r.extend("--ft-tabs-on-hover-state-layer-opacity","",l.opacity16),onDefaultStateLayerOpacity:r.extend("--ft-tabs-on-default-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:r.extend("--ft-tabs-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:r.extend("--ft-tabs-on-active-state-layer-opacity","",l.opacity24),onColor:r.extend("--ft-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:r.extend("--ft-tabs-on-active-tab-indicator-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:r.extend("--ft-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:r.extend("--ft-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:r.extend("--ft-tabs-alert-top-padding","",l.spacing1),alertRightPadding:r.extend("--ft-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:r.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var Uh={largeFieldHorizontalPadding:r.extend("--ft-text-input-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:r.extend("--ft-text-input-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:r.extend("--ft-text-input-large-field-vertical-gap","",l.spacing05),largeFieldHeight:r.create("--ft-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:r.extend("--ft-text-input-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:r.extend("--ft-text-input-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:r.extend("--ft-text-input-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:r.create("--ft-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:r.create("--ft-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:r.extend("--ft-text-input-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:r.extend("--ft-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-text-input-helper-horizontal-gap","",l.spacing1),helperIconSize:r.extend("--ft-text-input-helper-icon-size","",l.iconSize2),borderRadius:r.extend("--ft-text-input-border-radius","",l.borderRadiusS),backgroundColor:r.extend("--ft-text-input-background-color","",l.colorWhite),contentValueColor:r.extend("--ft-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:r.extend("--ft-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:r.extend("--ft-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderColor:r.extend("--ft-text-input-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-text-input-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-text-input-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:r.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:r.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-input-disabled-component-opacity","",l.opacity40)};var Vh={backgroundColor:r.extend("--ft-text-area-background-color","",l.colorWhite),contentValueColor:r.extend("--ft-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:r.extend("--ft-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:r.extend("--ft-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:r.extend("--ft-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:r.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:r.extend("--ft-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:r.extend("--ft-text-area-helper-icon-size","",l.iconSize2),borderRadius:r.extend("--ft-text-area-border-radius","",l.borderRadiusS)};var Yh={height:r.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:r.extend("--ft-floating-menu-horizontal-padding","",l.spacing4),offIconColor:r.extend("--ft-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:r.extend("--ft-floating-menu-off-color","",d.contentGlobalPrimary),onColor:r.extend("--ft-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:r.extend("--ft-floating-menu-gap","",l.spacing3),focusFocusRingColor:r.extend("--ft-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:r.extend("--ft-floating-menu-focus-state-layer-opacity","",l.opacity8),hoverStateLayerOpacity:r.extend("--ft-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:r.extend("--ft-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:r.extend("--ft-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:r.extend("--ft-floating-menu-icon-size","",l.iconSize3),backgroundColor:r.extend("--ft-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:r.extend("--ft-floating-menu-shadow","",l.shadowElevation02)};var tg={largeFieldHorizontalPadding:r.extend("--ft-combobox-single-select-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:r.extend("--ft-combobox-single-select-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:r.extend("--ft-combobox-single-select-large-field-vertical-gap","",l.spacing05),largeFieldHeight:r.create("--ft-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:r.extend("--ft-combobox-single-select-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:r.extend("--ft-combobox-single-select-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:r.extend("--ft-combobox-single-select-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:r.create("--ft-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:r.create("--ft-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:r.extend("--ft-combobox-single-select-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:r.extend("--ft-combobox-single-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-combobox-single-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:r.extend("--ft-combobox-single-select-helper-vertical-gap","",l.spacing1),helperIconSize:r.extend("--ft-combobox-single-select-helper-icon-size","",l.iconSize2),menuVerticalGap:r.extend("--ft-combobox-single-select-menu-vertical-gap","",l.spacing2),borderRadius:r.extend("--ft-combobox-single-select-border-radius","",l.borderRadiusS),backgroundColor:r.extend("--ft-combobox-single-select-background-color","",l.colorWhite),labelColor:r.extend("--ft-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:r.extend("--ft-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:r.extend("--ft-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:r.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:r.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-single-select-disabled-component-opacity","",l.opacity40)};var ag={backgroundColor:r.extend("--ft-combobox-multi-select-background-color","",l.colorWhite),labelColor:r.extend("--ft-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:r.extend("--ft-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:r.extend("--ft-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:r.extend("--ft-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:r.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:r.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-multi-select-disabled-component-opacity","",l.opacity40),helperHorizontalPadding:r.extend("--ft-combobox-multi-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-combobox-multi-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:r.extend("--ft-combobox-multi-select-helper-vertical-gap","",l.spacing1),helperIconSize:r.extend("--ft-combobox-multi-select-helper-icon-size","",l.iconSize2),fieldHorizontalPadding:r.extend("--ft-combobox-multi-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-combobox-multi-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-combobox-multi-select-field-vertical-gap","",l.spacing05),fieldIconSize:r.extend("--ft-combobox-multi-select-field-icon-size","",l.iconSize3),fieldMaxHeight:r.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:r.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",l.spacing1),contentValuesVerticalGap:r.extend("--ft-combobox-multi-select-content-values-vertical-gap","",l.spacing1),borderRadius:r.extend("--ft-combobox-multi-select-border-radius","",l.borderRadiusS)};var ug={backgroundColor:r.extend("--ft-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:r.extend("--ft-popover-horizontal-padding","",l.spacing6),verticalPadding:r.extend("--ft-popover-vertical-padding","",l.spacing6),titleColor:r.extend("--ft-popover-title-color","",d.contentGlobalPrimary),bodyColor:r.extend("--ft-popover-body-color","",d.contentGlobalSecondary),gap:r.extend("--ft-popover-gap","",l.spacing2),borderRadius:r.extend("--ft-popover-border-radius","",l.borderRadiusM),shadow:r.extend("--ft-popover-shadow","",l.shadowElevation02),maxWidth:r.create("--ft-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:r.extend("--ft-popover-content-section-vertical-gap","",l.spacing2),multiSectionVerticalGap:r.extend("--ft-popover-multi-section-vertical-gap","",l.spacing6)};var yg={hoverStateLayerOpacity:r.extend("--ft-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:r.extend("--ft-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:r.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:r.extend("--ft-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:r.extend("--ft-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:r.extend("--ft-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:r.extend("--ft-collapsible-horizontal-padding","",l.spacing4),verticalPadding:r.extend("--ft-collapsible-vertical-padding","",l.spacing3),color:r.extend("--ft-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:r.extend("--ft-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:r.extend("--ft-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:r.extend("--ft-collapsible-border-color","",d.borderGlobalSubtle),iconSize:r.extend("--ft-collapsible-icon-size","",l.iconSize3)};var Sg={groupHorizontalPadding:r.extend("--ft-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:r.extend("--ft-switch-group-vertical-padding","",l.spacing1),groupGap:r.extend("--ft-switch-group-gap","",l.spacing1),groupBackgroundColor:r.extend("--ft-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:r.extend("--ft-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:r.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:r.extend("--ft-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:r.extend("--ft-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:r.extend("--ft-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:r.extend("--ft-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:r.extend("--ft-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:r.extend("--ft-switch-off-disabled-component-opacity","",l.opacity40),offColor:r.extend("--ft-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:r.extend("--ft-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:r.extend("--ft-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:r.extend("--ft-switch-on-disabled-component-opacity","",l.opacity40),onColor:r.extend("--ft-switch-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:r.extend("--ft-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:r.extend("--ft-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:r.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:r.extend("--ft-switch-option-border-radius","",l.borderRadiusS)};var Eg={color1Light:r.extend("--ft-chart-1-light","for area color charts",l.colorBrand40),color1Base:r.extend("--ft-chart-1-base","for line charts",l.colorBrand0),color2Light:r.extend("--ft-chart-2-light","for area color charts",l.colorYellow60),color2Base:r.extend("--ft-chart-2-base","for line charts",l.colorYellow100),color3Light:r.extend("--ft-chart-3-light","",l.colorUltramarine40),color3Base:r.extend("--ft-chart-3-base","",l.colorUltramarine70),color4Light:r.extend("--ft-chart-4-light","",l.colorCyan50),color4Base:r.extend("--ft-chart-4-base","",l.colorCyan100),color5Light:r.extend("--ft-chart-5-light","",l.colorRed40),color5Base:r.extend("--ft-chart-5-base","",l.colorRed60),color6Light:r.extend("--ft-chart-6-light","",l.colorGreen40),color6Base:r.extend("--ft-chart-6-base","",l.colorGreen70),color7Light:r.extend("--ft-chart-7-light","",l.colorOrange70),color7Base:r.extend("--ft-chart-7-base","",l.colorOrange100),color8Light:r.extend("--ft-chart-8-light","",l.colorAvocado70),color8Base:r.extend("--ft-chart-8-base","",l.colorAvocado200),color9Light:r.extend("--ft-chart-9-light","",l.colorBrown50),color9Base:r.extend("--ft-chart-9-base","",l.colorBrown200),color10Light:r.extend("--ft-chart-10-light","",l.colorGray50),color10Base:r.extend("--ft-chart-10-base","",l.colorGray80),monochrome10:r.extend("--ft-chart-monochrome-10","",l.colorBrand10),monochrome20:r.extend("--ft-chart-monochrome-20","",l.colorBrand20),monochrome30:r.extend("--ft-chart-monochrome-30","",l.colorBrand40),monochrome40:r.extend("--ft-chart-monochrome-40","",l.colorBrand60),monochrome50:r.extend("--ft-chart-monochrome-50","",l.colorBrand0),monochrome60:r.extend("--ft-chart-monochrome-60","",l.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",l.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",l.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",l.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",l.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",l.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:r.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",l.opacity48),scatterplotDatapointInitialHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",l.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",l.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",l.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",l.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:r.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",l.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",l.colorGray70),scatterplotDatapointHoverHoverRingColor:r.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",l.colorCyan200)};var Ig={color1IconColor:r.extend("--ft-page-designer-1-icon-color","for area color charts",l.colorCyan0),color1ToolbarColor:r.extend("--ft-page-designer-1-toolbar-color","for area color charts",l.colorCyan0),color2IconColor:r.extend("--ft-page-designer-2-icon-color","for area color charts",l.colorBrand0),color2ToolbarColor:r.extend("--ft-page-designer-2-toolbar-color","for area color charts",l.colorBrand0),color3IconColor:r.extend("--ft-page-designer-3-icon-color","for area color charts",l.colorYellow200),color3ToolbarColor:r.extend("--ft-page-designer-3-toolbar-color","for area color charts",l.colorYellow200),color4IconColor:r.extend("--ft-page-designer-4-icon-color","for area color charts",l.colorUltramarine50),color4ToolbarColor:r.extend("--ft-page-designer-4-toolbar-color","for area color charts",l.colorUltramarine50),color5IconColor:r.extend("--ft-page-designer-5-icon-color","for area color charts",l.colorGreen0),color5ToolbarColor:r.extend("--ft-page-designer-5-toolbar-color","for area color charts",l.colorGreen0),color6IconColor:r.extend("--ft-page-designer-6-icon-color","for area color charts",l.colorOrange0),color6ToolbarColor:r.extend("--ft-page-designer-6-toolbar-color","for area color charts",l.colorOrange0),color7IconColor:r.extend("--ft-page-designer-7-icon-color","for area color charts",l.colorAvocado200),color7ToolbarColor:r.extend("--ft-page-designer-7-toolbar-color","for area color charts",l.colorAvocado200),color8IconColor:r.extend("--ft-page-designer-8-icon-color","for area color charts",l.colorBrown0),color8ToolbarColor:r.extend("--ft-page-designer-8-toolbar-color","for area color charts",l.colorBrown0)};var Pg={borderWidth:r.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:r.extend("--ft-notice-horizontal-padding","",l.spacing3),verticalPadding:r.extend("--ft-notice-vertical-padding","",l.spacing2),borderRadius:r.extend("--ft-notice-border-radius","",l.borderRadiusS),gap:r.extend("--ft-notice-gap","",l.spacing2),iconSize:r.extend("--ft-notice-icon-size","",l.iconSize3),infoBackgroundColor:r.extend("--ft-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:r.extend("--ft-notice-info-border-color","",d.borderInfoSubtle),infoColor:r.extend("--ft-notice-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:r.extend("--ft-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:r.extend("--ft-notice-warning-border-color","",d.borderWarningSubtle),warningColor:r.extend("--ft-notice-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:r.extend("--ft-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:r.extend("--ft-notice-error-border-color","",d.borderErrorSubtle),errorColor:r.extend("--ft-notice-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:r.extend("--ft-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:r.extend("--ft-notice-success-border-color","",d.borderSuccessSubtle),successColor:r.extend("--ft-notice-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-notice-success-icon-color","",d.contentSuccessIconOnly),denseHorizontalPadding:r.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:r.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:r.extend("--ft-notice-dense-gap","",l.spacing1),denseIconSize:r.extend("--ft-notice-dense-icon-size","",l.iconSize2),denseBorderWidth:r.create("--ft-notice-dense-border-width","","SIZE","0")};var Fg={offHoverStateLayerOpacity:r.extend("--ft-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:r.extend("--ft-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:r.extend("--ft-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:r.extend("--ft-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:r.extend("--ft-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:r.extend("--ft-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:r.extend("--ft-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:r.extend("--ft-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:r.extend("--ft-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:r.extend("--ft-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:r.extend("--ft-toggle-on-icon-color","",d.contentActionPrimary),color:r.extend("--ft-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:r.extend("--ft-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:r.extend("--ft-toggle-gap","",l.spacing3)};var Gg={iconSize:r.extend("--ft-notification-icon-size","",l.iconSize4),leftPadding:r.extend("--ft-notification-left-padding","",l.spacing5),rightPadding:r.extend("--ft-notification-right-padding","",l.spacing4),verticalPadding:r.extend("--ft-notification-vertical-padding","",l.spacing3),infoBackgroundColor:r.extend("--ft-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-notification-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:r.extend("--ft-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:r.extend("--ft-notification-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:r.extend("--ft-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:r.extend("--ft-notification-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:r.extend("--ft-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:r.extend("--ft-notification-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:r.extend("--ft-notification-error-border-color","",d.borderErrorSubtle),borderRadius:r.extend("--ft-notification-border-radius","",l.borderRadiusPill),borderWidth:r.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:r.extend("--ft-notification-leading-gap","",l.spacing2),trailingGap:r.extend("--ft-notification-trailing-gap","",l.spacing8)};var qg={horizontalPadding:r.extend("--ft-tooltip-horizontal-padding","",l.spacing2),verticalPadding:r.extend("--ft-tooltip-vertical-padding","",l.spacing2),borderRadius:r.extend("--ft-tooltip-border-radius","",l.borderRadiusS),color:r.extend("--ft-tooltip-color","",d.contentGlobalOnColor),backgroundColor:r.extend("--ft-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:r.extend("--ft-tooltip-background-opacity","",l.opacity80),shadow:r.extend("--ft-tooltip-shadow","",l.shadowElevation02),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","256px"),gap:r.extend("--ft-tooltip-gap","",l.spacing05)};var ey={verticalPadding:r.extend("--ft-reorderable-list-vertical-padding","",l.spacing4),gap:r.extend("--ft-reorderable-list-gap","",l.spacing1),borderRadius:r.extend("--ft-reorderable-list-border-radius","",l.borderRadiusM),reorderableItemTitleMarginRight:r.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",l.spacing6),reorderableItemTitleColor:r.extend("--ft-reorderable-list-reorderable-item-title-color","",d.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:r.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",l.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:r.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",l.spacing2),reorderableItemRightButtonsGroupHorizontalGap:r.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",l.spacing2),reorderableItemUsersCountColor:r.extend("--ft-reorderable-list-reorderable-item-users-count-color","",d.contentGlobalPrimary),reorderableItemUsersCountMarginRight:r.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",l.spacing6),reorderableItemBackgroundColor:r.extend("--ft-reorderable-list-reorderable-item-background-color","",d.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:r.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",l.spacing1),reorderableItemWarningMessageColor:r.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:r.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:r.extend("--ft-reorderable-list-reorderable-item-grip-color","",d.contentGlobalSecondary),reorderableItemGripOpacity:r.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",l.opacity48),boxShadow:r.extend("--ft-reorderable-list-box-shadow","",l.shadowElevation01),borderWidth:r.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:r.extend("--ft-reorderable-list-reorderable-items-gap","",l.spacing2),leftPadding:r.extend("--ft-reorderable-list-left-padding","",l.spacing2),rightPadding:r.extend("--ft-reorderable-list-right-padding","",l.spacing6),borderColor:r.extend("--ft-reorderable-list-border-color","",d.borderGlobalPrimary),backgroundColor:r.extend("--ft-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)};var ny={nodeHeight:r.create("--ft-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:r.extend("--ft-tree-list-node-parent-label-margin-left","",l.spacing2),nodeParentLabelMarginRight:r.extend("--ft-tree-list-node-parent-label-margin-right","",l.spacing2),nodeRootPaddingLeft:r.extend("--ft-tree-list-node-root-padding-left","",l.spacing3),nodeChildPaddingLeft:r.extend("--ft-tree-list-node-child-padding-left","",l.spacing5),nodeLeafPaddingLeft:r.extend("--ft-tree-list-node-leaf-padding-left","",l.spacing6),nodeUnselectedDefaultBorderColor:r.extend("--ft-tree-list-node-unselected-default-border-color","",d.borderGlobalSubtle),nodeUnselectedIconColor:r.extend("--ft-tree-list-node-unselected-icon-color","",d.contentGlobalSecondary),nodeUnselectedLabelColor:r.extend("--ft-tree-list-node-unselected-label-color","",d.contentGlobalSecondary),nodeUnselectedCounterColor:r.extend("--ft-tree-list-node-unselected-counter-color","",d.contentGlobalSecondary),nodeHoverBorderColor:r.extend("--ft-tree-list-node-hover-border-color","",d.borderActionPrimary),nodeFocusFocusRingColor:r.extend("--ft-tree-list-node-focus-focus-ring-color","",d.borderActionFocusRing),nodeFocusOutlineWidth:r.create("--ft-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:r.extend("--ft-tree-list-node-selected-default-border-color","",d.borderGlobalPrimary),nodeSelectedIconColor:r.extend("--ft-tree-list-node-selected-icon-color","",d.contentGlobalSecondary),nodeSelectedLabelColor:r.extend("--ft-tree-list-node-selected-label-color","",d.contentGlobalPrimary),nodeSelectedCounterColor:r.extend("--ft-tree-list-node-selected-counter-color","",d.contentGlobalSecondary),nodeSelectedBackgroundColor:r.create("--ft-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:r.extend("--ft-tree-list-node-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:r.extend("--ft-tree-list-node-descendant-of-selected-icon-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:r.extend("--ft-tree-list-node-descendant-of-selected-label-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:r.extend("--ft-tree-list-node-descendant-of-selected-counter-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:r.create("--ft-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:r.create("--ft-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:r.extend("--ft-tree-list-header-section-padding-left","",l.spacing3),headerSectionPaddingRight:r.extend("--ft-tree-list-header-section-padding-right","",l.spacing3),headerSectionHorizontalGap:r.extend("--ft-tree-list-header-section-horizontal-gap","",l.spacing2),headerSectionMarginBottom:r.extend("--ft-tree-list-header-section-margin-bottom","",l.spacing2),headerSectionColor:r.extend("--ft-tree-list-header-section-color","",d.contentGlobalPrimary),headerSectionCounterColor:r.extend("--ft-tree-list-header-section-counter-color","",d.contentGlobalSecondary),listContainerBorderWidth:r.create("--ft-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:r.extend("--ft-tree-list-list-container-background-color","",d.backgroundGlobalSurface),listContainerBorderColor:r.extend("--ft-tree-list-list-container-border-color","",d.borderGlobalSubtle),loadMorePaddingLeft:r.extend("--ft-tree-list-load-more-padding-left","",l.spacing6),loadMoreUnselectedDefaultBorderColor:r.extend("--ft-tree-list-load-more-unselected-default-border-color","",d.borderGlobalSubtle),loadMoreIconColor:r.extend("--ft-tree-list-load-more-icon-color","",d.contentActionPrimary),loadMoreLabelColor:r.extend("--ft-tree-list-load-more-label-color","",d.contentActionPrimary),loadMoreHoverBorderColor:r.extend("--ft-tree-list-load-more-hover-border-color","",l.colorBrand20),loadMoreHoverBackgroundColor:r.create("--ft-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:r.extend("--ft-tree-list-load-more-active-border-color","",l.colorBrand20),loadMoreActiveBackgroundColor:r.create("--ft-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:r.create("--ft-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:r.create("--ft-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:r.extend("--ft-tree-list-load-more-descendant-of-selected-default-border-color","",d.borderGlobalPrimary)};var cy={menuHorizontalPadding:r.extend("--ft-date-range-picker-menu-horizontal-padding","",l.spacing4),menuVerticalPadding:r.extend("--ft-date-range-picker-menu-vertical-padding","",l.spacing4),menuVerticalGap:r.extend("--ft-date-range-picker-menu-vertical-gap","",l.spacing4),menuButtonsVerticalGap:r.extend("--ft-date-range-picker-menu-buttons-vertical-gap","",l.spacing2)};var Wo;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Wo||(Wo={}));var $r;(function(t){t.large="large",t.medium="medium",t.small="small"})($r||($r={}));var Br=m(B());function bs(t,e){let o=Ho[t];return Br.css`
116
+ ${e?(0,Br.unsafeCSS)(e):Br.css`.ft-typography--${(0,Br.unsafeCSS)(t)}`} {
117
+ font-family: ${o.fontFamily};
118
+ font-size: ${o.fontSize};
119
+ font-weight: ${o.fontWeight};
120
+ letter-spacing: ${o.letterSpacing};
121
+ line-height: ${o.lineHeight};
122
+ text-decoration: ${o.textDecoration};
123
+ text-transform: ${o.textCase};
124
+ }
125
+ `}var xs=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.titleFont),Pt=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.contentFont),L={fontFamily:Pt,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")},Yt={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-font-family","",xs),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")},Xt={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",xs),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")},Mr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Pt),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")},Fr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Pt),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")},st={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Pt),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")},Ur={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Pt),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")},_e={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Pt),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")},zr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Pt),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")},Hr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Pt),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")},je={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Pt),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")},vs=lt.css`
125
126
  .ft-typography--title {
126
127
  font-family: ${Yt.fontFamily};
127
128
  font-size: ${Yt.fontSize};
@@ -130,7 +131,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
130
131
  line-height: ${Yt.lineHeight};
131
132
  text-transform: ${Yt.textTransform};
132
133
  }
133
- `,vs=lt.css`
134
+ `,Ss=lt.css`
134
135
  .ft-typography--title-dense {
135
136
  font-family: ${Xt.fontFamily};
136
137
  font-size: ${Xt.fontSize};
@@ -139,36 +140,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
139
140
  line-height: ${Xt.lineHeight};
140
141
  text-transform: ${Xt.textTransform};
141
142
  }
142
- `,Ss=lt.css`
143
- .ft-typography--subtitle1 {
144
- font-family: ${$r.fontFamily};
145
- font-size: ${$r.fontSize};
146
- font-weight: ${$r.fontWeight};
147
- letter-spacing: ${$r.letterSpacing};
148
- line-height: ${$r.lineHeight};
149
- text-transform: ${$r.textTransform};
150
- }
151
143
  `,Cs=lt.css`
152
- .ft-typography--subtitle2 {
153
- font-family: ${Br.fontFamily};
154
- font-size: ${Br.fontSize};
155
- font-weight: ${Br.fontWeight};
156
- letter-spacing: ${Br.letterSpacing};
157
- line-height: ${Br.lineHeight};
158
- text-transform: ${Br.textTransform};
159
- }
160
-
161
- `,zr=lt.css`
162
- .ft-typography--body1 {
163
- font-family: ${st.fontFamily};
164
- font-size: ${st.fontSize};
165
- font-weight: ${st.fontWeight};
166
- letter-spacing: ${st.letterSpacing};
167
- line-height: ${st.lineHeight};
168
- text-transform: ${st.textTransform};
169
- }
170
- `,Os=lt.css`
171
- .ft-typography--body2 {
144
+ .ft-typography--subtitle1 {
172
145
  font-family: ${Mr.fontFamily};
173
146
  font-size: ${Mr.fontSize};
174
147
  font-weight: ${Mr.fontWeight};
@@ -176,17 +149,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
176
149
  line-height: ${Mr.lineHeight};
177
150
  text-transform: ${Mr.textTransform};
178
151
  }
179
- `,Hr=lt.css`
180
- .ft-typography--caption {
181
- font-family: ${Fe.fontFamily};
182
- font-size: ${Fe.fontSize};
183
- font-weight: ${Fe.fontWeight};
184
- letter-spacing: ${Fe.letterSpacing};
185
- line-height: ${Fe.lineHeight};
186
- text-transform: ${Fe.textTransform};
187
- }
188
- `,ws=lt.css`
189
- .ft-typography--breadcrumb {
152
+ `,Os=lt.css`
153
+ .ft-typography--subtitle2 {
190
154
  font-family: ${Fr.fontFamily};
191
155
  font-size: ${Fr.fontSize};
192
156
  font-weight: ${Fr.fontWeight};
@@ -194,8 +158,18 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
194
158
  line-height: ${Fr.lineHeight};
195
159
  text-transform: ${Fr.textTransform};
196
160
  }
197
- `,Es=lt.css`
198
- .ft-typography--overline {
161
+
162
+ `,Wr=lt.css`
163
+ .ft-typography--body1 {
164
+ font-family: ${st.fontFamily};
165
+ font-size: ${st.fontSize};
166
+ font-weight: ${st.fontWeight};
167
+ letter-spacing: ${st.letterSpacing};
168
+ line-height: ${st.lineHeight};
169
+ text-transform: ${st.textTransform};
170
+ }
171
+ `,ws=lt.css`
172
+ .ft-typography--body2 {
199
173
  font-family: ${Ur.fontFamily};
200
174
  font-size: ${Ur.fontSize};
201
175
  font-weight: ${Ur.fontWeight};
@@ -203,7 +177,34 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
203
177
  line-height: ${Ur.lineHeight};
204
178
  text-transform: ${Ur.textTransform};
205
179
  }
180
+ `,Gr=lt.css`
181
+ .ft-typography--caption {
182
+ font-family: ${_e.fontFamily};
183
+ font-size: ${_e.fontSize};
184
+ font-weight: ${_e.fontWeight};
185
+ letter-spacing: ${_e.letterSpacing};
186
+ line-height: ${_e.lineHeight};
187
+ text-transform: ${_e.textTransform};
188
+ }
189
+ `,Es=lt.css`
190
+ .ft-typography--breadcrumb {
191
+ font-family: ${zr.fontFamily};
192
+ font-size: ${zr.fontSize};
193
+ font-weight: ${zr.fontWeight};
194
+ letter-spacing: ${zr.letterSpacing};
195
+ line-height: ${zr.lineHeight};
196
+ text-transform: ${zr.textTransform};
197
+ }
206
198
  `,As=lt.css`
199
+ .ft-typography--overline {
200
+ font-family: ${Hr.fontFamily};
201
+ font-size: ${Hr.fontSize};
202
+ font-weight: ${Hr.fontWeight};
203
+ letter-spacing: ${Hr.letterSpacing};
204
+ line-height: ${Hr.lineHeight};
205
+ text-transform: ${Hr.textTransform};
206
+ }
207
+ `,Rs=lt.css`
207
208
  .ft-typography--button {
208
209
  font-family: ${je.fontFamily};
209
210
  font-size: ${je.fontSize};
@@ -212,11 +213,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
212
213
  line-height: ${je.lineHeight};
213
214
  text-transform: ${je.textTransform};
214
215
  }
215
- `,Rs=lt.css`
216
+ `,Ts=lt.css`
216
217
  .ft-typography {
217
218
  vertical-align: inherit;
218
219
  }
219
- `,Ts=[Object.keys(Uo).map(t=>ms(t))];var Is=m(B()),po=m(T()),ie={color:po.FtCssVariableFactory.extend("--ft-loader-color","",po.designSystemVariables.colorPrimary),size:po.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},_s=Is.css`
220
+ `,Is=[Object.keys(Ho).map(t=>bs(t))];var _s=m(B()),go=m(T()),ie={color:go.FtCssVariableFactory.extend("--ft-loader-color","",go.designSystemVariables.colorPrimary),size:go.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Ns=_s.css`
220
221
  :host {
221
222
  line-height: 0;
222
223
  }
@@ -285,7 +286,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
285
286
  transform: translate(calc(0.35 * ${ie.size}), 0);
286
287
  }
287
288
  }
288
- `;var Ns=m(B()),yt=m(T()),Ce={size:yt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:yt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",yt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:yt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",yt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:yt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",yt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:yt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ls=[Ns.css`
289
+ `;var Ls=m(B()),mt=m(T()),Ce={size:mt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:mt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",mt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:mt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",mt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:mt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",mt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:mt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ks=[Ls.css`
289
290
  :host, i.ft-icon {
290
291
  display: inline-flex;
291
292
  align-items: center;
@@ -333,7 +334,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
333
334
  .ft-icon--material {
334
335
  font-family: ${Ce.materialFontFamily}, "Material Icons", sans-serif;
335
336
  }
336
- `,yt.noTextSelect];var ks=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:ks,fontSize:F.FtCssVariableFactory.extend("--ft-button-font-size","",je.fontSize),iconSize:F.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:F.FtCssVariableFactory.extend("--ft-button-ripple-color","",ks),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")},Ps=F.FtCssVariableFactory.extend("--ft-button-primary-color","",F.FtCssVariableFactory.extend("--ft-button-color","",F.designSystemVariables.colorOnPrimary)),fn={backgroundColor:F.FtCssVariableFactory.extend("--ft-button-primary-background-color","",F.FtCssVariableFactory.extend("--ft-button-background-color","",F.designSystemVariables.colorPrimary)),color:Ps,rippleColor:F.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ps)},At={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")},$s=[Ds.css`
337
+ `,mt.noTextSelect];var Ps=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:Ps,fontSize:F.FtCssVariableFactory.extend("--ft-button-font-size","",je.fontSize),iconSize:F.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:F.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ps),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")},Ds=F.FtCssVariableFactory.extend("--ft-button-primary-color","",F.FtCssVariableFactory.extend("--ft-button-color","",F.designSystemVariables.colorOnPrimary)),hn={backgroundColor:F.FtCssVariableFactory.extend("--ft-button-primary-background-color","",F.FtCssVariableFactory.extend("--ft-button-background-color","",F.designSystemVariables.colorPrimary)),color:Ds,rippleColor:F.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ds)},Rt={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")},Bs=[$s.css`
337
338
  :host {
338
339
  display: inline-block;
339
340
  max-width: 100%;
@@ -374,31 +375,31 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
374
375
  border: none;
375
376
  pointer-events: auto;
376
377
 
377
- --ft-button-internal-line-height: max(calc(${ee.fontSize} + 2px), ${ee.iconSize});
378
- --ft-button-internal-color: ${ee.color};
378
+ --button-internal-line-height: max(calc(${ee.fontSize} + 2px), ${ee.iconSize});
379
+ --button-internal-color: ${ee.color};
379
380
  ${(0,F.setVariable)(Ce.size,ee.iconSize)};
380
381
  ${(0,F.setVariable)(w.color,ee.rippleColor)};
381
382
 
382
383
  border-radius: ${ee.borderRadius};
383
384
  padding: ${ee.verticalPadding} ${ee.horizontalPadding};
384
385
  background-color: ${ee.backgroundColor};
385
- color: var(--ft-button-internal-color);
386
+ color: var(--button-internal-color);
386
387
  -webkit-mask-image: radial-gradient(white, black);
387
388
  }
388
389
 
389
390
  .ft-button.ft-button--outlined {
390
- border: 1px solid var(--ft-button-internal-color);
391
+ border: 1px solid var(--button-internal-color);
391
392
  padding: calc(${ee.verticalPadding} - 1px) calc(${ee.horizontalPadding} - 1px);
392
393
  }
393
394
 
394
395
  .ft-button.ft-button--dense {
395
- padding: ${At.verticalPadding} ${At.horizontalPadding};
396
- border-radius: ${At.borderRadius};
397
- gap: ${At.iconPadding};
396
+ padding: ${Rt.verticalPadding} ${Rt.horizontalPadding};
397
+ border-radius: ${Rt.borderRadius};
398
+ gap: ${Rt.iconPadding};
398
399
  }
399
400
 
400
401
  .ft-button.ft-button--dense.ft-button--outlined {
401
- padding: calc(${At.verticalPadding} - 1px) calc(${At.horizontalPadding} - 1px);
402
+ padding: calc(${Rt.verticalPadding} - 1px) calc(${Rt.horizontalPadding} - 1px);
402
403
  }
403
404
 
404
405
  .ft-button:not([disabled]):hover {
@@ -406,11 +407,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
406
407
  }
407
408
 
408
409
  .ft-button--round {
409
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ee.verticalPadding});
410
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${ee.verticalPadding});
410
411
  }
411
412
 
412
413
  .ft-button--round.ft-button--dense {
413
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${At.verticalPadding});
414
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${Rt.verticalPadding});
414
415
  }
415
416
 
416
417
  .ft-button[disabled] {
@@ -419,9 +420,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
419
420
  }
420
421
 
421
422
  .ft-button.ft-button--primary {
422
- background-color: ${fn.backgroundColor};
423
- --ft-button-internal-color: ${fn.color};
424
- ${(0,F.setVariable)(w.color,fn.rippleColor)};
423
+ background-color: ${hn.backgroundColor};
424
+ --button-internal-color: ${hn.color};
425
+ ${(0,F.setVariable)(w.color,hn.rippleColor)};
425
426
  }
426
427
 
427
428
  .ft-button:focus {
@@ -436,11 +437,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
436
437
  display: block;
437
438
  margin: 0 ${ee.iconPadding};
438
439
  ${(0,F.setVariable)(je.fontSize,"1em")};
439
- ${(0,F.setVariable)(je.lineHeight,"var(--ft-button-internal-line-height)")};
440
+ ${(0,F.setVariable)(je.lineHeight,"var(--button-internal-line-height)")};
440
441
  }
441
442
 
442
443
  .ft-button--dense .ft-button--label {
443
- margin: 0 ${At.iconPadding};
444
+ margin: 0 ${Rt.iconPadding};
444
445
  }
445
446
 
446
447
  .ft-button--label[hidden] {
@@ -458,19 +459,19 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
458
459
  }
459
460
 
460
461
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
461
- margin: 0 calc(${At.horizontalPadding} * -1);
462
- padding: 0 ${At.verticalPadding};
462
+ margin: 0 calc(${Rt.horizontalPadding} * -1);
463
+ padding: 0 ${Rt.verticalPadding};
463
464
  }
464
465
 
465
- .ft-button:not(.ft-button--trailing-icon) [part="label"]{
466
+ .ft-button:not(.ft-button--trailing-icon) [part="label"] {
466
467
  order: 2;
467
468
  }
468
469
 
469
470
  ft-loader {
470
471
  ${(0,F.setVariable)(ie.size,ee.iconSize)};
471
- ${(0,F.setVariable)(ie.color,"var(--ft-button-internal-color)")};
472
+ ${(0,F.setVariable)(ie.color,"var(--button-internal-color)")};
472
473
  }
473
- `,F.noTextSelect];var ue=m(T());var pe={textColor:ue.FtCssVariableFactory.extend("--ft-switch-text-color","",ue.designSystemVariables.colorOnSurfaceHigh),backgroundColor:ue.FtCssVariableFactory.extend("--ft-switch-background-color","",ue.designSystemVariables.colorSurface),selectedTextColor:ue.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",ue.designSystemVariables.colorPrimary),selectedBackgroundColor:ue.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",ue.designSystemVariables.colorPrimary),borderColor:ue.FtCssVariableFactory.extend("--ft-switch-border-color","",ue.designSystemVariables.colorOutline),borderRadius:ue.FtCssVariableFactory.extend("--ft-switch-border-radius","",ue.designSystemVariables.borderRadiusL),fontSize:ue.FtCssVariableFactory.extend("--ft-switch-font-size","",je.fontSize),iconSize:ue.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:ue.FtCssVariableFactory.extend("--ft-switch-text-color","",ue.designSystemVariables.colorOnSurfaceMedium),rippleColor:ue.FtCssVariableFactory.extend("--ft-switch-ripple-color","",ue.designSystemVariables.colorPrimary),outlineColor:ue.FtCssVariableFactory.extend("--ft-switch-outline-color","",ue.designSystemVariables.colorPrimary)};var Rt={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(Yt.fontSize,"Typography"),sectionTitleFontSize:J.FtCssVariableFactory.external(Xt.fontSize,"Typography"),starsBackgroundColor:J.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",J.designSystemVariables.colorSurface)},Ms=Bs.css`
474
+ `,F.noTextSelect];var ue=m(T());var pe={textColor:ue.FtCssVariableFactory.extend("--ft-switch-text-color","",ue.designSystemVariables.colorOnSurfaceHigh),backgroundColor:ue.FtCssVariableFactory.extend("--ft-switch-background-color","",ue.designSystemVariables.colorSurface),selectedTextColor:ue.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",ue.designSystemVariables.colorPrimary),selectedBackgroundColor:ue.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",ue.designSystemVariables.colorPrimary),borderColor:ue.FtCssVariableFactory.extend("--ft-switch-border-color","",ue.designSystemVariables.colorOutline),borderRadius:ue.FtCssVariableFactory.extend("--ft-switch-border-radius","",ue.designSystemVariables.borderRadiusL),fontSize:ue.FtCssVariableFactory.extend("--ft-switch-font-size","",je.fontSize),iconSize:ue.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:ue.FtCssVariableFactory.extend("--ft-switch-text-color","",ue.designSystemVariables.colorOnSurfaceMedium),rippleColor:ue.FtCssVariableFactory.extend("--ft-switch-ripple-color","",ue.designSystemVariables.colorPrimary),outlineColor:ue.FtCssVariableFactory.extend("--ft-switch-outline-color","",ue.designSystemVariables.colorPrimary)};var Tt={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(Yt.fontSize,"Typography"),sectionTitleFontSize:J.FtCssVariableFactory.external(Xt.fontSize,"Typography"),starsBackgroundColor:J.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",J.designSystemVariables.colorSurface)},Fs=Ms.css`
474
475
  .ft-reader-feedback {
475
476
  box-sizing: border-box;
476
477
  display: flex;
@@ -483,7 +484,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
483
484
  flex-direction: row;
484
485
  align-items: center;
485
486
  margin-left: -6px;
486
- ${(0,J.setVariable)(ee.backgroundColor,Rt.starsBackgroundColor)}
487
+ ${(0,J.setVariable)(ee.backgroundColor,Tt.starsBackgroundColor)}
487
488
  }
488
489
 
489
490
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -496,14 +497,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
496
497
  }
497
498
 
498
499
  .ft-reader-feedback--rating {
499
- ${(0,J.setVariable)(ee.color,Rt.emptyRatingColor)};
500
- ${(0,J.setVariable)(ee.rippleColor,Rt.filledRatingColor)};
501
- ${(0,J.setVariable)(pe.textColor,Rt.emptyRatingColor)};
502
- ${(0,J.setVariable)(pe.selectedTextColor,Rt.filledRatingColor)};
500
+ ${(0,J.setVariable)(ee.color,Tt.emptyRatingColor)};
501
+ ${(0,J.setVariable)(ee.rippleColor,Tt.filledRatingColor)};
502
+ ${(0,J.setVariable)(pe.textColor,Tt.emptyRatingColor)};
503
+ ${(0,J.setVariable)(pe.selectedTextColor,Tt.filledRatingColor)};
503
504
  }
504
505
 
505
506
  .ft-reader-feedback--rating .ft-reader-feedback--active {
506
- ${(0,J.setVariable)(ee.color,Rt.filledRatingColor)};
507
+ ${(0,J.setVariable)(ee.color,Tt.filledRatingColor)};
507
508
  }
508
509
 
509
510
  .ft-reader-feedback--feedback {
@@ -511,43 +512,43 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
511
512
  }
512
513
 
513
514
  .ft-reader-feedback--rating-date {
514
- color: ${Rt.ratedDateColor};
515
+ color: ${Tt.ratedDateColor};
515
516
  }
516
517
 
517
518
  .ft-reader-feedback--feedback ft-text-area {
518
- min-width: ${Rt.feedbackInputMinWidth};
519
+ min-width: ${Tt.feedbackInputMinWidth};
519
520
  }
520
521
 
521
522
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
522
- ${(0,J.setVariable)(ee.color,Rt.sendFeedbackColor)};
523
- ${(0,J.setVariable)(ee.backgroundColor,Rt.sendFeedbackBackgroundColor)};
523
+ ${(0,J.setVariable)(ee.color,Tt.sendFeedbackColor)};
524
+ ${(0,J.setVariable)(ee.backgroundColor,Tt.sendFeedbackBackgroundColor)};
524
525
  }
525
526
 
526
527
  [part="buttons-container"] {
527
528
  align-self: flex-end;
528
529
  }
529
- `;var Eu=m(Us(),1);var zs;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(zs||(zs={}));var Hs;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Hs||(Hs={}));var Ws;(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"})(Ws||(Ws={}));var Gs;(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"})(Gs||(Gs={}));var Vs;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Vs||(Vs={}));var js;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(js||(js={}));var Ks;(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.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",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"})(Ks||(Ks={}));var Zs;(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"})(Zs||(Zs={}));var qs;(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"})(qs||(qs={}));var Ys;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Ys||(Ys={}));var Xs;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Xs||(Xs={}));var Qs;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Qs||(Qs={}));var xe;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(xe||(xe={}));var Js;(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"})(Js||(Js={}));var el;(function(t){t.ASC="ASC",t.DESC="DESC"})(el||(el={}));var tl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(tl||(tl={}));var rl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(rl||(rl={}));var ol;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(ol||(ol={}));var il;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(il||(il={}));var nl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(nl||(nl={}));var al;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(al||(al={}));var sl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(sl||(sl={}));var ll;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ll||(ll={}));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.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(te||(te={}));var xr;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(xr||(xr={}));var cl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(cl||(cl={}));var dl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(dl||(dl={}));var ul;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(ul||(ul={}));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 pl(t,e){return t===e||(wu[t]??[]).some(o=>pl(o,e))}function Dt(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=>pl(i,e))}var _l=m(T());var vn=globalThis,Vo=vn.trustedTypes,fl=Vo?Vo.createPolicy("lit-html",{createHTML:t=>t}):void 0,xl="$lit$",Jt=`lit$${Math.random().toFixed(9).slice(2)}$`,vl="?"+Jt,Au=`<${vl}>`,Cr=document,jo=()=>Cr.createComment(""),ho=t=>t===null||typeof t!="object"&&typeof t!="function",Sn=Array.isArray,Ru=t=>Sn(t)||typeof t?.[Symbol.iterator]=="function",hn=`[
530
- \f\r]`,fo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hl=/-->/g,gl=/>/g,vr=RegExp(`>|${hn}(?:([^\\s"'>=/]+)(${hn}*=${hn}*(?:[^
531
- \f\r"'\`<>=]|("|')|))|$)`,"g"),yl=/'/g,ml=/"/g,Sl=/^(?:script|style|textarea|title)$/i,Cn=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Cl=Cn(1),Ol=Cn(2),wl=Cn(3),go=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),bl=new WeakMap,Sr=Cr.createTreeWalker(Cr,129);function El(t,e){if(!Sn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return fl!==void 0?fl.createHTML(e):e}var Tu=(t,e)=>{let o=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=fo;for(let c=0;c<o;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===fo?h[1]==="!--"?s=hl:h[1]!==void 0?s=gl:h[2]!==void 0?(Sl.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=vr):h[3]!==void 0&&(s=vr):s===vr?h[0]===">"?(s=n??fo,g=-1):h[1]===void 0?g=-2:(g=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?vr:h[3]==='"'?ml:yl):s===ml||s===yl?s=vr:s===hl||s===gl?s=fo:(s=vr,n=void 0);let x=s===vr&&t[c+1].startsWith("/>")?" ":"";a+=s===fo?u+Au:g>=0?(i.push(p),u.slice(0,g)+xl+u.slice(g)+Jt+x):u+Jt+(g===-2?c:x)}return[El(t,a+(t[o]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},yo=class t{constructor({strings:e,_$litType$:o},i){let n;this.parts=[];let a=0,s=0,c=e.length-1,u=this.parts,[p,h]=Tu(e,o);if(this.el=t.createElement(p,i),Sr.currentNode=this.el.content,o===2||o===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=Sr.nextNode())!==null&&u.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(xl)){let b=h[s++],x=n.getAttribute(g).split(Jt),S=/([.?@])?(.*)/.exec(b);u.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?yn:S[1]==="?"?mn:S[1]==="@"?bn:Vr}),n.removeAttribute(g)}else g.startsWith(Jt)&&(u.push({type:6,index:a}),n.removeAttribute(g));if(Sl.test(n.tagName)){let g=n.textContent.split(Jt),b=g.length-1;if(b>0){n.textContent=Vo?Vo.emptyScript:"";for(let x=0;x<b;x++)n.append(g[x],jo()),Sr.nextNode(),u.push({type:2,index:++a});n.append(g[b],jo())}}}else if(n.nodeType===8)if(n.data===vl)u.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(Jt,g+1))!==-1;)u.push({type:7,index:a}),g+=Jt.length-1}a++}}static createElement(e,o){let i=Cr.createElement("template");return i.innerHTML=e,i}};function Gr(t,e,o=t,i){if(e===go)return e;let n=i!==void 0?o._$Co?.[i]:o._$Cl,a=ho(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,o,i)),i!==void 0?(o._$Co??=[])[i]=n:o._$Cl=n),n!==void 0&&(e=Gr(t,n._$AS(t,e.values),n,i)),e}var gn=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:i}=this._$AD,n=(e?.creationScope??Cr).importNode(o,!0);Sr.currentNode=n;let a=Sr.nextNode(),s=0,c=0,u=i[0];for(;u!==void 0;){if(s===u.index){let p;u.type===2?p=new Ko(a,a.nextSibling,this,e):u.type===1?p=new u.ctor(a,u.name,u.strings,this,e):u.type===6&&(p=new xn(a,this,e)),this._$AV.push(p),u=i[++c]}s!==u?.index&&(a=Sr.nextNode(),s++)}return Sr.currentNode=Cr,n}p(e){let o=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,o),o+=i.strings.length-2):i._$AI(e[o])),o++}},Ko=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,i,n){this.type=2,this._$AH=ve,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=Gr(this,e,o),ho(e)?e===ve||e==null||e===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):e!==this._$AH&&e!==go&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ru(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&&ho(this._$AH)?this._$AA.nextSibling.data=e:this.T(Cr.createTextNode(e)),this._$AH=e}$(e){let{values:o,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=yo.createElement(El(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(o);else{let a=new gn(n,this),s=a.u(this.options);a.p(o),this.T(s),this._$AH=a}}_$AC(e){let o=bl.get(e.strings);return o===void 0&&bl.set(e.strings,o=new yo(e)),o}k(e){Sn(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,i,n=0;for(let a of e)n===o.length?o.push(i=new t(this.O(jo()),this.O(jo()),this,this.options)):i=o[n],i._$AI(a),n++;n<o.length&&(this._$AR(i&&i._$AB.nextSibling,n),o.length=n)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Vr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,i,n,a){this.type=1,this._$AH=ve,this._$AN=void 0,this.element=e,this.name=o,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,o=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Gr(this,e,o,0),s=!ho(e)||e!==this._$AH&&e!==go,s&&(this._$AH=e);else{let c=e,u,p;for(e=a[0],u=0;u<a.length-1;u++)p=Gr(this,c[i+u],o,u),p===go&&(p=this._$AH[u]),s||=!ho(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??"")}},yn=class extends Vr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ve?void 0:e}},mn=class extends Vr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ve)}},bn=class extends Vr{constructor(e,o,i,n,a){super(e,o,i,n,a),this.type=5}_$AI(e,o=this){if((e=Gr(this,e,o,0)??ve)===go)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)}},xn=class{constructor(e,o,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Gr(this,e)}};var Iu=vn.litHtmlPolyfillSupport;Iu?.(yo,Ko),(vn.litHtmlVersions??=[]).push("3.3.0");var Rl=Symbol.for(""),_u=t=>{if(t?.r===Rl)return t?._$litStatic$},On=t=>({_$litStatic$:t,r:Rl});var Al=new Map,wn=t=>(e,...o)=>{let i=o.length,n,a,s=[],c=[],u,p=0,h=!1;for(;p<i;){for(u=e[p];p<i&&(a=o[p],(n=_u(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=Al.get(g))===void 0&&(s.raw=s,Al.set(g,e=s)),o=c}return t(e,...o)},En=wn(Cl),Ym=wn(Ol),Xm=wn(wl);var An=m(Z()),Il=m(T());var er;(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"})(er||(er={}));var Tl=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},fe=class extends Il.FtLitElement{constructor(){super(...arguments),this.variant=er.body1}render(){return this.element?En`
532
- <${On(this.element)}
530
+ `;var Ru=m(zs(),1);var Hs;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Hs||(Hs={}));var Ws;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Ws||(Ws={}));var Gs;(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"})(Gs||(Gs={}));var Vs;(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"})(Vs||(Vs={}));var js;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(js||(js={}));var Ks;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ks||(Ks={}));var Zs;(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.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",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"})(Zs||(Zs={}));var qs;(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"})(qs||(qs={}));var Ys;(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"})(Ys||(Ys={}));var Xs;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Xs||(Xs={}));var Qs;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Qs||(Qs={}));var Js;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Js||(Js={}));var xe;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(xe||(xe={}));var el;(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"})(el||(el={}));var tl;(function(t){t.ASC="ASC",t.DESC="DESC"})(tl||(tl={}));var rl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(rl||(rl={}));var ol;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ol||(ol={}));var il;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(il||(il={}));var nl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(nl||(nl={}));var al;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(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.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(ll||(ll={}));var cl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(cl||(cl={}));var dl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(dl||(dl={}));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 vr;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(vr||(vr={}));var ul;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(ul||(ul={}));var pl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(pl||(pl={}));var fl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(fl||(fl={}));var Au={[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 hl(t,e){return t===e||(Au[t]??[]).some(o=>hl(o,e))}function Dt(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=>hl(i,e))}var Ll=m(T());var Sn=globalThis,jo=Sn.trustedTypes,gl=jo?jo.createPolicy("lit-html",{createHTML:t=>t}):void 0,Sl="$lit$",Jt=`lit$${Math.random().toFixed(9).slice(2)}$`,Cl="?"+Jt,Tu=`<${Cl}>`,Or=document,Ko=()=>Or.createComment(""),mo=t=>t===null||typeof t!="object"&&typeof t!="function",Cn=Array.isArray,Iu=t=>Cn(t)||typeof t?.[Symbol.iterator]=="function",gn=`[
531
+ \f\r]`,yo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yl=/-->/g,ml=/>/g,Sr=RegExp(`>|${gn}(?:([^\\s"'>=/]+)(${gn}*=${gn}*(?:[^
532
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),bl=/'/g,xl=/"/g,Ol=/^(?:script|style|textarea|title)$/i,On=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),wl=On(1),El=On(2),Al=On(3),bo=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),vl=new WeakMap,Cr=Or.createTreeWalker(Or,129);function Rl(t,e){if(!Cn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return gl!==void 0?gl.createHTML(e):e}var _u=(t,e)=>{let o=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=yo;for(let c=0;c<o;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===yo?h[1]==="!--"?s=yl:h[1]!==void 0?s=ml:h[2]!==void 0?(Ol.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=Sr):h[3]!==void 0&&(s=Sr):s===Sr?h[0]===">"?(s=n??yo,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]==='"'?xl:bl):s===xl||s===bl?s=Sr:s===yl||s===ml?s=yo:(s=Sr,n=void 0);let x=s===Sr&&t[c+1].startsWith("/>")?" ":"";a+=s===yo?u+Tu:g>=0?(i.push(p),u.slice(0,g)+Sl+u.slice(g)+Jt+x):u+Jt+(g===-2?c:x)}return[Rl(t,a+(t[o]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},xo=class t{constructor({strings:e,_$litType$:o},i){let n;this.parts=[];let a=0,s=0,c=e.length-1,u=this.parts,[p,h]=_u(e,o);if(this.el=t.createElement(p,i),Cr.currentNode=this.el.content,o===2||o===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(Sl)){let b=h[s++],x=n.getAttribute(g).split(Jt),S=/([.?@])?(.*)/.exec(b);u.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?mn:S[1]==="?"?bn:S[1]==="@"?xn:Kr}),n.removeAttribute(g)}else g.startsWith(Jt)&&(u.push({type:6,index:a}),n.removeAttribute(g));if(Ol.test(n.tagName)){let g=n.textContent.split(Jt),b=g.length-1;if(b>0){n.textContent=jo?jo.emptyScript:"";for(let x=0;x<b;x++)n.append(g[x],Ko()),Cr.nextNode(),u.push({type:2,index:++a});n.append(g[b],Ko())}}}else if(n.nodeType===8)if(n.data===Cl)u.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(Jt,g+1))!==-1;)u.push({type:7,index:a}),g+=Jt.length-1}a++}}static createElement(e,o){let i=Or.createElement("template");return i.innerHTML=e,i}};function jr(t,e,o=t,i){if(e===bo)return e;let n=i!==void 0?o._$Co?.[i]:o._$Cl,a=mo(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,o,i)),i!==void 0?(o._$Co??=[])[i]=n:o._$Cl=n),n!==void 0&&(e=jr(t,n._$AS(t,e.values),n,i)),e}var yn=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:i}=this._$AD,n=(e?.creationScope??Or).importNode(o,!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 Zo(a,a.nextSibling,this,e):u.type===1?p=new u.ctor(a,u.name,u.strings,this,e):u.type===6&&(p=new vn(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 o=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,o),o+=i.strings.length-2):i._$AI(e[o])),o++}},Zo=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,i,n){this.type=2,this._$AH=ve,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=jr(this,e,o),mo(e)?e===ve||e==null||e===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):e!==this._$AH&&e!==bo&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Iu(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&&mo(this._$AH)?this._$AA.nextSibling.data=e:this.T(Or.createTextNode(e)),this._$AH=e}$(e){let{values:o,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=xo.createElement(Rl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(o);else{let a=new yn(n,this),s=a.u(this.options);a.p(o),this.T(s),this._$AH=a}}_$AC(e){let o=vl.get(e.strings);return o===void 0&&vl.set(e.strings,o=new xo(e)),o}k(e){Cn(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,i,n=0;for(let a of e)n===o.length?o.push(i=new t(this.O(Ko()),this.O(Ko()),this,this.options)):i=o[n],i._$AI(a),n++;n<o.length&&(this._$AR(i&&i._$AB.nextSibling,n),o.length=n)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Kr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,i,n,a){this.type=1,this._$AH=ve,this._$AN=void 0,this.element=e,this.name=o,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,o=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=jr(this,e,o,0),s=!mo(e)||e!==this._$AH&&e!==bo,s&&(this._$AH=e);else{let c=e,u,p;for(e=a[0],u=0;u<a.length-1;u++)p=jr(this,c[i+u],o,u),p===bo&&(p=this._$AH[u]),s||=!mo(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??"")}},mn=class extends Kr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ve?void 0:e}},bn=class extends Kr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ve)}},xn=class extends Kr{constructor(e,o,i,n,a){super(e,o,i,n,a),this.type=5}_$AI(e,o=this){if((e=jr(this,e,o,0)??ve)===bo)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)}},vn=class{constructor(e,o,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){jr(this,e)}};var Nu=Sn.litHtmlPolyfillSupport;Nu?.(xo,Zo),(Sn.litHtmlVersions??=[]).push("3.3.0");var Il=Symbol.for(""),Lu=t=>{if(t?.r===Il)return t?._$litStatic$},wn=t=>({_$litStatic$:t,r:Il});var Tl=new Map,En=t=>(e,...o)=>{let i=o.length,n,a,s=[],c=[],u,p=0,h=!1;for(;p<i;){for(u=e[p];p<i&&(a=o[p],(n=Lu(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=Tl.get(g))===void 0&&(s.raw=s,Tl.set(g,e=s)),o=c}return t(e,...o)},An=En(wl),ob=En(El),ib=En(Al);var Rn=m(Z()),Nl=m(T());var er;(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"})(er||(er={}));var _l=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},fe=class extends Nl.FtLitElement{constructor(){super(...arguments),this.variant=er.body1}render(){return this.element?An`
533
+ <${wn(this.element)}
533
534
  part="text"
534
535
  class="ft-typography ft-typography--${this.variant}">
535
536
  <slot></slot>
536
- </${On(this.element)}>
537
- `:En`
537
+ </${wn(this.element)}>
538
+ `:An`
538
539
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
539
- `}};fe.styles=[xs,vs,Ss,Cs,zr,Os,Hr,ws,Es,As,Rs,...Ts];Tl([(0,An.property)()],fe.prototype,"element",void 0);Tl([(0,An.property)()],fe.prototype,"variant",void 0);(0,_l.customElement)("ft-typography")(fe);var zn=m(T());var ei=m(B()),It=m(Z()),bc=m($t()),zt=m(T());var Xr=m(B()),Je=m(Z()),Qr=m(T());var Pl=m(T());var Ll=m(B()),Le=m(Z()),kl=m($t()),mo=m(T());var Ye=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},K=class extends mo.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 mo.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 mo.Debouncer(10),this.moveRipple=e=>{var o,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(o=this.ripple)===null||o===void 0?void 0:o.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 Ll.html`
540
+ `}};fe.styles=[vs,Ss,Cs,Os,Wr,ws,Gr,Es,As,Rs,Ts,...Is];_l([(0,Rn.property)()],fe.prototype,"element",void 0);_l([(0,Rn.property)()],fe.prototype,"variant",void 0);(0,Ll.customElement)("ft-typography")(fe);var Hn=m(T());var ti=m(B()),_t=m(Z()),vc=m($t()),zt=m(T());var Jr=m(B()),Je=m(Z()),eo=m(T());var $l=m(T());var Pl=m(B()),ke=m(Z()),Dl=m($t()),vo=m(T());var Ye=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},K=class extends vo.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 vo.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 vo.Debouncer(10),this.moveRipple=e=>{var o,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(o=this.ripple)===null||o===void 0?void 0:o.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 Pl.html`
540
541
  <style>
541
542
  .ft-ripple .ft-ripple--effect {
542
543
  left: ${this.originX}px;
543
544
  top: ${this.originY}px;
544
545
  }
545
546
  </style>
546
- <div class="${(0,kl.classMap)(e)}">
547
+ <div class="${(0,Dl.classMap)(e)}">
547
548
  <div class="ft-ripple--background"></div>
548
549
  <div class="ft-ripple--effect"></div>
549
550
  </div>
550
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.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,o;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((o=this.target)!==null&&o!==void 0?o: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 o=(...c)=>u=>{c.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},i=o("mouseup","contextmenu"),n=o("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&o("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 o=e,i=e,n,a;return o.x!=null?{x:n,y:a}=o: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 o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};K.elementDefinitions={};K.styles=ja;Ye([(0,Le.property)({type:Boolean})],K.prototype,"primary",void 0);Ye([(0,Le.property)({type:Boolean})],K.prototype,"secondary",void 0);Ye([(0,Le.property)({type:Boolean})],K.prototype,"unbounded",void 0);Ye([(0,Le.property)({type:Boolean})],K.prototype,"activated",void 0);Ye([(0,Le.property)({type:Boolean})],K.prototype,"selected",void 0);Ye([(0,Le.property)({type:Boolean})],K.prototype,"disabled",void 0);Ye([(0,Le.state)()],K.prototype,"hovered",void 0);Ye([(0,Le.state)()],K.prototype,"focused",void 0);Ye([(0,Le.state)()],K.prototype,"pressed",void 0);Ye([(0,Le.state)()],K.prototype,"rippling",void 0);Ye([(0,Le.state)()],K.prototype,"originX",void 0);Ye([(0,Le.state)()],K.prototype,"originY",void 0);Ye([(0,Le.query)(".ft-ripple")],K.prototype,"ripple",void 0);Ye([(0,Le.query)(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);(0,Pl.customElement)("ft-ripple")(K);var mc=m($t());var cc=m(T());var lc=m(B()),Oe=m(Z()),Co=m(T());var Dl=m(B()),Bt=m(T()),jr={distance:Bt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Bt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Bt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Bt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Bt.FtCssVariableFactory.external(Bt.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Bt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},$l=Dl.css`
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 o,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.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,o;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((o=this.target)!==null&&o!==void 0?o: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 o=(...c)=>u=>{c.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},i=o("mouseup","contextmenu"),n=o("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&o("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 o=e,i=e,n,a;return o.x!=null?{x:n,y:a}=o: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 o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};K.elementDefinitions={};K.styles=Ka;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,$l.customElement)("ft-ripple")(K);var xc=m($t());var uc=m(T());var dc=m(B()),Oe=m(Z()),rr=m(T());var Bl=m(B()),Bt=m(T()),Zr={distance:Bt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Bt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Bt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Bt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Bt.FtCssVariableFactory.external(Bt.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Bt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ml=Bl.css`
551
552
  .ft-tooltip--container {
552
553
  display: block;
553
554
  }
@@ -562,21 +563,21 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
562
563
  box-sizing: border-box;
563
564
  overflow: hidden;
564
565
  width: max-content;
565
- max-width: ${jr.maxWidth};
566
+ max-width: ${Zr.maxWidth};
566
567
  text-align: center;
567
- padding: ${jr.distance};
568
- z-index: ${jr.zIndex};
568
+ padding: ${Zr.distance};
569
+ z-index: ${Zr.zIndex};
569
570
  }
570
571
 
571
572
  .ft-tooltip--content {
572
573
  padding: 4px 8px;
573
- border-radius: ${jr.borderRadiusS};
574
- background-color: ${jr.backgroundColor};
575
- color: ${jr.color};
574
+ border-radius: ${Zr.borderRadiusS};
575
+ background-color: ${Zr.backgroundColor};
576
+ color: ${Zr.color};
576
577
  position: relative;
577
578
  word-break: break-word;
578
579
  }
579
- `;var Ml=["top","right","bottom","left"],Bl=["start","end"],Tn=Ml.reduce((t,e)=>t.concat(e,e+"-"+Bl[0],e+"-"+Bl[1]),[]),Fl=Math.min,Ul=Math.max;var Nu={left:"right",right:"left",bottom:"top",top:"bottom"},Lu={start:"end",end:"start"};function In(t,e,o){return Ul(t,Fl(e,o))}function Zo(t,e){return typeof t=="function"?t(e):t}function Kr(t){return t.split("-")[0]}function tr(t){return t.split("-")[1]}function _n(t){return t==="x"?"y":"x"}function Nn(t){return t==="y"?"height":"width"}function qo(t){return["top","bottom"].includes(Kr(t))?"y":"x"}function Ln(t){return _n(qo(t))}function zl(t,e,o){o===void 0&&(o=!1);let i=tr(t),n=Ln(t),a=Nn(n),s=n==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Rn(s)),[s,Rn(s)]}function Hl(t){return t.replace(/start|end/g,e=>Lu[e])}function Rn(t){return t.replace(/left|right|bottom|top/g,e=>Nu[e])}function ku(t){return{top:0,right:0,bottom:0,left:0,...t}}function Wl(t){return typeof t!="number"?ku(t):{top:t,right:t,bottom:t,left:t}}function Or(t){let{x:e,y:o,width:i,height:n}=t;return{width:i,height:n,top:o,left:e,right:e+i,bottom:o+n,x:e,y:o}}function Gl(t,e,o){let{reference:i,floating:n}=t,a=qo(e),s=Ln(e),c=Nn(s),u=Kr(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(tr(e)){case"start":x[s]-=b*(o&&p?-1:1);break;case"end":x[s]+=b*(o&&p?-1:1);break}return x}var Vl=async(t,e,o)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,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}=Gl(p,i,u),b=i,x={},S=0;for(let O=0;O<c.length;O++){let{name:N,fn:I}=c[O],{x:_,y:$,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=_??h,g=$??g,x={...x,[N]:{...x[N],...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}=Gl(p,b,u)),O=-1)}return{x:h,y:g,placement:b,strategy:n,middlewareData:x}};async function kn(t,e){var o;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}=Zo(e,t),S=Wl(x),N=c[b?g==="floating"?"reference":"floating":g],I=Or(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(N)))==null||o?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:h,strategy:u})),_=g==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),H=await(a.isElement==null?void 0:a.isElement($))?await(a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},W=Or(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:_,offsetParent:$,strategy:u}):_);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 Pu(t,e,o){return(t?[...o.filter(n=>tr(n)===t),...o.filter(n=>tr(n)!==t)]:o.filter(n=>Kr(n)===n)).filter(n=>t?tr(n)===t||(e?Hl(n)!==n:!1):!0)}var Pn=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,n;let{rects:a,middlewareData:s,placement:c,platform:u,elements:p}=e,{crossAxis:h=!1,alignment:g,allowedPlacements:b=Tn,autoAlignment:x=!0,...S}=Zo(t,e),O=g!==void 0||b===Tn?Pu(g||null,x,b):b,N=await kn(e,S),I=((o=s.autoPlacement)==null?void 0:o.index)||0,_=O[I];if(_==null)return{};let $=zl(_,a,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(c!==_)return{reset:{placement:O[0]}};let H=[N[Kr(_)],N[$[0]],N[$[1]]],W=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:_,overflows:H}],qe=O[I+1];if(qe)return{data:{index:I+1,overflows:W},reset:{placement:qe}};let wt=W.map(_e=>{let y=tr(_e.placement);return[_e.placement,y&&h?_e.overflows.slice(0,2).reduce((v,P)=>v+P,0):_e.overflows[0],_e.overflows]}).sort((_e,y)=>_e[1]-y[1]),Et=((n=wt.filter(_e=>_e[2].slice(0,tr(_e[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||wt[0][0];return Et!==c?{data:{index:I+1,overflows:W},reset:{placement:Et}}:{}}}};var Dn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:N=>{let{x:I,y:_}=N;return{x:I,y:_}}},...u}=Zo(t,e),p={x:o,y:i},h=await kn(e,u),g=qo(Kr(n)),b=_n(g),x=p[b],S=p[g];if(a){let N=b==="y"?"top":"left",I=b==="y"?"bottom":"right",_=x+h[N],$=x-h[I];x=In(_,x,$)}if(s){let N=g==="y"?"top":"left",I=g==="y"?"bottom":"right",_=S+h[N],$=S-h[I];S=In(_,S,$)}let O=c.fn({...e,[b]:x,[g]:S});return{...O,data:{x:O.x-o,y:O.y-i,enabled:{[b]:a,[g]:s}}}}}};var $n=Math.min,Zr=Math.max,bo=Math.round;var Mt=t=>({x:t,y:t});function Ft(t){return Kl(t)?(t.nodeName||"").toLowerCase():"#document"}function Xe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ut(t){var e;return(e=(Kl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Kl(t){return t instanceof Node||t instanceof Xe(t).Node}function Tt(t){return t instanceof Element||t instanceof Xe(t).Element}function mt(t){return t instanceof HTMLElement||t instanceof Xe(t).HTMLElement}function jl(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Xe(t).ShadowRoot}function qr(t){let{overflow:e,overflowX:o,overflowY:i,display:n}=rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(n)}function Zl(t){return["table","td","th"].includes(Ft(t))}function Xo(t){let e=Qo(),o=rt(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(o.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(o.contain||"").includes(i))}function ql(t){let e=wr(t);for(;mt(e)&&!xo(e);){if(Xo(e))return e;e=wr(e)}return null}function Qo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function xo(t){return["html","body","#document"].includes(Ft(t))}function rt(t){return Xe(t).getComputedStyle(t)}function vo(t){return Tt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function wr(t){if(Ft(t)==="html")return t;let e=t.assignedSlot||t.parentNode||jl(t)&&t.host||Ut(t);return jl(e)?e.host:e}function Yl(t){let e=wr(t);return xo(e)?t.ownerDocument?t.ownerDocument.body:t.body:mt(e)&&qr(e)?e:Yl(e)}function Yo(t,e,o){var i;e===void 0&&(e=[]),o===void 0&&(o=!0);let n=Yl(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&&o?Yo(s.frameElement):[]):e.concat(n,Yo(n,[],o))}function Jl(t){let e=rt(t),o=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=mt(t),a=n?t.offsetWidth:o,s=n?t.offsetHeight:i,c=bo(o)!==a||bo(i)!==s;return c&&(o=a,i=s),{width:o,height:i,$:c}}function ec(t){return Tt(t)?t:t.contextElement}function Yr(t){let e=ec(t);if(!mt(e))return Mt(1);let o=e.getBoundingClientRect(),{width:i,height:n,$:a}=Jl(e),s=(a?bo(o.width):o.width)/i,c=(a?bo(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Bu=Mt(0);function tc(t){let e=Xe(t);return!Qo()||!e.visualViewport?Bu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Mu(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==Xe(t)?!1:e}function So(t,e,o,i){e===void 0&&(e=!1),o===void 0&&(o=!1);let n=t.getBoundingClientRect(),a=ec(t),s=Mt(1);e&&(i?Tt(i)&&(s=Yr(i)):s=Yr(t));let c=Mu(a,o,i)?tc(a):Mt(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&&Tt(i)?Xe(i):i,S=b.frameElement;for(;S&&i&&x!==b;){let O=Yr(S),N=S.getBoundingClientRect(),I=rt(S),_=N.left+(S.clientLeft+parseFloat(I.paddingLeft))*O.x,$=N.top+(S.clientTop+parseFloat(I.paddingTop))*O.y;u*=O.x,p*=O.y,h*=O.x,g*=O.y,u+=_,p+=$,S=Xe(S).frameElement}}return Or({width:h,height:g,x:u,y:p})}function Fu(t){let{rect:e,offsetParent:o,strategy:i}=t,n=mt(o),a=Ut(o);if(o===a)return e;let s={scrollLeft:0,scrollTop:0},c=Mt(1),u=Mt(0);if((n||!n&&i!=="fixed")&&((Ft(o)!=="body"||qr(a))&&(s=vo(o)),mt(o))){let p=So(o);c=Yr(o),u.x=p.x+o.clientLeft,u.y=p.y+o.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 Uu(t){return Array.from(t.getClientRects())}function rc(t){return So(Ut(t)).left+vo(t).scrollLeft}function zu(t){let e=Ut(t),o=vo(t),i=t.ownerDocument.body,n=Zr(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=Zr(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-o.scrollLeft+rc(t),c=-o.scrollTop;return rt(i).direction==="rtl"&&(s+=Zr(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function Hu(t,e){let o=Xe(t),i=Ut(t),n=o.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,u=0;if(n){a=n.width,s=n.height;let p=Qo();(!p||p&&e==="fixed")&&(c=n.offsetLeft,u=n.offsetTop)}return{width:a,height:s,x:c,y:u}}function Wu(t,e){let o=So(t,!0,e==="fixed"),i=o.top+t.clientTop,n=o.left+t.clientLeft,a=mt(t)?Yr(t):Mt(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 Xl(t,e,o){let i;if(e==="viewport")i=Hu(t,o);else if(e==="document")i=zu(Ut(t));else if(Tt(e))i=Wu(e,o);else{let n=tc(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return Or(i)}function oc(t,e){let o=wr(t);return o===e||!Tt(o)||xo(o)?!1:rt(o).position==="fixed"||oc(o,e)}function Gu(t,e){let o=e.get(t);if(o)return o;let i=Yo(t,[],!1).filter(c=>Tt(c)&&Ft(c)!=="body"),n=null,a=rt(t).position==="fixed",s=a?wr(t):t;for(;Tt(s)&&!xo(s);){let c=rt(s),u=Xo(s);!u&&c.position==="fixed"&&(n=null),(a?!u&&!n:!u&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||qr(s)&&!u&&oc(t,s))?i=i.filter(h=>h!==s):n=c,s=wr(s)}return e.set(t,i),i}function Vu(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t,s=[...o==="clippingAncestors"?Gu(e,this._c):[].concat(o),i],c=s[0],u=s.reduce((p,h)=>{let g=Xl(e,h,n);return p.top=Zr(g.top,p.top),p.right=$n(g.right,p.right),p.bottom=$n(g.bottom,p.bottom),p.left=Zr(g.left,p.left),p},Xl(e,c,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function ju(t){return Jl(t)}function Ku(t,e,o){let i=mt(e),n=Ut(e),a=o==="fixed",s=So(t,!0,a,e),c={scrollLeft:0,scrollTop:0},u=Mt(0);if(i||!i&&!a)if((Ft(e)!=="body"||qr(n))&&(c=vo(e)),i){let p=So(e,!0,a,e);u.x=p.x+e.clientLeft,u.y=p.y+e.clientTop}else n&&(u.x=rc(n));return{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function Ql(t,e){return!mt(t)||rt(t).position==="fixed"?null:e?e(t):t.offsetParent}function ic(t,e){let o=Xe(t);if(!mt(t))return o;let i=Ql(t,e);for(;i&&Zl(i)&&rt(i).position==="static";)i=Ql(i,e);return i&&(Ft(i)==="html"||Ft(i)==="body"&&rt(i).position==="static"&&!Xo(i))?o:i||ql(t)||o}var Zu=async function(t){let{reference:e,floating:o,strategy:i}=t,n=this.getOffsetParent||ic,a=this.getDimensions;return{reference:Ku(e,await n(o),i),floating:{x:0,y:0,...await a(o)}}};function qu(t){return rt(t).direction==="rtl"}var Jo={convertOffsetParentRelativeRectToViewportRelativeRect:Fu,getDocumentElement:Ut,getClippingRect:Vu,getOffsetParent:ic,getElementRects:Zu,getClientRects:Uu,getDimensions:ju,getScale:Yr,isElement:Tt,isRTL:qu};var nc=(t,e,o)=>{let i=new Map,n={platform:Jo,...o},a={...n.platform,_c:i};return Vl(t,e,{...n,platform:a})};function ac(t){return Yu(t)}function Bn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Yu(t){for(let e=t;e;e=Bn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Bn(t);e;e=Bn(e)){if(!(e instanceof Element))continue;let o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}async function sc(t,e,o){return nc(t,e,{platform:{...Jo,getOffsetParent:i=>Jo.getOffsetParent(i,ac)},middleware:[Dn({crossAxis:!0}),Pn({allowedPlacements:[o]})]})}var Qe=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ne=class extends Co.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Co.Debouncer,this.revealDebouncer=new Co.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return lc.html`
580
+ `;var Ul=["top","right","bottom","left"],Fl=["start","end"],In=Ul.reduce((t,e)=>t.concat(e,e+"-"+Fl[0],e+"-"+Fl[1]),[]),zl=Math.min,Hl=Math.max;var ku={left:"right",right:"left",bottom:"top",top:"bottom"},Pu={start:"end",end:"start"};function _n(t,e,o){return Hl(t,zl(e,o))}function qo(t,e){return typeof t=="function"?t(e):t}function qr(t){return t.split("-")[0]}function tr(t){return t.split("-")[1]}function Nn(t){return t==="x"?"y":"x"}function Ln(t){return t==="y"?"height":"width"}function Yo(t){return["top","bottom"].includes(qr(t))?"y":"x"}function kn(t){return Nn(Yo(t))}function Wl(t,e,o){o===void 0&&(o=!1);let i=tr(t),n=kn(t),a=Ln(n),s=n==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Tn(s)),[s,Tn(s)]}function Gl(t){return t.replace(/start|end/g,e=>Pu[e])}function Tn(t){return t.replace(/left|right|bottom|top/g,e=>ku[e])}function Du(t){return{top:0,right:0,bottom:0,left:0,...t}}function Vl(t){return typeof t!="number"?Du(t):{top:t,right:t,bottom:t,left:t}}function wr(t){let{x:e,y:o,width:i,height:n}=t;return{width:i,height:n,top:o,left:e,right:e+i,bottom:o+n,x:e,y:o}}function jl(t,e,o){let{reference:i,floating:n}=t,a=Yo(e),s=kn(e),c=Ln(s),u=qr(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(tr(e)){case"start":x[s]-=b*(o&&p?-1:1);break;case"end":x[s]+=b*(o&&p?-1:1);break}return x}var Kl=async(t,e,o)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,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}=jl(p,i,u),b=i,x={},S=0;for(let O=0;O<c.length;O++){let{name:N,fn:I}=c[O],{x:_,y:$,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=_??h,g=$??g,x={...x,[N]:{...x[N],...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}=jl(p,b,u)),O=-1)}return{x:h,y:g,placement:b,strategy:n,middlewareData:x}};async function Pn(t,e){var o;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}=qo(e,t),S=Vl(x),N=c[b?g==="floating"?"reference":"floating":g],I=wr(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(N)))==null||o?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:h,strategy:u})),_=g==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),H=await(a.isElement==null?void 0:a.isElement($))?await(a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},W=wr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:_,offsetParent:$,strategy:u}):_);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 $u(t,e,o){return(t?[...o.filter(n=>tr(n)===t),...o.filter(n=>tr(n)!==t)]:o.filter(n=>qr(n)===n)).filter(n=>t?tr(n)===t||(e?Gl(n)!==n:!1):!0)}var Dn=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,n;let{rects:a,middlewareData:s,placement:c,platform:u,elements:p}=e,{crossAxis:h=!1,alignment:g,allowedPlacements:b=In,autoAlignment:x=!0,...S}=qo(t,e),O=g!==void 0||b===In?$u(g||null,x,b):b,N=await Pn(e,S),I=((o=s.autoPlacement)==null?void 0:o.index)||0,_=O[I];if(_==null)return{};let $=Wl(_,a,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(c!==_)return{reset:{placement:O[0]}};let H=[N[qr(_)],N[$[0]],N[$[1]]],W=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:_,overflows:H}],qe=O[I+1];if(qe)return{data:{index:I+1,overflows:W},reset:{placement:qe}};let Et=W.map(Ne=>{let y=tr(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]),At=((n=Et.filter(Ne=>Ne[2].slice(0,tr(Ne[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||Et[0][0];return At!==c?{data:{index:I+1,overflows:W},reset:{placement:At}}:{}}}};var $n=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:N=>{let{x:I,y:_}=N;return{x:I,y:_}}},...u}=qo(t,e),p={x:o,y:i},h=await Pn(e,u),g=Yo(qr(n)),b=Nn(g),x=p[b],S=p[g];if(a){let N=b==="y"?"top":"left",I=b==="y"?"bottom":"right",_=x+h[N],$=x-h[I];x=_n(_,x,$)}if(s){let N=g==="y"?"top":"left",I=g==="y"?"bottom":"right",_=S+h[N],$=S-h[I];S=_n(_,S,$)}let O=c.fn({...e,[b]:x,[g]:S});return{...O,data:{x:O.x-o,y:O.y-i,enabled:{[b]:a,[g]:s}}}}}};var Bn=Math.min,Yr=Math.max,So=Math.round;var Mt=t=>({x:t,y:t});function Ft(t){return ql(t)?(t.nodeName||"").toLowerCase():"#document"}function Xe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ut(t){var e;return(e=(ql(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ql(t){return t instanceof Node||t instanceof Xe(t).Node}function It(t){return t instanceof Element||t instanceof Xe(t).Element}function bt(t){return t instanceof HTMLElement||t instanceof Xe(t).HTMLElement}function Zl(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Xe(t).ShadowRoot}function Xr(t){let{overflow:e,overflowX:o,overflowY:i,display:n}=rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(n)}function Yl(t){return["table","td","th"].includes(Ft(t))}function Qo(t){let e=Jo(),o=rt(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(o.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(o.contain||"").includes(i))}function Xl(t){let e=Er(t);for(;bt(e)&&!Co(e);){if(Qo(e))return e;e=Er(e)}return null}function Jo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Co(t){return["html","body","#document"].includes(Ft(t))}function rt(t){return Xe(t).getComputedStyle(t)}function Oo(t){return It(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Er(t){if(Ft(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Zl(t)&&t.host||Ut(t);return Zl(e)?e.host:e}function Ql(t){let e=Er(t);return Co(e)?t.ownerDocument?t.ownerDocument.body:t.body:bt(e)&&Xr(e)?e:Ql(e)}function Xo(t,e,o){var i;e===void 0&&(e=[]),o===void 0&&(o=!0);let n=Ql(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Xe(n);return a?e.concat(s,s.visualViewport||[],Xr(n)?n:[],s.frameElement&&o?Xo(s.frameElement):[]):e.concat(n,Xo(n,[],o))}function tc(t){let e=rt(t),o=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=bt(t),a=n?t.offsetWidth:o,s=n?t.offsetHeight:i,c=So(o)!==a||So(i)!==s;return c&&(o=a,i=s),{width:o,height:i,$:c}}function rc(t){return It(t)?t:t.contextElement}function Qr(t){let e=rc(t);if(!bt(e))return Mt(1);let o=e.getBoundingClientRect(),{width:i,height:n,$:a}=tc(e),s=(a?So(o.width):o.width)/i,c=(a?So(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Fu=Mt(0);function oc(t){let e=Xe(t);return!Jo()||!e.visualViewport?Fu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Uu(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==Xe(t)?!1:e}function wo(t,e,o,i){e===void 0&&(e=!1),o===void 0&&(o=!1);let n=t.getBoundingClientRect(),a=rc(t),s=Mt(1);e&&(i?It(i)&&(s=Qr(i)):s=Qr(t));let c=Uu(a,o,i)?oc(a):Mt(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&&It(i)?Xe(i):i,S=b.frameElement;for(;S&&i&&x!==b;){let O=Qr(S),N=S.getBoundingClientRect(),I=rt(S),_=N.left+(S.clientLeft+parseFloat(I.paddingLeft))*O.x,$=N.top+(S.clientTop+parseFloat(I.paddingTop))*O.y;u*=O.x,p*=O.y,h*=O.x,g*=O.y,u+=_,p+=$,S=Xe(S).frameElement}}return wr({width:h,height:g,x:u,y:p})}function zu(t){let{rect:e,offsetParent:o,strategy:i}=t,n=bt(o),a=Ut(o);if(o===a)return e;let s={scrollLeft:0,scrollTop:0},c=Mt(1),u=Mt(0);if((n||!n&&i!=="fixed")&&((Ft(o)!=="body"||Xr(a))&&(s=Oo(o)),bt(o))){let p=wo(o);c=Qr(o),u.x=p.x+o.clientLeft,u.y=p.y+o.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 Hu(t){return Array.from(t.getClientRects())}function ic(t){return wo(Ut(t)).left+Oo(t).scrollLeft}function Wu(t){let e=Ut(t),o=Oo(t),i=t.ownerDocument.body,n=Yr(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=Yr(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-o.scrollLeft+ic(t),c=-o.scrollTop;return rt(i).direction==="rtl"&&(s+=Yr(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function Gu(t,e){let o=Xe(t),i=Ut(t),n=o.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,u=0;if(n){a=n.width,s=n.height;let p=Jo();(!p||p&&e==="fixed")&&(c=n.offsetLeft,u=n.offsetTop)}return{width:a,height:s,x:c,y:u}}function Vu(t,e){let o=wo(t,!0,e==="fixed"),i=o.top+t.clientTop,n=o.left+t.clientLeft,a=bt(t)?Qr(t):Mt(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 Jl(t,e,o){let i;if(e==="viewport")i=Gu(t,o);else if(e==="document")i=Wu(Ut(t));else if(It(e))i=Vu(e,o);else{let n=oc(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return wr(i)}function nc(t,e){let o=Er(t);return o===e||!It(o)||Co(o)?!1:rt(o).position==="fixed"||nc(o,e)}function ju(t,e){let o=e.get(t);if(o)return o;let i=Xo(t,[],!1).filter(c=>It(c)&&Ft(c)!=="body"),n=null,a=rt(t).position==="fixed",s=a?Er(t):t;for(;It(s)&&!Co(s);){let c=rt(s),u=Qo(s);!u&&c.position==="fixed"&&(n=null),(a?!u&&!n:!u&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Xr(s)&&!u&&nc(t,s))?i=i.filter(h=>h!==s):n=c,s=Er(s)}return e.set(t,i),i}function Ku(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t,s=[...o==="clippingAncestors"?ju(e,this._c):[].concat(o),i],c=s[0],u=s.reduce((p,h)=>{let g=Jl(e,h,n);return p.top=Yr(g.top,p.top),p.right=Bn(g.right,p.right),p.bottom=Bn(g.bottom,p.bottom),p.left=Yr(g.left,p.left),p},Jl(e,c,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Zu(t){return tc(t)}function qu(t,e,o){let i=bt(e),n=Ut(e),a=o==="fixed",s=wo(t,!0,a,e),c={scrollLeft:0,scrollTop:0},u=Mt(0);if(i||!i&&!a)if((Ft(e)!=="body"||Xr(n))&&(c=Oo(e)),i){let p=wo(e,!0,a,e);u.x=p.x+e.clientLeft,u.y=p.y+e.clientTop}else n&&(u.x=ic(n));return{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function ec(t,e){return!bt(t)||rt(t).position==="fixed"?null:e?e(t):t.offsetParent}function ac(t,e){let o=Xe(t);if(!bt(t))return o;let i=ec(t,e);for(;i&&Yl(i)&&rt(i).position==="static";)i=ec(i,e);return i&&(Ft(i)==="html"||Ft(i)==="body"&&rt(i).position==="static"&&!Qo(i))?o:i||Xl(t)||o}var Yu=async function(t){let{reference:e,floating:o,strategy:i}=t,n=this.getOffsetParent||ac,a=this.getDimensions;return{reference:qu(e,await n(o),i),floating:{x:0,y:0,...await a(o)}}};function Xu(t){return rt(t).direction==="rtl"}var ei={convertOffsetParentRelativeRectToViewportRelativeRect:zu,getDocumentElement:Ut,getClippingRect:Ku,getOffsetParent:ac,getElementRects:Yu,getClientRects:Hu,getDimensions:Zu,getScale:Qr,isElement:It,isRTL:Xu};var sc=(t,e,o)=>{let i=new Map,n={platform:ei,...o},a={...n.platform,_c:i};return Kl(t,e,{...n,platform:a})};function lc(t){return Qu(t)}function Mn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Qu(t){for(let e=t;e;e=Mn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Mn(t);e;e=Mn(e)){if(!(e instanceof Element))continue;let o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}async function cc(t,e,o){return sc(t,e,{platform:{...ei,getOffsetParent:i=>ei.getOffsetParent(i,lc)},middleware:[$n({crossAxis:!0}),Dn({allowedPlacements:[o]})]})}var Qe=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ne=class extends rr.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new rr.Debouncer,this.revealDebouncer=new rr.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return dc.html`
580
581
  <div part="container"
581
582
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
582
583
  @mouseenter=${this.onHover}
@@ -594,12 +595,12 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
594
595
  </div>
595
596
  </div>
596
597
  </div>
597
- `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,o){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(o),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",sc(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};ne.elementDefinitions={"ft-typography":fe};ne.styles=$l;Qe([(0,Oe.property)()],ne.prototype,"text",void 0);Qe([(0,Oe.property)({type:Boolean})],ne.prototype,"manual",void 0);Qe([(0,Oe.property)({type:Boolean})],ne.prototype,"inline",void 0);Qe([(0,Oe.property)({type:Number})],ne.prototype,"delay",void 0);Qe([(0,Oe.property)()],ne.prototype,"position",void 0);Qe([(0,Oe.queryAssignedNodes)()],ne.prototype,"slotNodes",void 0);Qe([(0,Oe.query)(".ft-tooltip--container")],ne.prototype,"container",void 0);Qe([(0,Oe.query)(".ft-tooltip")],ne.prototype,"tooltip",void 0);Qe([(0,Oe.query)(".ft-tooltip--content")],ne.prototype,"tooltipContent",void 0);Qe([(0,Oe.state)()],ne.prototype,"visible",void 0);Qe([(0,Oe.eventOptions)({passive:!0})],ne.prototype,"onTouch",null);Qe([(0,Oe.eventOptions)({passive:!0})],ne.prototype,"onHover",null);Qe([(0,Oe.eventOptions)({passive:!0})],ne.prototype,"onOut",null);Qe([(0,Oe.eventOptions)({passive:!0})],ne.prototype,"onClick",null);(0,cc.customElement)("ft-tooltip")(ne);var hc=m(T());var Oo=m(B()),rr=m(Z()),pc=m(T()),fc=m(uc());var Er;(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;"})(Er||(Er={}));var E;(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;"})(E||(E={}));var Jb=new Map([...["abw"].map(t=>[t,E.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,E.AUDIO]),...["avi"].map(t=>[t,E.AVI]),...["chm","xhs"].map(t=>[t,E.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,E.CODE]),...["csv"].map(t=>[t,E.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,E.DITA]),...["epub"].map(t=>[t,E.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,E.EXCEL]),...["flac"].map(t=>[t,E.FLAC]),...["gif"].map(t=>[t,E.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,E.GZIP]),...["html","htm","xhtml"].map(t=>[t,E.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,E.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,E.JPEG]),...["json"].map(t=>[t,E.JSON]),...["m4a","m4p"].map(t=>[t,E.M4A]),...["mov","qt"].map(t=>[t,E.MOV]),...["mp3"].map(t=>[t,E.MP3]),...["mp4","m4v"].map(t=>[t,E.MP4]),...["ogg","oga"].map(t=>[t,E.OGG]),...["pdf","ps"].map(t=>[t,E.PDF]),...["png"].map(t=>[t,E.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,E.POWERPOINT]),...["rar"].map(t=>[t,E.RAR]),...["stp"].map(t=>[t,E.STP]),...["txt","rtf","md","mdown"].map(t=>[t,E.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,E.VIDEO]),...["wav"].map(t=>[t,E.WAV]),...["wma"].map(t=>[t,E.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,E.WORD]),...["xml","xsl","rdf"].map(t=>[t,E.XML]),...["yaml","yml","x-yaml"].map(t=>[t,E.YAML]),...["zip"].map(t=>[t,E.ZIP])]);var ex={[E.ABW]:"#91ABC6",[E.AUDIO]:"#1795E3",[E.AVI]:"#E63324",[E.CHM]:"#71C3EB",[E.CODE]:"#71C3EB",[E.CSV]:"#1F7345",[E.DITA]:"#71C3EB",[E.EPUB]:"#85B926",[E.EXCEL]:"#1F7345",[E.FLAC]:"#1795E3",[E.GIF]:"#59B031",[E.GZIP]:"#F8AB36",[E.HTML]:"#71C3EB",[E.IMAGE]:"#59B031",[E.JPEG]:"#59B031",[E.JSON]:"#71C3EB",[E.M4A]:"#1795E3",[E.MOV]:"#E63324",[E.MP3]:"#1795E3",[E.MP4]:"#E63324",[E.OGG]:"#1795E3",[E.PDF]:"#E44948",[E.PNG]:"#59B031",[E.POWERPOINT]:"#B54A2B",[E.RAR]:"#F8AB36",[E.STP]:"#3764B1",[E.TEXT]:"#3162AB",[E.UNKNOWN]:"#999999",[E.VIDEO]:"#E63324",[E.WAV]:"#1795E3",[E.WMA]:"#1795E3",[E.WORD]:"#3162AB",[E.XML]:"#71C3EB",[E.YAML]:"#71C3EB",[E.ZIP]:"#F8AB36"};var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var wo=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},he=class extends pc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Oo.nothing}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,o=e!==Ue.material||!!this.value;return Oo.html`
598
+ `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,o){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(o),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",cc(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${rr.designSystemVariables.transitionDuration}, left ${rr.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};ne.elementDefinitions={"ft-typography":fe};ne.styles=Ml;Qe([(0,Oe.property)()],ne.prototype,"text",void 0);Qe([(0,Oe.property)({type:Boolean})],ne.prototype,"manual",void 0);Qe([(0,Oe.property)({type:Boolean})],ne.prototype,"inline",void 0);Qe([(0,Oe.property)({type:Number})],ne.prototype,"delay",void 0);Qe([(0,Oe.property)()],ne.prototype,"position",void 0);Qe([(0,Oe.queryAssignedNodes)()],ne.prototype,"slotNodes",void 0);Qe([(0,Oe.query)(".ft-tooltip--container")],ne.prototype,"container",void 0);Qe([(0,Oe.query)(".ft-tooltip")],ne.prototype,"tooltip",void 0);Qe([(0,Oe.query)(".ft-tooltip--content")],ne.prototype,"tooltipContent",void 0);Qe([(0,Oe.state)()],ne.prototype,"visible",void 0);Qe([(0,Oe.eventOptions)({passive:!0})],ne.prototype,"onTouch",null);Qe([(0,Oe.eventOptions)({passive:!0})],ne.prototype,"onHover",null);Qe([(0,Oe.eventOptions)({passive:!0})],ne.prototype,"onOut",null);Qe([(0,Oe.eventOptions)({passive:!0})],ne.prototype,"onClick",null);(0,uc.customElement)("ft-tooltip")(ne);var yc=m(T());var Eo=m(B()),or=m(Z()),hc=m(T()),gc=m(fc());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;"})(Ar||(Ar={}));var E;(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;"})(E||(E={}));var ax=new Map([...["abw"].map(t=>[t,E.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,E.AUDIO]),...["avi"].map(t=>[t,E.AVI]),...["chm","xhs"].map(t=>[t,E.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,E.CODE]),...["csv"].map(t=>[t,E.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,E.DITA]),...["epub"].map(t=>[t,E.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,E.EXCEL]),...["flac"].map(t=>[t,E.FLAC]),...["gif"].map(t=>[t,E.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,E.GZIP]),...["html","htm","xhtml"].map(t=>[t,E.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,E.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,E.JPEG]),...["json"].map(t=>[t,E.JSON]),...["m4a","m4p"].map(t=>[t,E.M4A]),...["mov","qt"].map(t=>[t,E.MOV]),...["mp3"].map(t=>[t,E.MP3]),...["mp4","m4v"].map(t=>[t,E.MP4]),...["ogg","oga"].map(t=>[t,E.OGG]),...["pdf","ps"].map(t=>[t,E.PDF]),...["png"].map(t=>[t,E.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,E.POWERPOINT]),...["rar"].map(t=>[t,E.RAR]),...["stp"].map(t=>[t,E.STP]),...["txt","rtf","md","mdown"].map(t=>[t,E.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,E.VIDEO]),...["wav"].map(t=>[t,E.WAV]),...["wma"].map(t=>[t,E.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,E.WORD]),...["xml","xsl","rdf"].map(t=>[t,E.XML]),...["yaml","yml","x-yaml"].map(t=>[t,E.YAML]),...["zip"].map(t=>[t,E.ZIP])]);var sx={[E.ABW]:"#91ABC6",[E.AUDIO]:"#1795E3",[E.AVI]:"#E63324",[E.CHM]:"#71C3EB",[E.CODE]:"#71C3EB",[E.CSV]:"#1F7345",[E.DITA]:"#71C3EB",[E.EPUB]:"#85B926",[E.EXCEL]:"#1F7345",[E.FLAC]:"#1795E3",[E.GIF]:"#59B031",[E.GZIP]:"#F8AB36",[E.HTML]:"#71C3EB",[E.IMAGE]:"#59B031",[E.JPEG]:"#59B031",[E.JSON]:"#71C3EB",[E.M4A]:"#1795E3",[E.MOV]:"#E63324",[E.MP3]:"#1795E3",[E.MP4]:"#E63324",[E.OGG]:"#1795E3",[E.PDF]:"#E44948",[E.PNG]:"#59B031",[E.POWERPOINT]:"#B54A2B",[E.RAR]:"#F8AB36",[E.STP]:"#3764B1",[E.TEXT]:"#3162AB",[E.UNKNOWN]:"#999999",[E.VIDEO]:"#E63324",[E.WAV]:"#1795E3",[E.WMA]:"#1795E3",[E.WORD]:"#3162AB",[E.XML]:"#71C3EB",[E.YAML]:"#71C3EB",[E.ZIP]:"#F8AB36"};var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var Ao=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},he=class extends hc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Eo.nothing}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,o=e!==Ue.material||!!this.value;return Eo.html`
598
599
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
599
- ${(0,fc.unsafeHTML)(this.resolvedIcon)}
600
+ ${(0,gc.unsafeHTML)(this.resolvedIcon)}
600
601
  <slot ?hidden=${o}></slot>
601
602
  </i>
602
- `}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let i=this.value||this.textContent;switch(this.variant){case Ue.file_format:this.resolvedIcon=(e=E[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ue.material:this.resolvedIcon=this.value||Oo.nothing;break;default:this.resolvedIcon=(o=Er[i.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};he.elementDefinitions={};he.styles=Ls;wo([(0,rr.property)()],he.prototype,"variant",void 0);wo([(0,rr.property)()],he.prototype,"value",void 0);wo([(0,rr.property)({reflect:!0,attribute:"aria-hidden"})],he.prototype,"ariaHidden",void 0);wo([(0,rr.state)()],he.prototype,"resolvedIcon",void 0);wo([(0,rr.query)("slot")],he.prototype,"slottedContent",void 0);(0,hc.customElement)("ft-icon")(he);var gc=m(B()),Ke=m(T());var we={borderRadiusLeft:Ke.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",Ke.designSystemVariables.borderRadiusL),borderRadiusRight:Ke.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",Ke.designSystemVariables.borderRadiusL),borderWidthLeft:Ke.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ke.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ke.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},yc=gc.css`
603
+ `}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let i=this.value||this.textContent;switch(this.variant){case Ue.file_format:this.resolvedIcon=(e=E[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ue.material:this.resolvedIcon=this.value||Eo.nothing;break;default:this.resolvedIcon=(o=Ar[i.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};he.elementDefinitions={};he.styles=ks;Ao([(0,or.property)()],he.prototype,"variant",void 0);Ao([(0,or.property)()],he.prototype,"value",void 0);Ao([(0,or.property)({reflect:!0,attribute:"aria-hidden"})],he.prototype,"ariaHidden",void 0);Ao([(0,or.state)()],he.prototype,"resolvedIcon",void 0);Ao([(0,or.query)("slot")],he.prototype,"slottedContent",void 0);(0,yc.customElement)("ft-icon")(he);var mc=m(B()),Ke=m(T());var we={borderRadiusLeft:Ke.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",Ke.designSystemVariables.borderRadiusL),borderRadiusRight:Ke.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",Ke.designSystemVariables.borderRadiusL),borderWidthLeft:Ke.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ke.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ke.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},bc=mc.css`
603
604
  .ft-switch-option {
604
605
  position: relative;
605
606
  display: inline-block;
@@ -613,8 +614,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
613
614
  }
614
615
 
615
616
  .ft-switch-option--content {
616
- --ft-switch-option-internal-line-height: calc(${pe.fontSize} + 2px);
617
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${pe.iconSize});
617
+ --switch-option-internal-line-height: calc(${pe.fontSize} + 2px);
618
+ --switch-option-internal-content-height: max(var(--switch-option-internal-line-height), ${pe.iconSize});
618
619
 
619
620
  border-style: solid;
620
621
  border-color: ${pe.borderColor};
@@ -625,7 +626,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
625
626
  justify-content: center;
626
627
  overflow: hidden;
627
628
  ${(0,Ke.setVariable)(Ce.size,pe.iconSize)};
628
- padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
629
+ padding: var(--switch-internal-vertical-padding, 6px) var(--switch-internal-horizontal-padding, 8px);
629
630
  background-color: ${pe.backgroundColor};
630
631
  -webkit-mask-image: radial-gradient(white, black);
631
632
  }
@@ -652,7 +653,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
652
653
  display: block;
653
654
  margin: 0 8px;
654
655
  ${(0,Ke.setVariable)(je.fontSize,pe.fontSize)};
655
- ${(0,Ke.setVariable)(je.lineHeight,"var(--ft-switch-option-internal-content-height)")}
656
+ ${(0,Ke.setVariable)(je.lineHeight,"var(--switch-option-internal-content-height)")}
656
657
  }
657
658
 
658
659
  .ft-switch-option--selected .ft-switch-option--label {
@@ -687,14 +688,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
687
688
  .ft-switch-option--selected ft-icon {
688
689
  color: ${pe.selectedTextColor};
689
690
  }
690
- `;var bt=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Mn=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},Fn=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},ge=class extends Qr.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 Fn(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(Xr.html`
691
- <label part="label" for="input" class=${(0,mc.classMap)(e)}
691
+ `;var xt=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Fn=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},Un=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},ge=class extends eo.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 Un(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(Jr.html`
692
+ <label part="label" for="input" class=${(0,xc.classMap)(e)}
692
693
  @click=${this.onChange}>
693
694
  <div class="ft-switch-option--content">
694
695
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
695
696
  <ft-typography part="text"
696
697
  variant="button"
697
- class="ft-switch-option--label ${Qr.isSafari?"ft-safari-ellipsis-fix":""}"
698
+ class="ft-switch-option--label ${eo.isSafari?"ft-safari-ellipsis-fix":""}"
698
699
  ?hidden=${!this.hasTextContent()}>
699
700
  <slot @slotchange=${this.onSlotchange}></slot>
700
701
  </ft-typography>
@@ -703,22 +704,22 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
703
704
  </label>
704
705
  <input id="input" type="radio" class="ft-switch-option--input"
705
706
  .checked=${this.selected}>
706
- `)}addTooltip(e){return this.hasTextContent()||this.getLabel().trim().length===0?e:Xr.html`
707
+ `)}addTooltip(e){return this.hasTextContent()||this.getLabel().trim().length===0?e:Jr.html`
707
708
  <ft-tooltip part="tooltip"
708
709
  text="${this.getLabel()}"
709
710
  position="${this.tooltipPosition}">
710
711
  ${e}
711
712
  </ft-tooltip>
712
- `}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 Mn(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?Xr.html`
713
+ `}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 Fn(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?Jr.html`
713
714
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
714
- `:Xr.nothing}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&o!==void 0?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};ge.elementDefinitions={"ft-ripple":K,"ft-typography":fe,"ft-tooltip":ne,"ft-icon":he};ge.styles=[Qr.safariEllipsisFix,yc];bt([(0,Je.property)()],ge.prototype,"value",void 0);bt([(0,Je.property)()],ge.prototype,"icon",void 0);bt([(0,Je.property)()],ge.prototype,"iconVariant",void 0);bt([(0,Je.property)()],ge.prototype,"label",void 0);bt([(0,Je.property)()],ge.prototype,"tooltipPosition",void 0);bt([(0,Je.property)({type:Boolean,reflect:!0})],ge.prototype,"selected",void 0);bt([(0,Je.property)({type:Boolean})],ge.prototype,"trailingIcon",void 0);bt([(0,Je.property)({type:Boolean})],ge.prototype,"unselectable",void 0);bt([(0,Je.query)(".ft-switch-option--content slot")],ge.prototype,"slottedContent",void 0);bt([(0,Je.query)(".ft-switch-option--input")],ge.prototype,"input",void 0);bt([(0,Je.state)()],ge.prototype,"isFocused",void 0);var Ar=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Un=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ze=class extends zt.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(o=>o.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return ei.html`
715
- <div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,bc.classMap)(e)}" role="radiogroup" aria-label=${this.label}>
715
+ `:Jr.nothing}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&o!==void 0?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};ge.elementDefinitions={"ft-ripple":K,"ft-typography":fe,"ft-tooltip":ne,"ft-icon":he};ge.styles=[eo.safariEllipsisFix,bc];xt([(0,Je.property)()],ge.prototype,"value",void 0);xt([(0,Je.property)()],ge.prototype,"icon",void 0);xt([(0,Je.property)()],ge.prototype,"iconVariant",void 0);xt([(0,Je.property)()],ge.prototype,"label",void 0);xt([(0,Je.property)()],ge.prototype,"tooltipPosition",void 0);xt([(0,Je.property)({type:Boolean,reflect:!0})],ge.prototype,"selected",void 0);xt([(0,Je.property)({type:Boolean})],ge.prototype,"trailingIcon",void 0);xt([(0,Je.property)({type:Boolean})],ge.prototype,"unselectable",void 0);xt([(0,Je.query)(".ft-switch-option--content slot")],ge.prototype,"slottedContent",void 0);xt([(0,Je.query)(".ft-switch-option--input")],ge.prototype,"input",void 0);xt([(0,Je.state)()],ge.prototype,"isFocused",void 0);var Rr=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},zn=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ze=class extends zt.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(o=>o.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return ti.html`
716
+ <div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,vc.classMap)(e)}" role="radiogroup" aria-label="${this.label}">
716
717
  <slot @slotchange=${this.onSlotchange}
717
718
  @option-change=${this.onOptionChangeByScript}
718
719
  @option-change-by-user=${this.onOptionChangeByUser}
719
720
  ></slot>
720
721
  </div>
721
- `}onKeyDown(e){let o;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(o=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(o=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.code=="Space"&&(o=this.options.indexOf(e.target)),o!=null&&(e.preventDefault(),this.options[this.fixIndex(o)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(o)].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(o=>{o instanceof ge&&this.registerOption(o)}),this.selectedOption=this.options.find(o=>o.selected)}registerOption(e){var o;(o=e.shadowRoot)===null||o===void 0||o.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 o=e.target;this.onOptionChange(o)}onOptionChangeByUser(e){var o;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new Un((o=this.selectedOption)===null||o===void 0?void 0:o.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(o=>o.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(o=>o.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};Ze.elementDefinitions={};Ze.styles=ei.css`
722
+ `}onKeyDown(e){let o;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(o=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(o=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.code=="Space"&&(o=this.options.indexOf(e.target)),o!=null&&(e.preventDefault(),this.options[this.fixIndex(o)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(o)].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(o=>{o instanceof ge&&this.registerOption(o)}),this.selectedOption=this.options.find(o=>o.selected)}registerOption(e){var o;(o=e.shadowRoot)===null||o===void 0||o.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 o=e.target;this.onOptionChange(o)}onOptionChangeByUser(e){var o;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new zn((o=this.selectedOption)===null||o===void 0?void 0:o.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(o=>o.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(o=>o.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};Ze.elementDefinitions={};Ze.styles=ti.css`
722
723
  :host {
723
724
  display: inline-block;
724
725
  }
@@ -749,10 +750,10 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
749
750
  }
750
751
 
751
752
  .ft-switch--dense slot::slotted(ft-switch-option) {
752
- --ft-switch-internal-vertical-padding: 2px;
753
- --ft-switch-internal-horizontal-padding: 4px;
753
+ --switch-internal-vertical-padding: 2px;
754
+ --switch-internal-horizontal-padding: 4px;
754
755
  }
755
- `;Ar([(0,It.property)({type:Boolean})],Ze.prototype,"dense",void 0);Ar([(0,It.property)({type:Boolean})],Ze.prototype,"unselectable",void 0);Ar([(0,It.property)()],Ze.prototype,"label",void 0);Ar([(0,It.query)(".ft-switch slot")],Ze.prototype,"slottedContent",void 0);Ar([(0,It.state)()],Ze.prototype,"selectedOption",void 0);Ar([(0,It.state)()],Ze.prototype,"displayFocusWhenUsingKeyboard",void 0);Ar([(0,It.query)(".ft-switch")],Ze.prototype,"ftSwitchDiv",void 0);(0,zn.customElement)("ft-switch")(Ze);(0,zn.customElement)("ft-switch-option")(ge);var Dc=m(T());var ni=m(B()),dt=m(Z()),Pc=m($t()),ai=m(T());var Cc=m(T());var ri=m(B()),ct=m(Z()),oi=m(T());var vc=m(B()),Jr=m(T()),xc={colorOutline:Jr.FtCssVariableFactory.external(Jr.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:Jr.FtCssVariableFactory.external(Jr.designSystemVariables.colorOnSurfaceMedium,"Design system")},Sc=vc.css`
756
+ `;Rr([(0,_t.property)({type:Boolean})],Ze.prototype,"dense",void 0);Rr([(0,_t.property)({type:Boolean})],Ze.prototype,"unselectable",void 0);Rr([(0,_t.property)()],Ze.prototype,"label",void 0);Rr([(0,_t.query)(".ft-switch slot")],Ze.prototype,"slottedContent",void 0);Rr([(0,_t.state)()],Ze.prototype,"selectedOption",void 0);Rr([(0,_t.state)()],Ze.prototype,"displayFocusWhenUsingKeyboard",void 0);Rr([(0,_t.query)(".ft-switch")],Ze.prototype,"ftSwitchDiv",void 0);(0,Hn.customElement)("ft-switch")(Ze);(0,Hn.customElement)("ft-switch-option")(ge);var Bc=m(T());var ai=m(B()),dt=m(Z()),$c=m($t()),si=m(T());var wc=m(T());var oi=m(B()),ct=m(Z()),ii=m(T());var Cc=m(B()),to=m(T()),Sc={colorOutline:to.FtCssVariableFactory.external(to.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:to.FtCssVariableFactory.external(to.designSystemVariables.colorOnSurfaceMedium,"Design system")},Oc=Cc.css`
756
757
  :host {
757
758
  display: block;
758
759
  }
@@ -763,18 +764,18 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
763
764
 
764
765
  ft-icon {
765
766
  transform: rotate(-45deg);
766
- color: ${xc.colorOutline};
767
+ color: ${Sc.colorOutline};
767
768
  }
768
769
 
769
770
  .ft-resizer--dragging ft-icon,
770
771
  .ft-resizer:hover ft-icon,
771
772
  [role="button"][aria-pressed="true"] ft-icon{
772
- color: ${xc.colorOnSurfaceMedium};
773
+ color: ${Sc.colorOnSurfaceMedium};
773
774
  }
774
- `;var Ht=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ti=class extends CustomEvent{constructor(e,o){super("resize",{detail:{width:e,height:o}})}},ke=class extends oi.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Ue.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 ri.html`
775
+ `;var Ht=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ri=class extends CustomEvent{constructor(e,o){super("resize",{detail:{width:e,height:o}})}},Pe=class extends ii.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Ue.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 oi.html`
775
776
  <style>
776
777
  .ft-resizer {
777
- cursor: ${(0,ri.unsafeCSS)(this.cursor)}
778
+ cursor: ${(0,oi.unsafeCSS)(this.cursor)}
778
779
  }
779
780
  </style>
780
781
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -785,7 +786,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
785
786
  @keydown="${this.initKeydownPress}">
786
787
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}" focusable="false" aria-hidden="true"></ft-icon>
787
788
  </div>
788
- `}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 o=e.key;if(["Enter","Space","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(o)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,o==="Enter"||o==="Space"){let n=e.currentTarget;this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())}else o==="Escape"&&(this.isAriaPressed=!1);this.isAriaPressed&&(o==="ArrowLeft"?this.fixedWidth-=10:o==="ArrowRight"?this.fixedWidth+=10:o==="ArrowUp"?this.fixedHeight-=10:o==="ArrowDown"&&(this.fixedHeight+=10)),this.dispatchEvent(new ti(this.fixedWidth,this.fixedHeight))}initDrag(e,o){this.dragging=!0,this.startX=e,this.startY=o,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,o){let i=this.fixedWidth+e-this.startX,n=this.fixedHeight+o-this.startY;this.dispatchEvent(new ti(i,n))}};ke.elementDefinitions={"ft-icon":he};ke.styles=[oi.noTextSelect,Sc];Ht([(0,ct.property)({type:Number})],ke.prototype,"initialWidth",void 0);Ht([(0,ct.property)({type:Number})],ke.prototype,"initialHeight",void 0);Ht([(0,ct.property)()],ke.prototype,"icon",void 0);Ht([(0,ct.property)()],ke.prototype,"iconVariant",void 0);Ht([(0,ct.property)()],ke.prototype,"cursor",void 0);Ht([(0,ct.state)()],ke.prototype,"dragging",void 0);Ht([(0,ct.state)()],ke.prototype,"isAriaPressed",void 0);Ht([(0,ct.eventOptions)({passive:!0})],ke.prototype,"initDragFromMouse",null);Ht([(0,ct.eventOptions)({passive:!0})],ke.prototype,"initDragFromTouch",null);(0,Cc.customElement)("ft-resizer")(ke);var Vn=m(T());var ii=m(Z());var Oc=m(B()),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")},wc=Oc.css`
789
+ `}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 o=e.key;if(["Enter","Space","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(o)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,o==="Enter"||o==="Space"){let n=e.currentTarget;this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())}else o==="Escape"&&(this.isAriaPressed=!1);this.isAriaPressed&&(o==="ArrowLeft"?this.fixedWidth-=10:o==="ArrowRight"?this.fixedWidth+=10:o==="ArrowUp"?this.fixedHeight-=10:o==="ArrowDown"&&(this.fixedHeight+=10)),this.dispatchEvent(new ri(this.fixedWidth,this.fixedHeight))}initDrag(e,o){this.dragging=!0,this.startX=e,this.startY=o,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,o){let i=this.fixedWidth+e-this.startX,n=this.fixedHeight+o-this.startY;this.dispatchEvent(new ri(i,n))}};Pe.elementDefinitions={"ft-icon":he};Pe.styles=[ii.noTextSelect,Oc];Ht([(0,ct.property)({type:Number})],Pe.prototype,"initialWidth",void 0);Ht([(0,ct.property)({type:Number})],Pe.prototype,"initialHeight",void 0);Ht([(0,ct.property)()],Pe.prototype,"icon",void 0);Ht([(0,ct.property)()],Pe.prototype,"iconVariant",void 0);Ht([(0,ct.property)()],Pe.prototype,"cursor",void 0);Ht([(0,ct.state)()],Pe.prototype,"dragging",void 0);Ht([(0,ct.state)()],Pe.prototype,"isAriaPressed",void 0);Ht([(0,ct.eventOptions)({passive:!0})],Pe.prototype,"initDragFromMouse",null);Ht([(0,ct.eventOptions)({passive:!0})],Pe.prototype,"initDragFromTouch",null);(0,wc.customElement)("ft-resizer")(Pe);var jn=m(T());var ni=m(Z());var Ec=m(B()),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")},Ac=Ec.css`
789
790
  .ft-input-label {
790
791
  position: absolute;
791
792
  inset: 0;
@@ -836,8 +837,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
836
837
  transition: font-size 250ms, line-height 250ms, color 250ms;
837
838
  max-width: calc(${k.labelMaxWidth} - 2 * (${k.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
838
839
  text-overflow: ellipsis;
839
- ${(0,re.setVariable)(Fe.fontSize,k.fontSize)};
840
- ${(0,re.setVariable)(Fe.lineHeight,k.fontSize)};
840
+ ${(0,re.setVariable)(_e.fontSize,k.fontSize)};
841
+ ${(0,re.setVariable)(_e.lineHeight,k.fontSize)};
841
842
  }
842
843
 
843
844
  .ft-input-label--in-error .ft-input-label--text {
@@ -857,7 +858,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
857
858
 
858
859
  .ft-input-label--floating-text {
859
860
  position: absolute;
860
- top: calc(50% - var(--ft-typography-caption-line-height) / 2);
861
+ top: calc(50% - ${_e.lineHeight} / 2);
861
862
  transition: top 250ms;
862
863
  overflow: hidden;
863
864
  white-space: nowrap;
@@ -869,8 +870,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
869
870
  }
870
871
 
871
872
  .ft-input-label--raised .ft-input-label--text {
872
- ${(0,re.setVariable)(Fe.fontSize,k.raisedFontSize)};
873
- ${(0,re.setVariable)(Fe.lineHeight,k.raisedFontSize)};
873
+ ${(0,re.setVariable)(_e.fontSize,k.raisedFontSize)};
874
+ ${(0,re.setVariable)(_e.lineHeight,k.raisedFontSize)};
874
875
  }
875
876
 
876
877
  .ft-input-label--raised .ft-input-label--floating-text {
@@ -901,30 +902,30 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
901
902
  z-index: ${k.raisedZIndex};
902
903
  background-color: ${k.backgroundColor};
903
904
  border-radius: ${k.borderRadius};
904
- top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
905
+ top: calc((${_e.lineHeight} / -2) + 2px);
905
906
  }
906
907
 
907
908
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
908
909
  border-top: none;
909
910
  }
910
- `;var Hn=m(B()),Wn=m(Z());function Ec(t,e,o){return t?e(t):o?.(t)}var Rc=m($t()),Tc=m(T()),Ac=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Wt=class extends Tc.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Hn.html`
911
- <div class="${(0,Rc.classMap)(this.inputLabelClasses)}">
912
- ${Ec(this.text,()=>Hn.html`
911
+ `;var Wn=m(B()),Gn=m(Z());function Rc(t,e,o){return t?e(t):o?.(t)}var Ic=m($t()),_c=m(T()),Tc=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Wt=class extends _c.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Wn.html`
912
+ <div class="${(0,Ic.classMap)(this.inputLabelClasses)}">
913
+ ${Rc(this.text,()=>Wn.html`
913
914
  <div class="ft-input-label--text ft-typography--caption">
914
915
  <label class="ft-input-label--floating-text">${this.text}</label>
915
916
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
916
917
  </div>
917
918
  `)}
918
919
  </div>
919
- `}};Wt.elementDefinitions={};Ac([(0,Wn.property)({type:String})],Wt.prototype,"text",void 0);Ac([(0,Wn.property)({type:Boolean})],Wt.prototype,"raised",void 0);var Gn=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ot=class extends Wt{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}}};ot.elementDefinitions={};ot.styles=[Hr,wc];Gn([(0,ii.property)({type:Boolean})],ot.prototype,"outlined",void 0);Gn([(0,ii.property)({type:Boolean})],ot.prototype,"error",void 0);Gn([(0,ii.property)({type:Boolean})],ot.prototype,"disabled",void 0);var Nc=m(T());var Ic=m(B());var Se=m(T()),ze={fontSize:Se.FtCssVariableFactory.extend("--ft-input-label-font-size","",Pr.fontSize),fontSizeRaised:Se.FtCssVariableFactory.extend("--ft-input-label-font-size-raised","",br.fontSize),lineHeight:Se.FtCssVariableFactory.extend("--ft-input-label-line-height","",br.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")},_c=[Ic.css`
920
+ `}};Wt.elementDefinitions={};Tc([(0,Gn.property)({type:String})],Wt.prototype,"text",void 0);Tc([(0,Gn.property)({type:Boolean})],Wt.prototype,"raised",void 0);var Vn=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ot=class extends Wt{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}}};ot.elementDefinitions={};ot.styles=[Gr,Ac];Vn([(0,ni.property)({type:Boolean})],ot.prototype,"outlined",void 0);Vn([(0,ni.property)({type:Boolean})],ot.prototype,"error",void 0);Vn([(0,ni.property)({type:Boolean})],ot.prototype,"disabled",void 0);var kc=m(T());var Nc=m(B());var Se=m(T()),ze={fontSize:Se.FtCssVariableFactory.extend("--ft-input-label-font-size","",Dr.fontSize),fontSizeRaised:Se.FtCssVariableFactory.extend("--ft-input-label-font-size-raised","",xr.fontSize),lineHeight:Se.FtCssVariableFactory.extend("--ft-input-label-line-height","",xr.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")},Lc=[Nc.css`
920
921
 
921
922
  :root {
922
923
  --field-height: ${ze.largeFieldHeight};
923
924
  --field-vertical-gap: ${ze.largeFieldVerticalGap};
924
925
  --field-horizontal-padding: ${ze.largeFieldHorizontalPadding};
925
926
 
926
- --typo-caption-height: calc(${br.lineHeight} * ${br.fontSize});
927
- --typo-body-height: calc(${Pr.lineHeight} * ${Pr.fontSize});
927
+ --typo-caption-height: calc(${xr.lineHeight} * ${xr.fontSize});
928
+ --typo-body-height: calc(${Dr.lineHeight} * ${Dr.fontSize});
928
929
  --caption-label-and-value-combined-height: calc(var(--field-vertical-gap) + var(--typo-caption-height) + var(--typo-body-height));
929
930
  --input-content-vertical-padding: calc((var(--field-height) - var(--caption-label-and-value-combined-height)) / 2);
930
931
  }
@@ -958,8 +959,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
958
959
  z-index: 10;
959
960
  width: 100%;
960
961
  transition: font-size 250ms, line-height 250ms, color 250ms;
961
- ${(0,Se.setVariable)(Fe.fontSize,ze.fontSize)};
962
- ${(0,Se.setVariable)(Fe.lineHeight,ze.lineHeight)};
962
+ ${(0,Se.setVariable)(_e.fontSize,ze.fontSize)};
963
+ ${(0,Se.setVariable)(_e.lineHeight,ze.lineHeight)};
963
964
  }
964
965
 
965
966
  .ft-input-label--hidden-text {
@@ -990,15 +991,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
990
991
  }
991
992
 
992
993
  .ft-input-label--raised .ft-input-label--text {
993
- ${(0,Se.setVariable)(Fe.fontSize,ze.fontSizeRaised)};
994
- ${(0,Se.setVariable)(Fe.lineHeight,ze.lineHeight)};
994
+ ${(0,Se.setVariable)(_e.fontSize,ze.fontSizeRaised)};
995
+ ${(0,Se.setVariable)(_e.lineHeight,ze.lineHeight)};
995
996
  }
996
997
 
997
998
  .ft-input-label--raised .ft-input-label--floating-text {
998
999
  top: var(--input-content-vertical-padding);
999
1000
  }
1000
1001
 
1001
- `];var Eo=class extends(0,Nc.toFtdsBase)(Wt){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};Eo.styles=[Hr,_c];(0,Vn.customElement)("ft-input-label")(ot);(0,Vn.customElement)("ftds-input-label")(Eo);var Lc=m(B()),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")},kc=Lc.css`
1002
+ `];var Ro=class extends(0,kc.toFtdsBase)(Wt){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};Ro.styles=[Gr,Lc];(0,jn.customElement)("ft-input-label")(ot);(0,jn.customElement)("ftds-input-label")(Ro);var Pc=m(B()),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")},Dc=Pc.css`
1002
1003
  *:focus {
1003
1004
  outline: none;
1004
1005
  }
@@ -1098,7 +1099,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1098
1099
  position: absolute;
1099
1100
  bottom: 0;
1100
1101
  }
1101
- `;var Gt=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Pe=class extends(0,ai.toFtFormComponent)(ai.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 ni.html`
1102
+ `;var Gt=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},De=class extends(0,si.toFtFormComponent)(si.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 ai.html`
1102
1103
  <style>
1103
1104
  .ft-text-area--main-panel {
1104
1105
  height: calc(4 * ${X.verticalSpacing} + ${X.labelSize} + ${X.fontSize} + ${this.height}px);
@@ -1108,7 +1109,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1108
1109
  right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1109
1110
  }
1110
1111
  </style>
1111
- <div class="${(0,Pc.classMap)(e)}">
1112
+ <div class="${(0,$c.classMap)(e)}">
1112
1113
  <div class="ft-text-area--main-panel">
1113
1114
  <ft-input-label text="${this.label}"
1114
1115
  ?disabled=${this.disabled}
@@ -1118,7 +1119,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1118
1119
  aria-hidden="true"
1119
1120
  ></ft-input-label>
1120
1121
  <div class="ft-text-area--input-panel">
1121
- ${this.outlined?null:ni.html`
1122
+ ${this.outlined?null:ai.html`
1122
1123
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1123
1124
  `}
1124
1125
  <textarea
@@ -1137,19 +1138,19 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1137
1138
  initialHeight="${this.height}"
1138
1139
  cursor="ns-resize"></ft-resizer>
1139
1140
  </div>
1140
- ${this.helper?ni.html`
1141
+ ${this.helper?ai.html`
1141
1142
  <ft-typography class="ft-text-area--helper-text" variant="caption">
1142
1143
  ${this.helper}
1143
1144
  </ft-typography>`:void 0}
1144
1145
  </div>
1145
- `}setValue(e,o=!1){this.value=e,this.setFormValue(e),o&&(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)}};Pe.elementDefinitions={"ft-input-label":ot,"ft-resizer":ke,"ft-ripple":K,"ft-typography":fe};Pe.styles=[zr,kc];Gt([(0,dt.property)({type:String})],Pe.prototype,"label",void 0);Gt([(0,dt.property)({reflect:!0})],Pe.prototype,"value",void 0);Gt([(0,dt.property)({type:String})],Pe.prototype,"helper",void 0);Gt([(0,dt.property)({type:Boolean})],Pe.prototype,"outlined",void 0);Gt([(0,dt.property)({type:Boolean})],Pe.prototype,"disabled",void 0);Gt([(0,dt.property)({type:Boolean})],Pe.prototype,"error",void 0);Gt([(0,dt.property)({type:Number,reflect:!0})],Pe.prototype,"height",void 0);Gt([(0,dt.query)("textarea")],Pe.prototype,"textarea",void 0);Gt([(0,dt.state)()],Pe.prototype,"focused",void 0);(0,Dc.customElement)("ft-text-area")(Pe);var pu=m(jn());var Zn=m(T());var Ao=m(Z()),Uc=m(T());var ir=m(T());var Fc=m(T());var Bc=m(B()),Mc=m(T());var Rr=class extends Mc.FtLitElement{render(){return Bc.html`
1146
+ `}setValue(e,o=!1){this.value=e,this.setFormValue(e),o&&(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":ot,"ft-resizer":Pe,"ft-ripple":K,"ft-typography":fe};De.styles=[Wr,Dc];Gt([(0,dt.property)({type:String})],De.prototype,"label",void 0);Gt([(0,dt.property)({reflect:!0})],De.prototype,"value",void 0);Gt([(0,dt.property)({type:String})],De.prototype,"helper",void 0);Gt([(0,dt.property)({type:Boolean})],De.prototype,"outlined",void 0);Gt([(0,dt.property)({type:Boolean})],De.prototype,"disabled",void 0);Gt([(0,dt.property)({type:Boolean})],De.prototype,"error",void 0);Gt([(0,dt.property)({type:Number,reflect:!0})],De.prototype,"height",void 0);Gt([(0,dt.query)("textarea")],De.prototype,"textarea",void 0);Gt([(0,dt.state)()],De.prototype,"focused",void 0);(0,Bc.customElement)("ft-text-area")(De);var hu=m(Kn());var qn=m(T());var To=m(Z()),Hc=m(T());var nr=m(T());var zc=m(T());var Fc=m(B()),Uc=m(T());var Tr=class extends Uc.FtLitElement{render(){return Fc.html`
1146
1147
  <div class="ft-loader">
1147
1148
  <div></div>
1148
1149
  <div></div>
1149
1150
  <div></div>
1150
1151
  <div></div>
1151
1152
  </div>
1152
- `}};Rr.styles=_s;(0,Fc.customElement)("ft-loader")(Rr);var or=m(B()),Kn=m($t()),Ee=m(Z()),De=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ae=class extends(0,ir.toFtFormComponent)(ir.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.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,i;let n=or.html`
1153
+ `}};Tr.styles=Ns;(0,zc.customElement)("ft-loader")(Tr);var ir=m(B()),Zn=m($t()),Ee=m(Z()),$e=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ae=class extends(0,nr.toFtFormComponent)(nr.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.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,i;let n=ir.html`
1153
1154
  <ft-ripple part="ripple"
1154
1155
  ?disabled=${this.isDisabled()}
1155
1156
  ?activated=${this.activated}
@@ -1157,39 +1158,39 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1157
1158
  <ft-typography part="label"
1158
1159
  variant=${this.typographyVariant}
1159
1160
  element="span"
1160
- class="ft-button--label ${ir.isSafari?"ft-safari-ellipsis-fix":""}"
1161
+ class="ft-button--label ${nr.isSafari?"ft-safari-ellipsis-fix":""}"
1161
1162
  ?hidden=${!this.hasTextContent()}>
1162
1163
  <slot @slotchange=${this.onSlotchange}></slot>
1163
1164
  </ft-typography>
1164
1165
  ${this.resolveIcon()}
1165
- `,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?or.html`
1166
+ `,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?ir.html`
1166
1167
  <a href="${a}"
1167
1168
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
1168
1169
  part="button"
1169
- class="${(0,Kn.classMap)(this.buttonClasses)}"
1170
+ class="${(0,Zn.classMap)(this.buttonClasses)}"
1170
1171
  aria-label="${(o=this.ariaLabel)!==null&&o!==void 0?o:this.getLabel()}"
1171
1172
  ?disabled=${this.isDisabled()}>
1172
1173
  ${n}
1173
1174
  </a>
1174
- `:or.html`
1175
+ `:ir.html`
1175
1176
  <button part="button"
1176
- class="${(0,Kn.classMap)(this.buttonClasses)}"
1177
+ class="${(0,Zn.classMap)(this.buttonClasses)}"
1177
1178
  aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
1178
1179
  ?disabled=${this.isDisabled()}>
1179
1180
  ${n}
1180
1181
  </button>
1181
- `)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?or.html`
1182
+ `)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?ir.html`
1182
1183
  <ft-tooltip part="tooltip"
1183
1184
  text="${this.getLabel()}"
1184
1185
  position="${this.tooltipPosition}">
1185
1186
  ${e}
1186
1187
  </ft-tooltip>
1187
- `:e}resolveIcon(){return this.loading?or.html`
1188
- <ft-loader part="loader icon"></ft-loader> `:this.icon?or.html`
1188
+ `:e}resolveIcon(){return this.loading?ir.html`
1189
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?ir.html`
1189
1190
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
1190
- `:or.html`
1191
+ `:ir.html`
1191
1192
  <slot part="icon" name="icon"></slot>
1192
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(e,o){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,o)}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,ir.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ae.elementDefinitions={"ft-ripple":K,"ft-tooltip":ne,"ft-typography":fe,"ft-icon":he,"ft-loader":Rr};De([(0,Ee.property)()],ae.prototype,"href",void 0);De([(0,Ee.property)()],ae.prototype,"target",void 0);De([(0,Ee.property)()],ae.prototype,"type",void 0);De([(0,Ee.property)({type:Boolean})],ae.prototype,"disabled",void 0);De([(0,Ee.property)()],ae.prototype,"label",void 0);De([(0,Ee.property)()],ae.prototype,"icon",void 0);De([(0,Ee.property)()],ae.prototype,"iconVariant",void 0);De([(0,Ee.property)({type:Boolean})],ae.prototype,"trailingIcon",void 0);De([(0,Ee.property)({type:Boolean})],ae.prototype,"loading",void 0);De([(0,Ee.property)({attribute:"aria-label"})],ae.prototype,"ariaLabel",void 0);De([(0,Ee.property)()],ae.prototype,"tooltipPosition",void 0);De([(0,Ee.property)({type:Boolean})],ae.prototype,"hideTooltip",void 0);De([(0,Ee.property)({type:Boolean})],ae.prototype,"forceTooltip",void 0);De([(0,Ee.property)({type:Boolean})],ae.prototype,"activated",void 0);De([(0,Ee.query)(".ft-button")],ae.prototype,"button",void 0);De([(0,Ee.query)(".ft-button--label slot")],ae.prototype,"slottedContent",void 0);De([(0,Ee.query)("[part=tooltip]")],ae.prototype,"tooltip",void 0);var si=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},xt=class extends ae{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"}};xt.styles=[Uc.safariEllipsisFix,$s];si([(0,Ao.property)({type:Boolean})],xt.prototype,"primary",void 0);si([(0,Ao.property)({type:Boolean})],xt.prototype,"outlined",void 0);si([(0,Ao.property)({type:Boolean})],xt.prototype,"dense",void 0);si([(0,Ao.property)({type:Boolean})],xt.prototype,"round",void 0);var Ro=m(Z());var ci=m(T());var zc=m(B()),C=m(T());var Xu={...f,iconOnlyScale:C.FtCssVariableFactory.create("--ft-button-icon-only-scale","","NUMBER","1")},Hc=[zc.css`
1193
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(e,o){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,o)}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,nr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ae.elementDefinitions={"ft-ripple":K,"ft-tooltip":ne,"ft-typography":fe,"ft-icon":he,"ft-loader":Tr};$e([(0,Ee.property)()],ae.prototype,"href",void 0);$e([(0,Ee.property)()],ae.prototype,"target",void 0);$e([(0,Ee.property)()],ae.prototype,"type",void 0);$e([(0,Ee.property)({type:Boolean})],ae.prototype,"disabled",void 0);$e([(0,Ee.property)()],ae.prototype,"label",void 0);$e([(0,Ee.property)()],ae.prototype,"icon",void 0);$e([(0,Ee.property)()],ae.prototype,"iconVariant",void 0);$e([(0,Ee.property)({type:Boolean})],ae.prototype,"trailingIcon",void 0);$e([(0,Ee.property)({type:Boolean})],ae.prototype,"loading",void 0);$e([(0,Ee.property)({attribute:"aria-label"})],ae.prototype,"ariaLabel",void 0);$e([(0,Ee.property)()],ae.prototype,"tooltipPosition",void 0);$e([(0,Ee.property)({type:Boolean})],ae.prototype,"hideTooltip",void 0);$e([(0,Ee.property)({type:Boolean})],ae.prototype,"forceTooltip",void 0);$e([(0,Ee.property)({type:Boolean})],ae.prototype,"activated",void 0);$e([(0,Ee.query)(".ft-button")],ae.prototype,"button",void 0);$e([(0,Ee.query)(".ft-button--label slot")],ae.prototype,"slottedContent",void 0);$e([(0,Ee.query)("[part=tooltip]")],ae.prototype,"tooltip",void 0);var li=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},vt=class extends ae{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"}};vt.styles=[Hc.safariEllipsisFix,Bs];li([(0,To.property)({type:Boolean})],vt.prototype,"primary",void 0);li([(0,To.property)({type:Boolean})],vt.prototype,"outlined",void 0);li([(0,To.property)({type:Boolean})],vt.prototype,"dense",void 0);li([(0,To.property)({type:Boolean})],vt.prototype,"round",void 0);var Io=m(Z());var di=m(T());var Wc=m(B()),C=m(T());var Ju={...f,iconOnlyScale:C.FtCssVariableFactory.create("--ft-button-icon-only-scale","","NUMBER","1")},Gc=[Wc.css`
1193
1194
  :host {
1194
1195
  display: inline-block;
1195
1196
  max-width: 100%;
@@ -1272,7 +1273,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1272
1273
  }
1273
1274
 
1274
1275
  .ft-button.ft-button--icon-only ft-icon {
1275
- transform: scale(${Xu.iconOnlyScale});
1276
+ transform: scale(${Ju.iconOnlyScale});
1276
1277
  }
1277
1278
 
1278
1279
  /** Brand Primary styles **/
@@ -1659,15 +1660,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1659
1660
  .ftds--size-small.ft-button--icon-only {
1660
1661
  width: ${f.smallIconOnlyWidth};
1661
1662
  }
1662
- `,C.noTextSelect];var li=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Vt=class extends(0,ci.toFtdsBase)(ae){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=zo.brand,this.iconVariant=Ue.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 Dr.large:return er.body2medium;case Dr.medium:return er.caption1medium;case Dr.small:return er.caption2medium}}};Vt.styles=[ci.safariEllipsisFix,Hc];li([(0,Ro.property)({type:Boolean})],Vt.prototype,"primary",void 0);li([(0,Ro.property)({type:Boolean})],Vt.prototype,"secondary",void 0);li([(0,Ro.property)({type:Boolean})],Vt.prototype,"tertiary",void 0);li([(0,Ro.property)({type:Boolean})],Vt.prototype,"round",void 0);(0,Zn.customElement)("ft-button")(xt);(0,Zn.customElement)("ftds-button")(Vt);var Xd=m(T());var Di=m(B()),$i=m(Z()),Bi=m(T());var Wc=m(B());var Gc=Wc.css`
1663
- `;var Pi=m(T());var Vd=m(T());var ed=m(B()),$e=m(Z()),vt=m(T());var Vc=m(B());var jc=Vc.css`
1664
- `;var di=m(T()),Qu="ft-app-info",_t=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};_t.eventName="authentication-change";var Ju={session:(t,e)=>{(0,di.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>A.dispatchEvent(new _t(e.payload)),0))}},A=di.FtReduxStore.get({name:Qu,reducers:Ju,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 qn=m(T());var Tr=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:i}=A.getState(),n=e??i;if(o&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,n,!0)}static await(e){return new Promise(o=>{let i=t.get(e);if(i)o(i);else{let n=A.subscribe(()=>{i=t.get(e),i&&(n(),o(i))})}})}};var ui=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Tr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Tr.await()}};var it=class extends ui{constructor(e=!0,o){var i;super(o),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 qn.CacheRegistry,this.cache=e?n.commonCache:new qn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,i)=>0|31*o+i.charCodeAt(0),0))}};var pi=class extends it{async listMyBookmarks(){let e=A.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Yn=class{addCommand(e,o=!1){A.commands.add(e,o)}consumeCommand(e){return A.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Yn;var Nt=m(T());var Kc,ep=Symbol("clearAfterUnitTest"),fi=class extends it{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Kc]=()=>{this.defaultMessages={},this.cache=new Nt.CacheRegistry,this.listeners={}},this.currentUiLocale=A.getState().uiLocale,A.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=A.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var i;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...o};(0,Nt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,i;return this.fetchContext(e),(i=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,o){let i=e.toLowerCase();return this.resolveContext(i)[o]}resolveMessage(e,o,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Nt.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(o,...i)}async fetchContext(e){let o=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(n){!(n instanceof Nt.CanceledPromiseError)&&o&&console.error(n)}return i}subscribe(e,o){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(o),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,Nt.delay)(0).then(()=>o()).catch(()=>null)))}};Kc=ep;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends fi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends fi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var eo=window.FluidTopicsI18nService,hi=window.FluidTopicsCustomI18nService;var Zc=m(T()),Xn=class{highlightHtml(e,o,i){(0,Zc.highlightHtml)(e,o,i)}};window.FluidTopicsHighlightHtmlService=new Xn;var gi=class extends it{async listMySearches(){let{session:e}=A.getState();return Dt(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var qc=m(T());var Qn=class{isDate(e){var o,i,n,a;return(a=(n=((i=(o=A.getState().metadataConfiguration)===null||o===void 0?void 0:o.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,o){var i,n,a;return qc.DateFormatter.format(e,(i=o?.locale)!==null&&i!==void 0?i:A.getState().uiLocale,(n=o?.longFormat)!==null&&n!==void 0?n:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Qn;var Yc=m(T());var To=class{static get(e,o){var i,n,a,s;let c=A.getState(),{lang:u,region:p}=(n=(i=c.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Yc.SearchPlaceConverter(c.baseUrl,(s=(a=window.FluidTopicsClientConfiguration)===null||a===void 0?void 0:a.predefinedSorts)!==null&&s!==void 0?s:{},e??20,c.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var Jn=class{urlToSearchRequest(e){return To.get().parse(e)}searchRequestToUrl(e){return To.get().serialize(e)}};window.FluidTopicsUrlService=new Jn;var nr=m(T());var Ir=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Ir.eventName="change";var ea=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},Xc=new ea;var yi=class t extends nr.WithEventBus{static build(){return new t(window.history,Xc,()=>window.location,!1)}constructor(e,o,i,n){var a,s;super(),this.history=e,this.historyStorage=o,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,o=!1){let i=o&&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,nr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Ir(this.currentItem())),0)}installProxies(){let e=o=>(i,n,[a,s,c])=>{let u=o(),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 o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Ir.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Ir.eventName,e)}currentItem(){return(0,nr.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,nr.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,nr.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 o;let i=(o=this.states[e])===null||o===void 0?void 0:o.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,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var i;if(!this.hasState(e))return!1;let n=o??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=yi.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 to=class{constructor(){this.storeListeners=[]}store(e,o){if(this.isAuthenticated())return;let i=JSON.stringify(o);window.localStorage.setItem(e,i),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:i,storageArea:window.localStorage}))}get(e){var o,i;if(!this.isAuthenticated())return(i=JSON.parse((o=window.localStorage.getItem(e))!==null&&o!==void 0?o:"null"))!==null&&i!==void 0?i:void 0}addStoreListener(e,o){let i=n=>{n.key===e()&&!this.isAuthenticated()&&o()};this.storeListeners.push(i),window.addEventListener("storage",i)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=A.getState().session;return!!e?.sessionAuthenticated}};var Qc=A;function Jc(t,e){var o;return Qc.getState().authenticationRequired&&!(!((o=Qc.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var Ae=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},oe=class extends vt.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=()=>Tr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new vt.CacheRegistry,this.cleanSessionDebouncer=new vt.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return ed.html`
1663
+ `,C.noTextSelect];var ci=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Vt=class extends(0,di.toFtdsBase)(ae){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Wo.brand,this.iconVariant=Ue.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 er.body2medium;case $r.medium:return er.caption1medium;case $r.small:return er.caption2medium}}};Vt.styles=[di.safariEllipsisFix,Gc];ci([(0,Io.property)({type:Boolean})],Vt.prototype,"primary",void 0);ci([(0,Io.property)({type:Boolean})],Vt.prototype,"secondary",void 0);ci([(0,Io.property)({type:Boolean})],Vt.prototype,"tertiary",void 0);ci([(0,Io.property)({type:Boolean})],Vt.prototype,"round",void 0);(0,qn.customElement)("ft-button")(vt);(0,qn.customElement)("ftds-button")(Vt);var Jd=m(T());var $i=m(B()),Bi=m(Z()),Mi=m(T());var Vc=m(B());var jc=Vc.css`
1664
+ `;var Di=m(T());var Kd=m(T());var rd=m(B()),Be=m(Z()),St=m(T());var Kc=m(B());var Zc=Kc.css`
1665
+ `;var ui=m(T()),ep="ft-app-info",Nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Nt.eventName="authentication-change";var tp={session:(t,e)=>{(0,ui.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>A.dispatchEvent(new Nt(e.payload)),0))}},A=ui.FtReduxStore.get({name:ep,reducers:tp,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 Yn=m(T());var Ir=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:i}=A.getState(),n=e??i;if(o&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,n,!0)}static await(e){return new Promise(o=>{let i=t.get(e);if(i)o(i);else{let n=A.subscribe(()=>{i=t.get(e),i&&(n(),o(i))})}})}};var pi=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 it=class extends pi{constructor(e=!0,o){var i;super(o),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 Yn.CacheRegistry,this.cache=e?n.commonCache:new Yn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,i)=>0|31*o+i.charCodeAt(0),0))}};var fi=class extends it{async listMyBookmarks(){let e=A.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Xn=class{addCommand(e,o=!1){A.commands.add(e,o)}consumeCommand(e){return A.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Xn;var ut=m(T());var qc,ro=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},rp=Symbol("clearAfterUnitTest"),hi=class extends(0,ut.withEventBus)(it){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[qc]=()=>{this.defaultMessages={},this.cache=new ut.CacheRegistry,this.listeners={}},this.currentUiLocale=A.getState().uiLocale,A.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=A.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var i;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...o};(0,ut.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,i;return this.fetchContext(e),(i=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,o){let i=e.toLowerCase();return this.resolveContext(i)[o]}resolveMessage(e,o,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new ut.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(o,...i)}async fetchContext(e){let o=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(n){!(n instanceof ut.CanceledPromiseError)&&o&&console.error(n)}return i}subscribe(e,o){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(o),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ro({loadedContexts:e})),this.dispatchEvent(new ro({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new ro({loadedContexts:[e]})),this.dispatchEvent(new ro({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,ut.delay)(0).then(()=>i()).catch(()=>null)))}};qc=rp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends hi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends hi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var oo=window.FluidTopicsI18nService,gi=window.FluidTopicsCustomI18nService;var Yc=m(T()),Qn=class{highlightHtml(e,o,i){(0,Yc.highlightHtml)(e,o,i)}};window.FluidTopicsHighlightHtmlService=new Qn;var yi=class extends it{async listMySearches(){let{session:e}=A.getState();return Dt(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Xc=m(T());var Jn=class{isDate(e){var o,i,n,a;return(a=(n=((i=(o=A.getState().metadataConfiguration)===null||o===void 0?void 0:o.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,o){var i,n,a;return Xc.DateFormatter.format(e,(i=o?.locale)!==null&&i!==void 0?i:A.getState().uiLocale,(n=o?.longFormat)!==null&&n!==void 0?n:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Jn;var Qc=m(T());var _o=class{static get(e,o){var i,n;let a=A.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 Qc.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,o??`${s}-${c}`)}};var ea=class{urlToSearchRequest(e){return _o.get().parse(e)}searchRequestToUrl(e){return _o.get().serialize(e)}};window.FluidTopicsUrlService=new ea;var ar=m(T());var _r=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};_r.eventName="change";var ta=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},Jc=new ta;var mi=class t extends ar.WithEventBus{static build(){return new t(window.history,Jc,()=>window.location,!1)}constructor(e,o,i,n){var a,s;super(),this.history=e,this.historyStorage=o,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,o=!1){let i=o&&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,ar.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=o=>(i,n,[a,s,c])=>{let u=o(),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 o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(_r.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(_r.eventName,e)}currentItem(){return(0,ar.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,ar.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,ar.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 o;let i=(o=this.states[e])===null||o===void 0?void 0:o.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,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var i;if(!this.hasState(e))return!1;let n=o??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=mi.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 io=class{constructor(){this.storeListeners=[]}store(e,o){if(this.isAuthenticated())return;let i=JSON.stringify(o);window.localStorage.setItem(e,i),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:i,storageArea:window.localStorage}))}get(e){var o,i;if(!this.isAuthenticated())return(i=JSON.parse((o=window.localStorage.getItem(e))!==null&&o!==void 0?o:"null"))!==null&&i!==void 0?i:void 0}addStoreListener(e,o){let i=n=>{n.key===e()&&!this.isAuthenticated()&&o()};this.storeListeners.push(i),window.addEventListener("storage",i)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=A.getState().session;return!!e?.sessionAuthenticated}};var ed=A;function td(t,e){var o;return ed.getState().authenticationRequired&&!(!((o=ed.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var Ae=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},oe=class extends St.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 St.CacheRegistry,this.cleanSessionDebouncer=new St.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return rd.html`
1665
1666
  <slot></slot>
1666
- `}connectedCallback(){super.connectedCallback(),A.addEventListener(_t.eventName,this.reloadConfiguration)}disconnectedCallback(){A.addEventListener(_t.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,i,n,a,s,c,u;super.update(e),e.has("baseUrl")&&(A.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&A.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&A.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&A.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&A.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&A.actions.noCustom(this.noCustom),e.has("editorMode")&&A.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&A.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&A.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>eo.addContext(p)),e.has("openExternalDocumentInNewTab")&&A.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&A.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&A.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(A.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),A.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),A.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&A.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&A.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",()=>Jc(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};oe.elementDefinitions={};oe.styles=jc;Ae([(0,$e.property)()],oe.prototype,"baseUrl",void 0);Ae([(0,$e.property)()],oe.prototype,"apiIntegrationIdentifier",void 0);Ae([(0,$e.property)()],oe.prototype,"apiIntegrationAppVersion",void 0);Ae([(0,$e.property)()],oe.prototype,"uiLocale",void 0);Ae([(0,vt.jsonProperty)(null)],oe.prototype,"availableUiLocales",void 0);Ae([(0,vt.jsonProperty)(null)],oe.prototype,"metadataConfiguration",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"editorMode",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"noCustom",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"openExternalDocumentInNewTab",void 0);Ae([(0,$e.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],oe.prototype,"noCustomComponent",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"withManualResources",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"navigatorOnline",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"forcedOffline",void 0);Ae([(0,$e.property)({type:Object})],oe.prototype,"apiProvider",void 0);Ae([(0,$e.property)({type:Boolean})],oe.prototype,"authenticationRequired",void 0);Ae([(0,vt.jsonProperty)([])],oe.prototype,"messageContexts",void 0);Ae([(0,vt.jsonProperty)(void 0)],oe.prototype,"session",void 0);Ae([(0,$e.state)()],oe.prototype,"localesConfiguration",void 0);Ae([(0,$e.state)()],oe.prototype,"availableContentLocales",void 0);var Hp=m(Z());function tp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,i,n;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(i=o;i--!==0;)if(!mi(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(!mi(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),o=n.length,o!==a(e).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=o;i--!==0;){let s=n[i];if(!mi(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function mi(t,e){try{return tp(t,e)}catch{return!1}}function bi(t,e){return!mi(t,e)}var rp=m(Z(),1);var xi=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(i=>i.type===e);return o&&(this.queue=this.queue.filter(i=>i!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};var ro=m(Z(),1);var td=m(Z(),1);function rd(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,td.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return o();try{return JSON.parse(i)}catch{return o()}},toAttribute:i=>JSON.stringify(i)},hasChanged:bi,...e??{}})}var vi=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,i)=>{this.resolvePromise=o,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>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 id=m(B(),1);var Si=globalThis,op=Si.ShadowRoot&&(Si.ShadyCSS===void 0||Si.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,LS=Symbol();var od=(t,e)=>{if(op)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let i=document.createElement("style"),n=Si.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,t.appendChild(i)}};var Ci=class extends id.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 o={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(o);return od(i,e.elementStyles),i}};function nd(t,e,...o){var i;let n=t.querySelector(e);for(let a of o)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var Io=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},cd,ad=Symbol("constructorPrototype"),sd=Symbol("constructorName"),dd=Symbol("exportpartsDebouncer"),ld=Symbol("dynamicDependenciesLoaded"),jt=class extends Ci{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[cd]=new vi(5),this[sd]=this.constructor.name,this[ad]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[sd]&&Object.setPrototypeOf(this,this[ad])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[ld]||(e[ld]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];o=nd(this.shadowRoot,...a)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var o,i,n;if(((i=(o=this.shadowRoot)===null||o===void 0?void 0:o.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)}}scheduleExportpartsUpdate(){var e,o,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&i!==void 0&&i)&&this[dd].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)})}setExportpartsAttribute(e){var o,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.removeAttribute("exportparts");return}let h=new Set;for(let b of(i=(o=this.shadowRoot)===null||o===void 0?void 0:o.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(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...x,...S).filter(u).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let g=[...h.values()].flatMap(b=>p.map(x=>`${b}:${x}--${b}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};cd=dd;Io([(0,ro.property)()],jt.prototype,"exportpartsPrefix",void 0);Io([rd([])],jt.prototype,"exportpartsPrefixes",void 0);Io([(0,ro.property)()],jt.prototype,"customStylesheet",void 0);Io([(0,ro.property)()],jt.prototype,"elementToFocus",void 0);Io([(0,ro.state)()],jt.prototype,"useAdoptedStyleSheets",void 0);function Oi(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var _o=Symbol("internalReduxEventsUnsubscribers"),ar=Symbol("internalStoresUnsubscribers"),_r=Symbol("internalStores");function ip(t){var e,o,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=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[_r].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[_r].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[_r].get(s)}addStore(s,c){var u;c=(u=c??s.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(c),this[_r].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[_r].delete(c)}setupStores(){this.unsubscribeFromStores(),this[_r].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[ar].has(s.store):this[ar].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var u;this[ar].set(s,c.subscribe(()=>this.updateFromStores())),this[_o].set(s,[]),Oi(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[_o].get(s).push(()=>c.removeEventListener(p.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ar].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[ar].has(s)&&this[ar].get(s)(),this[ar].delete(s),(c=this[_o].get(s))===null||c===void 0||c.forEach(u=>u()),this[_o].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ar,o=_r,i=_o,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}var ud=class extends ip(jt){};function ut(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Kt(t){return!!t&&!!t[se]}function St(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var i=Object.getPrototypeOf(o);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===pp}(t)||Array.isArray(t)||!!t[bd]||!!(!((e=t.constructor)===null||e===void 0)&&e[bd])||ca(t)||da(t))}function Nr(t,e,o){o===void 0&&(o=!1),no(t)===0?(o?Object.keys:io)(t).forEach(function(i){o&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function no(t){var e=t[se];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ca(t)?2:da(t)?3:0}function oo(t,e){return no(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function np(t,e){return no(t)===2?t.get(e):t[e]}function xd(t,e,o){var i=no(t);i===2?t.set(e,o):i===3?t.add(o):t[e]=o}function vd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ca(t){return dp&&t instanceof Map}function da(t){return up&&t instanceof Set}function sr(t){return t.o||t.t}function ua(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Od(t);delete e[se];for(var o=io(e),i=0;i<o.length;i++){var n=o[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 pa(t,e){return e===void 0&&(e=!1),fa(t)||Kt(t)||!St(t)||(no(t)>1&&(t.set=t.add=t.clear=t.delete=ap),Object.freeze(t),e&&Nr(t,function(o,i){return pa(i,!0)},!0)),t}function ap(){ut(2)}function fa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Lt(t){var e=la[t];return e||ut(18,t),e}function sp(t,e){la[t]||(la[t]=e)}function na(){return Lo}function ta(t,e){e&&(Lt("Patches"),t.u=[],t.s=[],t.v=e)}function wi(t){aa(t),t.p.forEach(lp),t.p=null}function aa(t){t===Lo&&(Lo=t.l)}function pd(t){return Lo={p:[],l:Lo,h:t,m:!0,_:0}}function lp(t){var e=t[se];e.i===0||e.i===1?e.j():e.g=!0}function ra(t,e){e._=e.p.length;var o=e.p[0],i=t!==void 0&&t!==o;return e.h.O||Lt("ES5").S(e,t,i),i?(o[se].P&&(wi(e),ut(4)),St(t)&&(t=Ei(e,t),e.l||Ai(e,t)),e.u&&Lt("Patches").M(o[se].t,t,e.u,e.s)):t=Ei(e,o,[]),wi(e),e.u&&e.v(e.u,e.s),t!==Cd?t:void 0}function Ei(t,e,o){if(fa(e))return e;var i=e[se];if(!i)return Nr(e,function(c,u){return fd(t,i,e,c,u,o)},!0),e;if(i.A!==t)return e;if(!i.P)return Ai(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=ua(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Nr(a,function(c,u){return fd(t,i,n,c,u,o,s)}),Ai(t,n,!1),o&&t.u&&Lt("Patches").N(i,o,t.u,t.s)}return i.o}function fd(t,e,o,i,n,a,s){if(Kt(n)){var c=Ei(t,n,a&&e&&e.i!==3&&!oo(e.R,i)?a.concat(i):void 0);if(xd(o,i,c),!Kt(c))return;t.m=!1}else s&&o.add(n);if(St(n)&&!fa(n)){if(!t.h.D&&t._<1)return;Ei(t,n),e&&e.A.l||Ai(t,n)}}function Ai(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&pa(e,o)}function oa(t,e){var o=t[se];return(o?sr(o):t)[e]}function hd(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function lr(t){t.P||(t.P=!0,t.l&&lr(t.l))}function ia(t){t.o||(t.o=ua(t.t))}function sa(t,e,o){var i=ca(e)?Lt("MapSet").F(e,o):da(e)?Lt("MapSet").T(e,o):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:na(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},u=c,p=ko;s&&(u=[c],p=No);var h=Proxy.revocable(u,p),g=h.revoke,b=h.proxy;return c.k=b,c.j=g,b}(e,o):Lt("ES5").J(e,o);return(o?o.A:na()).p.push(i),i}function cp(t){return Kt(t)||ut(22,t),function e(o){if(!St(o))return o;var i,n=o[se],a=no(o);if(n){if(!n.P&&(n.i<4||!Lt("ES5").K(n)))return n.t;n.I=!0,i=gd(o,a),n.I=!1}else i=gd(o,a);return Nr(i,function(s,c){n&&np(n.t,s)===c||xd(i,s,e(c))}),a===3?new Set(i):i}(t)}function gd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ua(t)}function Sd(){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[se];return ko.get(p,s)},set:function(p){var h=this[se];ko.set(h,s,p)}},u}function e(s){for(var c=s.length-1;c>=0;c--){var u=s[c][se];if(!u.P)switch(u.i){case 5:i(u)&&lr(u);break;case 4:o(u)&&lr(u)}}}function o(s){for(var c=s.t,u=s.k,p=io(u),h=p.length-1;h>=0;h--){var g=p[h];if(g!==se){var b=c[g];if(b===void 0&&!oo(c,g))return!0;var x=u[g],S=x&&x[se];if(S?S.t!==b:!vd(x,b))return!0}}var O=!!c[se];return p.length!==io(c).length+(O?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&&ut(3,JSON.stringify(sr(s)))}var a={};sp("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 O=Od(b);delete O[se];for(var N=io(O),I=0;I<N.length;I++){var _=N[I];O[_]=t(_,g||!!O[_].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(u,s),h={i:u?5:4,A:c?c.A:na(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,se,{value:h,writable:!0}),p},S:function(s,c,u){u?Kt(c)&&c[se].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var g=h[se];if(g){var b=g.t,x=g.k,S=g.R,O=g.i;if(O===4)Nr(x,function(H){H!==se&&(b[H]!==void 0||oo(b,H)?S[H]||p(x[H]):(S[H]=!0,lr(g)))}),Nr(b,function(H){x[H]!==void 0||oo(x,H)||(S[H]=!1,lr(g))});else if(O===5){if(i(g)&&(lr(g),S.length=!0),x.length<b.length)for(var N=x.length;N<b.length;N++)S[N]=!1;else for(var I=b.length;I<x.length;I++)S[I]=!0;for(var _=Math.min(x.length,b.length),$=0;$<_;$++)x.hasOwnProperty($)||(S[$]=!0),S[$]===void 0&&p(x[$])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):i(s)}})}var yd,Lo,ha=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",dp=typeof Map<"u",up=typeof Set<"u",md=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Cd=ha?Symbol.for("immer-nothing"):((yd={})["immer-nothing"]=!0,yd),bd=ha?Symbol.for("immer-draftable"):"__$immer_draftable",se=ha?Symbol.for("immer-state"):"__$immer_state";var pp=""+Object.prototype.constructor,io=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Od=Object.getOwnPropertyDescriptors||function(t){var e={};return io(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},la={},ko={get:function(t,e){if(e===se)return t;var o=sr(t);if(!oo(o,e))return function(n,a,s){var c,u=hd(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,o,e);var i=o[e];return t.I||!St(i)?i:i===oa(t.t,e)?(ia(t),t.o[e]=sa(t.A.h,i,t)):i},has:function(t,e){return e in sr(t)},ownKeys:function(t){return Reflect.ownKeys(sr(t))},set:function(t,e,o){var i=hd(sr(t),e);if(i?.set)return i.set.call(t.k,o),!0;if(!t.P){var n=oa(sr(t),e),a=n?.[se];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(vd(o,n)&&(o!==void 0||oo(t.t,e)))return!0;ia(t),lr(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return oa(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ia(t),lr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=sr(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:o[e]}},defineProperty:function(){ut(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ut(12)}},No={};Nr(ko,function(t,e){No[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),No.deleteProperty=function(t,e){return No.set.call(this,t,e,void 0)},No.set=function(t,e,o){return ko.set.call(this,t[0],e,o,t[0])};var fp=function(){function t(o){var i=this;this.O=md,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(O){var N=this;O===void 0&&(O=c);for(var I=arguments.length,_=Array(I>1?I-1:0),$=1;$<I;$++)_[$-1]=arguments[$];return u.produce(O,function(H){var W;return(W=a).call.apply(W,[N,H].concat(_))})}}var p;if(typeof a!="function"&&ut(6),s!==void 0&&typeof s!="function"&&ut(7),St(n)){var h=pd(i),g=sa(i,n,void 0),b=!0;try{p=a(g),b=!1}finally{b?wi(h):aa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return ta(h,s),ra(O,h)},function(O){throw wi(h),O}):(ta(h,s),ra(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Cd&&(p=void 0),i.D&&pa(p,!0),s){var x=[],S=[];Lt("Patches").M(n,p,x,S),s(x,S)}return p}ut(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 o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){St(o)||ut(8),Kt(o)&&(o=cp(o));var i=pd(this),n=sa(this,o,void 0);return n[se].C=!0,aa(i),n},e.finishDraft=function(o,i){var n=o&&o[se],a=n.A;return ta(a,i),ra(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!md&&ut(20),this.O=o},e.applyPatches=function(o,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Lt("Patches").$;return Kt(o)?s(o,i):this.produce(o,function(c){return s(c,i)})},t}(),nt=new fp,hp=nt.produce,jS=nt.produceWithPatches.bind(nt),KS=nt.setAutoFreeze.bind(nt),ZS=nt.setUseProxies.bind(nt),qS=nt.applyPatches.bind(nt),YS=nt.createDraft.bind(nt),XS=nt.finishDraft.bind(nt),Ri=hp;function Lr(t){"@babel/helpers - typeof";return Lr=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},Lr(t)}function wd(t,e){if(Lr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,e||"default");if(Lr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ed(t){var e=wd(t,"string");return Lr(e)=="symbol"?e:e+""}function Ad(t,e,o){return(e=Ed(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Rd(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function ga(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Rd(Object(o),!0).forEach(function(i){Ad(t,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Rd(Object(o)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(o,i))})}return t}function He(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 Td=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ya=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ti={INIT:"@@redux/INIT"+ya(),REPLACE:"@@redux/REPLACE"+ya(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ya()}};function gp(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 ma(t,e,o){var i;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(He(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(He(1));return o(ma)(t,e)}if(typeof t!="function")throw new Error(He(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(He(3));return a}function g(O){if(typeof O!="function")throw new Error(He(4));if(u)throw new Error(He(5));var N=!0;return p(),c.push(O),function(){if(N){if(u)throw new Error(He(6));N=!1,p();var _=c.indexOf(O);c.splice(_,1),s=null}}}function b(O){if(!gp(O))throw new Error(He(7));if(typeof O.type>"u")throw new Error(He(8));if(u)throw new Error(He(9));try{u=!0,a=n(a,O)}finally{u=!1}for(var N=s=c,I=0;I<N.length;I++){var _=N[I];_()}return O}function x(O){if(typeof O!="function")throw new Error(He(10));n=O,b({type:Ti.REPLACE})}function S(){var O,N=g;return O={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(He(11));function $(){_.next&&_.next(h())}$();var H=N($);return{unsubscribe:H}}},O[Td]=function(){return this},O}return b({type:Ti.INIT}),i={dispatch:b,subscribe:g,getState:h,replaceReducer:x},i[Td]=S,i}function yp(t){Object.keys(t).forEach(function(e){var o=t[e],i=o(void 0,{type:Ti.INIT});if(typeof i>"u")throw new Error(He(12));if(typeof o(void 0,{type:Ti.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(He(13))})}function Id(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(o[n]=t[n])}var a=Object.keys(o),s,c;try{yp(o)}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 O=a[S],N=o[O],I=p[O],_=N(I,h);if(typeof _>"u"){var $=h&&h.type;throw new Error(He(14))}x[O]=_,b=b||_!==I}return b=b||a.length!==Object.keys(p).length,b?x:p}}function ao(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];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 _d(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(He(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(u){return u(s)});return a=ao.apply(void 0,c)(n.dispatch),ga(ga({},n),{},{dispatch:a})}}}function Nd(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 Ld=Nd();Ld.withExtraArgument=Nd;var ba=Ld;var Bd=function(){var t=function(e,o){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,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function i(){this.constructor=e}e.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)}}(),mp=function(t,e){var o={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(;o;)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 o.label++,{value:p[1],done:!1};case 5:o.label++,n=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}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}}},so=function(t,e){for(var o=0,i=e.length,n=t.length;o<i;o++,n++)t[n]=e[o];return t},bp=Object.defineProperty,xp=Object.defineProperties,vp=Object.getOwnPropertyDescriptors,kd=Object.getOwnPropertySymbols,Sp=Object.prototype.hasOwnProperty,Cp=Object.prototype.propertyIsEnumerable,Pd=function(t,e,o){return e in t?bp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},cr=function(t,e){for(var o in e||(e={}))Sp.call(e,o)&&Pd(t,o,e[o]);if(kd)for(var i=0,n=kd(e);i<n.length;i++){var o=n[i];Cp.call(e,o)&&Pd(t,o,e[o])}return t},xa=function(t,e){return xp(t,vp(e))},Op=function(t,e,o){return new Promise(function(i,n){var a=function(u){try{c(o.next(u))}catch(p){n(p)}},s=function(u){try{c(o.throw(u))}catch(p){n(p)}},c=function(u){return u.done?i(u.value):Promise.resolve(u.value).then(a,s)};c((o=o.apply(t,e)).next())})};var wp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ao:ao.apply(null,arguments)},gC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Ep(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Ap=function(t){Bd(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||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 o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,so([void 0],o[0].concat(this)))):new(e.bind.apply(e,so([void 0],o.concat(this))))},e}(Array),Rp=function(t){Bd(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||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 o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,so([void 0],o[0].concat(this)))):new(e.bind.apply(e,so([void 0],o.concat(this))))},e}(Array);function Ca(t){return St(t)?Ri(t,function(){}):t}function Tp(t){return typeof t=="boolean"}function Ip(){return function(e){return _p(e)}}function _p(t){t===void 0&&(t={});var e=t.thunk,o=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 Ap;if(o&&(Tp(o)?c.push(ba):c.push(ba.withExtraArgument(o.extraArgument))),0){if(n)var u;if(s)var p}return c}var va=!0;function Md(t){var e=Ip(),o=t||{},i=o.reducer,n=i===void 0?void 0:i,a=o.middleware,s=a===void 0?e():a,c=o.devTools,u=c===void 0?!0:c,p=o.preloadedState,h=p===void 0?void 0:p,g=o.enhancers,b=g===void 0?void 0:g,x;if(typeof n=="function")x=n;else if(Ep(n))x=Id(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),!va&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!va&&S.some(function(H){return typeof H!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=_d.apply(void 0,S),N=ao;u&&(N=wp(cr({trace:!va},typeof u=="object"&&u)));var I=new Rp(O),_=I;Array.isArray(b)?_=so([O],b):typeof b=="function"&&(_=b(I));var $=N.apply(void 0,_);return ma(x,h,$)}function dr(t,e){function o(){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 cr(cr({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(i){return i.type===t},o}function Fd(t){var e={},o=[],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 o.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,o,i]}function Np(t){return typeof t=="function"}function Lp(t,e,o,i){o===void 0&&(o=[]);var n=typeof e=="function"?Fd(e):[e,o,i],a=n[0],s=n[1],c=n[2],u;if(Np(t))u=function(){return Ca(t())};else{var p=Ca(t);u=function(){return p}}function h(g,b){g===void 0&&(g=u());var x=so([a[b.type]],s.filter(function(S){var O=S.matcher;return O(b)}).map(function(S){var O=S.reducer;return O}));return x.filter(function(S){return!!S}).length===0&&(x=[c]),x.reduce(function(S,O){if(O)if(Kt(S)){var N=S,I=O(N,b);return I===void 0?S:I}else{if(St(S))return Ri(S,function(_){return O(_,b)});var I=O(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 kp(t,e){return t+"/"+e}function Ud(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Ca(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(h){var g=i[h],b=kp(e,h),x,S;"reducer"in g?(x=g.reducer,S=g.prepare):x=g,a[h]=x,s[b]=x,c[h]=S?dr(b,S):dr(b)});function u(){var h=typeof t.extraReducers=="function"?Fd(t.extraReducers):[t.extraReducers],g=h[0],b=g===void 0?{}:g,x=h[1],S=x===void 0?[]:x,O=h[2],N=O===void 0?void 0:O,I=cr(cr({},b),s);return Lp(o,function(_){for(var $ in I)_.addCase($,I[$]);for(var H=0,W=S;H<W.length;H++){var qe=W[H];_.addMatcher(qe.matcher,qe.reducer)}N&&_.addDefaultCase(N)})}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 Pp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Dp=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Pp[Math.random()*64|0];return e},$p=["name","message","stack","code"],Sa=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Dd=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Bp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,i=$p;o<i.length;o++){var n=i[o];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},xC=function(){function t(e,o,i){var n=dr(e+"/fulfilled",function(h,g,b,x){return{payload:h,meta:xa(cr({},x||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),a=dr(e+"/pending",function(h,g,b){return{payload:void 0,meta:xa(cr({},b||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),s=dr(e+"/rejected",function(h,g,b,x,S){return{payload:x,error:(i&&i.serializeError||Bp)(h||"Rejected"),meta:xa(cr({},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):Dp(),O=new u,N,I=!1;function _(H){N=H,O.abort()}var $=function(){return Op(this,null,function(){var H,W,qe,wt,Ve,Et,_e;return mp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),wt=(H=i?.condition)==null?void 0:H.call(i,h,{getState:b,extra:x}),Fp(wt)?[4,wt]:[3,2];case 1:wt=y.sent(),y.label=2;case 2:if(wt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Ve=new Promise(function(v,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:N||"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([Ve,Promise.resolve(o(h,{dispatch:g,getState:b,extra:x,requestId:S,signal:O.signal,abort:_,rejectWithValue:function(v,P){return new Sa(v,P)},fulfillWithValue:function(v,P){return new Dd(v,P)}})).then(function(v){if(v instanceof Sa)throw v;return v instanceof Dd?n(v.payload,S,h,v.meta):n(v,S,h)})])];case 3:return qe=y.sent(),[3,5];case 4:return Et=y.sent(),qe=Et instanceof Sa?s(null,S,h,Et.payload,Et.meta):s(Et,S,h),[3,5];case 5:return _e=i&&!i.dispatchConditionRejection&&s.match(qe)&&qe.meta.condition,_e||g(qe),[2,qe]}})})}();return Object.assign($,{abort:_,requestId:S,arg:h,unwrap:function(){return $.then(Mp)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Mp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Fp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var zd="listener",Hd="completed",Wd="cancelled",vC="task-"+Wd,SC="task-"+Hd,CC=zd+"-"+Wd,OC=zd+"-"+Hd;var Oa="listenerMiddleware";var wC=dr(Oa+"/add"),EC=dr(Oa+"/removeAll"),AC=dr(Oa+"/remove");var $d,RC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return($d||($d=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Up=function(t){return function(e){setTimeout(e,t)}},TC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Up(10);Sd();function zp(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,i,n){this.eventBus.addEventListener(o,i,n)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,i,n){this.eventBus.removeEventListener(o,i,n)}}}var Ii=class extends zp(Object){};window.ftReduxStores||(window.ftReduxStores={});var Gd=class t extends Ii{static get(e){var o;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Oi(a))return a;if(n==null)return;let s=Ud({...n,reducers:(o=n.reducers)!==null&&o!==void 0?o:{}}),c=Md({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,o,i){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new xi;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 Ni=m(T());var _i=class extends it{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=A.getState().session;return!!e?.sessionAuthenticated}};var Wp="ft-user-assets",Gp={setAssetCount:(t,e)=>{let{userAssetType:o,count:i}=e.payload.assetCount;t.assetCounts.allAsset[o]=i},clearAssetCount:t=>{Object.values(xr).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}}},pt=Ni.FtReduxStore.get({name:Wp,reducers:Gp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(xr).map(t=>[t,void 0])),bookmarkByMap:{}}}}),wa=class{constructor(e=new _i){this.assetCountsService=e,this.currentSession=A.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new pi,this.savedSearchesService=new gi,A.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=A.getState();(0,Ni.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts())}clearUserAssetCounts(){pt.actions.clearAssetCount(),pt.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),pt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),pt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();pt.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&pt.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&pt.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(pt.getState().assetCounts.bookmarkByMap).length!==0;e===xr.BOOKMARKS&&o&&pt.actions.clearBookmarkCountByMap(),pt.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 o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;pt.actions.bookmarks(o)}}},Ea=new wa;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ea);(0,Vd.customElement)("ft-app-context")(oe);var Yd=m(Z());var Vp=m(T());function jd(t){return t.match(/^[\w-]+\.[\w-]+$/)}var jp=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Kd=Symbol("i18nAttributes"),Zd=Symbol("i18nListAttributes"),Do=Symbol("i18nProperties"),Li=Symbol("i18nContexts"),Po=Symbol("i18nUnsubs");function ur(t){var e,o;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?hi:eo}i18n(a){var s;this.hasI18nContext(a.context)||this.addI18nContext(a.context,void 0,a.custom);let c=(s=a.args)!==null&&s!==void 0?s:a.argsProvider?a.argsProvider(this):[];return this.getI18nService(a.custom).resolveMessage(a.context,a.key,...c)}customI18n(a,s){if(jd(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,...h})}:b;(s=this[Kd])===null||s===void 0||s.forEach((h,g)=>u[g]=p(h,g,u[g])),(c=this[Zd])===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[Do])===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[Li].set(u,{isCustomContext:c}),this[Po].has(u)||this[Po].set(u,this.getI18nService(c).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(c).prepareContext(u,s)}hasI18nContext(a){return this[Li].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Li].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Po].forEach(a=>a()),this[Po].clear()}}return e=Li,o=Po,jp([(0,Yd.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}var qd=class extends ur(Pi.FtLitElement){},ki=class extends ur(Pi.FtLitElementRedux){};var $o=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Ct=class extends ki{constructor(){super(),this.editorMode=!1,this.addStore(A)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Di.nothing:Di.html`
1667
+ `}connectedCallback(){super.connectedCallback(),A.addEventListener(Nt.eventName,this.reloadConfiguration)}disconnectedCallback(){A.addEventListener(Nt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,i,n,a,s,c,u;super.update(e),e.has("baseUrl")&&(A.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&A.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&A.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&A.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&A.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&A.actions.noCustom(this.noCustom),e.has("editorMode")&&A.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&A.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&A.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>oo.addContext(p)),e.has("openExternalDocumentInNewTab")&&A.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&A.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&A.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(A.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),A.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),A.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&A.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&A.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",()=>td(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};oe.elementDefinitions={};oe.styles=Zc;Ae([(0,Be.property)()],oe.prototype,"baseUrl",void 0);Ae([(0,Be.property)()],oe.prototype,"apiIntegrationIdentifier",void 0);Ae([(0,Be.property)()],oe.prototype,"apiIntegrationAppVersion",void 0);Ae([(0,Be.property)()],oe.prototype,"uiLocale",void 0);Ae([(0,St.jsonProperty)(null)],oe.prototype,"availableUiLocales",void 0);Ae([(0,St.jsonProperty)(null)],oe.prototype,"metadataConfiguration",void 0);Ae([(0,Be.property)({type:Boolean})],oe.prototype,"editorMode",void 0);Ae([(0,Be.property)({type:Boolean})],oe.prototype,"noCustom",void 0);Ae([(0,Be.property)({type:Boolean})],oe.prototype,"openExternalDocumentInNewTab",void 0);Ae([(0,Be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],oe.prototype,"noCustomComponent",void 0);Ae([(0,Be.property)({type:Boolean})],oe.prototype,"withManualResources",void 0);Ae([(0,Be.property)({type:Boolean})],oe.prototype,"navigatorOnline",void 0);Ae([(0,Be.property)({type:Boolean})],oe.prototype,"forcedOffline",void 0);Ae([(0,Be.property)({type:Object})],oe.prototype,"apiProvider",void 0);Ae([(0,Be.property)({type:Boolean})],oe.prototype,"authenticationRequired",void 0);Ae([(0,St.jsonProperty)([])],oe.prototype,"messageContexts",void 0);Ae([(0,St.jsonProperty)(void 0)],oe.prototype,"session",void 0);Ae([(0,Be.state)()],oe.prototype,"localesConfiguration",void 0);Ae([(0,Be.state)()],oe.prototype,"availableContentLocales",void 0);var Gp=m(Z());function op(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,i,n;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(i=o;i--!==0;)if(!bi(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(!bi(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),o=n.length,o!==a(e).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=o;i--!==0;){let s=n[i];if(!bi(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function bi(t,e){try{return op(t,e)}catch{return!1}}function xi(t,e){return!bi(t,e)}var ip=m(Z(),1);var vi=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(i=>i.type===e);return o&&(this.queue=this.queue.filter(i=>i!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};var no=m(Z(),1);var od=m(Z(),1);function id(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,od.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return o();try{return JSON.parse(i)}catch{return o()}},toAttribute:i=>JSON.stringify(i)},hasChanged:xi,...e??{}})}var Si=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,i)=>{this.resolvePromise=o,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>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 ad=m(B(),1);var Ci=globalThis,np=Ci.ShadowRoot&&(Ci.ShadyCSS===void 0||Ci.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,FS=Symbol();var nd=(t,e)=>{if(np)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let i=document.createElement("style"),n=Ci.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,t.appendChild(i)}};var Oi=class extends ad.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 o={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(o);return nd(i,e.elementStyles),i}};function sd(t,e,...o){var i;let n=t.querySelector(e);for(let a of o)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var No=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ud,ld=Symbol("constructorPrototype"),cd=Symbol("constructorName"),pd=Symbol("exportpartsDebouncer"),dd=Symbol("dynamicDependenciesLoaded"),jt=class extends Oi{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ud]=new Si(5),this[cd]=this.constructor.name,this[ld]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[cd]&&Object.setPrototypeOf(this,this[ld])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[dd]||(e[dd]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];o=sd(this.shadowRoot,...a)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var o,i,n;if(((i=(o=this.shadowRoot)===null||o===void 0?void 0:o.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)}}scheduleExportpartsUpdate(){var e,o,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&i!==void 0&&i)&&this[pd].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)})}setExportpartsAttribute(e){var o,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.removeAttribute("exportparts");return}let h=new Set;for(let b of(i=(o=this.shadowRoot)===null||o===void 0?void 0:o.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(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...x,...S).filter(u).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let g=[...h.values()].flatMap(b=>p.map(x=>`${b}:${x}--${b}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};ud=pd;No([(0,no.property)()],jt.prototype,"exportpartsPrefix",void 0);No([id([])],jt.prototype,"exportpartsPrefixes",void 0);No([(0,no.property)()],jt.prototype,"customStylesheet",void 0);No([(0,no.property)()],jt.prototype,"elementToFocus",void 0);No([(0,no.state)()],jt.prototype,"useAdoptedStyleSheets",void 0);function wi(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Lo=Symbol("internalReduxEventsUnsubscribers"),sr=Symbol("internalStoresUnsubscribers"),Nr=Symbol("internalStores");function ap(t){var e,o,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=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[Nr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Nr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Nr].get(s)}addStore(s,c){var u;c=(u=c??s.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(c),this[Nr].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Nr].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Nr].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[sr].has(s.store):this[sr].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var u;this[sr].set(s,c.subscribe(()=>this.updateFromStores())),this[Lo].set(s,[]),wi(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[Lo].get(s).push(()=>c.removeEventListener(p.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[sr].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[sr].has(s)&&this[sr].get(s)(),this[sr].delete(s),(c=this[Lo].get(s))===null||c===void 0||c.forEach(u=>u()),this[Lo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=sr,o=Nr,i=Lo,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}var fd=class extends ap(jt){};function pt(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Kt(t){return!!t&&!!t[se]}function Ct(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var i=Object.getPrototypeOf(o);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===hp}(t)||Array.isArray(t)||!!t[vd]||!!(!((e=t.constructor)===null||e===void 0)&&e[vd])||da(t)||ua(t))}function Lr(t,e,o){o===void 0&&(o=!1),lo(t)===0?(o?Object.keys:so)(t).forEach(function(i){o&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function lo(t){var e=t[se];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:da(t)?2:ua(t)?3:0}function ao(t,e){return lo(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function sp(t,e){return lo(t)===2?t.get(e):t[e]}function Sd(t,e,o){var i=lo(t);i===2?t.set(e,o):i===3?t.add(o):t[e]=o}function Cd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function da(t){return pp&&t instanceof Map}function ua(t){return fp&&t instanceof Set}function lr(t){return t.o||t.t}function pa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ed(t);delete e[se];for(var o=so(e),i=0;i<o.length;i++){var n=o[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 fa(t,e){return e===void 0&&(e=!1),ha(t)||Kt(t)||!Ct(t)||(lo(t)>1&&(t.set=t.add=t.clear=t.delete=lp),Object.freeze(t),e&&Lr(t,function(o,i){return fa(i,!0)},!0)),t}function lp(){pt(2)}function ha(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Lt(t){var e=ca[t];return e||pt(18,t),e}function cp(t,e){ca[t]||(ca[t]=e)}function aa(){return Po}function ra(t,e){e&&(Lt("Patches"),t.u=[],t.s=[],t.v=e)}function Ei(t){sa(t),t.p.forEach(dp),t.p=null}function sa(t){t===Po&&(Po=t.l)}function hd(t){return Po={p:[],l:Po,h:t,m:!0,_:0}}function dp(t){var e=t[se];e.i===0||e.i===1?e.j():e.g=!0}function oa(t,e){e._=e.p.length;var o=e.p[0],i=t!==void 0&&t!==o;return e.h.O||Lt("ES5").S(e,t,i),i?(o[se].P&&(Ei(e),pt(4)),Ct(t)&&(t=Ai(e,t),e.l||Ri(e,t)),e.u&&Lt("Patches").M(o[se].t,t,e.u,e.s)):t=Ai(e,o,[]),Ei(e),e.u&&e.v(e.u,e.s),t!==wd?t:void 0}function Ai(t,e,o){if(ha(e))return e;var i=e[se];if(!i)return Lr(e,function(c,u){return gd(t,i,e,c,u,o)},!0),e;if(i.A!==t)return e;if(!i.P)return Ri(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=pa(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Lr(a,function(c,u){return gd(t,i,n,c,u,o,s)}),Ri(t,n,!1),o&&t.u&&Lt("Patches").N(i,o,t.u,t.s)}return i.o}function gd(t,e,o,i,n,a,s){if(Kt(n)){var c=Ai(t,n,a&&e&&e.i!==3&&!ao(e.R,i)?a.concat(i):void 0);if(Sd(o,i,c),!Kt(c))return;t.m=!1}else s&&o.add(n);if(Ct(n)&&!ha(n)){if(!t.h.D&&t._<1)return;Ai(t,n),e&&e.A.l||Ri(t,n)}}function Ri(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&fa(e,o)}function ia(t,e){var o=t[se];return(o?lr(o):t)[e]}function yd(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function cr(t){t.P||(t.P=!0,t.l&&cr(t.l))}function na(t){t.o||(t.o=pa(t.t))}function la(t,e,o){var i=da(e)?Lt("MapSet").F(e,o):ua(e)?Lt("MapSet").T(e,o):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:aa(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},u=c,p=Do;s&&(u=[c],p=ko);var h=Proxy.revocable(u,p),g=h.revoke,b=h.proxy;return c.k=b,c.j=g,b}(e,o):Lt("ES5").J(e,o);return(o?o.A:aa()).p.push(i),i}function up(t){return Kt(t)||pt(22,t),function e(o){if(!Ct(o))return o;var i,n=o[se],a=lo(o);if(n){if(!n.P&&(n.i<4||!Lt("ES5").K(n)))return n.t;n.I=!0,i=md(o,a),n.I=!1}else i=md(o,a);return Lr(i,function(s,c){n&&sp(n.t,s)===c||Sd(i,s,e(c))}),a===3?new Set(i):i}(t)}function md(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return pa(t)}function Od(){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[se];return Do.get(p,s)},set:function(p){var h=this[se];Do.set(h,s,p)}},u}function e(s){for(var c=s.length-1;c>=0;c--){var u=s[c][se];if(!u.P)switch(u.i){case 5:i(u)&&cr(u);break;case 4:o(u)&&cr(u)}}}function o(s){for(var c=s.t,u=s.k,p=so(u),h=p.length-1;h>=0;h--){var g=p[h];if(g!==se){var b=c[g];if(b===void 0&&!ao(c,g))return!0;var x=u[g],S=x&&x[se];if(S?S.t!==b:!Cd(x,b))return!0}}var O=!!c[se];return p.length!==so(c).length+(O?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&&pt(3,JSON.stringify(lr(s)))}var a={};cp("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 O=Ed(b);delete O[se];for(var N=so(O),I=0;I<N.length;I++){var _=N[I];O[_]=t(_,g||!!O[_].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(u,s),h={i:u?5:4,A:c?c.A:aa(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,se,{value:h,writable:!0}),p},S:function(s,c,u){u?Kt(c)&&c[se].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var g=h[se];if(g){var b=g.t,x=g.k,S=g.R,O=g.i;if(O===4)Lr(x,function(H){H!==se&&(b[H]!==void 0||ao(b,H)?S[H]||p(x[H]):(S[H]=!0,cr(g)))}),Lr(b,function(H){x[H]!==void 0||ao(x,H)||(S[H]=!1,cr(g))});else if(O===5){if(i(g)&&(cr(g),S.length=!0),x.length<b.length)for(var N=x.length;N<b.length;N++)S[N]=!1;else for(var I=b.length;I<x.length;I++)S[I]=!0;for(var _=Math.min(x.length,b.length),$=0;$<_;$++)x.hasOwnProperty($)||(S[$]=!0),S[$]===void 0&&p(x[$])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):i(s)}})}var bd,Po,ga=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",pp=typeof Map<"u",fp=typeof Set<"u",xd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",wd=ga?Symbol.for("immer-nothing"):((bd={})["immer-nothing"]=!0,bd),vd=ga?Symbol.for("immer-draftable"):"__$immer_draftable",se=ga?Symbol.for("immer-state"):"__$immer_state";var hp=""+Object.prototype.constructor,so=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ed=Object.getOwnPropertyDescriptors||function(t){var e={};return so(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},ca={},Do={get:function(t,e){if(e===se)return t;var o=lr(t);if(!ao(o,e))return function(n,a,s){var c,u=yd(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,o,e);var i=o[e];return t.I||!Ct(i)?i:i===ia(t.t,e)?(na(t),t.o[e]=la(t.A.h,i,t)):i},has:function(t,e){return e in lr(t)},ownKeys:function(t){return Reflect.ownKeys(lr(t))},set:function(t,e,o){var i=yd(lr(t),e);if(i?.set)return i.set.call(t.k,o),!0;if(!t.P){var n=ia(lr(t),e),a=n?.[se];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Cd(o,n)&&(o!==void 0||ao(t.t,e)))return!0;na(t),cr(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return ia(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,na(t),cr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=lr(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:o[e]}},defineProperty:function(){pt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){pt(12)}},ko={};Lr(Do,function(t,e){ko[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ko.deleteProperty=function(t,e){return ko.set.call(this,t,e,void 0)},ko.set=function(t,e,o){return Do.set.call(this,t[0],e,o,t[0])};var gp=function(){function t(o){var i=this;this.O=xd,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var u=i;return function(O){var N=this;O===void 0&&(O=c);for(var I=arguments.length,_=Array(I>1?I-1:0),$=1;$<I;$++)_[$-1]=arguments[$];return u.produce(O,function(H){var W;return(W=a).call.apply(W,[N,H].concat(_))})}}var p;if(typeof a!="function"&&pt(6),s!==void 0&&typeof s!="function"&&pt(7),Ct(n)){var h=hd(i),g=la(i,n,void 0),b=!0;try{p=a(g),b=!1}finally{b?Ei(h):sa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return ra(h,s),oa(O,h)},function(O){throw Ei(h),O}):(ra(h,s),oa(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===wd&&(p=void 0),i.D&&fa(p,!0),s){var x=[],S=[];Lt("Patches").M(n,p,x,S),s(x,S)}return p}pt(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 o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){Ct(o)||pt(8),Kt(o)&&(o=up(o));var i=hd(this),n=la(this,o,void 0);return n[se].C=!0,sa(i),n},e.finishDraft=function(o,i){var n=o&&o[se],a=n.A;return ra(a,i),oa(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!xd&&pt(20),this.O=o},e.applyPatches=function(o,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Lt("Patches").$;return Kt(o)?s(o,i):this.produce(o,function(c){return s(c,i)})},t}(),nt=new gp,yp=nt.produce,JS=nt.produceWithPatches.bind(nt),eC=nt.setAutoFreeze.bind(nt),tC=nt.setUseProxies.bind(nt),rC=nt.applyPatches.bind(nt),oC=nt.createDraft.bind(nt),iC=nt.finishDraft.bind(nt),Ti=yp;function kr(t){"@babel/helpers - typeof";return kr=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},kr(t)}function Ad(t,e){if(kr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,e||"default");if(kr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Rd(t){var e=Ad(t,"string");return kr(e)=="symbol"?e:e+""}function Td(t,e,o){return(e=Rd(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Id(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function ya(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Id(Object(o),!0).forEach(function(i){Td(t,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Id(Object(o)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(o,i))})}return t}function He(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 _d=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ma=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ii={INIT:"@@redux/INIT"+ma(),REPLACE:"@@redux/REPLACE"+ma(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ma()}};function mp(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 ba(t,e,o){var i;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(He(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(He(1));return o(ba)(t,e)}if(typeof t!="function")throw new Error(He(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(He(3));return a}function g(O){if(typeof O!="function")throw new Error(He(4));if(u)throw new Error(He(5));var N=!0;return p(),c.push(O),function(){if(N){if(u)throw new Error(He(6));N=!1,p();var _=c.indexOf(O);c.splice(_,1),s=null}}}function b(O){if(!mp(O))throw new Error(He(7));if(typeof O.type>"u")throw new Error(He(8));if(u)throw new Error(He(9));try{u=!0,a=n(a,O)}finally{u=!1}for(var N=s=c,I=0;I<N.length;I++){var _=N[I];_()}return O}function x(O){if(typeof O!="function")throw new Error(He(10));n=O,b({type:Ii.REPLACE})}function S(){var O,N=g;return O={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(He(11));function $(){_.next&&_.next(h())}$();var H=N($);return{unsubscribe:H}}},O[_d]=function(){return this},O}return b({type:Ii.INIT}),i={dispatch:b,subscribe:g,getState:h,replaceReducer:x},i[_d]=S,i}function bp(t){Object.keys(t).forEach(function(e){var o=t[e],i=o(void 0,{type:Ii.INIT});if(typeof i>"u")throw new Error(He(12));if(typeof o(void 0,{type:Ii.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(He(13))})}function Nd(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(o[n]=t[n])}var a=Object.keys(o),s,c;try{bp(o)}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 O=a[S],N=o[O],I=p[O],_=N(I,h);if(typeof _>"u"){var $=h&&h.type;throw new Error(He(14))}x[O]=_,b=b||_!==I}return b=b||a.length!==Object.keys(p).length,b?x:p}}function co(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];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 Ld(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(He(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(u){return u(s)});return a=co.apply(void 0,c)(n.dispatch),ya(ya({},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 Pd=kd();Pd.withExtraArgument=kd;var xa=Pd;var Fd=function(){var t=function(e,o){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,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function i(){this.constructor=e}e.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)}}(),xp=function(t,e){var o={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(;o;)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 o.label++,{value:p[1],done:!1};case 5:o.label++,n=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}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}}},uo=function(t,e){for(var o=0,i=e.length,n=t.length;o<i;o++,n++)t[n]=e[o];return t},vp=Object.defineProperty,Sp=Object.defineProperties,Cp=Object.getOwnPropertyDescriptors,Dd=Object.getOwnPropertySymbols,Op=Object.prototype.hasOwnProperty,wp=Object.prototype.propertyIsEnumerable,$d=function(t,e,o){return e in t?vp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},dr=function(t,e){for(var o in e||(e={}))Op.call(e,o)&&$d(t,o,e[o]);if(Dd)for(var i=0,n=Dd(e);i<n.length;i++){var o=n[i];wp.call(e,o)&&$d(t,o,e[o])}return t},va=function(t,e){return Sp(t,Cp(e))},Ep=function(t,e,o){return new Promise(function(i,n){var a=function(u){try{c(o.next(u))}catch(p){n(p)}},s=function(u){try{c(o.throw(u))}catch(p){n(p)}},c=function(u){return u.done?i(u.value):Promise.resolve(u.value).then(a,s)};c((o=o.apply(t,e)).next())})};var Ap=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?co:co.apply(null,arguments)},CC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Rp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Tp=function(t){Fd(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||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 o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,uo([void 0],o[0].concat(this)))):new(e.bind.apply(e,uo([void 0],o.concat(this))))},e}(Array),Ip=function(t){Fd(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||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 o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,uo([void 0],o[0].concat(this)))):new(e.bind.apply(e,uo([void 0],o.concat(this))))},e}(Array);function Oa(t){return Ct(t)?Ti(t,function(){}):t}function _p(t){return typeof t=="boolean"}function Np(){return function(e){return Lp(e)}}function Lp(t){t===void 0&&(t={});var e=t.thunk,o=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 Tp;if(o&&(_p(o)?c.push(xa):c.push(xa.withExtraArgument(o.extraArgument))),0){if(n)var u;if(s)var p}return c}var Sa=!0;function Ud(t){var e=Np(),o=t||{},i=o.reducer,n=i===void 0?void 0:i,a=o.middleware,s=a===void 0?e():a,c=o.devTools,u=c===void 0?!0:c,p=o.preloadedState,h=p===void 0?void 0:p,g=o.enhancers,b=g===void 0?void 0:g,x;if(typeof n=="function")x=n;else if(Rp(n))x=Nd(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),!Sa&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Sa&&S.some(function(H){return typeof H!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Ld.apply(void 0,S),N=co;u&&(N=Ap(dr({trace:!Sa},typeof u=="object"&&u)));var I=new Ip(O),_=I;Array.isArray(b)?_=uo([O],b):typeof b=="function"&&(_=b(I));var $=N.apply(void 0,_);return ba(x,h,$)}function ur(t,e){function o(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return dr(dr({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(i){return i.type===t},o}function zd(t){var e={},o=[],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 o.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,o,i]}function kp(t){return typeof t=="function"}function Pp(t,e,o,i){o===void 0&&(o=[]);var n=typeof e=="function"?zd(e):[e,o,i],a=n[0],s=n[1],c=n[2],u;if(kp(t))u=function(){return Oa(t())};else{var p=Oa(t);u=function(){return p}}function h(g,b){g===void 0&&(g=u());var x=uo([a[b.type]],s.filter(function(S){var O=S.matcher;return O(b)}).map(function(S){var O=S.reducer;return O}));return x.filter(function(S){return!!S}).length===0&&(x=[c]),x.reduce(function(S,O){if(O)if(Kt(S)){var N=S,I=O(N,b);return I===void 0?S:I}else{if(Ct(S))return Ti(S,function(_){return O(_,b)});var I=O(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 Dp(t,e){return t+"/"+e}function Hd(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Oa(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(h){var g=i[h],b=Dp(e,h),x,S;"reducer"in g?(x=g.reducer,S=g.prepare):x=g,a[h]=x,s[b]=x,c[h]=S?ur(b,S):ur(b)});function u(){var h=typeof t.extraReducers=="function"?zd(t.extraReducers):[t.extraReducers],g=h[0],b=g===void 0?{}:g,x=h[1],S=x===void 0?[]:x,O=h[2],N=O===void 0?void 0:O,I=dr(dr({},b),s);return Pp(o,function(_){for(var $ in I)_.addCase($,I[$]);for(var H=0,W=S;H<W.length;H++){var qe=W[H];_.addMatcher(qe.matcher,qe.reducer)}N&&_.addDefaultCase(N)})}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 $p="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Bp=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=$p[Math.random()*64|0];return e},Mp=["name","message","stack","code"],Ca=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Bd=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Fp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,i=Mp;o<i.length;o++){var n=i[o];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},AC=function(){function t(e,o,i){var n=ur(e+"/fulfilled",function(h,g,b,x){return{payload:h,meta:va(dr({},x||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),a=ur(e+"/pending",function(h,g,b){return{payload:void 0,meta:va(dr({},b||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),s=ur(e+"/rejected",function(h,g,b,x,S){return{payload:x,error:(i&&i.serializeError||Fp)(h||"Rejected"),meta:va(dr({},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):Bp(),O=new u,N,I=!1;function _(H){N=H,O.abort()}var $=function(){return Ep(this,null,function(){var H,W,qe,Et,Ve,At,Ne;return xp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Et=(H=i?.condition)==null?void 0:H.call(i,h,{getState:b,extra:x}),zp(Et)?[4,Et]:[3,2];case 1:Et=y.sent(),y.label=2;case 2:if(Et===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Ve=new Promise(function(v,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:N||"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([Ve,Promise.resolve(o(h,{dispatch:g,getState:b,extra:x,requestId:S,signal:O.signal,abort:_,rejectWithValue:function(v,P){return new Ca(v,P)},fulfillWithValue:function(v,P){return new Bd(v,P)}})).then(function(v){if(v instanceof Ca)throw v;return v instanceof Bd?n(v.payload,S,h,v.meta):n(v,S,h)})])];case 3:return qe=y.sent(),[3,5];case 4:return At=y.sent(),qe=At instanceof Ca?s(null,S,h,At.payload,At.meta):s(At,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($,{abort:_,requestId:S,arg:h,unwrap:function(){return $.then(Up)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Up(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function zp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Wd="listener",Gd="completed",Vd="cancelled",RC="task-"+Vd,TC="task-"+Gd,IC=Wd+"-"+Vd,_C=Wd+"-"+Gd;var wa="listenerMiddleware";var NC=ur(wa+"/add"),LC=ur(wa+"/removeAll"),kC=ur(wa+"/remove");var Md,PC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Md||(Md=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Hp=function(t){return function(e){setTimeout(e,t)}},DC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Hp(10);Od();function Wp(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,i,n){this.eventBus.addEventListener(o,i,n)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,i,n){this.eventBus.removeEventListener(o,i,n)}}}var _i=class extends Wp(Object){};window.ftReduxStores||(window.ftReduxStores={});var jd=class t extends _i{static get(e){var o;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(wi(a))return a;if(n==null)return;let s=Hd({...n,reducers:(o=n.reducers)!==null&&o!==void 0?o:{}}),c=Ud({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,o,i){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new vi;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 Li=m(T());var Ni=class extends it{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=A.getState().session;return!!e?.sessionAuthenticated}};var Vp="ft-user-assets",jp={setAssetCount:(t,e)=>{let{userAssetType:o,count:i}=e.payload.assetCount;t.assetCounts.allAsset[o]=i},clearAssetCount:t=>{Object.values(vr).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}}},ft=Li.FtReduxStore.get({name:Vp,reducers:jp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(vr).map(t=>[t,void 0])),bookmarkByMap:{}}}}),Ea=class{constructor(e=new Ni){this.assetCountsService=e,this.currentSession=A.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new fi,this.savedSearchesService=new yi,A.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=A.getState();(0,Li.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts())}clearUserAssetCounts(){ft.actions.clearAssetCount(),ft.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ft.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ft.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ft.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&ft.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&ft.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(ft.getState().assetCounts.bookmarkByMap).length!==0;e===vr.BOOKMARKS&&o&&ft.actions.clearBookmarkCountByMap(),ft.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 o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ft.actions.bookmarks(o)}}},Aa=new Ea;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Aa);(0,Kd.customElement)("ft-app-context")(oe);var Qd=m(Z());var Kp=m(T());function Zd(t){return t.match(/^[\w-]+\.[\w-]+$/)}var Zp=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},qd=Symbol("i18nAttributes"),Yd=Symbol("i18nListAttributes"),Bo=Symbol("i18nProperties"),ki=Symbol("i18nContexts"),$o=Symbol("i18nUnsubs");function pr(t){var e,o;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?gi:oo}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}customI18n(a,s){if(Zd(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[qd])===null||s===void 0||s.forEach((h,g)=>u[g]=p(h,g,u[g])),(c=this[Yd])===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[Bo])===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[ki].set(u,{isCustomContext:c}),this[$o].has(u)||this[$o].set(u,this.getI18nService(c).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(c).prepareContext(u,s)}hasI18nContext(a){return this[ki].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ki].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[$o].forEach(a=>a()),this[$o].clear()}}return e=ki,o=$o,Zp([(0,Qd.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}var Xd=class extends pr(Di.FtLitElement){},Pi=class extends pr(Di.FtLitElementRedux){};var Mo=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Ot=class extends Pi{constructor(){super(),this.editorMode=!1,this.addStore(A)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":$i.nothing:$i.html`
1667
1668
  <span class="ft-i18n">
1668
1669
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
1669
1670
  </span>
1670
- `}update(e){var o;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ct.elementDefinitions={};Ct.styles=Gc;$o([(0,Bi.redux)()],Ct.prototype,"editorMode",void 0);$o([(0,$i.property)()],Ct.prototype,"context",void 0);$o([(0,$i.property)()],Ct.prototype,"key",void 0);$o([(0,Bi.jsonProperty)([])],Ct.prototype,"args",void 0);$o([(0,$i.property)()],Ct.prototype,"defaultMessage",void 0);var pr=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?hi:eo}constructor(e,o=!1){this.name=e,this.custom=o,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)})}};var Mi=(t,e)=>(o,i)=>{var n,a;o.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};o[Do]=(a=o[Do])!==null&&a!==void 0?a:new Map,o[Do].set(i,s)};(0,Xd.customElement)("ft-i18n")(Ct);var V=pr.build("integratedFeedbackComponent"),Qd={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 Ra=m(T());var Re=m(B()),z=m(Z()),nu=m(jn()),au=m($t());var Fi=t=>t??ve;var fr=m(T());var Jd=m(B()),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")},eu=Jd.css`
1671
+ `}update(e){var o;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ot.elementDefinitions={};Ot.styles=jc;Mo([(0,Mi.redux)()],Ot.prototype,"editorMode",void 0);Mo([(0,Bi.property)()],Ot.prototype,"context",void 0);Mo([(0,Bi.property)()],Ot.prototype,"key",void 0);Mo([(0,Mi.jsonProperty)([])],Ot.prototype,"args",void 0);Mo([(0,Bi.property)()],Ot.prototype,"defaultMessage",void 0);var fr=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?gi:oo}constructor(e,o=!1){this.name=e,this.custom=o,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)})}};var Fi=(t,e)=>(o,i)=>{var n,a;o.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};o[Bo]=(a=o[Bo])!==null&&a!==void 0?a:new Map,o[Bo].set(i,s)};(0,Jd.customElement)("ft-i18n")(Ot);var V=fr.build("integratedFeedbackComponent"),eu={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 Ta=m(T());var Re=m(B()),z=m(Z()),su=m(Kn()),lu=m($t());var Ui=t=>t??ve;var hr=m(T());var tu=m(B()),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")},ru=tu.css`
1671
1672
  *:focus {
1672
1673
  outline: none;
1673
1674
  }
@@ -1677,7 +1678,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1677
1678
  flex-direction: column;
1678
1679
  align-items: stretch;
1679
1680
  position: relative;
1680
- --ft-text-field-internal-suggest-size: ${U.suggestSize};
1681
+ --text-field-internal-suggest-size: ${U.suggestSize};
1681
1682
  }
1682
1683
 
1683
1684
  ft-input-label {
@@ -1807,7 +1808,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1807
1808
  border-radius: 0 0 ${U.borderRadiusS} ${U.borderRadiusS};
1808
1809
  box-shadow: ${U.elevation02};
1809
1810
  outline: none;
1810
- max-height: var(--ft-text-field-internal-suggest-size);
1811
+ max-height: var(--text-field-internal-suggest-size);
1811
1812
  overflow-y: auto;
1812
1813
  }
1813
1814
 
@@ -1826,7 +1827,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1826
1827
  .ft-text-field--with-password ft-icon:hover {
1827
1828
  cursor: pointer;
1828
1829
  }
1829
- `;var ou=m(T()),Bo=m(B()),kr=m(Z());var tu=m(B());var ru=tu.css`
1830
+ `;var nu=m(T()),Fo=m(B()),Pr=m(Z());var ou=m(B());var iu=ou.css`
1830
1831
  .ft-text-field-suggestion {
1831
1832
  position: relative;
1832
1833
  padding: 8px 16px;
@@ -1862,24 +1863,24 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1862
1863
  slot {
1863
1864
  pointer-events: none;
1864
1865
  }
1865
- `;var iu=m($t()),Ui=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Aa=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},ft=class extends ou.FtLitElement{render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return Bo.html`
1866
- <div class=${(0,iu.classMap)(e)}
1866
+ `;var au=m($t()),zi=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Ra=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},ht=class extends nu.FtLitElement{render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return Fo.html`
1867
+ <div class=${(0,au.classMap)(e)}
1867
1868
  tabindex="-1"
1868
1869
  @keydown=${this.onKeyDown}
1869
1870
  @click=${this.confirmSuggestion}>
1870
1871
  <ft-ripple></ft-ripple>
1871
- ${this.helper?Bo.html`
1872
+ ${this.helper?Fo.html`
1872
1873
  <ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
1873
1874
  ${this.helper}
1874
- </ft-typography>`:Bo.nothing}
1875
+ </ft-typography>`:Fo.nothing}
1875
1876
  <ft-typography part="label"
1876
1877
  variant="body1"
1877
1878
  class="ft-text-field-suggestion--label">
1878
1879
  <slot></slot>
1879
1880
  </ft-typography>
1880
1881
  </div>
1881
- `}focus(e){var o;(o=this.container)===null||o===void 0||o.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new Aa(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())}};ft.elementDefinitions={"ft-ripple":K,"ft-typography":fe,"ft-icon":he};ft.styles=ru;Ui([(0,kr.property)()],ft.prototype,"value",void 0);Ui([(0,kr.property)()],ft.prototype,"helper",void 0);Ui([(0,kr.query)(".ft-text-field-suggestion")],ft.prototype,"container",void 0);Ui([(0,kr.queryAssignedNodes)()],ft.prototype,"assignedNodes",void 0);var j=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},M=class extends(0,fr.toFtFormComponent)(fr.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=Er.EYE_SLASH,this.passwordRevealedIcon=Er.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 o=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",o)}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()},o=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),n=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||o;return Re.html`
1882
- <div class="${(0,au.classMap)(e)}">
1882
+ `}focus(e){var o;(o=this.container)===null||o===void 0||o.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new Ra(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())}};ht.elementDefinitions={"ft-ripple":K,"ft-typography":fe,"ft-icon":he};ht.styles=iu;zi([(0,Pr.property)()],ht.prototype,"value",void 0);zi([(0,Pr.property)()],ht.prototype,"helper",void 0);zi([(0,Pr.query)(".ft-text-field-suggestion")],ht.prototype,"container",void 0);zi([(0,Pr.queryAssignedNodes)()],ht.prototype,"assignedNodes",void 0);var j=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},M=class extends(0,hr.toFtFormComponent)(hr.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 o=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",o)}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()},o=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),n=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||o;return Re.html`
1883
+ <div class="${(0,lu.classMap)(e)}">
1883
1884
  <div class="ft-text-field--main-panel"
1884
1885
  @keydown=${this.handleKeyboardNavigation}
1885
1886
  @focusout=${this.onMainPanelBlur}>
@@ -1898,10 +1899,10 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1898
1899
  </ft-typography>
1899
1900
  `:Re.nothing}
1900
1901
  <input type=${this.resolveInputType()}
1901
- name=${Fi(this.name)}
1902
- maxlength=${Fi(this.maxLength||void 0)}
1902
+ name=${Ui(this.name)}
1903
+ maxlength=${Ui(this.maxLength||void 0)}
1903
1904
  aria-label="${this.label}"
1904
- autocomplete=${Fi(this.autocomplete)}
1905
+ autocomplete=${Ui(this.autocomplete)}
1905
1906
  class="ft-typography--body1 ft-text-field--input"
1906
1907
  part="input"
1907
1908
  ?disabled=${this.disabled}
@@ -1928,7 +1929,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1928
1929
  `:Re.nothing}
1929
1930
  </div>
1930
1931
  `}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?Re.html`
1931
- ${(0,nu.repeat)(this.providedSuggestions,e=>Re.html`
1932
+ ${(0,su.repeat)(this.providedSuggestions,e=>Re.html`
1932
1933
  <ft-text-field-suggestion value=${e.value} @click=${o=>this.onSuggestionClick(o,e.clickHandler)}>
1933
1934
  ${e.icon?Re.html`
1934
1935
  <ft-icon .value=${e.icon}></ft-icon>
@@ -1947,15 +1948,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1947
1948
  .variant=${this.iconVariant}
1948
1949
  .value=${this.icon}
1949
1950
  @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
1950
- `:Re.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 o,i,n;!((o=this.input)===null||o===void 0)&&o.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,o=!1){this.value!==e&&(this.setInternalValue(e),this.dispatchEvent(new CustomEvent("live-change",{detail:e}))),o&&this.dispatchedValue!==e&&(this.dispatchedValue=e,this.dispatchEvent(new CustomEvent("change",{detail:e})))}handleInput(e){var o;let i=((o=this.input)===null||o===void 0?void 0:o.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var o;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,(o=this.visibleSuggestions[n])===null||o===void 0||o.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var o;this.setValue(e.detail,!0),(o=this.input)===null||o===void 0||o.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,o;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((o=this.input)===null||o===void 0?void 0:o.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,fr.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--ft-text-field-internal-suggest-size",0).then(({x:o,y:i})=>{this.suggestionsContainer.style.left=`${o}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};M.elementDefinitions={"ft-input-label":ot,"ft-ripple":K,"ft-typography":fe,"ft-icon":he,"ft-text-field-suggestion":ft};M.styles=[zr,fr.noTextInputDefaultClearButton,eu];j([(0,z.property)()],M.prototype,"label",void 0);j([(0,z.property)({noAccessor:!0})],M.prototype,"value",null);j([(0,z.state)()],M.prototype,"dispatchedValue",void 0);j([(0,z.property)()],M.prototype,"helper",void 0);j([(0,z.property)()],M.prototype,"suggestionsHelper",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"outlined",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"disabled",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"error",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"fixedMenuPosition",void 0);j([(0,z.property)()],M.prototype,"prefix",void 0);j([(0,z.property)()],M.prototype,"icon",void 0);j([(0,z.property)()],M.prototype,"name",void 0);j([(0,z.property)()],M.prototype,"type",void 0);j([(0,z.property)()],M.prototype,"passwordHiddenIcon",void 0);j([(0,z.property)()],M.prototype,"passwordRevealedIcon",void 0);j([(0,z.property)()],M.prototype,"iconVariant",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"filterSuggestions",void 0);j([(0,z.property)({type:Number})],M.prototype,"maxLength",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"password",void 0);j([(0,z.property)({type:String})],M.prototype,"autocomplete",void 0);j([(0,z.property)({attribute:!1})],M.prototype,"suggestionsProvider",void 0);j([(0,z.state)()],M.prototype,"focused",void 0);j([(0,z.state)()],M.prototype,"hidePassword",void 0);j([(0,z.state)()],M.prototype,"hideSuggestions",void 0);j([(0,z.state)()],M.prototype,"visibleSuggestions",void 0);j([(0,z.state)()],M.prototype,"providedSuggestions",void 0);j([(0,z.query)(".ft-text-field--main-panel")],M.prototype,"mainPanel",void 0);j([(0,z.query)(".ft-text-field--input")],M.prototype,"input",void 0);j([(0,z.query)(".ft-text-field-suggestion--new-value")],M.prototype,"newValueSuggestion",void 0);j([(0,z.query)(".ft-text-field--suggestions")],M.prototype,"suggestionsContainer",void 0);j([(0,z.queryAll)("ft-text-field-suggestion")],M.prototype,"providedSuggestionsInDom",void 0);j([(0,z.queryAssignedElements)({selector:"ft-text-field-suggestion"})],M.prototype,"slottedSuggestions",void 0);(0,Ra.customElement)("ft-text-field")(M);(0,Ra.customElement)("ft-text-field-suggestion")(ft);var uu=m(T());var Mo=m(B()),hr=m(Z()),et=m(T());var Ot=m(T());var su=m(T()),Kp={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 o in e.payload)t.topicsRating[o]=e.payload[o]}},lu=t=>su.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:Kp});var Ta=class{constructor(e,o){this.mapId=e,this.paginatedToc=o,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,o,i){return e.flatMap(n=>{var a;return n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,o,i):[{tocId:n.tocId,title:(a=n.title)!==null&&a!==void 0?a:"",untranslatedTitle:n.untranslatedTitle,depth:o,children:this.extractPagesToc(n.children,o+1,n.tocId)}]})}convertNodes(e,o,i){return e.flatMap(n=>{var a,s,c;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],o,n.tocId),...this.convertNodes(n.children,o,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:o,parentTocId:i,children:[]};this.register(p);let h=this.convertSectionNodes((c=n.pageToc)!==null&&c!==void 0?c:[],o+1,n.tocId),g=this.convertNodes(n.children,o+1,p.tocId);return p.children=[...h,...g],[p]})}convertSectionNodes(e,o,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:o,parentTocId:i,children:[]};return this.register(c),c.children=this.convertSectionNodes(n.children,o+1,n.tocId),[c]})}buildPage(e,o){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:o?this.buildBreadcrumb(this.nodeByTocId[o]):[]},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 o of[...e.topics,...e.hiddenTopics])this.pageByTocId[o]||(this.pageByTocId[o]=e);this.pages.push(e)}tocIds(e){return e.flatMap(o=>[o.tocId,...this.tocIds(o.children)])}buildBreadcrumb(e){let o=[e.tocId];for(;e?.parentTocId;)o.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return o}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,o){return new Ta(e,o).build()}};var Hi=class extends it{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,o,i){super(!1,o),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(o=>this.converter.convertPaginatedToc(e,o)))),this.cache.register("ratingSummary",()=>{var e,o;return Dt((o=(e=A.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&o!==void 0?o:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,o){return e+(o?"-destinationLanguage-"+o?.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(o=>this.converter.convertPaginatedToc(this.mapId,o)))}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,o){return(await this.getEnrichedToc(o)).nodeByTocId[e]}getTocNodeNow(e,o){var i;return(i=this.getEnrichedTocNow(o))===null||i===void 0?void 0:i.nodeByTocId[e]}getTocNodeNowByUrl(e,o){var i,n;let a=this.getMapNow(o);return a?.prettyUrl==e||`${a?.id}/root`===e?(i=this.getEnrichedTocNow(o))===null||i===void 0?void 0:i.toc[0]:(n=this.getEnrichedTocNow(o))===null||n===void 0?void 0:n.nodeByUrl[e]}async getPage(e,o){let i=await this.getEnrichedToc(o);return i.pages[e-1]||i.pages[0]}async getPageByTocId(e,o){let i=await this.getEnrichedToc(o);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,o){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,o),()=>this.fetchTranslatedTopicHTMLContent(e,o))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,o){return this.cache.get("document-relatives-"+e+"-"+o.join("-"),()=>this.fetchRelativesForDocument(e,o))}getRelativesForTopicInMap(e,o,i){return this.cache.get("topic-relatives-"+[e,o,...i].join("-"),()=>this.fetchRelativesForTopicInMap(e,o,i))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,o,i){let n=this.getNavigationData(e,o,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,o,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:o&&u&&u.number!==o?o:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(s=c?.duplicatedPrettyUrls.has(h??""))!==null&&s!==void 0?s:!1,section:i}}async getAccurateNavigationData(e,o,i,n){return await this.getEnrichedToc(n),this.getNavigationData(e,o,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(o=>{var i;return o?{type:o.topics.type,rating:(i=o.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,o){return this.makeRateMapRequest(e,o).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,o){return this.makeMapFeedbackRequest(e,o)}rateTopic(e,o,i){return this.makeRateTopicRequest(e,o,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=A.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,o,i){return this.makeTopicFeedbackRequest(e,o,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,o){let i=this.getTocNodeNow(e,o),n=[{tocId:i.tocId,title:i.title,untranslatedTitle:i.untranslatedTitle}],a=this.getTocNodeNow(i.parentTocId,o);for(;a;)n.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,o);return n}isFeatureAccessible(e,{session:o}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case at.FEEDBACK:return Dt(o??[],te.FEEDBACK_USER);case at.RATING:return Dt(o??[],te.RATING_USER);case at.PRINT:return Dt(o??[],te.PRINT_USER);case at.BOOKMARK:return!!o?.sessionAuthenticated;case at.COLLECTIONS:return Dt(o??[],te.COLLECTION_USER);case at.PERSONAL_BOOKS:return Dt(o??[],te.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Wi=class t extends Hi{static async build(e){return new t(new zi,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,o){let i=await this.api.getMap(e,o);return this.fingerprint=i.fingerprint,i}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,o){return await this.getMap(o),this.api.getPages(e,this.fingerprint,o)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,o){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,o)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,o){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:o}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(e,o,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:o,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(e,o){return this.api.sendMapFeedback(this.mapId,e,o)}makeRateMapRequest(e,o){return this.api.rateMap(this.mapId,e,o)}makeRateTopicRequest(e,o,i){return this.api.rateTopic(this.mapId,e,o,i)}makeTopicFeedbackRequest(e,o,i){return this.api.sendTopicFeedback(this.mapId,e,o,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 Gi=class t{static build(e,o){return new t(lu(e.trim()||"context"),o??Wi.build)}loaded(){return(0,Ot.waitUntil)(()=>this._loaded)}constructor(e,o,i){this.store=e,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new Ot.Debouncer(10),this.initService(o)}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,Ot.waitFor)(()=>this.service)}async navigateToTopic(e,o,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:o}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,o){var i,n,a;let s=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:o.rootTocId;return o.topics.includes(s)?s:(a=(n=o.topics[0])!==null&&n!==void 0?n:o.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 o,i,n,a,s;try{e&&this.setTranslationLoading(!0);let c=u=>{throw e&&this.setTranslationError(!0),u};await Promise.all([this.loadConfiguration(),(o=this.service)===null||o===void 0?void 0:o.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 Ot.CanceledPromiseError)&&this.errorHandler(c)}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(o=>this.store.actions.configuration(o))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}fetchRelatives(){var e,o;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?(o=this.service)===null||o===void 0||o.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(uo.clusteringHelperCreated))}createClusteringHelper(){var e,o;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=(o=(e=A.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&o!==void 0?o:[];return new Ot.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var o,i,n;await this.loaded();let a=await(0,Ot.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=(o=u?.results)===null||o===void 0?void 0:o[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 o=this.store.getState();return o.translation.profileId&&o.translation.destinationLanguage?{profileId:o.translation.profileId,destinationLanguage:o.translation.destinationLanguage.code,sourceLanguage:(e=o.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 o;let i=await((o=this.service)===null||o===void 0?void 0:o.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,o,i){return this.service.getAccurateNavigationData(e,o?.number,i?.section,this.getTranslationSettings())}buildBreadcrumb(e){var o;return(o=this.service)===null||o===void 0?void 0:o.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var o,i;let n=this.getTranslationSettings();return n?(o=this.service)===null||o===void 0?void 0:o.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(uo.mapAttachmentsUpdate))}};var cu=m(B());var du=cu.css`
1951
- `;var Vi=class extends CustomEvent{constructor(e,o){super("ft-reader-map-loaded",{detail:{map:e,toc:o}})}},ji=class extends CustomEvent{constructor(e,o){super("ft-reader-visible-topics-change",{detail:{visibleTopics:o}})}},Ki=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Zi=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},qi=class extends Event{constructor(){super("ft-reader-map-not-found")}},Yi=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Xi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Qi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Ji=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}};var tt=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Zp=t=>e=>+(e??"NaN")>0?+e:t,Te=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(A)}render(){return Mo.html`
1951
+ `:Re.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 o,i,n;!((o=this.input)===null||o===void 0)&&o.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,o=!1){this.value!==e&&(this.setInternalValue(e),this.dispatchEvent(new CustomEvent("live-change",{detail:e}))),o&&this.dispatchedValue!==e&&(this.dispatchedValue=e,this.dispatchEvent(new CustomEvent("change",{detail:e})))}handleInput(e){var o;let i=((o=this.input)===null||o===void 0?void 0:o.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var o;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,(o=this.visibleSuggestions[n])===null||o===void 0||o.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var o;this.setValue(e.detail,!0),(o=this.input)===null||o===void 0||o.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,o;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((o=this.input)===null||o===void 0?void 0:o.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,hr.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--ft-text-field-internal-suggest-size",0).then(({x:o,y:i})=>{this.suggestionsContainer.style.left=`${o}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};M.elementDefinitions={"ft-input-label":ot,"ft-ripple":K,"ft-typography":fe,"ft-icon":he,"ft-text-field-suggestion":ht};M.styles=[Wr,hr.noTextInputDefaultClearButton,ru];j([(0,z.property)()],M.prototype,"label",void 0);j([(0,z.property)({noAccessor:!0})],M.prototype,"value",null);j([(0,z.state)()],M.prototype,"dispatchedValue",void 0);j([(0,z.property)()],M.prototype,"helper",void 0);j([(0,z.property)()],M.prototype,"suggestionsHelper",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"outlined",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"disabled",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"error",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"fixedMenuPosition",void 0);j([(0,z.property)()],M.prototype,"prefix",void 0);j([(0,z.property)()],M.prototype,"icon",void 0);j([(0,z.property)()],M.prototype,"name",void 0);j([(0,z.property)()],M.prototype,"type",void 0);j([(0,z.property)()],M.prototype,"passwordHiddenIcon",void 0);j([(0,z.property)()],M.prototype,"passwordRevealedIcon",void 0);j([(0,z.property)()],M.prototype,"iconVariant",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"filterSuggestions",void 0);j([(0,z.property)({type:Number})],M.prototype,"maxLength",void 0);j([(0,z.property)({type:Boolean})],M.prototype,"password",void 0);j([(0,z.property)({type:String})],M.prototype,"autocomplete",void 0);j([(0,z.property)({attribute:!1})],M.prototype,"suggestionsProvider",void 0);j([(0,z.state)()],M.prototype,"focused",void 0);j([(0,z.state)()],M.prototype,"hidePassword",void 0);j([(0,z.state)()],M.prototype,"hideSuggestions",void 0);j([(0,z.state)()],M.prototype,"visibleSuggestions",void 0);j([(0,z.state)()],M.prototype,"providedSuggestions",void 0);j([(0,z.query)(".ft-text-field--main-panel")],M.prototype,"mainPanel",void 0);j([(0,z.query)(".ft-text-field--input")],M.prototype,"input",void 0);j([(0,z.query)(".ft-text-field-suggestion--new-value")],M.prototype,"newValueSuggestion",void 0);j([(0,z.query)(".ft-text-field--suggestions")],M.prototype,"suggestionsContainer",void 0);j([(0,z.queryAll)("ft-text-field-suggestion")],M.prototype,"providedSuggestionsInDom",void 0);j([(0,z.queryAssignedElements)({selector:"ft-text-field-suggestion"})],M.prototype,"slottedSuggestions",void 0);(0,Ta.customElement)("ft-text-field")(M);(0,Ta.customElement)("ft-text-field-suggestion")(ht);var fu=m(T());var Uo=m(B()),gr=m(Z()),et=m(T());var wt=m(T());var cu=m(T()),qp={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 o in e.payload)t.topicsRating[o]=e.payload[o]}},du=t=>cu.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:qp});var Ia=class{constructor(e,o){this.mapId=e,this.paginatedToc=o,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,o,i){return e.flatMap(n=>{var a;return n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,o,i):[{tocId:n.tocId,title:(a=n.title)!==null&&a!==void 0?a:"",untranslatedTitle:n.untranslatedTitle,depth:o,children:this.extractPagesToc(n.children,o+1,n.tocId)}]})}convertNodes(e,o,i){return e.flatMap(n=>{var a,s,c;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],o,n.tocId),...this.convertNodes(n.children,o,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:o,parentTocId:i,children:[]};this.register(p);let h=this.convertSectionNodes((c=n.pageToc)!==null&&c!==void 0?c:[],o+1,n.tocId),g=this.convertNodes(n.children,o+1,p.tocId);return p.children=[...h,...g],[p]})}convertSectionNodes(e,o,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:o,parentTocId:i,children:[]};return this.register(c),c.children=this.convertSectionNodes(n.children,o+1,n.tocId),[c]})}buildPage(e,o){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:o?this.buildBreadcrumb(this.nodeByTocId[o]):[]},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 o of[...e.topics,...e.hiddenTopics])this.pageByTocId[o]||(this.pageByTocId[o]=e);this.pages.push(e)}tocIds(e){return e.flatMap(o=>[o.tocId,...this.tocIds(o.children)])}buildBreadcrumb(e){let o=[e.tocId];for(;e?.parentTocId;)o.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return o}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}},Hi=class{convertPaginatedToc(e,o){return new Ia(e,o).build()}};var Wi=class extends it{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,o,i){super(!1,o),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(o=>this.converter.convertPaginatedToc(e,o)))),this.cache.register("ratingSummary",()=>{var e,o;return Dt((o=(e=A.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&o!==void 0?o:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,o){return e+(o?"-destinationLanguage-"+o?.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(o=>this.converter.convertPaginatedToc(this.mapId,o)))}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,o){return(await this.getEnrichedToc(o)).nodeByTocId[e]}getTocNodeNow(e,o){var i;return(i=this.getEnrichedTocNow(o))===null||i===void 0?void 0:i.nodeByTocId[e]}getTocNodeNowByUrl(e,o){var i,n;let a=this.getMapNow(o);return a?.prettyUrl==e||`${a?.id}/root`===e?(i=this.getEnrichedTocNow(o))===null||i===void 0?void 0:i.toc[0]:(n=this.getEnrichedTocNow(o))===null||n===void 0?void 0:n.nodeByUrl[e]}async getPage(e,o){let i=await this.getEnrichedToc(o);return i.pages[e-1]||i.pages[0]}async getPageByTocId(e,o){let i=await this.getEnrichedToc(o);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,o){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,o),()=>this.fetchTranslatedTopicHTMLContent(e,o))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,o){return this.cache.get("document-relatives-"+e+"-"+o.join("-"),()=>this.fetchRelativesForDocument(e,o))}getRelativesForTopicInMap(e,o,i){return this.cache.get("topic-relatives-"+[e,o,...i].join("-"),()=>this.fetchRelativesForTopicInMap(e,o,i))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,o,i){let n=this.getNavigationData(e,o,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,o,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:o&&u&&u.number!==o?o:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(s=c?.duplicatedPrettyUrls.has(h??""))!==null&&s!==void 0?s:!1,section:i}}async getAccurateNavigationData(e,o,i,n){return await this.getEnrichedToc(n),this.getNavigationData(e,o,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(o=>{var i;return o?{type:o.topics.type,rating:(i=o.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,o){return this.makeRateMapRequest(e,o).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,o){return this.makeMapFeedbackRequest(e,o)}rateTopic(e,o,i){return this.makeRateTopicRequest(e,o,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=A.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,o,i){return this.makeTopicFeedbackRequest(e,o,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,o){let i=this.getTocNodeNow(e,o),n=[{tocId:i.tocId,title:i.title,untranslatedTitle:i.untranslatedTitle}],a=this.getTocNodeNow(i.parentTocId,o);for(;a;)n.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,o);return n}isFeatureAccessible(e,{session:o}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case at.FEEDBACK:return Dt(o??[],te.FEEDBACK_USER);case at.RATING:return Dt(o??[],te.RATING_USER);case at.PRINT:return Dt(o??[],te.PRINT_USER);case at.BOOKMARK:return!!o?.sessionAuthenticated;case at.COLLECTIONS:return Dt(o??[],te.COLLECTION_USER);case at.PERSONAL_BOOKS:return Dt(o??[],te.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Gi=class t extends Wi{static async build(e){return new t(new Hi,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,o){let i=await this.api.getMap(e,o);return this.fingerprint=i.fingerprint,i}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,o){return await this.getMap(o),this.api.getPages(e,this.fingerprint,o)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,o){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,o)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,o){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:o}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(e,o,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:o,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(e,o){return this.api.sendMapFeedback(this.mapId,e,o)}makeRateMapRequest(e,o){return this.api.rateMap(this.mapId,e,o)}makeRateTopicRequest(e,o,i){return this.api.rateTopic(this.mapId,e,o,i)}makeTopicFeedbackRequest(e,o,i){return this.api.sendTopicFeedback(this.mapId,e,o,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 Vi=class t{static build(e,o){return new t(du(e.trim()||"context"),o??Gi.build)}loaded(){return(0,wt.waitUntil)(()=>this._loaded)}constructor(e,o,i){this.store=e,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new wt.Debouncer(10),this.initService(o)}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,wt.waitFor)(()=>this.service)}async navigateToTopic(e,o,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:o}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,o){var i,n,a;let s=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:o.rootTocId;return o.topics.includes(s)?s:(a=(n=o.topics[0])!==null&&n!==void 0?n:o.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 o,i,n,a,s;try{e&&this.setTranslationLoading(!0);let c=u=>{throw e&&this.setTranslationError(!0),u};await Promise.all([this.loadConfiguration(),(o=this.service)===null||o===void 0?void 0:o.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 wt.CanceledPromiseError)&&this.errorHandler(c)}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(o=>this.store.actions.configuration(o))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}fetchRelatives(){var e,o;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?(o=this.service)===null||o===void 0||o.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(ho.clusteringHelperCreated))}createClusteringHelper(){var e,o;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=(o=(e=A.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&o!==void 0?o:[];return new wt.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var o,i,n;await this.loaded();let a=await(0,wt.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=(o=u?.results)===null||o===void 0?void 0:o[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 o=this.store.getState();return o.translation.profileId&&o.translation.destinationLanguage?{profileId:o.translation.profileId,destinationLanguage:o.translation.destinationLanguage.code,sourceLanguage:(e=o.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 o;let i=await((o=this.service)===null||o===void 0?void 0:o.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,o,i){return this.service.getAccurateNavigationData(e,o?.number,i?.section,this.getTranslationSettings())}buildBreadcrumb(e){var o;return(o=this.service)===null||o===void 0?void 0:o.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var o,i;let n=this.getTranslationSettings();return n?(o=this.service)===null||o===void 0?void 0:o.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(ho.mapAttachmentsUpdate))}};var uu=m(B());var pu=uu.css`
1952
+ `;var ji=class extends CustomEvent{constructor(e,o){super("ft-reader-map-loaded",{detail:{map:e,toc:o}})}},Ki=class extends CustomEvent{constructor(e,o){super("ft-reader-visible-topics-change",{detail:{visibleTopics:o}})}},Zi=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},qi=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Yi=class extends Event{constructor(){super("ft-reader-map-not-found")}},Xi=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Qi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Ji=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var en=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}};var tt=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Yp=t=>e=>+(e??"NaN")>0?+e:t,Te=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(A)}render(){return Uo.html`
1952
1953
  ${this.importStyleIfNeeded()}
1953
1954
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1954
- `}importStyleIfNeeded(){var e,o;let i=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!i||window.location.href.startsWith((o=this.baseUrl)!==null&&o!==void 0?o:"")?Mo.nothing:Mo.html`
1955
+ `}importStyleIfNeeded(){var e,o;let i=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!i||window.location.href.startsWith((o=this.baseUrl)!==null&&o!==void 0?o:"")?Uo.nothing:Uo.html`
1955
1956
  <style>
1956
1957
  @import "${i}"
1957
1958
  </style>
1958
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=Gi.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 o=e.fontsStylesheet();if(o&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${o}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",o),document.head.append(i)}window.FluidTopicsReaderService=new Ji(this.stateManager)}),A.addEventListener(_t.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),A.addEventListener(_t.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(o=>e.has(o))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var o,i;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((o=this.scrollTarget)===null||o===void 0?void 0:o.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 Ki(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 Qi),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 o=e.composedPath()[0];this.register(o)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let o=e;o.status===401?this.dispatchEvent(new Yi):o.status===403?this.dispatchEvent(new Xi):o.status===404?this.dispatchEvent(new qi):this.dispatchEvent(new Zi(e))}reloadBookmarks(){Ea.reloadBookmarks()}async reloadRating(){var e,o;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(o=this.stateManager.store)===null||o===void 0||o.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Vi(this.map,this.toc))})}};Te.styles=du;tt([(0,et.redux)({store:A.name})],Te.prototype,"baseUrl",void 0);tt([(0,et.redux)({store:A.name})],Te.prototype,"session",void 0);tt([(0,hr.property)()],Te.prototype,"mapId",void 0);tt([(0,hr.property)()],Te.prototype,"tocId",void 0);tt([(0,hr.property)()],Te.prototype,"section",void 0);tt([(0,hr.property)()],Te.prototype,"topicPivot",void 0);tt([(0,hr.property)()],Te.prototype,"searchInDocumentQuery",void 0);tt([(0,hr.property)({type:Number,converter:{fromAttribute:Zp()}})],Te.prototype,"page",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"map",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"toc",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"visibleTopics",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"currentPage",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"scrollTarget",void 0);tt([(0,hr.property)({attribute:!1})],Te.prototype,"readerServiceProvider",void 0);(0,uu.customElement)("ft-reader-context")(Te);var en=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},tn=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},rn=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},on=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},nn=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Ie=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Q=class extends ur(Zt){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,Qd)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(at.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(at.RATING,{session:this.session}))&&this.ratingAllowed&&this.configuredRatingType!=xe.NO_RATING}get configuredRatingType(){var e,o;return(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&o!==void 0?o:xe.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,o,i;return(i=(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||o===void 0?void 0:o.type)!==null&&i!==void 0?i:xe.NO_RATING}get ratingValue(){var e,o,i;return(i=(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||o===void 0?void 0:o.value)!==null&&i!==void 0?i:-1}get ratingDate(){var e,o;let i=(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||o===void 0?void 0:o.date;return typeof i=="string"?(0,an.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?ye.nothing:ye.html`
1959
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=Vi.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 o=e.fontsStylesheet();if(o&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${o}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",o),document.head.append(i)}window.FluidTopicsReaderService=new en(this.stateManager)}),A.addEventListener(Nt.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),A.addEventListener(Nt.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(o=>e.has(o))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var o,i;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((o=this.scrollTarget)===null||o===void 0?void 0:o.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 Zi(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 Ki(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 Ji),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 o=e.composedPath()[0];this.register(o)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let o=e;o.status===401?this.dispatchEvent(new Xi):o.status===403?this.dispatchEvent(new Qi):o.status===404?this.dispatchEvent(new Yi):this.dispatchEvent(new qi(e))}reloadBookmarks(){Aa.reloadBookmarks()}async reloadRating(){var e,o;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(o=this.stateManager.store)===null||o===void 0||o.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new ji(this.map,this.toc))})}};Te.styles=pu;tt([(0,et.redux)({store:A.name})],Te.prototype,"baseUrl",void 0);tt([(0,et.redux)({store:A.name})],Te.prototype,"session",void 0);tt([(0,gr.property)()],Te.prototype,"mapId",void 0);tt([(0,gr.property)()],Te.prototype,"tocId",void 0);tt([(0,gr.property)()],Te.prototype,"section",void 0);tt([(0,gr.property)()],Te.prototype,"topicPivot",void 0);tt([(0,gr.property)()],Te.prototype,"searchInDocumentQuery",void 0);tt([(0,gr.property)({type:Number,converter:{fromAttribute:Yp()}})],Te.prototype,"page",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"map",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"toc",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"visibleTopics",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"currentPage",void 0);tt([(0,et.redux)({store:"reader"})],Te.prototype,"scrollTarget",void 0);tt([(0,gr.property)({attribute:!1})],Te.prototype,"readerServiceProvider",void 0);(0,fu.customElement)("ft-reader-context")(Te);var tn=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},rn=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},on=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},nn=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},an=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Ie=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Q=class extends pr(Zt){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,eu)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(at.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(at.RATING,{session:this.session}))&&this.ratingAllowed&&this.configuredRatingType!=xe.NO_RATING}get configuredRatingType(){var e,o;return(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&o!==void 0?o:xe.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,o,i;return(i=(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||o===void 0?void 0:o.type)!==null&&i!==void 0?i:xe.NO_RATING}get ratingValue(){var e,o,i;return(i=(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||o===void 0?void 0:o.value)!==null&&i!==void 0?i:-1}get ratingDate(){var e,o;let i=(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||o===void 0?void 0:o.date;return typeof i=="string"?(0,sn.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?ye.nothing:ye.html`
1959
1960
  <div class="ft-reader-feedback">
1960
1961
  ${this.hideTitle?ye.nothing:ye.html`
1961
1962
  <ft-typography variant="title" part="main-title">
@@ -1977,7 +1978,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1977
1978
  </div>
1978
1979
  `: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 o=new Date().toLocaleDateString(),i=e.toLocaleDateString();return o===i?V.messages.ratedToday():V.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case xe.STARS:return ye.html`
1979
1980
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1980
- ${(0,pu.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let c=this.ratingTypeOfDoneRatingOfThisContent===xe.STARS&&this.ratingValue>s,u=s+1;return ye.html`
1981
+ ${(0,hu.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let c=this.ratingTypeOfDoneRatingOfThisContent===xe.STARS&&this.ratingValue>s,u=s+1;return ye.html`
1981
1982
  <ft-button round part="rating-stars-${u}"
1982
1983
  label="${V.messages.starsRating(u)}"
1983
1984
  tooltipPosition="top"
@@ -2066,7 +2067,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
2066
2067
  ${c}
2067
2068
  </div>
2068
2069
  </form>
2069
- `}return ye.nothing}onFormSubmitEvent(e,o){e.preventDefault(),o?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,o,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((o=(e=this.session)===null||e===void 0?void 0:e.profile)===null||o===void 0?void 0:o.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new en({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":xt,"ft-typography":fe,"ft-switch":Ze,"ft-switch-option":ge,"ft-text-area":Pe,"ft-text-field":M};Q.styles=Ms;Ie([(0,me.property)({type:Boolean})],Q.prototype,"editorMode",void 0);Ie([(0,me.property)({type:Boolean})],Q.prototype,"hideTitle",void 0);Ie([(0,me.property)({type:Boolean})],Q.prototype,"withMoreOptionsButton",void 0);Ie([(0,me.property)({type:Boolean})],Q.prototype,"ratingAllowed",void 0);Ie([(0,me.property)({attribute:!1})],Q.prototype,"i18nProperties",void 0);Ie([(0,me.property)({attribute:!1})],Q.prototype,"ratingSummary",void 0);Ie([(0,me.property)({attribute:!1})],Q.prototype,"session",void 0);Ie([(0,me.query)(".ft-reader-feedback--feedback-input")],Q.prototype,"feedbackInput",void 0);Ie([(0,me.state)()],Q.prototype,"from",void 0);Ie([(0,me.state)()],Q.prototype,"feedbackMessage",void 0);Ie([(0,me.property)()],Q.prototype,"iconVariant",void 0);Ie([(0,me.property)()],Q.prototype,"emptyStarIcon",void 0);Ie([(0,me.property)()],Q.prototype,"filledStarIcon",void 0);Ie([(0,me.property)()],Q.prototype,"emptyLikeIcon",void 0);Ie([(0,me.property)()],Q.prototype,"filledLikeIcon",void 0);Ie([(0,me.property)()],Q.prototype,"emptyDislikeIcon",void 0);Ie([(0,me.property)()],Q.prototype,"filledDislikeIcon",void 0);Ie([(0,an.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],Q.prototype,"configuration",void 0);Ie([(0,me.property)()],Q.prototype,"feedbackMailLinkBuilder",void 0);var lo=pr.fromGwt("server");var co=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,o,i,n,a){var s;this.subject=e,this.url=o,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,o){return o.map(i=>e.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var e,o;let i=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(e){var o;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
2070
+ `}return ye.nothing}onFormSubmitEvent(e,o){e.preventDefault(),o?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,o,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((o=(e=this.session)===null||e===void 0?void 0:e.profile)===null||o===void 0?void 0:o.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new tn({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":vt,"ft-typography":fe,"ft-switch":Ze,"ft-switch-option":ge,"ft-text-area":De,"ft-text-field":M};Q.styles=Fs;Ie([(0,me.property)({type:Boolean})],Q.prototype,"editorMode",void 0);Ie([(0,me.property)({type:Boolean})],Q.prototype,"hideTitle",void 0);Ie([(0,me.property)({type:Boolean})],Q.prototype,"withMoreOptionsButton",void 0);Ie([(0,me.property)({type:Boolean})],Q.prototype,"ratingAllowed",void 0);Ie([(0,me.property)({attribute:!1})],Q.prototype,"i18nProperties",void 0);Ie([(0,me.property)({attribute:!1})],Q.prototype,"ratingSummary",void 0);Ie([(0,me.property)({attribute:!1})],Q.prototype,"session",void 0);Ie([(0,me.query)(".ft-reader-feedback--feedback-input")],Q.prototype,"feedbackInput",void 0);Ie([(0,me.state)()],Q.prototype,"from",void 0);Ie([(0,me.state)()],Q.prototype,"feedbackMessage",void 0);Ie([(0,me.property)()],Q.prototype,"iconVariant",void 0);Ie([(0,me.property)()],Q.prototype,"emptyStarIcon",void 0);Ie([(0,me.property)()],Q.prototype,"filledStarIcon",void 0);Ie([(0,me.property)()],Q.prototype,"emptyLikeIcon",void 0);Ie([(0,me.property)()],Q.prototype,"filledLikeIcon",void 0);Ie([(0,me.property)()],Q.prototype,"emptyDislikeIcon",void 0);Ie([(0,me.property)()],Q.prototype,"filledDislikeIcon",void 0);Ie([(0,sn.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],Q.prototype,"configuration",void 0);Ie([(0,me.property)()],Q.prototype,"feedbackMailLinkBuilder",void 0);var po=fr.fromGwt("server");var fo=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,o,i,n,a){var s;this.subject=e,this.url=o,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,o){return o.map(i=>e.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var e,o;let i=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(e){var o;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
2070
2071
  ${this.bodyMetadata}
2071
2072
  ${this.url}
2072
2073
  _________________________________________________________________
@@ -2074,7 +2075,7 @@ _________________________________________________________________
2074
2075
  ${e??""}
2075
2076
 
2076
2077
  _________________________________________________________________
2077
- ${lo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(o=this.configuration)===null||o===void 0?void 0:o.recipients.join(",")}?subject=${i}&body=${n}`}};var gr=pr.build("inDesignerFeedbackComponent"),sn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Be=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},le=class extends ur(Zt){constructor(e=new to){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ue.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 co,this.i18nProperties={feedbackMainTitle:V.properties.mapFeedbackMainTitle(),ratingSectionTitle:V.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.mapFeedbackSectionTitle()},this.loadGuestRating=()=>{let o=this.guestStorage.get(this.guestRatingKey());o&&(this.ratingSummary=o)},this.guestRatingKey=()=>{var o;return"ft-reader-map-feedback-guest-rating-"+((o=this.map)===null||o===void 0?void 0:o.id)},this.sendRatingDebouncer=new We.Debouncer(500),this.addStore(A)}render(){return fu.html`
2078
+ ${po.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(o=this.configuration)===null||o===void 0?void 0:o.recipients.join(",")}?subject=${i}&body=${n}`}};var yr=fr.build("inDesignerFeedbackComponent"),ln={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Me=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},le=class extends pr(Zt){constructor(e=new io){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ue.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 fo,this.i18nProperties={feedbackMainTitle:V.properties.mapFeedbackMainTitle(),ratingSectionTitle:V.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.mapFeedbackSectionTitle()},this.loadGuestRating=()=>{let o=this.guestStorage.get(this.guestRatingKey());o&&(this.ratingSummary=o)},this.guestRatingKey=()=>{var o;return"ft-reader-map-feedback-guest-rating-"+((o=this.map)===null||o===void 0?void 0:o.id)},this.sendRatingDebouncer=new We.Debouncer(500),this.addStore(A)}render(){return gu.html`
2078
2079
  <ft-reader-feedback
2079
2080
  ratingAllowed
2080
2081
  .i18nProperties=${this.i18nProperties}
@@ -2096,7 +2097,7 @@ ${lo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(o=this.configura
2096
2097
  @mailer-feedback="${this.onMailerFeedbackSent}"
2097
2098
  @open-more-options="${this.openMoreOptions}"
2098
2099
  ></ft-reader-feedback>
2099
- `}willUpdate(e){var o,i,n,a,s;super.willUpdate(e),e.has("map")&&this.map&&((o=this.stateManager)===null||o===void 0||o.fetchMapRating()),e.has("editorMode")&&this.editorMode&&this.addI18nContext(gr,sn),["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 o,i,n,a;if(!this.editorMode&&this.ratingSummary){try{e==null?await((o=this.service)===null||o===void 0?void 0:o.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 We.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 We.FtNotificationEvent({type:"info",message:gr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var o;try{this.editorMode?this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:gr.messages.feedbackAndRatingDisabledInEditor()})):(await((o=this.service)===null||o===void 0?void 0:o.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new We.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new nn)}openMoreOptions(){var e,o,i;this.dispatchEvent(new rn({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((e=this.map)===null||e===void 0?void 0:e.metadata)||[],ratingType:((o=this.ratingSummary)===null||o===void 0?void 0:o.type)||xe.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};le.elementDefinitions={"ft-reader-feedback":Q};le.storedRatingIfAuthenticated=(t,e)=>{var o,i;return!((o=e.session)===null||o===void 0)&&o.sessionAuthenticated?t.mapRating:(i=e.ratingSummary)!==null&&i!==void 0?i:t.mapRating};Be([(0,We.redux)({store:A.name})],le.prototype,"session",void 0);Be([(0,We.redux)({store:"reader"})],le.prototype,"map",void 0);Be([(0,We.redux)({store:A.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,ht.property)({type:Boolean})],le.prototype,"hideTitle",void 0);Be([(0,ht.property)({type:Boolean})],le.prototype,"withMoreOptionsButton",void 0);Be([(0,ht.property)()],le.prototype,"iconVariant",void 0);Be([(0,ht.property)()],le.prototype,"emptyStarIcon",void 0);Be([(0,ht.property)()],le.prototype,"filledStarIcon",void 0);Be([(0,ht.property)()],le.prototype,"emptyLikeIcon",void 0);Be([(0,ht.property)()],le.prototype,"filledLikeIcon",void 0);Be([(0,ht.property)()],le.prototype,"emptyDislikeIcon",void 0);Be([(0,ht.property)()],le.prototype,"filledDislikeIcon",void 0);Be([(0,ht.query)("ft-reader-feedback")],le.prototype,"readerFeedback",void 0);Be([Mi(lo.properties["mail.map_feedback.subject"](t=>{var e;return[(e=t.map)===null||e===void 0?void 0:e.title]}))],le.prototype,"mailSubject",void 0);Be([(0,We.reduxEventListener)({eventName:"rating-changed"})],le.prototype,"fetchRatingSummary",null);var hu=m(B()),gt=m(Z()),Ge=m(T());var ln=m(Z());var Ia=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Na=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},_a=Symbol("registerInterval");function qp(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[e]=0}connectedCallback(){super.connectedCallback(),this[_a]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[_a]):this.dispatchEvent(new Na)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=_a,Ia([(0,ln.state)()],o.prototype,"tocNode",void 0),Ia([(0,ln.state)()],o.prototype,"disableContextInteractions",void 0),Ia([(0,ln.state)()],o.prototype,"headingLevelsShift",void 0),o}var cn=class extends qp(Zt){};var Me=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ce=class extends ur(cn){constructor(e=new to){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ue.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 co,this.i18nProperties={feedbackMainTitle:V.properties.topicFeedbackMainTitle(),ratingSectionTitle:V.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.topicFeedbackSectionTitle()},this.loadGuestRating=()=>{let o=this.guestStorage.get(this.guestRatingKey());o&&(this.ratingSummary=o)},this.guestRatingKey=()=>{var o;return"ft-reader-topic-feedback-guest-rating-"+((o=this.tocNode)===null||o===void 0?void 0:o.tocId)},this.sendRatingDebouncer=new Ge.Debouncer(500),this.addStore(A)}render(){var e;return hu.html`
2100
+ `}willUpdate(e){var o,i,n,a,s;super.willUpdate(e),e.has("map")&&this.map&&((o=this.stateManager)===null||o===void 0||o.fetchMapRating()),e.has("editorMode")&&this.editorMode&&this.addI18nContext(yr,ln),["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 o,i,n,a;if(!this.editorMode&&this.ratingSummary){try{e==null?await((o=this.service)===null||o===void 0?void 0:o.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 We.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 We.FtNotificationEvent({type:"info",message:yr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var o;try{this.editorMode?this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:yr.messages.feedbackAndRatingDisabledInEditor()})):(await((o=this.service)===null||o===void 0?void 0:o.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new We.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new an)}openMoreOptions(){var e,o,i;this.dispatchEvent(new on({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((e=this.map)===null||e===void 0?void 0:e.metadata)||[],ratingType:((o=this.ratingSummary)===null||o===void 0?void 0:o.type)||xe.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};le.elementDefinitions={"ft-reader-feedback":Q};le.storedRatingIfAuthenticated=(t,e)=>{var o,i;return!((o=e.session)===null||o===void 0)&&o.sessionAuthenticated?t.mapRating:(i=e.ratingSummary)!==null&&i!==void 0?i:t.mapRating};Me([(0,We.redux)({store:A.name})],le.prototype,"session",void 0);Me([(0,We.redux)({store:"reader"})],le.prototype,"map",void 0);Me([(0,We.redux)({store:A.name})],le.prototype,"editorMode",void 0);Me([(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);Me([(0,We.redux)({store:"reader",selector:le.storedRatingIfAuthenticated})],le.prototype,"ratingSummary",void 0);Me([(0,gt.property)({type:Boolean})],le.prototype,"hideTitle",void 0);Me([(0,gt.property)({type:Boolean})],le.prototype,"withMoreOptionsButton",void 0);Me([(0,gt.property)()],le.prototype,"iconVariant",void 0);Me([(0,gt.property)()],le.prototype,"emptyStarIcon",void 0);Me([(0,gt.property)()],le.prototype,"filledStarIcon",void 0);Me([(0,gt.property)()],le.prototype,"emptyLikeIcon",void 0);Me([(0,gt.property)()],le.prototype,"filledLikeIcon",void 0);Me([(0,gt.property)()],le.prototype,"emptyDislikeIcon",void 0);Me([(0,gt.property)()],le.prototype,"filledDislikeIcon",void 0);Me([(0,gt.query)("ft-reader-feedback")],le.prototype,"readerFeedback",void 0);Me([Fi(po.properties["mail.map_feedback.subject"](t=>{var e;return[(e=t.map)===null||e===void 0?void 0:e.title]}))],le.prototype,"mailSubject",void 0);Me([(0,We.reduxEventListener)({eventName:"rating-changed"})],le.prototype,"fetchRatingSummary",null);var yu=m(B()),yt=m(Z()),Ge=m(T());var cn=m(Z());var _a=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},La=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Na=Symbol("registerInterval");function Xp(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[e]=0}connectedCallback(){super.connectedCallback(),this[Na]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Na]):this.dispatchEvent(new La)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Na,_a([(0,cn.state)()],o.prototype,"tocNode",void 0),_a([(0,cn.state)()],o.prototype,"disableContextInteractions",void 0),_a([(0,cn.state)()],o.prototype,"headingLevelsShift",void 0),o}var dn=class extends Xp(Zt){};var Fe=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ce=class extends pr(dn){constructor(e=new io){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ue.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 fo,this.i18nProperties={feedbackMainTitle:V.properties.topicFeedbackMainTitle(),ratingSectionTitle:V.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.topicFeedbackSectionTitle()},this.loadGuestRating=()=>{let o=this.guestStorage.get(this.guestRatingKey());o&&(this.ratingSummary=o)},this.guestRatingKey=()=>{var o;return"ft-reader-topic-feedback-guest-rating-"+((o=this.tocNode)===null||o===void 0?void 0:o.tocId)},this.sendRatingDebouncer=new Ge.Debouncer(500),this.addStore(A)}render(){var e;return yu.html`
2100
2101
  <ft-reader-feedback
2101
2102
  .i18nProperties=${this.i18nProperties}
2102
2103
  ?ratingAllowed=${(e=this.tocNode)===null||e===void 0?void 0:e.hasRating}
@@ -2118,7 +2119,7 @@ ${lo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(o=this.configura
2118
2119
  @mailer-feedback="${this.onMailerFeedbackSent}"
2119
2120
  @open-more-options="${this.openMoreOptions}"
2120
2121
  ></ft-reader-feedback>
2121
- `}willUpdate(e){var o,i,n,a,s;super.willUpdate(e),["tocNode","user"].some(c=>e.has(c))&&this.tocNode&&((o=this.stateManager)===null||o===void 0||o.fetchTopicRating(this.tocNode.tocId)),e.has("editorMode")&&this.editorMode&&this.addI18nContext(gr,sn),["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 o,i,n,a;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{e==null?await((o=this.service)===null||o===void 0?void 0:o.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 Ge.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 Ge.FtNotificationEvent({type:"info",message:gr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var o;try{!this.editorMode&&this.tocNode?(await((o=this.service)===null||o===void 0?void 0:o.sendTopicFeedback(this.tocNode.tocId,e.detail.message,e.detail.from)),this.dispatchEvent(new Ge.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Ge.FtNotificationEvent({type:"info",message:gr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Ge.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new on(e))}openMoreOptions(){var e,o,i,n,a,s,c,u;this.dispatchEvent(new tn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(o=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&o!==void 0?o:"",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}))}};ce.elementDefinitions={"ft-reader-feedback":Q};ce.storedRatingIfAuthenticated=(t,e)=>{var o,i,n,a;let s=t.topicsRating[(i=(o=e.tocNode)===null||o===void 0?void 0:o.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};Me([(0,Ge.redux)({store:A.name})],ce.prototype,"session",void 0);Me([(0,Ge.redux)({store:"reader"})],ce.prototype,"map",void 0);Me([(0,Ge.redux)({store:A.name})],ce.prototype,"editorMode",void 0);Me([(0,Ge.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ce.prototype,"configuration",void 0);Me([(0,Ge.redux)({store:"reader",selector:ce.storedRatingIfAuthenticated})],ce.prototype,"ratingSummary",void 0);Me([(0,gt.property)({type:Boolean})],ce.prototype,"hideTitle",void 0);Me([(0,gt.property)({type:Boolean})],ce.prototype,"withMoreOptionsButton",void 0);Me([(0,gt.property)()],ce.prototype,"iconVariant",void 0);Me([(0,gt.property)()],ce.prototype,"emptyStarIcon",void 0);Me([(0,gt.property)()],ce.prototype,"filledStarIcon",void 0);Me([(0,gt.property)()],ce.prototype,"emptyLikeIcon",void 0);Me([(0,gt.property)()],ce.prototype,"filledLikeIcon",void 0);Me([(0,gt.property)()],ce.prototype,"emptyDislikeIcon",void 0);Me([(0,gt.property)()],ce.prototype,"filledDislikeIcon",void 0);Me([(0,gt.query)("ft-reader-feedback")],ce.prototype,"readerFeedback",void 0);Me([Mi(lo.properties["mail.feedback.subject"](t=>{var e,o;return[(e=t.tocNode)===null||e===void 0?void 0:e.title,(o=t.map)===null||o===void 0?void 0:o.title]}))],ce.prototype,"mailSubject",void 0);Me([(0,Ge.reduxEventListener)({eventName:"rating-changed"})],ce.prototype,"fetchRatingSummary",null);(0,La.customElement)("ft-reader-map-feedback")(le);(0,La.customElement)("ft-reader-topic-feedback")(ce);})();
2122
+ `}willUpdate(e){var o,i,n,a,s;super.willUpdate(e),["tocNode","user"].some(c=>e.has(c))&&this.tocNode&&((o=this.stateManager)===null||o===void 0||o.fetchTopicRating(this.tocNode.tocId)),e.has("editorMode")&&this.editorMode&&this.addI18nContext(yr,ln),["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 o,i,n,a;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{e==null?await((o=this.service)===null||o===void 0?void 0:o.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 Ge.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 Ge.FtNotificationEvent({type:"info",message:yr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var o;try{!this.editorMode&&this.tocNode?(await((o=this.service)===null||o===void 0?void 0:o.sendTopicFeedback(this.tocNode.tocId,e.detail.message,e.detail.from)),this.dispatchEvent(new Ge.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Ge.FtNotificationEvent({type:"info",message:yr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Ge.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new nn(e))}openMoreOptions(){var e,o,i,n,a,s,c,u;this.dispatchEvent(new rn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(o=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&o!==void 0?o:"",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}))}};ce.elementDefinitions={"ft-reader-feedback":Q};ce.storedRatingIfAuthenticated=(t,e)=>{var o,i,n,a;let s=t.topicsRating[(i=(o=e.tocNode)===null||o===void 0?void 0:o.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};Fe([(0,Ge.redux)({store:A.name})],ce.prototype,"session",void 0);Fe([(0,Ge.redux)({store:"reader"})],ce.prototype,"map",void 0);Fe([(0,Ge.redux)({store:A.name})],ce.prototype,"editorMode",void 0);Fe([(0,Ge.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ce.prototype,"configuration",void 0);Fe([(0,Ge.redux)({store:"reader",selector:ce.storedRatingIfAuthenticated})],ce.prototype,"ratingSummary",void 0);Fe([(0,yt.property)({type:Boolean})],ce.prototype,"hideTitle",void 0);Fe([(0,yt.property)({type:Boolean})],ce.prototype,"withMoreOptionsButton",void 0);Fe([(0,yt.property)()],ce.prototype,"iconVariant",void 0);Fe([(0,yt.property)()],ce.prototype,"emptyStarIcon",void 0);Fe([(0,yt.property)()],ce.prototype,"filledStarIcon",void 0);Fe([(0,yt.property)()],ce.prototype,"emptyLikeIcon",void 0);Fe([(0,yt.property)()],ce.prototype,"filledLikeIcon",void 0);Fe([(0,yt.property)()],ce.prototype,"emptyDislikeIcon",void 0);Fe([(0,yt.property)()],ce.prototype,"filledDislikeIcon",void 0);Fe([(0,yt.query)("ft-reader-feedback")],ce.prototype,"readerFeedback",void 0);Fe([Fi(po.properties["mail.feedback.subject"](t=>{var e,o;return[(e=t.tocNode)===null||e===void 0?void 0:e.title,(o=t.map)===null||o===void 0?void 0:o.title]}))],ce.prototype,"mailSubject",void 0);Fe([(0,Ge.reduxEventListener)({eventName:"rating-changed"})],ce.prototype,"fetchRatingSummary",null);(0,ka.customElement)("ft-reader-map-feedback")(le);(0,ka.customElement)("ft-reader-topic-feedback")(ce);})();
2122
2123
  /*! Bundled license information:
2123
2124
 
2124
2125
  lit-html/lit-html.js: