@fluid-topics/ft-reader-feedback 1.1.115 → 1.1.116

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 Nd=Object.create;var ca=Object.defineProperty;var Td=Object.getOwnPropertyDescriptor;var Id=Object.getOwnPropertyNames;var _d=Object.getPrototypeOf,kd=Object.prototype.hasOwnProperty;var lr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Pd=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Id(e))!kd.call(t,n)&&n!==r&&ca(t,n,{get:()=>e[n],enumerable:!(i=Td(e,n))||i.enumerable});return t};var g=(t,e,r)=>(r=t!=null?Nd(_d(t)):{},Pd(e||!t||!t.__esModule?ca(r,"default",{value:t,enumerable:!0}):r,t));var E=lr((nf,da)=>{da.exports=ftGlobals.wcUtils});var D=lr((af,pa)=>{pa.exports=ftGlobals.lit});var Z=lr((sf,fa)=>{fa.exports=ftGlobals.litDecorators});var Vt=lr((wg,Ds)=>{Ds.exports=ftGlobals.litClassMap});var fl=lr((cy,pl)=>{pl.exports=ftGlobals.litUnsafeHTML});var Ll=lr((Nb,Pl)=>{Pl.exports=ftGlobals.litRepeat});var td=lr((ir,ed)=>{var Si=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Oi=function(){function t(){this.fetch=!1,this.DOMException=Si.DOMException}return t.prototype=Si,new t}();(function(t){var e=function(r){var i=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(u){return u&&DataView.prototype.isPrototypeOf(u)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(u){return u&&s.indexOf(Object.prototype.toString.call(u))>-1};function d(u){if(typeof u!="string"&&(u=String(u)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(u)||u==="")throw new TypeError('Invalid character in header field name: "'+u+'"');return u.toLowerCase()}function f(u){return typeof u!="string"&&(u=String(u)),u}function h(u){var b={next:function(){var _=u.shift();return{done:_===void 0,value:_}}};return n.iterable&&(b[Symbol.iterator]=function(){return b}),b}function m(u){this.map={},u instanceof m?u.forEach(function(b,_){this.append(_,b)},this):Array.isArray(u)?u.forEach(function(b){if(b.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+b.length);this.append(b[0],b[1])},this):u&&Object.getOwnPropertyNames(u).forEach(function(b){this.append(b,u[b])},this)}m.prototype.append=function(u,b){u=d(u),b=f(b);var _=this.map[u];this.map[u]=_?_+", "+b:b},m.prototype.delete=function(u){delete this.map[d(u)]},m.prototype.get=function(u){return u=d(u),this.has(u)?this.map[u]:null},m.prototype.has=function(u){return this.map.hasOwnProperty(d(u))},m.prototype.set=function(u,b){this.map[d(u)]=f(b)},m.prototype.forEach=function(u,b){for(var _ in this.map)this.map.hasOwnProperty(_)&&u.call(b,this.map[_],_,this)},m.prototype.keys=function(){var u=[];return this.forEach(function(b,_){u.push(_)}),h(u)},m.prototype.values=function(){var u=[];return this.forEach(function(b){u.push(b)}),h(u)},m.prototype.entries=function(){var u=[];return this.forEach(function(b,_){u.push([_,b])}),h(u)},n.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function y(u){if(!u._noBody){if(u.bodyUsed)return Promise.reject(new TypeError("Already read"));u.bodyUsed=!0}}function v(u){return new Promise(function(b,_){u.onload=function(){b(u.result)},u.onerror=function(){_(u.error)}})}function x(u){var b=new FileReader,_=v(b);return b.readAsArrayBuffer(u),_}function S(u){var b=new FileReader,_=v(b),q=/charset=([A-Za-z0-9_-]+)/.exec(u.type),ne=q?q[1]:"utf-8";return b.readAsText(u,ne),_}function T(u){for(var b=new Uint8Array(u),_=new Array(b.length),q=0;q<b.length;q++)_[q]=String.fromCharCode(b[q]);return _.join("")}function A(u){if(u.slice)return u.slice(0);var b=new Uint8Array(u.byteLength);return b.set(new Uint8Array(u)),b.buffer}function R(){return this.bodyUsed=!1,this._initBody=function(u){this.bodyUsed=this.bodyUsed,this._bodyInit=u,u?typeof u=="string"?this._bodyText=u:n.blob&&Blob.prototype.isPrototypeOf(u)?this._bodyBlob=u:n.formData&&FormData.prototype.isPrototypeOf(u)?this._bodyFormData=u:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(u)?this._bodyText=u.toString():n.arrayBuffer&&n.blob&&a(u)?(this._bodyArrayBuffer=A(u.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(u)||l(u))?this._bodyArrayBuffer=A(u):this._bodyText=u=Object.prototype.toString.call(u):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof u=="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(u)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var u=y(this);if(u)return u;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 u=y(this);return u||(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(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var u=y(this);if(u)return u;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(T(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(He)}),this.json=function(){return this.text().then(JSON.parse)},this}var L=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function B(u){var b=u.toUpperCase();return L.indexOf(b)>-1?b:u}function F(u,b){if(!(this instanceof F))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');b=b||{};var _=b.body;if(u instanceof F){if(u.bodyUsed)throw new TypeError("Already read");this.url=u.url,this.credentials=u.credentials,b.headers||(this.headers=new m(u.headers)),this.method=u.method,this.mode=u.mode,this.signal=u.signal,!_&&u._bodyInit!=null&&(_=u._bodyInit,u.bodyUsed=!0)}else this.url=String(u);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new m(b.headers)),this.method=B(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal||function(){if("AbortController"in i){var z=new AbortController;return z.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(_),(this.method==="GET"||this.method==="HEAD")&&(b.cache==="no-store"||b.cache==="no-cache")){var q=/([?&])_=[^&]*/;if(q.test(this.url))this.url=this.url.replace(q,"$1_="+new Date().getTime());else{var ne=/\?/;this.url+=(ne.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})};function He(u){var b=new FormData;return u.trim().split("&").forEach(function(_){if(_){var q=_.split("="),ne=q.shift().replace(/\+/g," "),z=q.join("=").replace(/\+/g," ");b.append(decodeURIComponent(ne),decodeURIComponent(z))}}),b}function yt(u){var b=new m,_=u.replace(/\r?\n[\t ]+/g," ");return _.split("\r").map(function(q){return q.indexOf(`
2
- `)===0?q.substr(1,q.length):q}).forEach(function(q){var ne=q.split(":"),z=ne.shift().trim();if(z){var Eo=ne.join(":").trim();try{b.append(z,Eo)}catch(Wi){console.warn("Response "+Wi.message)}}}),b}R.call(F.prototype);function $e(u,b){if(!(this instanceof $e))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(b||(b={}),this.type="default",this.status=b.status===void 0?200:b.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=b.statusText===void 0?"":""+b.statusText,this.headers=new m(b.headers),this.url=b.url||"",this._initBody(u)}R.call($e.prototype),$e.prototype.clone=function(){return new $e(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},$e.error=function(){var u=new $e(null,{status:200,statusText:""});return u.ok=!1,u.status=0,u.type="error",u};var bt=[301,302,303,307,308];$e.redirect=function(u,b){if(bt.indexOf(b)===-1)throw new RangeError("Invalid status code");return new $e(null,{status:b,headers:{location:u}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(b,_){this.message=b,this.name=_;var q=Error(b);this.stack=q.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Ce(u,b){return new Promise(function(_,q){var ne=new F(u,b);if(ne.signal&&ne.signal.aborted)return q(new r.DOMException("Aborted","AbortError"));var z=new XMLHttpRequest;function Eo(){z.abort()}z.onload=function(){var Ee={statusText:z.statusText,headers:yt(z.getAllResponseHeaders()||"")};ne.url.indexOf("file://")===0&&(z.status<200||z.status>599)?Ee.status=200:Ee.status=z.status,Ee.url="responseURL"in z?z.responseURL:Ee.headers.get("X-Request-URL");var sr="response"in z?z.response:z.responseText;setTimeout(function(){_(new $e(sr,Ee))},0)},z.onerror=function(){setTimeout(function(){q(new TypeError("Network request failed"))},0)},z.ontimeout=function(){setTimeout(function(){q(new TypeError("Network request timed out"))},0)},z.onabort=function(){setTimeout(function(){q(new r.DOMException("Aborted","AbortError"))},0)};function Wi(Ee){try{return Ee===""&&i.location.href?i.location.href:Ee}catch{return Ee}}if(z.open(ne.method,Wi(ne.url),!0),ne.credentials==="include"?z.withCredentials=!0:ne.credentials==="omit"&&(z.withCredentials=!1),"responseType"in z&&(n.blob?z.responseType="blob":n.arrayBuffer&&(z.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof m||i.Headers&&b.headers instanceof i.Headers)){var la=[];Object.getOwnPropertyNames(b.headers).forEach(function(Ee){la.push(d(Ee)),z.setRequestHeader(Ee,f(b.headers[Ee]))}),ne.headers.forEach(function(Ee,sr){la.indexOf(sr)===-1&&z.setRequestHeader(sr,Ee)})}else ne.headers.forEach(function(Ee,sr){z.setRequestHeader(sr,Ee)});ne.signal&&(ne.signal.addEventListener("abort",Eo),z.onreadystatechange=function(){z.readyState===4&&ne.signal.removeEventListener("abort",Eo)}),z.send(typeof ne._bodyInit>"u"?null:ne._bodyInit)})}return Ce.polyfill=!0,i.fetch||(i.fetch=Ce,i.Headers=m,i.Request=F,i.Response=$e),r.Headers=m,r.Request=F,r.Response=$e,r.fetch=Ce,r}({})})(Oi);Oi.fetch.ponyfill=!0;delete Oi.fetch.polyfill;var Yr=Si.fetch?Si:Oi;ir=Yr.fetch;ir.default=Yr.fetch;ir.fetch=Yr.fetch;ir.Headers=Yr.Headers;ir.Request=Yr.Request;ir.Response=Yr.Response;ed.exports=ir});var sa=g(E());var Ed=g(D()),Xe=g(Z()),Le=g(E());var ua=g(E()),ha=g(Z());var tt;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(tt||(tt={}));var Ld=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Vi=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Hi=Symbol("registerInterval");function Dd(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Hi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Hi]):this.dispatchEvent(new Vi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Hi,Ld([(0,ha.state)()],r.prototype,"stateManager",void 0),r}var Bt=class extends Dd(ua.FtLitElementRedux){};var he=g(D()),me=g(Z()),Ui=g(E());var us=g(D()),J=g(E());var ps=g(D()),M=g(E());var xa=g(D()),ge=g(E()),ma=ge.FtCssVariableFactory.extend("--ft-ripple-color","",ge.designSystemVariables.colorContent),$={color:ma,backgroundColor:ge.FtCssVariableFactory.extend("--ft-ripple-background-color","",ma),opacityContentOnSurfacePressed:ge.FtCssVariableFactory.external(ge.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ge.FtCssVariableFactory.external(ge.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ge.FtCssVariableFactory.external(ge.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ge.FtCssVariableFactory.external(ge.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ge.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ga=ge.FtCssVariableFactory.extend("--ft-ripple-color","",ge.designSystemVariables.colorPrimary),ya={color:ga,backgroundColor:ge.FtCssVariableFactory.extend("--ft-ripple-background-color","",ga)},ba=ge.FtCssVariableFactory.extend("--ft-ripple-color","",ge.designSystemVariables.colorSecondary),va={color:ba,backgroundColor:ge.FtCssVariableFactory.extend("--ft-ripple-background-color","",ba)},Sa=xa.css`
1
+ "use strict";(()=>{var Id=Object.create;var la=Object.defineProperty;var Nd=Object.getOwnPropertyDescriptor;var Td=Object.getOwnPropertyNames;var _d=Object.getPrototypeOf,kd=Object.prototype.hasOwnProperty;var cr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ld=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Td(e))!kd.call(t,n)&&n!==o&&la(t,n,{get:()=>e[n],enumerable:!(i=Nd(e,n))||i.enumerable});return t};var g=(t,e,o)=>(o=t!=null?Id(_d(t)):{},Ld(e||!t||!t.__esModule?la(o,"default",{value:t,enumerable:!0}):o,t));var R=cr((nf,da)=>{da.exports=ftGlobals.wcUtils});var B=cr((af,pa)=>{pa.exports=ftGlobals.lit});var Z=cr((sf,fa)=>{fa.exports=ftGlobals.litDecorators});var Vt=cr((Im,$s)=>{$s.exports=ftGlobals.litClassMap});var fc=cr((hg,pc)=>{pc.exports=ftGlobals.litUnsafeHTML});var Pc=cr((Lb,Lc)=>{Lc.exports=ftGlobals.litRepeat});var td=cr((ir,ed)=>{var Si=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Oi=function(){function t(){this.fetch=!1,this.DOMException=Si.DOMException}return t.prototype=Si,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(h){return h&&DataView.prototype.isPrototypeOf(h)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(h){return h&&s.indexOf(Object.prototype.toString.call(h))>-1};function p(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(h)||h==="")throw new TypeError('Invalid character in header field name: "'+h+'"');return h.toLowerCase()}function f(h){return typeof h!="string"&&(h=String(h)),h}function y(h){var v={next:function(){var L=h.shift();return{done:L===void 0,value:L}}};return n.iterable&&(v[Symbol.iterator]=function(){return v}),v}function m(h){this.map={},h instanceof m?h.forEach(function(v,L){this.append(L,v)},this):Array.isArray(h)?h.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):h&&Object.getOwnPropertyNames(h).forEach(function(v){this.append(v,h[v])},this)}m.prototype.append=function(h,v){h=p(h),v=f(v);var L=this.map[h];this.map[h]=L?L+", "+v:v},m.prototype.delete=function(h){delete this.map[p(h)]},m.prototype.get=function(h){return h=p(h),this.has(h)?this.map[h]:null},m.prototype.has=function(h){return this.map.hasOwnProperty(p(h))},m.prototype.set=function(h,v){this.map[p(h)]=f(v)},m.prototype.forEach=function(h,v){for(var L in this.map)this.map.hasOwnProperty(L)&&h.call(v,this.map[L],L,this)},m.prototype.keys=function(){var h=[];return this.forEach(function(v,L){h.push(L)}),y(h)},m.prototype.values=function(){var h=[];return this.forEach(function(v){h.push(v)}),y(h)},m.prototype.entries=function(){var h=[];return this.forEach(function(v,L){h.push([L,v])}),y(h)},n.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function b(h){if(!h._noBody){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}}function x(h){return new Promise(function(v,L){h.onload=function(){v(h.result)},h.onerror=function(){L(h.error)}})}function S(h){var v=new FileReader,L=x(v);return v.readAsArrayBuffer(h),L}function O(h){var v=new FileReader,L=x(v),q=/charset=([A-Za-z0-9_-]+)/.exec(h.type),ae=q?q[1]:"utf-8";return v.readAsText(h,ae),L}function _(h){for(var v=new Uint8Array(h),L=new Array(v.length),q=0;q<v.length;q++)L[q]=String.fromCharCode(v[q]);return L.join("")}function I(h){if(h.slice)return h.slice(0);var v=new Uint8Array(h.byteLength);return v.set(new Uint8Array(h)),v.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(h){this.bodyUsed=this.bodyUsed,this._bodyInit=h,h?typeof h=="string"?this._bodyText=h:n.blob&&Blob.prototype.isPrototypeOf(h)?this._bodyBlob=h:n.formData&&FormData.prototype.isPrototypeOf(h)?this._bodyFormData=h:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)?this._bodyText=h.toString():n.arrayBuffer&&n.blob&&a(h)?(this._bodyArrayBuffer=I(h.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(h)||l(h))?this._bodyArrayBuffer=I(h):this._bodyText=h=Object.prototype.toString.call(h):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof h=="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(h)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var h=b(this);if(h)return h;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 h=b(this);return h||(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 h=b(this);if(h)return h;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(_(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(He)}),this.json=function(){return this.text().then(JSON.parse)},this}var D=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function F(h){var v=h.toUpperCase();return D.indexOf(v)>-1?v:h}function W(h,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 L=v.body;if(h instanceof W){if(h.bodyUsed)throw new TypeError("Already read");this.url=h.url,this.credentials=h.credentials,v.headers||(this.headers=new m(h.headers)),this.method=h.method,this.mode=h.mode,this.signal=h.signal,!L&&h._bodyInit!=null&&(L=h._bodyInit,h.bodyUsed=!0)}else this.url=String(h);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new m(v.headers)),this.method=F(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in i){var z=new AbortController;return z.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(L),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var q=/([?&])_=[^&]*/;if(q.test(this.url))this.url=this.url.replace(q,"$1_="+new Date().getTime());else{var ae=/\?/;this.url+=(ae.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})};function He(h){var v=new FormData;return h.trim().split("&").forEach(function(L){if(L){var q=L.split("="),ae=q.shift().replace(/\+/g," "),z=q.join("=").replace(/\+/g," ");v.append(decodeURIComponent(ae),decodeURIComponent(z))}}),v}function gt(h){var v=new m,L=h.replace(/\r?\n[\t ]+/g," ");return L.split("\r").map(function(q){return q.indexOf(`
2
+ `)===0?q.substr(1,q.length):q}).forEach(function(q){var ae=q.split(":"),z=ae.shift().trim();if(z){var Eo=ae.join(":").trim();try{v.append(z,Eo)}catch(zi){console.warn("Response "+zi.message)}}}),v}N.call(W.prototype);function Be(h,v){if(!(this instanceof Be))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 m(v.headers),this.url=v.url||"",this._initBody(h)}N.call(Be.prototype),Be.prototype.clone=function(){return new Be(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},Be.error=function(){var h=new Be(null,{status:200,statusText:""});return h.ok=!1,h.status=0,h.type="error",h};var bt=[301,302,303,307,308];Be.redirect=function(h,v){if(bt.indexOf(v)===-1)throw new RangeError("Invalid status code");return new Be(null,{status:v,headers:{location:h}})},o.DOMException=i.DOMException;try{new o.DOMException}catch{o.DOMException=function(v,L){this.message=v,this.name=L;var q=Error(v);this.stack=q.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function Ee(h,v){return new Promise(function(L,q){var ae=new W(h,v);if(ae.signal&&ae.signal.aborted)return q(new o.DOMException("Aborted","AbortError"));var z=new XMLHttpRequest;function Eo(){z.abort()}z.onload=function(){var Ae={statusText:z.statusText,headers:gt(z.getAllResponseHeaders()||"")};ae.url.indexOf("file://")===0&&(z.status<200||z.status>599)?Ae.status=200:Ae.status=z.status,Ae.url="responseURL"in z?z.responseURL:Ae.headers.get("X-Request-URL");var sr="response"in z?z.response:z.responseText;setTimeout(function(){L(new Be(sr,Ae))},0)},z.onerror=function(){setTimeout(function(){q(new TypeError("Network request failed"))},0)},z.ontimeout=function(){setTimeout(function(){q(new TypeError("Network request timed out"))},0)},z.onabort=function(){setTimeout(function(){q(new o.DOMException("Aborted","AbortError"))},0)};function zi(Ae){try{return Ae===""&&i.location.href?i.location.href:Ae}catch{return Ae}}if(z.open(ae.method,zi(ae.url),!0),ae.credentials==="include"?z.withCredentials=!0:ae.credentials==="omit"&&(z.withCredentials=!1),"responseType"in z&&(n.blob?z.responseType="blob":n.arrayBuffer&&(z.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof m||i.Headers&&v.headers instanceof i.Headers)){var ca=[];Object.getOwnPropertyNames(v.headers).forEach(function(Ae){ca.push(p(Ae)),z.setRequestHeader(Ae,f(v.headers[Ae]))}),ae.headers.forEach(function(Ae,sr){ca.indexOf(sr)===-1&&z.setRequestHeader(sr,Ae)})}else ae.headers.forEach(function(Ae,sr){z.setRequestHeader(sr,Ae)});ae.signal&&(ae.signal.addEventListener("abort",Eo),z.onreadystatechange=function(){z.readyState===4&&ae.signal.removeEventListener("abort",Eo)}),z.send(typeof ae._bodyInit>"u"?null:ae._bodyInit)})}return Ee.polyfill=!0,i.fetch||(i.fetch=Ee,i.Headers=m,i.Request=W,i.Response=Be),o.Headers=m,o.Request=W,o.Response=Be,o.fetch=Ee,o}({})})(Oi);Oi.fetch.ponyfill=!0;delete Oi.fetch.polyfill;var Yr=Si.fetch?Si:Oi;ir=Yr.fetch;ir.default=Yr.fetch;ir.fetch=Yr.fetch;ir.Headers=Yr.Headers;ir.Request=Yr.Request;ir.Response=Yr.Response;ed.exports=ir});var sa=g(R());var Ed=g(B()),Xe=g(Z()),$e=g(R());var ua=g(R()),ha=g(Z());var tt;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(tt||(tt={}));var Pd=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},Vi=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Hi=Symbol("registerInterval");function $d(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[Hi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Hi]):this.dispatchEvent(new Vi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Hi,Pd([(0,ha.state)()],o.prototype,"stateManager",void 0),o}var Mt=class extends $d(ua.FtLitElementRedux){};var ye=g(B()),me=g(Z()),Fi=g(R());var us=g(B()),J=g(R());var ps=g(B()),M=g(R());var xa=g(B()),ge=g(R()),ya=ge.FtCssVariableFactory.extend("--ft-ripple-color","",ge.designSystemVariables.colorContent),w={color:ya,backgroundColor:ge.FtCssVariableFactory.extend("--ft-ripple-background-color","",ya),opacityContentOnSurfacePressed:ge.FtCssVariableFactory.external(ge.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ge.FtCssVariableFactory.external(ge.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ge.FtCssVariableFactory.external(ge.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ge.FtCssVariableFactory.external(ge.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ge.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ma=ge.FtCssVariableFactory.extend("--ft-ripple-color","",ge.designSystemVariables.colorPrimary),ga={color:ma,backgroundColor:ge.FtCssVariableFactory.extend("--ft-ripple-background-color","",ma)},ba=ge.FtCssVariableFactory.extend("--ft-ripple-color","",ge.designSystemVariables.colorSecondary),va={color:ba,backgroundColor:ge.FtCssVariableFactory.extend("--ft-ripple-background-color","",ba)},Sa=xa.css`
3
3
  :host {
4
4
  display: contents;
5
5
  }
@@ -12,7 +12,7 @@
12
12
 
13
13
  .ft-ripple:not(.ft-ripple--unbounded) {
14
14
  overflow: hidden;
15
- border-radius: ${$.borderRadius};
15
+ border-radius: ${w.borderRadius};
16
16
  }
17
17
 
18
18
  .ft-ripple .ft-ripple--background,
@@ -46,11 +46,11 @@
46
46
  }
47
47
 
48
48
  .ft-ripple .ft-ripple--background {
49
- background-color: ${$.backgroundColor};
49
+ background-color: ${w.backgroundColor};
50
50
  }
51
51
 
52
52
  .ft-ripple .ft-ripple--effect {
53
- background-color: ${$.color};
53
+ background-color: ${w.color};
54
54
  }
55
55
 
56
56
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
@@ -62,11 +62,11 @@
62
62
  }
63
63
 
64
64
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
65
- background-color: ${ya.backgroundColor};
65
+ background-color: ${ga.backgroundColor};
66
66
  }
67
67
 
68
68
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
69
- background-color: ${ya.color};
69
+ background-color: ${ga.color};
70
70
  }
71
71
 
72
72
  .ft-ripple .ft-ripple--background {
@@ -96,24 +96,24 @@
96
96
  }
97
97
 
98
98
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
99
- opacity: ${$.opacityContentOnSurfaceHover};
99
+ opacity: ${w.opacityContentOnSurfaceHover};
100
100
  }
101
101
 
102
102
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
103
- opacity: ${$.opacityContentOnSurfaceSelected};
103
+ opacity: ${w.opacityContentOnSurfaceSelected};
104
104
  }
105
105
 
106
106
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
107
- opacity: ${$.opacityContentOnSurfaceFocused};
107
+ opacity: ${w.opacityContentOnSurfaceFocused};
108
108
  }
109
109
 
110
110
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
111
- opacity: ${$.opacityContentOnSurfacePressed};
111
+ opacity: ${w.opacityContentOnSurfacePressed};
112
112
  transform: translate(-50%, -50%) scale(1);
113
113
  }
114
- `;var ot=g(D()),C=g(E());var Et=g(D(),1),Ut=t=>typeof t=="string"?(0,Et.unsafeCSS)(t):t,o=class{static create(e,r,i,n){let a=l=>Ut(l??n),s=Et.css`var(${Ut(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>Et.css`var(${Ut(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=l=>i.get(l??n),s=Et.css`var(${Ut(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>Et.css`var(${Ut(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):Ut(a??e.lastResortDefaultValue()),n=Et.css`var(${Ut(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.get=a=>Et.css`var(${Ut(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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)")},Oa={fontFamily:o.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-textCase","","UNKNOWN","none")},wa={fontFamily:o.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Ca={fontFamily:o.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Ea={fontFamily:o.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Aa={fontFamily:o.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},Ra={fontFamily:o.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Na={fontFamily:o.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Ta={fontFamily:o.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Ia={fontFamily:o.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},$d={fontFamily:o.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},_a={fontFamily:o.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},ka={fontFamily:o.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Pa={fontFamily:o.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},La={fontFamily:o.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Da={fontFamily:o.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},$a={fontFamily:o.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Ma={fontFamily:o.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Ba={fontFamily:o.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Ua={fontFamily:o.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Fa={fontFamily:o.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},za={fontFamily:o.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Wa={fontFamily:o.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Ha={fontFamily:o.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Va={fontFamily:o.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},ja={fontFamily:o.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Ga={fontFamily:o.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Ao={display:Oa,"title-1":wa,"title-2":Ca,"title-3":Ea,"body-1-regular":Aa,"body-1-medium":Ra,"body-1-semibold":Na,"body-2-regular":Ta,"body-2-medium":Ia,"body-2-medium-underline":$d,"body-2-semibold":_a,"label-1-medium":ka,"label-1-semibold":Pa,"label-1-bold":La,"label-2-medium":Da,"label-2-semibold":$a,"label-2-bold":Ma,"caption-1-medium":Ba,"caption-1-semibold":Ua,"caption-1-bold":Fa,"caption-2-medium":za,"caption-2-semibold":Wa,"caption-2-bold":Ha,"caption-3-medium":Va,"caption-3-semibold":ja,"caption-3-bold":Ga};var p={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
115
- Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80)};var O={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBackgroundColor:o.extend("--ft-button-primary-background-color","",p.backgroundActionPrimary),primaryColor:o.extend("--ft-button-primary-color","",p.contentGlobalOnColor),primaryIconColor:o.extend("--ft-button-primary-icon-color","",p.contentGlobalOnColor),primaryStateLayerColor:o.extend("--ft-button-primary-state-layer-color","",p.contentGlobalOnColor),primaryHoverStateLayerOpacity:o.extend("--ft-button-primary-hover-state-layer-opacity","",c.opacity16),primaryFocusStateLayerOpacity:o.extend("--ft-button-primary-focus-state-layer-opacity","",c.opacity16),primaryActiveStateLayerOpacity:o.extend("--ft-button-primary-active-state-layer-opacity","",c.opacity24),primaryDisabledComponentOpacity:o.extend("--ft-button-primary-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBackgroundColor:o.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:o.extend("--ft-button-tertiary-color","",p.contentActionPrimary),tertiaryIconColor:o.extend("--ft-button-tertiary-icon-color","",p.contentActionPrimary),tertiaryStateLayerColor:o.extend("--ft-button-tertiary-state-layer-color","",p.contentActionPrimary),tertiaryHoverStateLayerOpacity:o.extend("--ft-button-tertiary-hover-state-layer-opacity","",c.opacity8),tertiaryFocusStateLayerOpacity:o.extend("--ft-button-tertiary-focus-state-layer-opacity","",c.opacity8),tertiaryActiveStateLayerOpacity:o.extend("--ft-button-tertiary-active-state-layer-opacity","",c.opacity16),tertiaryDisabledComponentOpacity:o.extend("--ft-button-tertiary-disabled-component-opacity","",c.opacity40),secondaryBackgroundColor:o.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:o.extend("--ft-button-secondary-color","",p.contentActionPrimary),secondaryIconColor:o.extend("--ft-button-secondary-icon-color","",p.contentActionPrimary),secondaryStateLayerColor:o.extend("--ft-button-secondary-state-layer-color","",p.contentActionPrimary),secondaryHoverStateLayerOpacity:o.extend("--ft-button-secondary-hover-state-layer-opacity","",c.opacity8),secondaryFocusStateLayerOpacity:o.extend("--ft-button-secondary-focus-state-layer-opacity","",c.opacity8),secondaryActiveStateLayerOpacity:o.extend("--ft-button-secondary-active-state-layer-opacity","",c.opacity16),secondaryDisabledComponentOpacity:o.extend("--ft-button-secondary-disabled-component-opacity","",c.opacity40),secondaryBorderColor:o.extend("--ft-button-secondary-border-color","",p.borderActionPrimary),neutralBackgroundColor:o.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:o.extend("--ft-button-neutral-icon-color","",p.contentGlobalSecondary),neutralColor:o.extend("--ft-button-neutral-color","",p.contentGlobalSecondary),neutralStateLayerColor:o.extend("--ft-button-neutral-state-layer-color","",p.contentGlobalSecondary),neutralHoverStateLayerOpacity:o.extend("--ft-button-neutral-hover-state-layer-opacity","",c.opacity8),neutralFocusStateLayerOpacity:o.extend("--ft-button-neutral-focus-state-layer-opacity","",c.opacity8),neutralActiveStateLayerOpacity:o.extend("--ft-button-neutral-active-state-layer-opacity","",c.opacity16),neutralDisabledComponentOpacity:o.extend("--ft-button-neutral-disabled-component-opacity","",c.opacity40)};var Ef={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",p.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",p.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",p.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",p.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",p.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",p.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",p.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",p.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",p.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",p.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",p.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)};var If={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",p.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",p.borderErrorSubtle)};var Df={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",p.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",p.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",p.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",p.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",p.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",p.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",p.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",p.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",p.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",p.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",p.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",p.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",p.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",p.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",p.contentActionPrimary)};var Ff={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",p.borderInfoSubtle)};var jf={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",p.contentActionPrimary)};var Yf={horizontalGap:o.extend("--ft-breadcrumb-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-breadcrumb-vertical-gap","",c.spacing2),currentColor:o.extend("--ft-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:o.extend("--ft-breadcrumb-icon-color","",p.contentGlobalSubtle)};var tu={horizontalPadding:o.extend("--ft-page-header-horizontal-padding","",c.spacing6),horizontalGap:o.extend("--ft-page-header-horizontal-gap","",c.spacing4),verticalGap:o.extend("--ft-page-header-vertical-gap","",c.spacing2),classicVerticalPadding:o.extend("--ft-page-header-classic-vertical-padding","",c.spacing6),multilineVerticalPadding:o.extend("--ft-page-header-multiline-vertical-padding","",c.spacing4),inlineVerticalPadding:o.extend("--ft-page-header-inline-vertical-padding","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",p.borderGlobalSubtle),titleColor:o.extend("--ft-page-header-title-color","",p.contentGlobalPrimary),subtitleColor:o.extend("--ft-page-header-subtitle-color","",p.contentGlobalSecondary)};var au={smallContainerWidth:o.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:o.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),containerMargin:o.extend("--ft-modal-container-margin","",c.spacing3),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-modal-header-trailing-icon-color","",p.contentGlobalSecondary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottom:o.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)};var pu={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)};var gu={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",p.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",p.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",p.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",p.borderActionFocusRing)};var Su={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var Au={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",p.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusM)};var _u={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",p.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",p.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var $u={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",p.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",p.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",p.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",p.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)};var zu={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",p.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",p.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",p.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusM)};var Gu={backgroundColor:o.extend("--ft-popover-background-color","",p.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",p.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",p.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",p.contentActionPrimary),gap:o.extend("--ft-popover-gap","",c.spacing3),borderRadius:o.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",c.shadowElevation02)};var Xu={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",p.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var rh={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var ah={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200)};var ph={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",p.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",p.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",p.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",p.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",p.contentSuccessIconOnly)};var gh={color:o.extend("--ft-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-checkbox-gap","",c.spacing3)};var Sh={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",p.contentActionPrimary),color:o.extend("--ft-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var Ah={color:o.extend("--ft-radio-color","",p.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-radio-gap","",c.spacing3)};var _h={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",p.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)};var $h={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)};var Ro;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Ro||(Ro={}));var Cr;(function(t){t.large="large",t.medium="medium",t.small="small"})(Cr||(Cr={}));var No=g(D());function Ka(t){let e=Ao[t];return No.css`
116
- .ft-typography--${(0,No.unsafeCSS)(t)} {
114
+ `;var ot=g(B()),A=g(R());var Et=g(B(),1),Ft=t=>typeof t=="string"?(0,Et.unsafeCSS)(t):t,r=class{static create(e,o,i,n){let a=l=>Ft(l??n),s=Et.css`var(${Ft(e)}, ${a(n)})`;return s.name=e,s.description=o,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>Et.css`var(${Ft(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,o,i,n){let a=l=>i.get(l??n),s=Et.css`var(${Ft(e)}, ${a(n)})`;return s.name=e,s.description=o,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>Et.css`var(${Ft(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,o){let i=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):Ft(a??e.lastResortDefaultValue()),n=Et.css`var(${Ft(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.get=a=>Et.css`var(${Ft(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};var c={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(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:r.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:r.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:r.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:r.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:r.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:r.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:r.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:r.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:r.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:r.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:r.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:r.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:r.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 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"),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"),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)")},Oa={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","120%"),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")},Ca={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","120%"),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")},wa={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","120%"),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")},Ea={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","120%"),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")},Aa={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","135%"),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")},Ra={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","135%"),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")},Ia={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","135%"),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")},Na={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","135%"),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")},Ta={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","135%"),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")},Dd={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","135%"),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")},_a={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","135%"),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")},ka={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")},La={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")},Pa={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")},$a={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")},Da={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")},Ba={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")},Ma={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","130%"),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")},Fa={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","130%"),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")},Ua={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","130%"),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")},Wa={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","130%"),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")},za={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","130%"),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")},Ha={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","130%"),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")},Va={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","130%"),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")},ja={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","130%"),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")},Ga={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","130%"),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")},Ao={display:Oa,"title-1":Ca,"title-2":wa,"title-3":Ea,"body-1-regular":Aa,"body-1-medium":Ra,"body-1-semibold":Ia,"body-2-regular":Na,"body-2-medium":Ta,"body-2-medium-underline":Dd,"body-2-semibold":_a,"label-1-medium":ka,"label-1-semibold":La,"label-1-bold":Pa,"label-2-medium":$a,"label-2-semibold":Da,"label-2-bold":Ba,"caption-1-medium":Ma,"caption-1-semibold":Fa,"caption-1-bold":Ua,"caption-2-medium":Wa,"caption-2-semibold":za,"caption-2-bold":Ha,"caption-3-medium":Va,"caption-3-semibold":ja,"caption-3-bold":Ga};var d={backgroundActionPrimary:r.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:r.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:r.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:r.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:r.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:r.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:r.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:r.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:r.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:r.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:r.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:r.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:r.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:r.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:r.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:r.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:r.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:r.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:r.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
115
+ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:r.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:r.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:r.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:r.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:r.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:r.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:r.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:r.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:r.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:r.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:r.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:r.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:r.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:r.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:r.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var u={largeHeight:r.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:r.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:r.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:r.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:r.extend("--ft-button-large-icon-size","",c.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","",c.spacing3),mediumGap:r.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:r.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:r.extend("--ft-button-medium-icon-size","",c.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","",c.spacing2),smallGap:r.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:r.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:r.extend("--ft-button-small-icon-size","",c.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","",c.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","",c.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","",c.opacity16),primaryBrandFocusStateLayerOpacity:r.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:r.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:r.extend("--ft-button-primary-brand-disabled-component-opacity","",c.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","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:r.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:r.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:r.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.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","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:r.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:r.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:r.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.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","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:r.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:r.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:r.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.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","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:r.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:r.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:r.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.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","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:r.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:r.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:r.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.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","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:r.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.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","",c.opacity8),secondaryBrandFocusStateLayerOpacity:r.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:r.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:r.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:r.extend("--ft-button-secondary-brand-border-color","",d.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:r.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:r.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.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","",c.opacity8),secondaryInfoFocusStateLayerOpacity:r.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:r.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:r.extend("--ft-button-secondary-info-disabled-component-opacity","",c.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","",c.opacity8),secondarySuccessFocusStateLayerOpacity:r.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:r.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:r.extend("--ft-button-secondary-success-disabled-component-opacity","",c.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","",c.opacity8),secondaryWarningFocusStateLayerOpacity:r.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:r.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:r.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.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","",c.opacity8),secondaryErrorFocusStateLayerOpacity:r.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:r.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:r.extend("--ft-button-secondary-error-disabled-component-opacity","",c.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 Ef={neutralOffHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.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","",c.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","",c.opacity16),neutralOnHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.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","",c.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","",c.spacing3),largeGap:r.extend("--ft-chip-choice-large-gap","",c.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","",c.iconSize3),mediumMinHeight:r.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:r.extend("--ft-chip-choice-medium-gap","",c.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","",c.iconSize2)};var Tf={largeMinHeight:r.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:r.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:r.extend("--ft-chip-large-gap","",c.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","",c.iconSize3),mediumMinHeight:r.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:r.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:r.extend("--ft-chip-medium-gap","",c.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","",c.iconSize2),smallMinHeight:r.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:r.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:r.extend("--ft-chip-small-gap","",c.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","",c.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 $f={brandHoverOpacity:r.extend("--ft-link-brand-hover-opacity","",c.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","",c.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","",c.colorBrand100)};var Uf={iconSize:r.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:r.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:r.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:r.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:r.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:r.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:r.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:r.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:r.extend("--ft-banner-horizontal-middle-gap","",c.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 jf={horizontalPadding:r.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:r.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:r.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:r.extend("--ft-badge-color","",d.contentGlobalOnColor),backgroundColor:r.extend("--ft-badge-background-color","",d.contentActionPrimary)};var Yf={horizontalGap:r.extend("--ft-breadcrumb-horizontal-gap","",c.spacing1),verticalGap:r.extend("--ft-breadcrumb-vertical-gap","",c.spacing2),currentColor:r.extend("--ft-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:r.extend("--ft-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:r.extend("--ft-breadcrumb-icon-color","",d.contentGlobalSubtle)};var tu={horizontalPadding:r.extend("--ft-page-header-horizontal-padding","",c.spacing6),horizontalGap:r.extend("--ft-page-header-horizontal-gap","",c.spacing4),verticalGap:r.extend("--ft-page-header-vertical-gap","",c.spacing2),classicVerticalPadding:r.extend("--ft-page-header-classic-vertical-padding","",c.spacing6),multilineVerticalPadding:r.extend("--ft-page-header-multiline-vertical-padding","",c.spacing4),inlineVerticalPadding:r.extend("--ft-page-header-inline-vertical-padding","",c.spacing2),backgroundColor:r.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:r.extend("--ft-page-header-bottom-border-color","",d.borderGlobalSubtle),titleColor:r.extend("--ft-page-header-title-color","",d.contentGlobalPrimary),subtitleColor:r.extend("--ft-page-header-subtitle-color","",d.contentGlobalSecondary)};var au={smallContainerTargetWidth:r.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:r.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:r.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:r.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:r.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:r.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:r.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:r.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:r.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:r.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:r.extend("--ft-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:r.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:r.extend("--ft-modal-body-vertical-gap","",c.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","",c.spacing1),headerRightPadding:r.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:r.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:r.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:r.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:r.extend("--ft-modal-border-radius","",c.borderRadiusM)};var pu={overlayOpacity:r.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:r.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:r.extend("--ft-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:r.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:r.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:r.extend("--ft-drawer-body-background-color","",c.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","",c.spacing2),headerBorderWidth:r.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:r.extend("--ft-drawer-header-gap","",c.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","",c.spacing6),buttonsBarVerticalPadding:r.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:r.extend("--ft-drawer-buttons-bar-gap","",c.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","",c.colorGray700)};var mu={offBorderBottomWidth:r.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:r.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:r.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:r.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:r.extend("--ft-tabs-off-disabled-component-opacity","",c.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","",c.borderRadiusS),topRightBorderRadius:r.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:r.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:r.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:r.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:r.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:r.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:r.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:r.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:r.extend("--ft-tabs-on-active-state-layer-opacity","",c.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","",c.spacing4),iconOnlyVerticalPadding:r.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:r.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:r.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:r.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var Su={fieldHorizontalPadding:r.extend("--ft-text-input-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:r.extend("--ft-text-input-field-horizontal-gap","",c.spacing3),fieldVerticalGap:r.extend("--ft-text-input-field-vertical-gap","",c.spacing05),fieldIconSize:r.extend("--ft-text-input-field-icon-size","",c.iconSize3),fieldHeight:r.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:r.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:r.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:r.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:r.extend("--ft-text-input-border-radius","",c.borderRadiusM),backgroundColor:r.extend("--ft-text-input-background-color","",c.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),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","",c.opacity40)};var Au={backgroundColor:r.extend("--ft-text-area-background-color","",c.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","",c.opacity40),fieldHorizontalLeftPadding:r.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:r.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:r.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:r.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:r.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:r.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:r.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:r.extend("--ft-text-area-border-radius","",c.borderRadiusM)};var _u={height:r.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:r.extend("--ft-floating-menu-horizontal-padding","",c.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","",c.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","",c.opacity8),hoverStateLayerOpacity:r.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:r.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:r.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:r.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:r.extend("--ft-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:r.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var Du={fieldHorizontalPadding:r.extend("--ft-combobox-single-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:r.extend("--ft-combobox-single-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:r.extend("--ft-combobox-single-select-field-vertical-gap","",c.spacing05),fieldIconSize:r.extend("--ft-combobox-single-select-field-icon-size","",c.iconSize3),fieldHeight:r.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:r.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:r.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:r.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:r.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:r.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:r.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusM),backgroundColor:r.extend("--ft-combobox-single-select-background-color","",c.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","",c.opacity40)};var Wu={backgroundColor:r.extend("--ft-combobox-multi-select-background-color","",c.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","",c.opacity40),helperHorizontalPadding:r.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:r.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:r.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:r.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:r.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:r.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:r.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:r.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:r.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:r.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:r.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:r.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusM)};var Gu={backgroundColor:r.extend("--ft-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:r.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:r.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:r.extend("--ft-popover-title-color","",d.contentGlobalPrimary),bodyColor:r.extend("--ft-popover-body-color","",d.contentGlobalSecondary),linkColor:r.extend("--ft-popover-link-color","",d.contentActionPrimary),gap:r.extend("--ft-popover-gap","",c.spacing3),borderRadius:r.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:r.extend("--ft-popover-shadow","",c.shadowElevation02),maxWidth:r.create("--ft-popover-max-width","","SIZE","440px")};var Xu={hoverStateLayerOpacity:r.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:r.extend("--ft-collapsible-focus-state-layer-opacity","",c.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","",c.opacity16),disabledComponentOpacity:r.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:r.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:r.extend("--ft-collapsible-vertical-padding","",c.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","",c.iconSize3)};var rh={groupHorizontalPadding:r.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:r.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:r.extend("--ft-switch-group-gap","",c.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","",c.spacing2),labelVerticalPadding:r.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:r.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:r.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:r.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:r.extend("--ft-switch-off-disabled-component-opacity","",c.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","",c.opacity8),onFocusStateLayerOpacity:r.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:r.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:r.extend("--ft-switch-on-disabled-component-opacity","",c.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","",c.spacing1),iconVerticalPadding:r.extend("--ft-switch-icon-vertical-padding","",c.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","",c.borderRadiusS)};var ah={color1Light:r.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:r.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:r.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:r.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:r.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:r.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:r.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:r.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:r.extend("--ft-chart-5-light","",c.colorRed40),color5Base:r.extend("--ft-chart-5-base","",c.colorRed60),color6Light:r.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:r.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:r.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:r.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:r.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:r.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:r.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:r.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:r.extend("--ft-chart-10-light","",c.colorGray50),color10Base:r.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:r.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:r.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:r.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:r.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:r.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:r.extend("--ft-chart-monochrome-60","",c.colorBrand200)};var dh={color1IconColor:r.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:r.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:r.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:r.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:r.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:r.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:r.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:r.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:r.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:r.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:r.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:r.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:r.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:r.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:r.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:r.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var yh={borderWidth:r.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:r.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:r.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:r.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:r.extend("--ft-notice-gap","",c.spacing2),iconSize:r.extend("--ft-notice-icon-size","",c.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)};var xh={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","",c.opacity16),checkedFocusStateLayerOpacity:r.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:r.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:r.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:r.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:r.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:r.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:r.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:r.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:r.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.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"),gap:r.extend("--ft-checkbox-gap","",c.spacing3)};var Eh={offHoverStateLayerOpacity:r.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:r.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:r.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:r.extend("--ft-toggle-off-disabled-component-opacity","",c.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","",c.opacity16),onFocusStateLayerOpacity:r.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:r.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:r.extend("--ft-toggle-on-disabled-component-opacity","",c.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","",c.spacing3)};var Th={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","",c.opacity16),selectedFocusStateLayerOpacity:r.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:r.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:r.extend("--ft-radio-selected-disabled-component-opacity","",c.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","",c.opacity16),unselectedFocusStateLayerOpacity:r.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:r.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:r.extend("--ft-radio-unselected-disabled-component-opacity","",c.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","",c.spacing3)};var $h={iconSize:r.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:r.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:r.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:r.extend("--ft-notification-vertical-padding","",c.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","",c.borderRadiusPill),borderWidth:r.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:r.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:r.extend("--ft-notification-trailing-gap","",c.spacing8)};var Uh={horizontalPadding:r.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:r.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:r.extend("--ft-tooltip-border-radius","",c.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","",c.opacity80),shadow:r.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","256px"),gap:r.extend("--ft-tooltip-gap","",c.spacing05)};var Ro;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Ro||(Ro={}));var wr;(function(t){t.large="large",t.medium="medium",t.small="small"})(wr||(wr={}));var Io=g(B());function Ka(t){let e=Ao[t];return Io.css`
116
+ .ft-typography--${(0,Io.unsafeCSS)(t)} {
117
117
  font-family: ${e.fontFamily};
118
118
  font-size: ${e.fontSize};
119
119
  font-weight: ${e.fontWeight};
@@ -121,23 +121,23 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
121
121
  line-height: ${e.lineHeight};
122
122
  text-transform: ${e.textCase};
123
123
  }
124
- `}var Za=C.FtCssVariableFactory.extend("--ft-typography-font-family","",C.designSystemVariables.titleFont),At=C.FtCssVariableFactory.extend("--ft-typography-font-family","",C.designSystemVariables.contentFont),I={fontFamily:At,fontSize:C.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:C.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:C.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:C.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:C.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ft={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Za),fontSize:C.FtCssVariableFactory.extend("--ft-typography-title-font-size","",I.fontSize,"20px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",I.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",I.letterSpacing,"0.15px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-title-line-height","",I.lineHeight,"1.2"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",I.textTransform,"inherit")},zt={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Za),fontSize:C.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",I.fontSize,"14px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",I.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",I.letterSpacing,"0.105px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",I.lineHeight,"1.7"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",I.textTransform,"inherit")},Er={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",At),fontSize:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",I.fontSize,"16px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",I.fontWeight,"600"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",I.letterSpacing,"0.144px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",I.lineHeight,"1.5"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",I.textTransform,"inherit")},Ar={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",At),fontSize:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",I.fontSize,"14px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",I.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",I.letterSpacing,"0.098px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",I.lineHeight,"1.7"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",I.textTransform,"inherit")},rt={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",At),fontSize:C.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",I.fontSize,"16px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",I.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",I.letterSpacing,"0.496px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",I.lineHeight,"1.5"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",I.textTransform,"inherit")},Rr={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",At),fontSize:C.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",I.fontSize,"14px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",I.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",I.letterSpacing,"0.252px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",I.lineHeight,"1.4"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",I.textTransform,"inherit")},lt={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",At),fontSize:C.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",I.fontSize,"12px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",I.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",I.letterSpacing,"0.396px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",I.lineHeight,"1.33"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",I.textTransform,"inherit")},Nr={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",At),fontSize:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",I.fontSize,"10px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",I.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",I.letterSpacing,"0.33px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",I.lineHeight,"1.6"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",I.textTransform,"inherit")},Tr={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",At),fontSize:C.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",I.fontSize,"10px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",I.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",I.letterSpacing,"1.5px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",I.lineHeight,"1.6"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",I.textTransform,"uppercase")},Me={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-button-font-family","",At),fontSize:C.FtCssVariableFactory.extend("--ft-typography-button-font-size","",I.fontSize,"14px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",I.fontWeight,"600"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",I.letterSpacing,"1.246px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-button-line-height","",I.lineHeight,"1.15"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",I.textTransform,"uppercase")},qa=ot.css`
124
+ `}var Za=A.FtCssVariableFactory.extend("--ft-typography-font-family","",A.designSystemVariables.titleFont),At=A.FtCssVariableFactory.extend("--ft-typography-font-family","",A.designSystemVariables.contentFont),k={fontFamily:At,fontSize:A.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:A.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:A.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:A.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:A.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ut={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Za),fontSize:A.FtCssVariableFactory.extend("--ft-typography-title-font-size","",k.fontSize,"20px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",k.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",k.letterSpacing,"0.15px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-title-line-height","",k.lineHeight,"1.2"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",k.textTransform,"inherit")},Wt={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Za),fontSize:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",k.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",k.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",k.letterSpacing,"0.105px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",k.lineHeight,"1.7"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",k.textTransform,"inherit")},Er={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",At),fontSize:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",k.fontSize,"16px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",k.fontWeight,"600"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",k.letterSpacing,"0.144px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",k.lineHeight,"1.5"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",k.textTransform,"inherit")},Ar={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",At),fontSize:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",k.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",k.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",k.letterSpacing,"0.098px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",k.lineHeight,"1.7"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",k.textTransform,"inherit")},rt={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",At),fontSize:A.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",k.fontSize,"16px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",k.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",k.letterSpacing,"0.496px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",k.lineHeight,"1.5"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",k.textTransform,"inherit")},Rr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",At),fontSize:A.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",k.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",k.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",k.letterSpacing,"0.252px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",k.lineHeight,"1.4"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",k.textTransform,"inherit")},ct={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",At),fontSize:A.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",k.fontSize,"12px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",k.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",k.letterSpacing,"0.396px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",k.lineHeight,"1.33"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",k.textTransform,"inherit")},Ir={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",At),fontSize:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",k.fontSize,"10px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",k.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",k.letterSpacing,"0.33px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",k.lineHeight,"1.6"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",k.textTransform,"inherit")},Nr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",At),fontSize:A.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",k.fontSize,"10px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",k.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",k.letterSpacing,"1.5px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",k.lineHeight,"1.6"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",k.textTransform,"uppercase")},Me={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-button-font-family","",At),fontSize:A.FtCssVariableFactory.extend("--ft-typography-button-font-size","",k.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",k.fontWeight,"600"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",k.letterSpacing,"1.246px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-button-line-height","",k.lineHeight,"1.15"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",k.textTransform,"uppercase")},qa=ot.css`
125
125
  .ft-typography--title {
126
- font-family: ${Ft.fontFamily};
127
- font-size: ${Ft.fontSize};
128
- font-weight: ${Ft.fontWeight};
129
- letter-spacing: ${Ft.letterSpacing};
130
- line-height: ${Ft.lineHeight};
131
- text-transform: ${Ft.textTransform};
126
+ font-family: ${Ut.fontFamily};
127
+ font-size: ${Ut.fontSize};
128
+ font-weight: ${Ut.fontWeight};
129
+ letter-spacing: ${Ut.letterSpacing};
130
+ line-height: ${Ut.lineHeight};
131
+ text-transform: ${Ut.textTransform};
132
132
  }
133
133
  `,Ya=ot.css`
134
134
  .ft-typography--title-dense {
135
- font-family: ${zt.fontFamily};
136
- font-size: ${zt.fontSize};
137
- font-weight: ${zt.fontWeight};
138
- letter-spacing: ${zt.letterSpacing};
139
- line-height: ${zt.lineHeight};
140
- text-transform: ${zt.textTransform};
135
+ font-family: ${Wt.fontFamily};
136
+ font-size: ${Wt.fontSize};
137
+ font-weight: ${Wt.fontWeight};
138
+ letter-spacing: ${Wt.letterSpacing};
139
+ line-height: ${Wt.lineHeight};
140
+ text-transform: ${Wt.textTransform};
141
141
  }
142
142
  `,Xa=ot.css`
143
143
  .ft-typography--subtitle1 {
@@ -158,7 +158,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
158
158
  text-transform: ${Ar.textTransform};
159
159
  }
160
160
 
161
- `,Ir=ot.css`
161
+ `,Tr=ot.css`
162
162
  .ft-typography--body1 {
163
163
  font-family: ${rt.fontFamily};
164
164
  font-size: ${rt.fontSize};
@@ -176,17 +176,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
176
176
  line-height: ${Rr.lineHeight};
177
177
  text-transform: ${Rr.textTransform};
178
178
  }
179
- `,To=ot.css`
179
+ `,No=ot.css`
180
180
  .ft-typography--caption {
181
- font-family: ${lt.fontFamily};
182
- font-size: ${lt.fontSize};
183
- font-weight: ${lt.fontWeight};
184
- letter-spacing: ${lt.letterSpacing};
185
- line-height: ${lt.lineHeight};
186
- text-transform: ${lt.textTransform};
181
+ font-family: ${ct.fontFamily};
182
+ font-size: ${ct.fontSize};
183
+ font-weight: ${ct.fontWeight};
184
+ letter-spacing: ${ct.letterSpacing};
185
+ line-height: ${ct.lineHeight};
186
+ text-transform: ${ct.textTransform};
187
187
  }
188
188
  `,es=ot.css`
189
189
  .ft-typography--breadcrumb {
190
+ font-family: ${Ir.fontFamily};
191
+ font-size: ${Ir.fontSize};
192
+ font-weight: ${Ir.fontWeight};
193
+ letter-spacing: ${Ir.letterSpacing};
194
+ line-height: ${Ir.lineHeight};
195
+ text-transform: ${Ir.textTransform};
196
+ }
197
+ `,ts=ot.css`
198
+ .ft-typography--overline {
190
199
  font-family: ${Nr.fontFamily};
191
200
  font-size: ${Nr.fontSize};
192
201
  font-weight: ${Nr.fontWeight};
@@ -194,15 +203,6 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
194
203
  line-height: ${Nr.lineHeight};
195
204
  text-transform: ${Nr.textTransform};
196
205
  }
197
- `,ts=ot.css`
198
- .ft-typography--overline {
199
- font-family: ${Tr.fontFamily};
200
- font-size: ${Tr.fontSize};
201
- font-weight: ${Tr.fontWeight};
202
- letter-spacing: ${Tr.letterSpacing};
203
- line-height: ${Tr.lineHeight};
204
- text-transform: ${Tr.textTransform};
205
- }
206
206
  `,rs=ot.css`
207
207
  .ft-typography--button {
208
208
  font-family: ${Me.fontFamily};
@@ -216,7 +216,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
216
216
  .ft-typography {
217
217
  vertical-align: inherit;
218
218
  }
219
- `,is=[Object.keys(Ao).map(t=>Ka(t))];var ns=g(D()),Qr=g(E()),Be={color:Qr.FtCssVariableFactory.extend("--ft-loader-color","",Qr.designSystemVariables.colorPrimary),size:Qr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},as=ns.css`
219
+ `,is=[Object.keys(Ao).map(t=>Ka(t))];var ns=g(B()),Qr=g(R()),re={color:Qr.FtCssVariableFactory.extend("--ft-loader-color","",Qr.designSystemVariables.colorPrimary),size:Qr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},as=ns.css`
220
220
  :host {
221
221
  line-height: 0;
222
222
  }
@@ -225,8 +225,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
225
225
  display: inline-block;
226
226
  position: relative;
227
227
 
228
- width: ${Be.size};
229
- height: ${Be.size};
228
+ width: ${re.size};
229
+ height: ${re.size};
230
230
  }
231
231
 
232
232
  .ft-loader div {
@@ -235,7 +235,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
235
235
  width: 25%;
236
236
  height: 25%;
237
237
  border-radius: 50%;
238
- background: ${Be.color};
238
+ background: ${re.color};
239
239
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
240
240
  }
241
241
 
@@ -282,10 +282,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
282
282
  transform: translate(0, 0);
283
283
  }
284
284
  100% {
285
- transform: translate(calc(0.35 * ${Be.size}), 0);
285
+ transform: translate(calc(0.35 * ${re.size}), 0);
286
286
  }
287
287
  }
288
- `;var ss=g(D()),Rt=g(E()),ve={size:Rt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Rt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Rt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Rt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Rt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Rt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Rt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Rt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ls=ss.css`
288
+ `;var ss=g(B()),Rt=g(R()),xe={size:Rt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Rt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Rt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Rt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Rt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Rt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Rt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Rt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},cs=ss.css`
289
289
  :host, i.ft-icon {
290
290
  display: inline-flex;
291
291
  align-items: center;
@@ -294,14 +294,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
294
294
  }
295
295
 
296
296
  :host {
297
- width: ${ve.size};
298
- height: ${ve.size};
297
+ width: ${xe.size};
298
+ height: ${xe.size};
299
299
  }
300
300
 
301
301
  i.ft-icon {
302
302
  width: 100%;
303
303
  height: 100%;
304
- font-size: ${ve.size};
304
+ font-size: ${xe.size};
305
305
  line-height: 1;
306
306
  font-weight: normal;
307
307
  text-transform: none;
@@ -312,28 +312,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
312
312
  text-rendering: auto;
313
313
  -webkit-font-smoothing: antialiased;
314
314
  -moz-osx-font-smoothing: grayscale;
315
- vertical-align: ${ve.verticalAlign};
315
+ vertical-align: ${xe.verticalAlign};
316
316
  }
317
317
 
318
318
  i.ft-icon.ft-icon--fluid-topics {
319
- font-family: ${ve.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
319
+ font-family: ${xe.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
320
320
 
321
321
  /* Ugly fix because font is broken */
322
- font-size: calc(0.75 * ${ve.size});
323
- line-height: ${ve.size};
322
+ font-size: calc(0.75 * ${xe.size});
323
+ line-height: ${xe.size};
324
324
  position: relative;
325
325
  top: -4%;
326
326
  justify-content: center;
327
327
  }
328
328
 
329
329
  .ft-icon--file-format {
330
- font-family: ${ve.fileFormatFontFamily}, ft-mime, sans-serif;
330
+ font-family: ${xe.fileFormatFontFamily}, ft-mime, sans-serif;
331
331
  }
332
332
 
333
333
  .ft-icon--material {
334
- font-family: ${ve.materialFontFamily}, "Material Icons", sans-serif;
334
+ font-family: ${xe.materialFontFamily}, "Material Icons", sans-serif;
335
335
  }
336
- `;var cs=M.FtCssVariableFactory.extend("--ft-button-color","",M.designSystemVariables.colorPrimary),ee={backgroundColor:M.FtCssVariableFactory.extend("--ft-button-background-color","",M.designSystemVariables.colorSurface),borderRadius:M.FtCssVariableFactory.extend("--ft-button-border-radius","",M.designSystemVariables.borderRadiusL),color:cs,fontSize:M.FtCssVariableFactory.extend("--ft-button-font-size","",Me.fontSize),iconSize:M.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:M.FtCssVariableFactory.extend("--ft-button-ripple-color","",cs),verticalPadding:M.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:M.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:M.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOpacityDisabled,"Design system")},ds=M.FtCssVariableFactory.extend("--ft-button-primary-color","",M.FtCssVariableFactory.extend("--ft-button-color","",M.designSystemVariables.colorOnPrimary)),ji={backgroundColor:M.FtCssVariableFactory.extend("--ft-button-primary-background-color","",M.FtCssVariableFactory.extend("--ft-button-background-color","",M.designSystemVariables.colorPrimary)),color:ds,rippleColor:M.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ds)},vt={borderRadius:M.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",M.FtCssVariableFactory.extend("--ft-button-border-radius","",M.designSystemVariables.borderRadiusM)),verticalPadding:M.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:M.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:M.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},fs=[ps.css`
336
+ `;var ls=M.FtCssVariableFactory.extend("--ft-button-color","",M.designSystemVariables.colorPrimary),ee={backgroundColor:M.FtCssVariableFactory.extend("--ft-button-background-color","",M.designSystemVariables.colorSurface),borderRadius:M.FtCssVariableFactory.extend("--ft-button-border-radius","",M.designSystemVariables.borderRadiusL),color:ls,fontSize:M.FtCssVariableFactory.extend("--ft-button-font-size","",Me.fontSize),iconSize:M.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:M.FtCssVariableFactory.extend("--ft-button-ripple-color","",ls),verticalPadding:M.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:M.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:M.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOpacityDisabled,"Design system")},ds=M.FtCssVariableFactory.extend("--ft-button-primary-color","",M.FtCssVariableFactory.extend("--ft-button-color","",M.designSystemVariables.colorOnPrimary)),ji={backgroundColor:M.FtCssVariableFactory.extend("--ft-button-primary-background-color","",M.FtCssVariableFactory.extend("--ft-button-background-color","",M.designSystemVariables.colorPrimary)),color:ds,rippleColor:M.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ds)},vt={borderRadius:M.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",M.FtCssVariableFactory.extend("--ft-button-border-radius","",M.designSystemVariables.borderRadiusM)),verticalPadding:M.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:M.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:M.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},fs=[ps.css`
337
337
  :host {
338
338
  display: inline-block;
339
339
  max-width: 100%;
@@ -375,8 +375,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
375
375
 
376
376
  --ft-button-internal-line-height: max(calc(${ee.fontSize} + 2px), ${ee.iconSize});
377
377
  --ft-button-internal-color: ${ee.color};
378
- ${(0,M.setVariable)(ve.size,ee.iconSize)};
379
- ${(0,M.setVariable)($.color,ee.rippleColor)};
378
+ ${(0,M.setVariable)(xe.size,ee.iconSize)};
379
+ ${(0,M.setVariable)(w.color,ee.rippleColor)};
380
380
 
381
381
  border-radius: ${ee.borderRadius};
382
382
  padding: ${ee.verticalPadding} ${ee.horizontalPadding};
@@ -420,7 +420,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
420
420
  .ft-button.ft-button--primary {
421
421
  background-color: ${ji.backgroundColor};
422
422
  --ft-button-internal-color: ${ji.color};
423
- ${(0,M.setVariable)($.color,ji.rippleColor)};
423
+ ${(0,M.setVariable)(w.color,ji.rippleColor)};
424
424
  }
425
425
 
426
426
  .ft-button:focus {
@@ -466,10 +466,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
466
466
  }
467
467
 
468
468
  ft-loader {
469
- ${(0,M.setVariable)(Be.size,ee.iconSize)};
470
- ${(0,M.setVariable)(Be.color,"var(--ft-button-internal-color)")};
469
+ ${(0,M.setVariable)(re.size,ee.iconSize)};
470
+ ${(0,M.setVariable)(re.color,"var(--ft-button-internal-color)")};
471
471
  }
472
- `,M.noTextSelect];var ae=g(E());var se={textColor:ae.FtCssVariableFactory.extend("--ft-switch-text-color","",ae.designSystemVariables.colorOnSurfaceHigh),backgroundColor:ae.FtCssVariableFactory.extend("--ft-switch-background-color","",ae.designSystemVariables.colorSurface),selectedTextColor:ae.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",ae.designSystemVariables.colorPrimary),selectedBackgroundColor:ae.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",ae.designSystemVariables.colorPrimary),borderColor:ae.FtCssVariableFactory.extend("--ft-switch-border-color","",ae.designSystemVariables.colorOutline),borderRadius:ae.FtCssVariableFactory.extend("--ft-switch-border-radius","",ae.designSystemVariables.borderRadiusL),fontSize:ae.FtCssVariableFactory.extend("--ft-switch-font-size","",Me.fontSize),iconSize:ae.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:ae.FtCssVariableFactory.extend("--ft-switch-text-color","",ae.designSystemVariables.colorOnSurfaceMedium),rippleColor:ae.FtCssVariableFactory.extend("--ft-switch-ripple-color","",ae.designSystemVariables.colorPrimary),outlineColor:ae.FtCssVariableFactory.extend("--ft-switch-outline-color","",ae.designSystemVariables.colorPrimary)};var xt={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(Ft.fontSize,"Typography"),sectionTitleFontSize:J.FtCssVariableFactory.external(zt.fontSize,"Typography"),starsBackgroundColor:J.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",J.designSystemVariables.colorSurface)},hs=us.css`
472
+ `,M.noTextSelect];var se=g(R());var ce={textColor:se.FtCssVariableFactory.extend("--ft-switch-text-color","",se.designSystemVariables.colorOnSurfaceHigh),backgroundColor:se.FtCssVariableFactory.extend("--ft-switch-background-color","",se.designSystemVariables.colorSurface),selectedTextColor:se.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",se.designSystemVariables.colorPrimary),selectedBackgroundColor:se.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",se.designSystemVariables.colorPrimary),borderColor:se.FtCssVariableFactory.extend("--ft-switch-border-color","",se.designSystemVariables.colorOutline),borderRadius:se.FtCssVariableFactory.extend("--ft-switch-border-radius","",se.designSystemVariables.borderRadiusL),fontSize:se.FtCssVariableFactory.extend("--ft-switch-font-size","",Me.fontSize),iconSize:se.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:se.FtCssVariableFactory.extend("--ft-switch-text-color","",se.designSystemVariables.colorOnSurfaceMedium),rippleColor:se.FtCssVariableFactory.extend("--ft-switch-ripple-color","",se.designSystemVariables.colorPrimary),outlineColor:se.FtCssVariableFactory.extend("--ft-switch-outline-color","",se.designSystemVariables.colorPrimary)};var xt={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(Ut.fontSize,"Typography"),sectionTitleFontSize:J.FtCssVariableFactory.external(Wt.fontSize,"Typography"),starsBackgroundColor:J.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",J.designSystemVariables.colorSurface)},hs=us.css`
473
473
  .ft-reader-feedback {
474
474
  box-sizing: border-box;
475
475
  display: flex;
@@ -497,8 +497,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
497
497
  .ft-reader-feedback--rating {
498
498
  ${(0,J.setVariable)(ee.color,xt.emptyRatingColor)};
499
499
  ${(0,J.setVariable)(ee.rippleColor,xt.filledRatingColor)};
500
- ${(0,J.setVariable)(se.textColor,xt.emptyRatingColor)};
501
- ${(0,J.setVariable)(se.selectedTextColor,xt.filledRatingColor)};
500
+ ${(0,J.setVariable)(ce.textColor,xt.emptyRatingColor)};
501
+ ${(0,J.setVariable)(ce.selectedTextColor,xt.filledRatingColor)};
502
502
  }
503
503
 
504
504
  .ft-reader-feedback--rating .ft-reader-feedback--active {
@@ -525,9 +525,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
525
525
  [part="buttons-container"] {
526
526
  align-self: flex-end;
527
527
  }
528
- `;var Ls=g(E());var Ji=globalThis,Io=Ji.trustedTypes,ms=Io?Io.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ss="$lit$",Wt=`lit$${(Math.random()+"").slice(9)}$`,Os="?"+Wt,Md=`<${Os}>`,pr=document,_o=()=>pr.createComment(""),to=t=>t===null||typeof t!="object"&&typeof t!="function",ws=Array.isArray,Bd=t=>ws(t)||typeof t?.[Symbol.iterator]=="function",Gi=`[
529
- \f\r]`,eo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gs=/-->/g,ys=/>/g,cr=RegExp(`>|${Gi}(?:([^\\s"'>=/]+)(${Gi}*=${Gi}*(?:[^
530
- \f\r"'\`<>=]|("|')|))|$)`,"g"),bs=/'/g,vs=/"/g,Cs=/^(?:script|style|textarea|title)$/i,Es=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),As=Es(1),Rs=Es(2),ro=Symbol.for("lit-noChange"),ye=Symbol.for("lit-nothing"),xs=new WeakMap,dr=pr.createTreeWalker(pr,129);function Ns(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ms!==void 0?ms.createHTML(e):e}var Ud=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":"",s=eo;for(let l=0;l<r;l++){let d=t[l],f,h,m=-1,y=0;for(;y<d.length&&(s.lastIndex=y,h=s.exec(d),h!==null);)y=s.lastIndex,s===eo?h[1]==="!--"?s=gs:h[1]!==void 0?s=ys:h[2]!==void 0?(Cs.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=cr):h[3]!==void 0&&(s=cr):s===cr?h[0]===">"?(s=n??eo,m=-1):h[1]===void 0?m=-2:(m=s.lastIndex-h[2].length,f=h[1],s=h[3]===void 0?cr:h[3]==='"'?vs:bs):s===vs||s===bs?s=cr:s===gs||s===ys?s=eo:(s=cr,n=void 0);let v=s===cr&&t[l+1].startsWith("/>")?" ":"";a+=s===eo?d+Md:m>=0?(i.push(f),d.slice(0,m)+Ss+d.slice(m)+Wt+v):d+Wt+(m===-2?l:v)}return[Ns(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),i]},oo=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[f,h]=Ud(e,r);if(this.el=t.createElement(f,i),dr.currentNode=this.el.content,r===2){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=dr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let m of n.getAttributeNames())if(m.endsWith(Ss)){let y=h[s++],v=n.getAttribute(m).split(Wt),x=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:x[2],strings:v,ctor:x[1]==="."?Zi:x[1]==="?"?qi:x[1]==="@"?Yi:kr}),n.removeAttribute(m)}else m.startsWith(Wt)&&(d.push({type:6,index:a}),n.removeAttribute(m));if(Cs.test(n.tagName)){let m=n.textContent.split(Wt),y=m.length-1;if(y>0){n.textContent=Io?Io.emptyScript:"";for(let v=0;v<y;v++)n.append(m[v],_o()),dr.nextNode(),d.push({type:2,index:++a});n.append(m[y],_o())}}}else if(n.nodeType===8)if(n.data===Os)d.push({type:2,index:a});else{let m=-1;for(;(m=n.data.indexOf(Wt,m+1))!==-1;)d.push({type:7,index:a}),m+=Wt.length-1}a++}}static createElement(e,r){let i=pr.createElement("template");return i.innerHTML=e,i}};function _r(t,e,r=t,i){if(e===ro)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=to(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=_r(t,n._$AS(t,e.values),n,i)),e}var Ki=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??pr).importNode(r,!0);dr.currentNode=n;let a=dr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let f;d.type===2?f=new ko(a,a.nextSibling,this,e):d.type===1?f=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(f=new Xi(a,this,e)),this._$AV.push(f),d=i[++l]}s!==d?.index&&(a=dr.nextNode(),s++)}return dr.currentNode=pr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},ko=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=ye,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=_r(this,e,r),to(e)?e===ye||e==null||e===""?(this._$AH!==ye&&this._$AR(),this._$AH=ye):e!==this._$AH&&e!==ro&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Bd(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==ye&&to(this._$AH)?this._$AA.nextSibling.data=e:this.$(pr.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=oo.createElement(Ns(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Ki(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=xs.get(e.strings);return r===void 0&&xs.set(e.strings,r=new oo(e)),r}T(e){ws(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.k(_o()),this.k(_o()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},kr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=ye,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ye}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=_r(this,e,r,0),s=!to(e)||e!==this._$AH&&e!==ro,s&&(this._$AH=e);else{let l=e,d,f;for(e=a[0],d=0;d<a.length-1;d++)f=_r(this,l[i+d],r,d),f===ro&&(f=this._$AH[d]),s||=!to(f)||f!==this._$AH[d],f===ye?e=ye:e!==ye&&(e+=(f??"")+a[d+1]),this._$AH[d]=f}s&&!n&&this.O(e)}O(e){e===ye?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Zi=class extends kr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===ye?void 0:e}},qi=class extends kr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==ye)}},Yi=class extends kr{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=_r(this,e,r,0)??ye)===ro)return;let i=this._$AH,n=e===ye&&i!==ye||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==ye&&(i===ye||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)}},Xi=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){_r(this,e)}};var Fd=Ji.litHtmlPolyfillSupport;Fd?.(oo,ko),(Ji.litHtmlVersions??=[]).push("3.1.0");var Is=Symbol.for(""),zd=t=>{if(t?.r===Is)return t?._$litStatic$},Qi=t=>({_$litStatic$:t,r:Is});var Ts=new Map,_s=t=>(e,...r)=>{let i=r.length,n,a,s=[],l=[],d,f=0,h=!1;for(;f<i;){for(d=e[f];f<i&&(a=r[f],(n=zd(a))!==void 0);)d+=n+e[++f],h=!0;f!==i&&l.push(a),s.push(d),f++}if(f===i&&s.push(e[i]),h){let m=s.join("$$lit$$");(e=Ts.get(m))===void 0&&(s.raw=s,Ts.set(m,e=s)),r=l}return t(e,...r)},en=_s(As),cg=_s(Rs);var tn=g(Z()),Ps=g(E());var Ht;(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"})(Ht||(Ht={}));var ks=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},de=class extends Ps.FtLitElement{constructor(){super(...arguments),this.variant=Ht.body1}render(){return this.element?en`
528
+ `;var Ps=g(R());var Ji=globalThis,To=Ji.trustedTypes,ys=To?To.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ss="$lit$",zt=`lit$${(Math.random()+"").slice(9)}$`,Os="?"+zt,Bd=`<${Os}>`,pr=document,_o=()=>pr.createComment(""),to=t=>t===null||typeof t!="object"&&typeof t!="function",Cs=Array.isArray,Md=t=>Cs(t)||typeof t?.[Symbol.iterator]=="function",Gi=`[
529
+ \f\r]`,eo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ms=/-->/g,gs=/>/g,lr=RegExp(`>|${Gi}(?:([^\\s"'>=/]+)(${Gi}*=${Gi}*(?:[^
530
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),bs=/'/g,vs=/"/g,ws=/^(?:script|style|textarea|title)$/i,Es=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),As=Es(1),Rs=Es(2),ro=Symbol.for("lit-noChange"),be=Symbol.for("lit-nothing"),xs=new WeakMap,dr=pr.createTreeWalker(pr,129);function Is(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ys!==void 0?ys.createHTML(e):e}var Fd=(t,e)=>{let o=t.length-1,i=[],n,a=e===2?"<svg>":"",s=eo;for(let l=0;l<o;l++){let p=t[l],f,y,m=-1,b=0;for(;b<p.length&&(s.lastIndex=b,y=s.exec(p),y!==null);)b=s.lastIndex,s===eo?y[1]==="!--"?s=ms:y[1]!==void 0?s=gs:y[2]!==void 0?(ws.test(y[2])&&(n=RegExp("</"+y[2],"g")),s=lr):y[3]!==void 0&&(s=lr):s===lr?y[0]===">"?(s=n??eo,m=-1):y[1]===void 0?m=-2:(m=s.lastIndex-y[2].length,f=y[1],s=y[3]===void 0?lr:y[3]==='"'?vs:bs):s===vs||s===bs?s=lr:s===ms||s===gs?s=eo:(s=lr,n=void 0);let x=s===lr&&t[l+1].startsWith("/>")?" ":"";a+=s===eo?p+Bd:m>=0?(i.push(f),p.slice(0,m)+Ss+p.slice(m)+zt+x):p+zt+(m===-2?l:x)}return[Is(t,a+(t[o]||"<?>")+(e===2?"</svg>":"")),i]},oo=class t{constructor({strings:e,_$litType$:o},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,p=this.parts,[f,y]=Fd(e,o);if(this.el=t.createElement(f,i),dr.currentNode=this.el.content,o===2){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=dr.nextNode())!==null&&p.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let m of n.getAttributeNames())if(m.endsWith(Ss)){let b=y[s++],x=n.getAttribute(m).split(zt),S=/([.?@])?(.*)/.exec(b);p.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?Zi:S[1]==="?"?qi:S[1]==="@"?Yi:kr}),n.removeAttribute(m)}else m.startsWith(zt)&&(p.push({type:6,index:a}),n.removeAttribute(m));if(ws.test(n.tagName)){let m=n.textContent.split(zt),b=m.length-1;if(b>0){n.textContent=To?To.emptyScript:"";for(let x=0;x<b;x++)n.append(m[x],_o()),dr.nextNode(),p.push({type:2,index:++a});n.append(m[b],_o())}}}else if(n.nodeType===8)if(n.data===Os)p.push({type:2,index:a});else{let m=-1;for(;(m=n.data.indexOf(zt,m+1))!==-1;)p.push({type:7,index:a}),m+=zt.length-1}a++}}static createElement(e,o){let i=pr.createElement("template");return i.innerHTML=e,i}};function _r(t,e,o=t,i){if(e===ro)return e;let n=i!==void 0?o._$Co?.[i]:o._$Cl,a=to(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=_r(t,n._$AS(t,e.values),n,i)),e}var Ki=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??pr).importNode(o,!0);dr.currentNode=n;let a=dr.nextNode(),s=0,l=0,p=i[0];for(;p!==void 0;){if(s===p.index){let f;p.type===2?f=new ko(a,a.nextSibling,this,e):p.type===1?f=new p.ctor(a,p.name,p.strings,this,e):p.type===6&&(f=new Xi(a,this,e)),this._$AV.push(f),p=i[++l]}s!==p?.index&&(a=dr.nextNode(),s++)}return dr.currentNode=pr,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=be,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=_r(this,e,o),to(e)?e===be||e==null||e===""?(this._$AH!==be&&this._$AR(),this._$AH=be):e!==this._$AH&&e!==ro&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Md(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==be&&to(this._$AH)?this._$AA.nextSibling.data=e:this.$(pr.createTextNode(e)),this._$AH=e}g(e){let{values:o,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=oo.createElement(Is(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(o);else{let a=new Ki(n,this),s=a.u(this.options);a.p(o),this.$(s),this._$AH=a}}_$AC(e){let o=xs.get(e.strings);return o===void 0&&xs.set(e.strings,o=new oo(e)),o}T(e){Cs(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.k(_o()),this.k(_o()),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=be,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=be}_$AI(e,o=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=_r(this,e,o,0),s=!to(e)||e!==this._$AH&&e!==ro,s&&(this._$AH=e);else{let l=e,p,f;for(e=a[0],p=0;p<a.length-1;p++)f=_r(this,l[i+p],o,p),f===ro&&(f=this._$AH[p]),s||=!to(f)||f!==this._$AH[p],f===be?e=be:e!==be&&(e+=(f??"")+a[p+1]),this._$AH[p]=f}s&&!n&&this.O(e)}O(e){e===be?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Zi=class extends kr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===be?void 0:e}},qi=class extends kr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==be)}},Yi=class extends kr{constructor(e,o,i,n,a){super(e,o,i,n,a),this.type=5}_$AI(e,o=this){if((e=_r(this,e,o,0)??be)===ro)return;let i=this._$AH,n=e===be&&i!==be||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==be&&(i===be||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)}},Xi=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){_r(this,e)}};var Ud=Ji.litHtmlPolyfillSupport;Ud?.(oo,ko),(Ji.litHtmlVersions??=[]).push("3.1.0");var Ts=Symbol.for(""),Wd=t=>{if(t?.r===Ts)return t?._$litStatic$},Qi=t=>({_$litStatic$:t,r:Ts});var Ns=new Map,_s=t=>(e,...o)=>{let i=o.length,n,a,s=[],l=[],p,f=0,y=!1;for(;f<i;){for(p=e[f];f<i&&(a=o[f],(n=Wd(a))!==void 0);)p+=n+e[++f],y=!0;f!==i&&l.push(a),s.push(p),f++}if(f===i&&s.push(e[i]),y){let m=s.join("$$lit$$");(e=Ns.get(m))===void 0&&(s.raw=s,Ns.set(m,e=s)),o=l}return t(e,...o)},en=_s(As),hm=_s(Rs);var tn=g(Z()),Ls=g(R());var Ht;(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"})(Ht||(Ht={}));var ks=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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 Ls.FtLitElement{constructor(){super(...arguments),this.variant=Ht.body1}render(){return this.element?en`
531
531
  <${Qi(this.element)}
532
532
  part="text"
533
533
  class="ft-typography ft-typography--${this.variant}">
@@ -535,18 +535,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
535
535
  </${Qi(this.element)}>
536
536
  `:en`
537
537
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
538
- `}};de.styles=[qa,Ya,Xa,Ja,Ir,Qa,To,es,ts,rs,os,...is];ks([(0,tn.property)()],de.prototype,"element",void 0);ks([(0,tn.property)()],de.prototype,"variant",void 0);(0,Ls.customElement)("ft-typography")(de);var gn=g(E());var zo=g(D()),Ot=g(Z()),vl=g(Vt()),kt=g(E());var Mr=g(D()),Ke=g(Z()),Br=g(E());var Bs=g(E());var $s=g(D()),Ae=g(Z()),Ms=g(Vt()),io=g(E());var Ve=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},j=class extends io.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 io.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 io.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return $s.html`
538
+ `}};pe.styles=[qa,Ya,Xa,Ja,Tr,Qa,No,es,ts,rs,os,...is];ks([(0,tn.property)()],pe.prototype,"element",void 0);ks([(0,tn.property)()],pe.prototype,"variant",void 0);(0,Ps.customElement)("ft-typography")(pe);var mn=g(R());var Wo=g(B()),Ot=g(Z()),vc=g(Vt()),kt=g(R());var Br=g(B()),Ke=g(Z()),Mr=g(R());var Ms=g(R());var Ds=g(B()),Re=g(Z()),Bs=g(Vt()),io=g(R());var Ve=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},j=class extends io.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 io.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 io.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 Ds.html`
539
539
  <style>
540
540
  .ft-ripple .ft-ripple--effect {
541
541
  left: ${this.originX}px;
542
542
  top: ${this.originY}px;
543
543
  }
544
544
  </style>
545
- <div class="${(0,Ms.classMap)(e)}">
545
+ <div class="${(0,Bs.classMap)(e)}">
546
546
  <div class="ft-ripple--background"></div>
547
547
  <div class="ft-ripple--effect"></div>
548
548
  </div>
549
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(d)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};j.elementDefinitions={};j.styles=Sa;Ve([(0,Ae.property)({type:Boolean})],j.prototype,"primary",void 0);Ve([(0,Ae.property)({type:Boolean})],j.prototype,"secondary",void 0);Ve([(0,Ae.property)({type:Boolean})],j.prototype,"unbounded",void 0);Ve([(0,Ae.property)({type:Boolean})],j.prototype,"activated",void 0);Ve([(0,Ae.property)({type:Boolean})],j.prototype,"selected",void 0);Ve([(0,Ae.property)({type:Boolean})],j.prototype,"disabled",void 0);Ve([(0,Ae.state)()],j.prototype,"hovered",void 0);Ve([(0,Ae.state)()],j.prototype,"focused",void 0);Ve([(0,Ae.state)()],j.prototype,"pressed",void 0);Ve([(0,Ae.state)()],j.prototype,"rippling",void 0);Ve([(0,Ae.state)()],j.prototype,"originX",void 0);Ve([(0,Ae.state)()],j.prototype,"originY",void 0);Ve([(0,Ae.query)(".ft-ripple")],j.prototype,"ripple",void 0);Ve([(0,Ae.query)(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0);(0,Bs.customElement)("ft-ripple")(j);var bl=g(Vt());var dl=g(E());var cl=g(D()),xe=g(Z()),po=g(E());var Us=g(D()),Nt=g(E()),Pr={distance:Nt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Nt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Nt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Nt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Nt.FtCssVariableFactory.external(Nt.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Nt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Fs=Us.css`
549
+ `}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)}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=(...l)=>p=>{l.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(p)},i=o("mouseup","contextmenu"),n=o("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},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()}};j.elementDefinitions={};j.styles=Sa;Ve([(0,Re.property)({type:Boolean})],j.prototype,"primary",void 0);Ve([(0,Re.property)({type:Boolean})],j.prototype,"secondary",void 0);Ve([(0,Re.property)({type:Boolean})],j.prototype,"unbounded",void 0);Ve([(0,Re.property)({type:Boolean})],j.prototype,"activated",void 0);Ve([(0,Re.property)({type:Boolean})],j.prototype,"selected",void 0);Ve([(0,Re.property)({type:Boolean})],j.prototype,"disabled",void 0);Ve([(0,Re.state)()],j.prototype,"hovered",void 0);Ve([(0,Re.state)()],j.prototype,"focused",void 0);Ve([(0,Re.state)()],j.prototype,"pressed",void 0);Ve([(0,Re.state)()],j.prototype,"rippling",void 0);Ve([(0,Re.state)()],j.prototype,"originX",void 0);Ve([(0,Re.state)()],j.prototype,"originY",void 0);Ve([(0,Re.query)(".ft-ripple")],j.prototype,"ripple",void 0);Ve([(0,Re.query)(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0);(0,Ms.customElement)("ft-ripple")(j);var bc=g(Vt());var dc=g(R());var lc=g(B()),Se=g(Z()),po=g(R());var Fs=g(B()),It=g(R()),Lr={distance:It.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:It.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:It.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:It.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:It.FtCssVariableFactory.external(It.designSystemVariables.borderRadiusS,"Design system"),maxWidth:It.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Us=Fs.css`
550
550
  .ft-tooltip--container {
551
551
  display: block;
552
552
  }
@@ -561,21 +561,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
561
561
  box-sizing: border-box;
562
562
  overflow: hidden;
563
563
  width: max-content;
564
- max-width: ${Pr.maxWidth};
564
+ max-width: ${Lr.maxWidth};
565
565
  text-align: center;
566
- padding: ${Pr.distance};
567
- z-index: ${Pr.zIndex};
566
+ padding: ${Lr.distance};
567
+ z-index: ${Lr.zIndex};
568
568
  }
569
569
 
570
570
  .ft-tooltip--content {
571
571
  padding: 4px 8px;
572
- border-radius: ${Pr.borderRadiusS};
573
- background-color: ${Pr.backgroundColor};
574
- color: ${Pr.color};
572
+ border-radius: ${Lr.borderRadiusS};
573
+ background-color: ${Lr.backgroundColor};
574
+ color: ${Lr.color};
575
575
  position: relative;
576
576
  word-break: break-word;
577
577
  }
578
- `;var Ws=["top","right","bottom","left"],zs=["start","end"],on=Ws.reduce((t,e)=>t.concat(e,e+"-"+zs[0],e+"-"+zs[1]),[]),no=Math.min,jt=Math.max,ao=Math.round;var Tt=t=>({x:t,y:t}),Wd={left:"right",right:"left",bottom:"top",top:"bottom"},Hd={start:"end",end:"start"};function nn(t,e,r){return jt(t,no(e,r))}function Po(t,e){return typeof t=="function"?t(e):t}function Lr(t){return t.split("-")[0]}function Gt(t){return t.split("-")[1]}function an(t){return t==="x"?"y":"x"}function sn(t){return t==="y"?"height":"width"}function Lo(t){return["top","bottom"].includes(Lr(t))?"y":"x"}function ln(t){return an(Lo(t))}function Hs(t,e,r){r===void 0&&(r=!1);let i=Gt(t),n=ln(t),a=sn(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=rn(s)),[s,rn(s)]}function Vs(t){return t.replace(/start|end/g,e=>Hd[e])}function rn(t){return t.replace(/left|right|bottom|top/g,e=>Wd[e])}function Vd(t){return{top:0,right:0,bottom:0,left:0,...t}}function js(t){return typeof t!="number"?Vd(t):{top:t,right:t,bottom:t,left:t}}function fr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Gs(t,e,r){let{reference:i,floating:n}=t,a=Lo(e),s=ln(e),l=sn(s),d=Lr(e),f=a==="y",h=i.x+i.width/2-n.width/2,m=i.y+i.height/2-n.height/2,y=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:h,y:i.y-n.height};break;case"bottom":v={x:h,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:m};break;case"left":v={x:i.x-n.width,y:m};break;default:v={x:i.x,y:i.y}}switch(Gt(e)){case"start":v[s]-=y*(r&&f?-1:1);break;case"end":v[s]+=y*(r&&f?-1:1);break}return v}var Ks=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(e)),f=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:h,y:m}=Gs(f,i,d),y=i,v={},x=0;for(let S=0;S<l.length;S++){let{name:T,fn:A}=l[S],{x:R,y:L,data:B,reset:F}=await A({x:h,y:m,initialPlacement:i,placement:y,strategy:n,middlewareData:v,rects:f,platform:s,elements:{reference:t,floating:e}});if(h=R??h,m=L??m,v={...v,[T]:{...v[T],...B}},F&&x<=50){x++,typeof F=="object"&&(F.placement&&(y=F.placement),F.rects&&(f=F.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):F.rects),{x:h,y:m}=Gs(f,y,d)),S=-1;continue}}return{x:h,y:m,placement:y,strategy:n,middlewareData:v}};async function cn(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:y=!1,padding:v=0}=Po(e,t),x=js(v),T=l[y?m==="floating"?"reference":"floating":m],A=fr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(T)))==null||r?T:T.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:f,rootBoundary:h,strategy:d})),R=m==="floating"?{...s.floating,x:i,y:n}:s.reference,L=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),B=await(a.isElement==null?void 0:a.isElement(L))?await(a.getScale==null?void 0:a.getScale(L))||{x:1,y:1}:{x:1,y:1},F=fr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:R,offsetParent:L,strategy:d}):R);return{top:(A.top-F.top+x.top)/B.y,bottom:(F.bottom-A.bottom+x.bottom)/B.y,left:(A.left-F.left+x.left)/B.x,right:(F.right-A.right+x.right)/B.x}}function jd(t,e,r){return(t?[...r.filter(n=>Gt(n)===t),...r.filter(n=>Gt(n)!==t)]:r.filter(n=>Lr(n)===n)).filter(n=>t?Gt(n)===t||(e?Vs(n)!==n:!1):!0)}var dn=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:f}=e,{crossAxis:h=!1,alignment:m,allowedPlacements:y=on,autoAlignment:v=!0,...x}=Po(t,e),S=m!==void 0||y===on?jd(m||null,v,y):y,T=await cn(e,x),A=((r=s.autoPlacement)==null?void 0:r.index)||0,R=S[A];if(R==null)return{};let L=Hs(R,a,await(d.isRTL==null?void 0:d.isRTL(f.floating)));if(l!==R)return{reset:{placement:S[0]}};let B=[T[Lr(R)],T[L[0]],T[L[1]]],F=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:R,overflows:B}],He=S[A+1];if(He)return{data:{index:A+1,overflows:F},reset:{placement:He}};let yt=F.map(Ce=>{let u=Gt(Ce.placement);return[Ce.placement,u&&h?Ce.overflows.slice(0,2).reduce((b,_)=>b+_,0):Ce.overflows[0],Ce.overflows]}).sort((Ce,u)=>Ce[1]-u[1]),bt=((n=yt.filter(Ce=>Ce[2].slice(0,Gt(Ce[0])?2:3).every(u=>u<=0))[0])==null?void 0:n[0])||yt[0][0];return bt!==l?{data:{index:A+1,overflows:F},reset:{placement:bt}}:{}}}};var pn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:T=>{let{x:A,y:R}=T;return{x:A,y:R}}},...d}=Po(t,e),f={x:r,y:i},h=await cn(e,d),m=Lo(Lr(n)),y=an(m),v=f[y],x=f[m];if(a){let T=y==="y"?"top":"left",A=y==="y"?"bottom":"right",R=v+h[T],L=v-h[A];v=nn(R,v,L)}if(s){let T=m==="y"?"top":"left",A=m==="y"?"bottom":"right",R=x+h[T],L=x-h[A];x=nn(R,x,L)}let S=l.fn({...e,[y]:v,[m]:x});return{...S,data:{x:S.x-r,y:S.y-i}}}}};function It(t){return qs(t)?(t.nodeName||"").toLowerCase():"#document"}function je(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function _t(t){var e;return(e=(qs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qs(t){return t instanceof Node||t instanceof je(t).Node}function St(t){return t instanceof Element||t instanceof je(t).Element}function ct(t){return t instanceof HTMLElement||t instanceof je(t).HTMLElement}function Zs(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof je(t).ShadowRoot}function Dr(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Qe(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function Ys(t){return["table","td","th"].includes(It(t))}function $o(t){let e=Mo(),r=Qe(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function Xs(t){let e=ur(t);for(;ct(e)&&!so(e);){if($o(e))return e;e=ur(e)}return null}function Mo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function so(t){return["html","body","#document"].includes(It(t))}function Qe(t){return je(t).getComputedStyle(t)}function lo(t){return St(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ur(t){if(It(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Zs(t)&&t.host||_t(t);return Zs(e)?e.host:e}function Js(t){let e=ur(t);return so(e)?t.ownerDocument?t.ownerDocument.body:t.body:ct(e)&&Dr(e)?e:Js(e)}function Do(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Js(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=je(n);return a?e.concat(s,s.visualViewport||[],Dr(n)?n:[],s.frameElement&&r?Do(s.frameElement):[]):e.concat(n,Do(n,[],r))}function tl(t){let e=Qe(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=ct(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,l=ao(r)!==a||ao(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function rl(t){return St(t)?t:t.contextElement}function $r(t){let e=rl(t);if(!ct(e))return Tt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=tl(e),s=(a?ao(r.width):r.width)/i,l=(a?ao(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Zd=Tt(0);function ol(t){let e=je(t);return!Mo()||!e.visualViewport?Zd:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qd(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==je(t)?!1:e}function co(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=rl(t),s=Tt(1);e&&(i?St(i)&&(s=$r(i)):s=$r(t));let l=qd(a,r,i)?ol(a):Tt(0),d=(n.left+l.x)/s.x,f=(n.top+l.y)/s.y,h=n.width/s.x,m=n.height/s.y;if(a){let y=je(a),v=i&&St(i)?je(i):i,x=y.frameElement;for(;x&&i&&v!==y;){let S=$r(x),T=x.getBoundingClientRect(),A=Qe(x),R=T.left+(x.clientLeft+parseFloat(A.paddingLeft))*S.x,L=T.top+(x.clientTop+parseFloat(A.paddingTop))*S.y;d*=S.x,f*=S.y,h*=S.x,m*=S.y,d+=R,f+=L,x=je(x).frameElement}}return fr({width:h,height:m,x:d,y:f})}function Yd(t){let{rect:e,offsetParent:r,strategy:i}=t,n=ct(r),a=_t(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},l=Tt(1),d=Tt(0);if((n||!n&&i!=="fixed")&&((It(r)!=="body"||Dr(a))&&(s=lo(r)),ct(r))){let f=co(r);l=$r(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+d.x,y:e.y*l.y-s.scrollTop*l.y+d.y}}function Xd(t){return Array.from(t.getClientRects())}function il(t){return co(_t(t)).left+lo(t).scrollLeft}function Jd(t){let e=_t(t),r=lo(t),i=t.ownerDocument.body,n=jt(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=jt(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+il(t),l=-r.scrollTop;return Qe(i).direction==="rtl"&&(s+=jt(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Qd(t,e){let r=je(t),i=_t(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let f=Mo();(!f||f&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function ep(t,e){let r=co(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=ct(t)?$r(t):Tt(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=n*a.x,f=i*a.y;return{width:s,height:l,x:d,y:f}}function Qs(t,e,r){let i;if(e==="viewport")i=Qd(t,r);else if(e==="document")i=Jd(_t(t));else if(St(e))i=ep(e,r);else{let n=ol(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return fr(i)}function nl(t,e){let r=ur(t);return r===e||!St(r)||so(r)?!1:Qe(r).position==="fixed"||nl(r,e)}function tp(t,e){let r=e.get(t);if(r)return r;let i=Do(t,[],!1).filter(l=>St(l)&&It(l)!=="body"),n=null,a=Qe(t).position==="fixed",s=a?ur(t):t;for(;St(s)&&!so(s);){let l=Qe(s),d=$o(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Dr(s)&&!d&&nl(t,s))?i=i.filter(h=>h!==s):n=l,s=ur(s)}return e.set(t,i),i}function rp(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?tp(e,this._c):[].concat(r),i],l=s[0],d=s.reduce((f,h)=>{let m=Qs(e,h,n);return f.top=jt(m.top,f.top),f.right=no(m.right,f.right),f.bottom=no(m.bottom,f.bottom),f.left=jt(m.left,f.left),f},Qs(e,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function op(t){return tl(t)}function ip(t,e,r){let i=ct(e),n=_t(e),a=r==="fixed",s=co(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Tt(0);if(i||!i&&!a)if((It(e)!=="body"||Dr(n))&&(l=lo(e)),i){let f=co(e,!0,a,e);d.x=f.x+e.clientLeft,d.y=f.y+e.clientTop}else n&&(d.x=il(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function el(t,e){return!ct(t)||Qe(t).position==="fixed"?null:e?e(t):t.offsetParent}function al(t,e){let r=je(t);if(!ct(t))return r;let i=el(t,e);for(;i&&Ys(i)&&Qe(i).position==="static";)i=el(i,e);return i&&(It(i)==="html"||It(i)==="body"&&Qe(i).position==="static"&&!$o(i))?r:i||Xs(t)||r}var np=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||al,a=this.getDimensions;return{reference:ip(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function ap(t){return Qe(t).direction==="rtl"}var Bo={convertOffsetParentRelativeRectToViewportRelativeRect:Yd,getDocumentElement:_t,getClippingRect:rp,getOffsetParent:al,getElementRects:np,getClientRects:Xd,getDimensions:op,getScale:$r,isElement:St,isRTL:ap};var sl=(t,e,r)=>{let i=new Map,n={platform:Bo,...r},a={...n.platform,_c:i};return Ks(t,e,{...n,platform:a})};function ll(t){return sp(t)}function fn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function sp(t){for(let e=t;e;e=fn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=fn(t);e;e=fn(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Uo(t,e,r){return sl(t,e,{platform:{...Bo,getOffsetParent:i=>Bo.getOffsetParent(i,ll)},middleware:[pn({crossAxis:!0}),dn({allowedPlacements:[r]})]})}var Ge=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},re=class extends po.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 po.Debouncer,this.revealDebouncer=new po.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return cl.html`
578
+ `;var zs=["top","right","bottom","left"],Ws=["start","end"],on=zs.reduce((t,e)=>t.concat(e,e+"-"+Ws[0],e+"-"+Ws[1]),[]),no=Math.min,jt=Math.max,ao=Math.round;var Nt=t=>({x:t,y:t}),zd={left:"right",right:"left",bottom:"top",top:"bottom"},Hd={start:"end",end:"start"};function nn(t,e,o){return jt(t,no(e,o))}function Lo(t,e){return typeof t=="function"?t(e):t}function Pr(t){return t.split("-")[0]}function Gt(t){return t.split("-")[1]}function an(t){return t==="x"?"y":"x"}function sn(t){return t==="y"?"height":"width"}function Po(t){return["top","bottom"].includes(Pr(t))?"y":"x"}function cn(t){return an(Po(t))}function Hs(t,e,o){o===void 0&&(o=!1);let i=Gt(t),n=cn(t),a=sn(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 Vs(t){return t.replace(/start|end/g,e=>Hd[e])}function rn(t){return t.replace(/left|right|bottom|top/g,e=>zd[e])}function Vd(t){return{top:0,right:0,bottom:0,left:0,...t}}function js(t){return typeof t!="number"?Vd(t):{top:t,right:t,bottom:t,left:t}}function fr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Gs(t,e,o){let{reference:i,floating:n}=t,a=Po(e),s=cn(e),l=sn(s),p=Pr(e),f=a==="y",y=i.x+i.width/2-n.width/2,m=i.y+i.height/2-n.height/2,b=i[l]/2-n[l]/2,x;switch(p){case"top":x={x:y,y:i.y-n.height};break;case"bottom":x={x:y,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:m};break;case"left":x={x:i.x-n.width,y:m};break;default:x={x:i.x,y:i.y}}switch(Gt(e)){case"start":x[s]-=b*(o&&f?-1:1);break;case"end":x[s]+=b*(o&&f?-1:1);break}return x}var Ks=async(t,e,o)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,l=a.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),f=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:y,y:m}=Gs(f,i,p),b=i,x={},S=0;for(let O=0;O<l.length;O++){let{name:_,fn:I}=l[O],{x:N,y:D,data:F,reset:W}=await I({x:y,y:m,initialPlacement:i,placement:b,strategy:n,middlewareData:x,rects:f,platform:s,elements:{reference:t,floating:e}});if(y=N??y,m=D??m,x={...x,[_]:{...x[_],...F}},W&&S<=50){S++,typeof W=="object"&&(W.placement&&(b=W.placement),W.rects&&(f=W.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):W.rects),{x:y,y:m}=Gs(f,b,p)),O=-1;continue}}return{x:y,y:m,placement:b,strategy:n,middlewareData:x}};async function ln(t,e){var o;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:p}=t,{boundary:f="clippingAncestors",rootBoundary:y="viewport",elementContext:m="floating",altBoundary:b=!1,padding:x=0}=Lo(e,t),S=js(x),_=l[b?m==="floating"?"reference":"floating":m],I=fr(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(_)))==null||o?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:f,rootBoundary:y,strategy:p})),N=m==="floating"?{...s.floating,x:i,y:n}:s.reference,D=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),F=await(a.isElement==null?void 0:a.isElement(D))?await(a.getScale==null?void 0:a.getScale(D))||{x:1,y:1}:{x:1,y:1},W=fr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:N,offsetParent:D,strategy:p}):N);return{top:(I.top-W.top+S.top)/F.y,bottom:(W.bottom-I.bottom+S.bottom)/F.y,left:(I.left-W.left+S.left)/F.x,right:(W.right-I.right+S.right)/F.x}}function jd(t,e,o){return(t?[...o.filter(n=>Gt(n)===t),...o.filter(n=>Gt(n)!==t)]:o.filter(n=>Pr(n)===n)).filter(n=>t?Gt(n)===t||(e?Vs(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:l,platform:p,elements:f}=e,{crossAxis:y=!1,alignment:m,allowedPlacements:b=on,autoAlignment:x=!0,...S}=Lo(t,e),O=m!==void 0||b===on?jd(m||null,x,b):b,_=await ln(e,S),I=((o=s.autoPlacement)==null?void 0:o.index)||0,N=O[I];if(N==null)return{};let D=Hs(N,a,await(p.isRTL==null?void 0:p.isRTL(f.floating)));if(l!==N)return{reset:{placement:O[0]}};let F=[_[Pr(N)],_[D[0]],_[D[1]]],W=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:N,overflows:F}],He=O[I+1];if(He)return{data:{index:I+1,overflows:W},reset:{placement:He}};let gt=W.map(Ee=>{let h=Gt(Ee.placement);return[Ee.placement,h&&y?Ee.overflows.slice(0,2).reduce((v,L)=>v+L,0):Ee.overflows[0],Ee.overflows]}).sort((Ee,h)=>Ee[1]-h[1]),bt=((n=gt.filter(Ee=>Ee[2].slice(0,Gt(Ee[0])?2:3).every(h=>h<=0))[0])==null?void 0:n[0])||gt[0][0];return bt!==l?{data:{index:I+1,overflows:W},reset:{placement:bt}}:{}}}};var pn=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:l={fn:_=>{let{x:I,y:N}=_;return{x:I,y:N}}},...p}=Lo(t,e),f={x:o,y:i},y=await ln(e,p),m=Po(Pr(n)),b=an(m),x=f[b],S=f[m];if(a){let _=b==="y"?"top":"left",I=b==="y"?"bottom":"right",N=x+y[_],D=x-y[I];x=nn(N,x,D)}if(s){let _=m==="y"?"top":"left",I=m==="y"?"bottom":"right",N=S+y[_],D=S-y[I];S=nn(N,S,D)}let O=l.fn({...e,[b]:x,[m]:S});return{...O,data:{x:O.x-o,y:O.y-i}}}}};function Tt(t){return qs(t)?(t.nodeName||"").toLowerCase():"#document"}function je(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function _t(t){var e;return(e=(qs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qs(t){return t instanceof Node||t instanceof je(t).Node}function St(t){return t instanceof Element||t instanceof je(t).Element}function lt(t){return t instanceof HTMLElement||t instanceof je(t).HTMLElement}function Zs(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof je(t).ShadowRoot}function $r(t){let{overflow:e,overflowX:o,overflowY:i,display:n}=Qe(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(n)}function Ys(t){return["table","td","th"].includes(Tt(t))}function Do(t){let e=Bo(),o=Qe(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 Xs(t){let e=ur(t);for(;lt(e)&&!so(e);){if(Do(e))return e;e=ur(e)}return null}function Bo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function so(t){return["html","body","#document"].includes(Tt(t))}function Qe(t){return je(t).getComputedStyle(t)}function co(t){return St(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ur(t){if(Tt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Zs(t)&&t.host||_t(t);return Zs(e)?e.host:e}function Js(t){let e=ur(t);return so(e)?t.ownerDocument?t.ownerDocument.body:t.body:lt(e)&&$r(e)?e:Js(e)}function $o(t,e,o){var i;e===void 0&&(e=[]),o===void 0&&(o=!0);let n=Js(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=je(n);return a?e.concat(s,s.visualViewport||[],$r(n)?n:[],s.frameElement&&o?$o(s.frameElement):[]):e.concat(n,$o(n,[],o))}function tc(t){let e=Qe(t),o=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=lt(t),a=n?t.offsetWidth:o,s=n?t.offsetHeight:i,l=ao(o)!==a||ao(i)!==s;return l&&(o=a,i=s),{width:o,height:i,$:l}}function rc(t){return St(t)?t:t.contextElement}function Dr(t){let e=rc(t);if(!lt(e))return Nt(1);let o=e.getBoundingClientRect(),{width:i,height:n,$:a}=tc(e),s=(a?ao(o.width):o.width)/i,l=(a?ao(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Zd=Nt(0);function oc(t){let e=je(t);return!Bo()||!e.visualViewport?Zd:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qd(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==je(t)?!1:e}function lo(t,e,o,i){e===void 0&&(e=!1),o===void 0&&(o=!1);let n=t.getBoundingClientRect(),a=rc(t),s=Nt(1);e&&(i?St(i)&&(s=Dr(i)):s=Dr(t));let l=qd(a,o,i)?oc(a):Nt(0),p=(n.left+l.x)/s.x,f=(n.top+l.y)/s.y,y=n.width/s.x,m=n.height/s.y;if(a){let b=je(a),x=i&&St(i)?je(i):i,S=b.frameElement;for(;S&&i&&x!==b;){let O=Dr(S),_=S.getBoundingClientRect(),I=Qe(S),N=_.left+(S.clientLeft+parseFloat(I.paddingLeft))*O.x,D=_.top+(S.clientTop+parseFloat(I.paddingTop))*O.y;p*=O.x,f*=O.y,y*=O.x,m*=O.y,p+=N,f+=D,S=je(S).frameElement}}return fr({width:y,height:m,x:p,y:f})}function Yd(t){let{rect:e,offsetParent:o,strategy:i}=t,n=lt(o),a=_t(o);if(o===a)return e;let s={scrollLeft:0,scrollTop:0},l=Nt(1),p=Nt(0);if((n||!n&&i!=="fixed")&&((Tt(o)!=="body"||$r(a))&&(s=co(o)),lt(o))){let f=lo(o);l=Dr(o),p.x=f.x+o.clientLeft,p.y=f.y+o.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+p.x,y:e.y*l.y-s.scrollTop*l.y+p.y}}function Xd(t){return Array.from(t.getClientRects())}function ic(t){return lo(_t(t)).left+co(t).scrollLeft}function Jd(t){let e=_t(t),o=co(t),i=t.ownerDocument.body,n=jt(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=jt(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-o.scrollLeft+ic(t),l=-o.scrollTop;return Qe(i).direction==="rtl"&&(s+=jt(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Qd(t,e){let o=je(t),i=_t(t),n=o.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,p=0;if(n){a=n.width,s=n.height;let f=Bo();(!f||f&&e==="fixed")&&(l=n.offsetLeft,p=n.offsetTop)}return{width:a,height:s,x:l,y:p}}function ep(t,e){let o=lo(t,!0,e==="fixed"),i=o.top+t.clientTop,n=o.left+t.clientLeft,a=lt(t)?Dr(t):Nt(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,p=n*a.x,f=i*a.y;return{width:s,height:l,x:p,y:f}}function Qs(t,e,o){let i;if(e==="viewport")i=Qd(t,o);else if(e==="document")i=Jd(_t(t));else if(St(e))i=ep(e,o);else{let n=oc(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return fr(i)}function nc(t,e){let o=ur(t);return o===e||!St(o)||so(o)?!1:Qe(o).position==="fixed"||nc(o,e)}function tp(t,e){let o=e.get(t);if(o)return o;let i=$o(t,[],!1).filter(l=>St(l)&&Tt(l)!=="body"),n=null,a=Qe(t).position==="fixed",s=a?ur(t):t;for(;St(s)&&!so(s);){let l=Qe(s),p=Do(s);!p&&l.position==="fixed"&&(n=null),(a?!p&&!n:!p&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||$r(s)&&!p&&nc(t,s))?i=i.filter(y=>y!==s):n=l,s=ur(s)}return e.set(t,i),i}function rp(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t,s=[...o==="clippingAncestors"?tp(e,this._c):[].concat(o),i],l=s[0],p=s.reduce((f,y)=>{let m=Qs(e,y,n);return f.top=jt(m.top,f.top),f.right=no(m.right,f.right),f.bottom=no(m.bottom,f.bottom),f.left=jt(m.left,f.left),f},Qs(e,l,n));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function op(t){return tc(t)}function ip(t,e,o){let i=lt(e),n=_t(e),a=o==="fixed",s=lo(t,!0,a,e),l={scrollLeft:0,scrollTop:0},p=Nt(0);if(i||!i&&!a)if((Tt(e)!=="body"||$r(n))&&(l=co(e)),i){let f=lo(e,!0,a,e);p.x=f.x+e.clientLeft,p.y=f.y+e.clientTop}else n&&(p.x=ic(n));return{x:s.left+l.scrollLeft-p.x,y:s.top+l.scrollTop-p.y,width:s.width,height:s.height}}function ec(t,e){return!lt(t)||Qe(t).position==="fixed"?null:e?e(t):t.offsetParent}function ac(t,e){let o=je(t);if(!lt(t))return o;let i=ec(t,e);for(;i&&Ys(i)&&Qe(i).position==="static";)i=ec(i,e);return i&&(Tt(i)==="html"||Tt(i)==="body"&&Qe(i).position==="static"&&!Do(i))?o:i||Xs(t)||o}var np=async function(t){let{reference:e,floating:o,strategy:i}=t,n=this.getOffsetParent||ac,a=this.getDimensions;return{reference:ip(e,await n(o),i),floating:{x:0,y:0,...await a(o)}}};function ap(t){return Qe(t).direction==="rtl"}var Mo={convertOffsetParentRelativeRectToViewportRelativeRect:Yd,getDocumentElement:_t,getClippingRect:rp,getOffsetParent:ac,getElementRects:np,getClientRects:Xd,getDimensions:op,getScale:Dr,isElement:St,isRTL:ap};var sc=(t,e,o)=>{let i=new Map,n={platform:Mo,...o},a={...n.platform,_c:i};return Ks(t,e,{...n,platform:a})};function cc(t){return sp(t)}function fn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function sp(t){for(let e=t;e;e=fn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=fn(t);e;e=fn(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 Fo(t,e,o){return sc(t,e,{platform:{...Mo,getOffsetParent:i=>Mo.getOffsetParent(i,cc)},middleware:[pn({crossAxis:!0}),dn({allowedPlacements:[o]})]})}var Ge=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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 po.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 po.Debouncer,this.revealDebouncer=new po.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return lc.html`
579
579
  <div part="container"
580
580
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
581
581
  @mouseenter=${this.onHover}
@@ -593,12 +593,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
593
593
  </div>
594
594
  </div>
595
595
  </div>
596
- `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Uo(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top 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,r){return Math.max(e,Math.min(0,-r))}};re.elementDefinitions={"ft-typography":de};re.styles=Fs;Ge([(0,xe.property)()],re.prototype,"text",void 0);Ge([(0,xe.property)({type:Boolean})],re.prototype,"manual",void 0);Ge([(0,xe.property)({type:Boolean})],re.prototype,"inline",void 0);Ge([(0,xe.property)({type:Number})],re.prototype,"delay",void 0);Ge([(0,xe.property)()],re.prototype,"position",void 0);Ge([(0,xe.queryAssignedNodes)()],re.prototype,"slotNodes",void 0);Ge([(0,xe.query)(".ft-tooltip--container")],re.prototype,"container",void 0);Ge([(0,xe.query)(".ft-tooltip")],re.prototype,"tooltip",void 0);Ge([(0,xe.query)(".ft-tooltip--content")],re.prototype,"tooltipContent",void 0);Ge([(0,xe.state)()],re.prototype,"visible",void 0);Ge([(0,xe.eventOptions)({passive:!0})],re.prototype,"onTouch",null);Ge([(0,xe.eventOptions)({passive:!0})],re.prototype,"onHover",null);Ge([(0,xe.eventOptions)({passive:!0})],re.prototype,"onOut",null);Ge([(0,xe.eventOptions)({passive:!0})],re.prototype,"onClick",null);(0,dl.customElement)("ft-tooltip")(re);var ml=g(E());var fo=g(D()),mr=g(Z()),ul=g(E()),hl=g(fl());var hr;(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.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(hr||(hr={}));var w;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(w||(w={}));var dy=new Map([...["abw"].map(t=>[t,w.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,w.AUDIO]),...["avi"].map(t=>[t,w.AVI]),...["chm","xhs"].map(t=>[t,w.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,w.CODE]),...["csv"].map(t=>[t,w.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,w.DITA]),...["epub"].map(t=>[t,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,w.EXCEL]),...["flac"].map(t=>[t,w.FLAC]),...["gif"].map(t=>[t,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,w.GZIP]),...["html","htm","xhtml"].map(t=>[t,w.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,w.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,w.JPEG]),...["json"].map(t=>[t,w.JSON]),...["m4a","m4p"].map(t=>[t,w.M4A]),...["mov","qt"].map(t=>[t,w.MOV]),...["mp3"].map(t=>[t,w.MP3]),...["mp4","m4v"].map(t=>[t,w.MP4]),...["ogg","oga"].map(t=>[t,w.OGG]),...["pdf","ps"].map(t=>[t,w.PDF]),...["png"].map(t=>[t,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,w.POWERPOINT]),...["rar"].map(t=>[t,w.RAR]),...["stp"].map(t=>[t,w.STP]),...["txt","rtf","md","mdown"].map(t=>[t,w.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,w.VIDEO]),...["wav"].map(t=>[t,w.WAV]),...["wma"].map(t=>[t,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,w.WORD]),...["xml","xsl","rdf"].map(t=>[t,w.XML]),...["yaml","yml","x-yaml"].map(t=>[t,w.YAML]),...["zip"].map(t=>[t,w.ZIP])]);var py={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Ie;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ie||(Ie={}));var Fo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},be=class extends ul.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=fo.nothing}render(){let e=this.variant&&Object.values(Ie).includes(this.variant)?this.variant:Ie.fluid_topics,r=e!==Ie.material||!!this.value;return fo.html`
596
+ `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Fo(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))}};oe.elementDefinitions={"ft-typography":pe};oe.styles=Us;Ge([(0,Se.property)()],oe.prototype,"text",void 0);Ge([(0,Se.property)({type:Boolean})],oe.prototype,"manual",void 0);Ge([(0,Se.property)({type:Boolean})],oe.prototype,"inline",void 0);Ge([(0,Se.property)({type:Number})],oe.prototype,"delay",void 0);Ge([(0,Se.property)()],oe.prototype,"position",void 0);Ge([(0,Se.queryAssignedNodes)()],oe.prototype,"slotNodes",void 0);Ge([(0,Se.query)(".ft-tooltip--container")],oe.prototype,"container",void 0);Ge([(0,Se.query)(".ft-tooltip")],oe.prototype,"tooltip",void 0);Ge([(0,Se.query)(".ft-tooltip--content")],oe.prototype,"tooltipContent",void 0);Ge([(0,Se.state)()],oe.prototype,"visible",void 0);Ge([(0,Se.eventOptions)({passive:!0})],oe.prototype,"onTouch",null);Ge([(0,Se.eventOptions)({passive:!0})],oe.prototype,"onHover",null);Ge([(0,Se.eventOptions)({passive:!0})],oe.prototype,"onOut",null);Ge([(0,Se.eventOptions)({passive:!0})],oe.prototype,"onClick",null);(0,dc.customElement)("ft-tooltip")(oe);var yc=g(R());var fo=g(B()),yr=g(Z()),uc=g(R()),hc=g(fc());var hr;(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.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(hr||(hr={}));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 yg=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 mg={[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 _e;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(_e||(_e={}));var Uo=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},ve=class extends uc.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=fo.nothing}render(){let e=this.variant&&Object.values(_e).includes(this.variant)?this.variant:_e.fluid_topics,o=e!==_e.material||!!this.value;return fo.html`
597
597
  <i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
598
- ${(0,hl.unsafeHTML)(this.resolvedIcon)}
599
- <slot ?hidden=${r}></slot>
598
+ ${(0,hc.unsafeHTML)(this.resolvedIcon)}
599
+ <slot ?hidden=${o}></slot>
600
600
  </i>
601
- `}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.textContent;switch(this.variant){case Ie.file_format:this.resolvedIcon=(e=w[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ie.material:this.resolvedIcon=this.value||fo.nothing;break;default:this.resolvedIcon=(r=hr[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};be.elementDefinitions={};be.styles=ls;Fo([(0,mr.property)()],be.prototype,"variant",void 0);Fo([(0,mr.property)()],be.prototype,"value",void 0);Fo([(0,mr.state)()],be.prototype,"resolvedIcon",void 0);Fo([(0,mr.query)("slot")],be.prototype,"slottedContent",void 0);(0,ml.customElement)("ft-icon")(be);var gl=g(D()),Ue=g(E());var Se={borderRadiusLeft:Ue.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",Ue.designSystemVariables.borderRadiusL),borderRadiusRight:Ue.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",Ue.designSystemVariables.borderRadiusL),borderWidthLeft:Ue.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ue.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ue.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},yl=gl.css`
601
+ `}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 _e.file_format:this.resolvedIcon=(e=E[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case _e.material:this.resolvedIcon=this.value||fo.nothing;break;default:this.resolvedIcon=(o=hr[i.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ve.elementDefinitions={};ve.styles=cs;Uo([(0,yr.property)()],ve.prototype,"variant",void 0);Uo([(0,yr.property)()],ve.prototype,"value",void 0);Uo([(0,yr.state)()],ve.prototype,"resolvedIcon",void 0);Uo([(0,yr.query)("slot")],ve.prototype,"slottedContent",void 0);(0,yc.customElement)("ft-icon")(ve);var mc=g(B()),Fe=g(R());var Oe={borderRadiusLeft:Fe.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",Fe.designSystemVariables.borderRadiusL),borderRadiusRight:Fe.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",Fe.designSystemVariables.borderRadiusL),borderWidthLeft:Fe.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Fe.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Fe.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},gc=mc.css`
602
602
  .ft-switch-option {
603
603
  position: relative;
604
604
  display: inline-block;
@@ -612,20 +612,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
612
612
  }
613
613
 
614
614
  .ft-switch-option--content {
615
- --ft-switch-option-internal-line-height: calc(${se.fontSize} + 2px);
616
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${se.iconSize});
615
+ --ft-switch-option-internal-line-height: calc(${ce.fontSize} + 2px);
616
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${ce.iconSize});
617
617
 
618
618
  border-style: solid;
619
- border-color: ${se.borderColor};
620
- border-width: ${Se.borderWidthVertical} ${Se.borderWidthRight} ${Se.borderWidthVertical} ${Se.borderWidthLeft};
621
- border-radius: ${Se.borderRadiusLeft} ${Se.borderRadiusRight} ${Se.borderRadiusRight} ${Se.borderRadiusLeft};
619
+ border-color: ${ce.borderColor};
620
+ border-width: ${Oe.borderWidthVertical} ${Oe.borderWidthRight} ${Oe.borderWidthVertical} ${Oe.borderWidthLeft};
621
+ border-radius: ${Oe.borderRadiusLeft} ${Oe.borderRadiusRight} ${Oe.borderRadiusRight} ${Oe.borderRadiusLeft};
622
622
  display: flex;
623
623
  align-items: center;
624
624
  justify-content: center;
625
625
  overflow: hidden;
626
- ${(0,Ue.setVariable)(ve.size,se.iconSize)};
626
+ ${(0,Fe.setVariable)(xe.size,ce.iconSize)};
627
627
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
628
- background-color: ${se.backgroundColor};
628
+ background-color: ${ce.backgroundColor};
629
629
  -webkit-mask-image: radial-gradient(white, black);
630
630
  }
631
631
 
@@ -634,32 +634,32 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
634
634
  }
635
635
 
636
636
  .ft-switch-option--selected .ft-switch-option--content:before {
637
- background-color: ${se.selectedBackgroundColor};
638
- border-radius: ${Se.borderRadiusLeft} ${Se.borderRadiusRight} ${Se.borderRadiusRight} ${Se.borderRadiusLeft};
637
+ background-color: ${ce.selectedBackgroundColor};
638
+ border-radius: ${Oe.borderRadiusLeft} ${Oe.borderRadiusRight} ${Oe.borderRadiusRight} ${Oe.borderRadiusLeft};
639
639
  position: absolute;
640
640
  inset: 0;
641
641
  content: "";
642
642
  z-index: 1;
643
- opacity: ${Ue.designSystemVariables.opacityPrimaryOnSurfaceSelected};
643
+ opacity: ${Fe.designSystemVariables.opacityPrimaryOnSurfaceSelected};
644
644
  }
645
645
 
646
646
  .ft-switch-option--label {
647
- color: ${se.textColor};
647
+ color: ${ce.textColor};
648
648
  overflow: hidden;
649
649
  white-space: nowrap;
650
650
  text-overflow: ellipsis;
651
651
  display: block;
652
652
  margin: 0 8px;
653
- ${(0,Ue.setVariable)(Me.fontSize,se.fontSize)};
654
- ${(0,Ue.setVariable)(Me.lineHeight,"var(--ft-switch-option-internal-content-height)")}
653
+ ${(0,Fe.setVariable)(Me.fontSize,ce.fontSize)};
654
+ ${(0,Fe.setVariable)(Me.lineHeight,"var(--ft-switch-option-internal-content-height)")}
655
655
  }
656
656
 
657
657
  .ft-switch-option--selected .ft-switch-option--label {
658
- color: ${se.selectedTextColor};
658
+ color: ${ce.selectedTextColor};
659
659
  }
660
660
 
661
661
  .ft-switch-option--focused {
662
- outline: 1px solid ${se.outlineColor};
662
+ outline: 1px solid ${ce.outlineColor};
663
663
  }
664
664
 
665
665
  .ft-switch-option--label[hidden] {
@@ -667,7 +667,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
667
667
  }
668
668
 
669
669
  .ft-switch-option--ripple {
670
- ${(0,Ue.setVariable)($.color,se.rippleColor)};
670
+ ${(0,Fe.setVariable)(w.color,ce.rippleColor)};
671
671
  }
672
672
 
673
673
  ft-icon, ft-ripple, ft-typography {
@@ -680,20 +680,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
680
680
 
681
681
  ft-icon {
682
682
  flex-shrink: 0;
683
- color: ${se.iconColor};
683
+ color: ${ce.iconColor};
684
684
  }
685
685
 
686
686
  .ft-switch-option--selected ft-icon {
687
- color: ${se.selectedTextColor};
687
+ color: ${ce.selectedTextColor};
688
688
  }
689
- `;var dt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},un=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},hn=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},pe=class extends Br.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 hn(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(Mr.html`
690
- <label part="label" for="input" class=${(0,bl.classMap)(e)}
689
+ `;var dt=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},hn=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},fe=class extends Mr.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 hn(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(Br.html`
690
+ <label part="label" for="input" class=${(0,bc.classMap)(e)}
691
691
  @click=${this.onChange}>
692
692
  <div class="ft-switch-option--content">
693
693
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
694
694
  <ft-typography part="text"
695
695
  variant="button"
696
- class="ft-switch-option--label ${Br.isSafari?"ft-safari-ellipsis-fix":""}"
696
+ class="ft-switch-option--label ${Mr.isSafari?"ft-safari-ellipsis-fix":""}"
697
697
  ?hidden=${!this.hasTextContent()}>
698
698
  <slot @slotchange=${this.onSlotchange}></slot>
699
699
  </ft-typography>
@@ -702,29 +702,29 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
702
702
  </label>
703
703
  <input id="input" type="radio" class="ft-switch-option--input"
704
704
  .checked=${this.selected}>
705
- `)}addTooltip(e){return this.hasTextContent()||this.getLabel().trim().length===0?e:Mr.html`
705
+ `)}addTooltip(e){return this.hasTextContent()||this.getLabel().trim().length===0?e:Br.html`
706
706
  <ft-tooltip part="tooltip"
707
707
  text="${this.getLabel()}"
708
708
  position="${this.tooltipPosition}">
709
709
  ${e}
710
710
  </ft-tooltip>
711
- `}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 un(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?Mr.html`
711
+ `}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 un(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?Br.html`
712
712
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
713
- `:Mr.nothing}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};pe.elementDefinitions={"ft-ripple":j,"ft-typography":de,"ft-tooltip":re,"ft-icon":be};pe.styles=[Br.safariEllipsisFix,yl];dt([(0,Ke.property)()],pe.prototype,"value",void 0);dt([(0,Ke.property)()],pe.prototype,"icon",void 0);dt([(0,Ke.property)()],pe.prototype,"iconVariant",void 0);dt([(0,Ke.property)()],pe.prototype,"label",void 0);dt([(0,Ke.property)()],pe.prototype,"tooltipPosition",void 0);dt([(0,Ke.property)({type:Boolean,reflect:!0})],pe.prototype,"selected",void 0);dt([(0,Ke.property)({type:Boolean})],pe.prototype,"trailingIcon",void 0);dt([(0,Ke.property)({type:Boolean})],pe.prototype,"unselectable",void 0);dt([(0,Ke.query)(".ft-switch-option--content slot")],pe.prototype,"slottedContent",void 0);dt([(0,Ke.query)(".ft-switch-option--input")],pe.prototype,"input",void 0);dt([(0,Ke.state)()],pe.prototype,"isFocused",void 0);var gr=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},mn=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Fe=class extends kt.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return zo.html`
714
- <div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,vl.classMap)(e)}" role="radiogroup" aria-label=${this.label}>
713
+ `:Br.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()}};fe.elementDefinitions={"ft-ripple":j,"ft-typography":pe,"ft-tooltip":oe,"ft-icon":ve};fe.styles=[Mr.safariEllipsisFix,gc];dt([(0,Ke.property)()],fe.prototype,"value",void 0);dt([(0,Ke.property)()],fe.prototype,"icon",void 0);dt([(0,Ke.property)()],fe.prototype,"iconVariant",void 0);dt([(0,Ke.property)()],fe.prototype,"label",void 0);dt([(0,Ke.property)()],fe.prototype,"tooltipPosition",void 0);dt([(0,Ke.property)({type:Boolean,reflect:!0})],fe.prototype,"selected",void 0);dt([(0,Ke.property)({type:Boolean})],fe.prototype,"trailingIcon",void 0);dt([(0,Ke.property)({type:Boolean})],fe.prototype,"unselectable",void 0);dt([(0,Ke.query)(".ft-switch-option--content slot")],fe.prototype,"slottedContent",void 0);dt([(0,Ke.query)(".ft-switch-option--input")],fe.prototype,"input",void 0);dt([(0,Ke.state)()],fe.prototype,"isFocused",void 0);var mr=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},yn=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ue=class extends kt.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(o=>o.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return Wo.html`
714
+ <div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,vc.classMap)(e)}" role="radiogroup" aria-label=${this.label}>
715
715
  <slot @slotchange=${this.onSlotchange}
716
716
  @option-change=${this.onOptionChangeByScript}
717
717
  @option-change-by-user=${this.onOptionChangeByUser}
718
718
  ></slot>
719
719
  </div>
720
- `}onKeyDown(e){let r;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.code=="Space"&&(r=this.options.indexOf(e.target)),r!=null&&(e.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(r=>{r instanceof pe&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(e){var r;(r=e.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let r=e.target;this.onOptionChange(r)}onOptionChangeByUser(e){var r;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new mn((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};Fe.elementDefinitions={};Fe.styles=zo.css`
720
+ `}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 fe&&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 yn((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)})}};Ue.elementDefinitions={};Ue.styles=Wo.css`
721
721
  :host {
722
722
  display: inline-block;
723
723
  }
724
724
 
725
725
  .ft-switch {
726
- border-radius: ${se.borderRadius};
727
- outline-color: ${se.outlineColor};
726
+ border-radius: ${ce.borderRadius};
727
+ outline-color: ${ce.outlineColor};
728
728
  }
729
729
 
730
730
  .ft-switch slot {
@@ -733,25 +733,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
733
733
  }
734
734
 
735
735
  .ft-switch slot::slotted(ft-switch-option) {
736
- ${(0,kt.setVariable)(Se.borderRadiusLeft,"0")};
737
- ${(0,kt.setVariable)(Se.borderRadiusRight,"0")};
738
- ${(0,kt.setVariable)(Se.borderWidthLeft,"0")};
736
+ ${(0,kt.setVariable)(Oe.borderRadiusLeft,"0")};
737
+ ${(0,kt.setVariable)(Oe.borderRadiusRight,"0")};
738
+ ${(0,kt.setVariable)(Oe.borderWidthLeft,"0")};
739
739
  }
740
740
 
741
741
  .ft-switch slot::slotted(ft-switch-option:first-child) {
742
- ${(0,kt.setVariable)(Se.borderRadiusLeft,se.borderRadius)};
743
- ${(0,kt.setVariable)(Se.borderWidthLeft,"1px")};
742
+ ${(0,kt.setVariable)(Oe.borderRadiusLeft,ce.borderRadius)};
743
+ ${(0,kt.setVariable)(Oe.borderWidthLeft,"1px")};
744
744
  }
745
745
 
746
746
  .ft-switch slot::slotted(ft-switch-option:last-child) {
747
- ${(0,kt.setVariable)(Se.borderRadiusRight,se.borderRadius)};
747
+ ${(0,kt.setVariable)(Oe.borderRadiusRight,ce.borderRadius)};
748
748
  }
749
749
 
750
750
  .ft-switch--dense slot::slotted(ft-switch-option) {
751
751
  --ft-switch-internal-vertical-padding: 2px;
752
752
  --ft-switch-internal-horizontal-padding: 4px;
753
753
  }
754
- `;gr([(0,Ot.property)({type:Boolean})],Fe.prototype,"dense",void 0);gr([(0,Ot.property)({type:Boolean})],Fe.prototype,"unselectable",void 0);gr([(0,Ot.property)()],Fe.prototype,"label",void 0);gr([(0,Ot.query)(".ft-switch slot")],Fe.prototype,"slottedContent",void 0);gr([(0,Ot.state)()],Fe.prototype,"selectedOption",void 0);gr([(0,Ot.state)()],Fe.prototype,"displayFocusWhenUsingKeyboard",void 0);gr([(0,Ot.query)(".ft-switch")],Fe.prototype,"ftSwitchDiv",void 0);(0,gn.customElement)("ft-switch")(Fe);(0,gn.customElement)("ft-switch-option")(pe);var kl=g(E());var Vo=g(D()),it=g(Z()),_l=g(Vt()),jo=g(E());var wl=g(E());var Wo=g(D()),pt=g(Z()),Ho=g(E());var Sl=g(D()),Ur=g(E()),xl={colorOutline:Ur.FtCssVariableFactory.external(Ur.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:Ur.FtCssVariableFactory.external(Ur.designSystemVariables.colorOnSurfaceMedium,"Design system")},Ol=Sl.css`
754
+ `;mr([(0,Ot.property)({type:Boolean})],Ue.prototype,"dense",void 0);mr([(0,Ot.property)({type:Boolean})],Ue.prototype,"unselectable",void 0);mr([(0,Ot.property)()],Ue.prototype,"label",void 0);mr([(0,Ot.query)(".ft-switch slot")],Ue.prototype,"slottedContent",void 0);mr([(0,Ot.state)()],Ue.prototype,"selectedOption",void 0);mr([(0,Ot.state)()],Ue.prototype,"displayFocusWhenUsingKeyboard",void 0);mr([(0,Ot.query)(".ft-switch")],Ue.prototype,"ftSwitchDiv",void 0);(0,mn.customElement)("ft-switch")(Ue);(0,mn.customElement)("ft-switch-option")(fe);var kc=g(R());var Vo=g(B()),it=g(Z()),_c=g(Vt()),jo=g(R());var Cc=g(R());var zo=g(B()),pt=g(Z()),Ho=g(R());var Sc=g(B()),Fr=g(R()),xc={colorOutline:Fr.FtCssVariableFactory.external(Fr.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:Fr.FtCssVariableFactory.external(Fr.designSystemVariables.colorOnSurfaceMedium,"Design system")},Oc=Sc.css`
755
755
  :host {
756
756
  display: block;
757
757
  }
@@ -762,17 +762,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
762
762
 
763
763
  ft-icon {
764
764
  transform: rotate(-45deg);
765
- color: ${xl.colorOutline};
765
+ color: ${xc.colorOutline};
766
766
  }
767
767
 
768
768
  .ft-resizer--dragging ft-icon,
769
769
  .ft-resizer:hover ft-icon {
770
- color: ${xl.colorOnSurfaceMedium};
770
+ color: ${xc.colorOnSurfaceMedium};
771
771
  }
772
- `;var Kt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},yn=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},_e=class extends Ho.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Ie.material,this.cursor="nwse-resize",this.dragging=!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 Wo.html`
772
+ `;var Kt=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},gn=class extends CustomEvent{constructor(e,o){super("resize",{detail:{width:e,height:o}})}},ke=class extends Ho.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=_e.material,this.cursor="nwse-resize",this.dragging=!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 zo.html`
773
773
  <style>
774
774
  .ft-resizer {
775
- cursor: ${(0,Wo.unsafeCSS)(this.cursor)}
775
+ cursor: ${(0,zo.unsafeCSS)(this.cursor)}
776
776
  }
777
777
  </style>
778
778
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -780,25 +780,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
780
780
  @touchstart=${this.initDragFromTouch}>
781
781
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
782
782
  </div>
783
- `}initDragFromMouse(e){this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initDrag(e,r){this.dragging=!0,this.startX=e,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,r){let i=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new yn(i,n))}};_e.elementDefinitions={"ft-icon":be};_e.styles=[Ho.noTextSelect,Ol];Kt([(0,pt.property)({type:Number})],_e.prototype,"initialWidth",void 0);Kt([(0,pt.property)({type:Number})],_e.prototype,"initialHeight",void 0);Kt([(0,pt.property)()],_e.prototype,"icon",void 0);Kt([(0,pt.property)()],_e.prototype,"iconVariant",void 0);Kt([(0,pt.property)()],_e.prototype,"cursor",void 0);Kt([(0,pt.state)()],_e.prototype,"dragging",void 0);Kt([(0,pt.eventOptions)({passive:!0})],_e.prototype,"initDragFromMouse",null);Kt([(0,pt.eventOptions)({passive:!0})],_e.prototype,"initDragFromTouch",null);(0,wl.customElement)("ft-resizer")(_e);var Nl=g(E());var bn=g(D()),Fr=g(Z()),Al=g(Vt()),Rl=g(E());var Cl=g(D()),te=g(E());var k={fontSize:te.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:te.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:te.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:te.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:te.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:te.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:te.FtCssVariableFactory.extend("--ft-input-label-border-color","",te.designSystemVariables.colorOutline),textColor:te.FtCssVariableFactory.extend("--ft-input-label-text-color","",te.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:te.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",te.designSystemVariables.colorOnSurfaceDisabled),colorSurface:te.FtCssVariableFactory.external(te.designSystemVariables.colorSurface,"Design system"),borderRadiusS:te.FtCssVariableFactory.external(te.designSystemVariables.borderRadiusS,"Design system"),colorError:te.FtCssVariableFactory.external(te.designSystemVariables.colorError,"Design system")},El=Cl.css`
783
+ `}initDragFromMouse(e){this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}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 gn(i,n))}};ke.elementDefinitions={"ft-icon":ve};ke.styles=[Ho.noTextSelect,Oc];Kt([(0,pt.property)({type:Number})],ke.prototype,"initialWidth",void 0);Kt([(0,pt.property)({type:Number})],ke.prototype,"initialHeight",void 0);Kt([(0,pt.property)()],ke.prototype,"icon",void 0);Kt([(0,pt.property)()],ke.prototype,"iconVariant",void 0);Kt([(0,pt.property)()],ke.prototype,"cursor",void 0);Kt([(0,pt.state)()],ke.prototype,"dragging",void 0);Kt([(0,pt.eventOptions)({passive:!0})],ke.prototype,"initDragFromMouse",null);Kt([(0,pt.eventOptions)({passive:!0})],ke.prototype,"initDragFromTouch",null);(0,Cc.customElement)("ft-resizer")(ke);var Ic=g(R());var bn=g(B()),Ur=g(Z()),Ac=g(Vt()),Rc=g(R());var wc=g(B()),te=g(R());var P={fontSize:te.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:te.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:te.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:te.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:te.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:te.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:te.FtCssVariableFactory.extend("--ft-input-label-border-color","",te.designSystemVariables.colorOutline),textColor:te.FtCssVariableFactory.extend("--ft-input-label-text-color","",te.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:te.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",te.designSystemVariables.colorOnSurfaceDisabled),colorSurface:te.FtCssVariableFactory.external(te.designSystemVariables.colorSurface,"Design system"),borderRadiusS:te.FtCssVariableFactory.external(te.designSystemVariables.borderRadiusS,"Design system"),colorError:te.FtCssVariableFactory.external(te.designSystemVariables.colorError,"Design system")},Ec=wc.css`
784
784
  .ft-input-label {
785
785
  position: absolute;
786
786
  inset: 0;
787
787
  display: flex;
788
- background-color: ${k.colorSurface};
789
- border-radius: ${k.borderRadiusS} ${k.borderRadiusS} 0 0;
788
+ background-color: ${P.colorSurface};
789
+ border-radius: ${P.borderRadiusS} ${P.borderRadiusS} 0 0;
790
790
  }
791
791
 
792
792
  .ft-input-label--outlined {
793
- border-radius: ${k.borderRadiusS};
793
+ border-radius: ${P.borderRadiusS};
794
794
  }
795
795
 
796
796
  .ft-input-label {
797
- border-color: ${k.borderColor};
797
+ border-color: ${P.borderColor};
798
798
  }
799
799
 
800
800
  .ft-input-label.ft-input-label--in-error {
801
- border-color: ${k.colorError}
801
+ border-color: ${P.colorError}
802
802
  }
803
803
 
804
804
  .ft-input-label:before,
@@ -811,7 +811,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
811
811
  }
812
812
 
813
813
  .ft-input-label:before {
814
- width: calc(${k.horizontalSpacing} - 4px);
814
+ width: calc(${P.horizontalSpacing} - 4px);
815
815
  flex-shrink: 0;
816
816
  }
817
817
 
@@ -827,20 +827,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
827
827
  border-bottom-width: 1px;
828
828
  border-bottom-style: solid;
829
829
  border-color: inherit;
830
- color: ${k.textColor};
830
+ color: ${P.textColor};
831
831
  transition: font-size 250ms, line-height 250ms, color 250ms;
832
- max-width: calc(${k.labelMaxWidth} - 2 * (${k.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
832
+ max-width: calc(${P.labelMaxWidth} - 2 * (${P.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
833
833
  text-overflow: ellipsis;
834
- ${(0,te.setVariable)(lt.fontSize,k.fontSize)};
835
- ${(0,te.setVariable)(lt.lineHeight,k.fontSize)};
834
+ ${(0,te.setVariable)(ct.fontSize,P.fontSize)};
835
+ ${(0,te.setVariable)(ct.lineHeight,P.fontSize)};
836
836
  }
837
837
 
838
838
  .ft-input-label--in-error .ft-input-label--text {
839
- color: ${k.colorError}
839
+ color: ${P.colorError}
840
840
  }
841
841
 
842
842
  .ft-input-label--disabled .ft-input-label--text {
843
- color: ${k.disabledTextColor};
843
+ color: ${P.disabledTextColor};
844
844
  }
845
845
 
846
846
  .ft-input-label--hidden-text {
@@ -857,19 +857,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
857
857
  overflow: hidden;
858
858
  white-space: nowrap;
859
859
  text-overflow: ellipsis;
860
- padding: ${k.verticalSpacing} 4px;
861
- margin: calc(${k.verticalSpacing} * -1) 0;
860
+ padding: ${P.verticalSpacing} 4px;
861
+ margin: calc(${P.verticalSpacing} * -1) 0;
862
862
  max-width: 100%;
863
863
  box-sizing: border-box;
864
864
  }
865
865
 
866
866
  .ft-input-label--raised .ft-input-label--text {
867
- ${(0,te.setVariable)(lt.fontSize,k.raisedFontSize)};
868
- ${(0,te.setVariable)(lt.lineHeight,k.raisedFontSize)};
867
+ ${(0,te.setVariable)(ct.fontSize,P.raisedFontSize)};
868
+ ${(0,te.setVariable)(ct.lineHeight,P.raisedFontSize)};
869
869
  }
870
870
 
871
871
  .ft-input-label--raised .ft-input-label--floating-text {
872
- top: ${k.verticalSpacing};
872
+ top: ${P.verticalSpacing};
873
873
  }
874
874
 
875
875
  .ft-input-label--outlined .ft-input-label--text,
@@ -882,28 +882,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
882
882
  .ft-input-label--outlined:before {
883
883
  border-left-width: 1px;
884
884
  border-left-style: solid;
885
- border-radius: ${k.borderRadiusS} 0 0 ${k.borderRadiusS};
885
+ border-radius: ${P.borderRadiusS} 0 0 ${P.borderRadiusS};
886
886
  }
887
887
 
888
888
  .ft-input-label--outlined:after {
889
889
  border-right-width: 1px;
890
890
  border-right-style: solid;
891
- border-radius: 0 ${k.borderRadiusS} ${k.borderRadiusS} 0;
891
+ border-radius: 0 ${P.borderRadiusS} ${P.borderRadiusS} 0;
892
892
  }
893
893
 
894
894
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
895
895
  padding: 2px 4px;
896
- z-index: ${k.raisedZIndex};
897
- background-color: ${k.colorSurface};
898
- border-radius: ${k.borderRadiusS};
896
+ z-index: ${P.raisedZIndex};
897
+ background-color: ${P.colorSurface};
898
+ border-radius: ${P.borderRadiusS};
899
899
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
900
900
  }
901
901
 
902
902
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
903
903
  border-top: none;
904
904
  }
905
- `;var uo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ze=class extends Rl.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let e={"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};return bn.html`
906
- <div class="${(0,Al.classMap)(e)}">
905
+ `;var uo=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},We=class extends Rc.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let e={"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};return bn.html`
906
+ <div class="${(0,Ac.classMap)(e)}">
907
907
  ${this.text?bn.html`
908
908
  <div class="ft-input-label--text ft-typography--caption">
909
909
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -911,7 +911,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
911
911
  </div>
912
912
  `:null}
913
913
  </div>
914
- `}};ze.elementDefinitions={};ze.styles=[To,El];uo([(0,Fr.property)({type:String})],ze.prototype,"text",void 0);uo([(0,Fr.property)({type:Boolean})],ze.prototype,"raised",void 0);uo([(0,Fr.property)({type:Boolean})],ze.prototype,"outlined",void 0);uo([(0,Fr.property)({type:Boolean})],ze.prototype,"disabled",void 0);uo([(0,Fr.property)({type:Boolean})],ze.prototype,"error",void 0);(0,Nl.customElement)("ft-input-label")(ze);var Tl=g(D()),K=g(E());var Y={fontSize:K.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:K.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:K.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:K.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:K.FtCssVariableFactory.extend("--ft-text-area-helper-color","",K.designSystemVariables.colorOnSurfaceMedium),colorPrimary:K.FtCssVariableFactory.external(K.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:K.FtCssVariableFactory.external(K.designSystemVariables.borderRadiusS,"Design system"),colorError:K.FtCssVariableFactory.external(K.designSystemVariables.colorError,"Design system")},Il=Tl.css`
914
+ `}};We.elementDefinitions={};We.styles=[No,Ec];uo([(0,Ur.property)({type:String})],We.prototype,"text",void 0);uo([(0,Ur.property)({type:Boolean})],We.prototype,"raised",void 0);uo([(0,Ur.property)({type:Boolean})],We.prototype,"outlined",void 0);uo([(0,Ur.property)({type:Boolean})],We.prototype,"disabled",void 0);uo([(0,Ur.property)({type:Boolean})],We.prototype,"error",void 0);(0,Ic.customElement)("ft-input-label")(We);var Nc=g(B()),K=g(R());var Y={fontSize:K.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:K.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:K.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:K.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:K.FtCssVariableFactory.extend("--ft-text-area-helper-color","",K.designSystemVariables.colorOnSurfaceMedium),colorPrimary:K.FtCssVariableFactory.external(K.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:K.FtCssVariableFactory.external(K.designSystemVariables.borderRadiusS,"Design system"),colorError:K.FtCssVariableFactory.external(K.designSystemVariables.colorError,"Design system")},Tc=Nc.css`
915
915
  *:focus {
916
916
  outline: none;
917
917
  }
@@ -923,10 +923,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
923
923
  }
924
924
 
925
925
  ft-input-label {
926
- ${(0,K.setVariable)(k.fontSize,Y.fontSize)};
927
- ${(0,K.setVariable)(k.raisedFontSize,Y.labelSize)};
928
- ${(0,K.setVariable)(k.verticalSpacing,Y.verticalSpacing)};
929
- ${(0,K.setVariable)(k.horizontalSpacing,Y.horizontalSpacing)};
926
+ ${(0,K.setVariable)(P.fontSize,Y.fontSize)};
927
+ ${(0,K.setVariable)(P.raisedFontSize,Y.labelSize)};
928
+ ${(0,K.setVariable)(P.verticalSpacing,Y.verticalSpacing)};
929
+ ${(0,K.setVariable)(P.horizontalSpacing,Y.horizontalSpacing)};
930
930
  }
931
931
 
932
932
  .ft-text-area--main-panel {
@@ -944,8 +944,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
944
944
  }
945
945
 
946
946
  .ft-text-area--input-panel ft-ripple {
947
- ${(0,K.setVariable)($.opacityContentOnSurfaceHover,"0.08")};
948
- ${(0,K.setVariable)($.opacityContentOnSurfacePressed,"0.04")};
947
+ ${(0,K.setVariable)(w.opacityContentOnSurfaceHover,"0.08")};
948
+ ${(0,K.setVariable)(w.opacityContentOnSurfacePressed,"0.04")};
949
949
  }
950
950
 
951
951
  .ft-text-area--input {
@@ -979,8 +979,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
979
979
  }
980
980
 
981
981
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
982
- ${(0,K.setVariable)(k.borderColor,Y.colorPrimary)};
983
- ${(0,K.setVariable)(k.textColor,Y.colorPrimary)};
982
+ ${(0,K.setVariable)(P.borderColor,Y.colorPrimary)};
983
+ ${(0,K.setVariable)(P.textColor,Y.colorPrimary)};
984
984
  }
985
985
 
986
986
  .ft-text-area--filled .ft-text-area--input-panel {
@@ -1011,7 +1011,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1011
1011
  position: absolute;
1012
1012
  bottom: 0;
1013
1013
  }
1014
- `;var Pt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Re=class extends(0,jo.toFtFormComponent)(jo.FtLitElement,"textbox"){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 Vo.html`
1014
+ `;var Lt=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},Ie=class extends(0,jo.toFtFormComponent)(jo.FtLitElement,"textbox"){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 Vo.html`
1015
1015
  <style>
1016
1016
  .ft-text-area--main-panel {
1017
1017
  height: calc(4 * ${Y.verticalSpacing} + ${Y.labelSize} + ${Y.fontSize} + ${this.height}px);
@@ -1021,7 +1021,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1021
1021
  right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1022
1022
  }
1023
1023
  </style>
1024
- <div class="${(0,_l.classMap)(e)}">
1024
+ <div class="${(0,_c.classMap)(e)}">
1025
1025
  <div class="ft-text-area--main-panel">
1026
1026
  <ft-input-label text="${this.label}"
1027
1027
  ?disabled=${this.disabled}
@@ -1053,40 +1053,40 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1053
1053
  ${this.helper}
1054
1054
  </ft-typography>`:void 0}
1055
1055
  </div>
1056
- `}setValue(e,r=!1){this.value=e,this.setFormValue(e),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(this.height=e.detail.height)}};Re.elementDefinitions={"ft-input-label":ze,"ft-resizer":_e,"ft-ripple":j,"ft-typography":de};Re.styles=[Ir,Il];Pt([(0,it.property)({type:String})],Re.prototype,"label",void 0);Pt([(0,it.property)({reflect:!0})],Re.prototype,"value",void 0);Pt([(0,it.property)({type:String})],Re.prototype,"helper",void 0);Pt([(0,it.property)({type:Boolean})],Re.prototype,"outlined",void 0);Pt([(0,it.property)({type:Boolean})],Re.prototype,"disabled",void 0);Pt([(0,it.property)({type:Boolean})],Re.prototype,"error",void 0);Pt([(0,it.property)({type:Number,reflect:!0})],Re.prototype,"height",void 0);Pt([(0,it.query)("textarea")],Re.prototype,"textarea",void 0);Pt([(0,it.state)()],Re.prototype,"focused",void 0);(0,kl.customElement)("ft-text-area")(Re);var Cd=g(Ll());var vn=g(E());var ho=g(Z()),Ul=g(E());var Wr=g(E());var Ml=g(E());var Dl=g(D()),$l=g(E());var yr=class extends $l.FtLitElement{render(){return Dl.html`
1056
+ `}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)}};Ie.elementDefinitions={"ft-input-label":We,"ft-resizer":ke,"ft-ripple":j,"ft-typography":pe};Ie.styles=[Tr,Tc];Lt([(0,it.property)({type:String})],Ie.prototype,"label",void 0);Lt([(0,it.property)({reflect:!0})],Ie.prototype,"value",void 0);Lt([(0,it.property)({type:String})],Ie.prototype,"helper",void 0);Lt([(0,it.property)({type:Boolean})],Ie.prototype,"outlined",void 0);Lt([(0,it.property)({type:Boolean})],Ie.prototype,"disabled",void 0);Lt([(0,it.property)({type:Boolean})],Ie.prototype,"error",void 0);Lt([(0,it.property)({type:Number,reflect:!0})],Ie.prototype,"height",void 0);Lt([(0,it.query)("textarea")],Ie.prototype,"textarea",void 0);Lt([(0,it.state)()],Ie.prototype,"focused",void 0);(0,kc.customElement)("ft-text-area")(Ie);var wd=g(Pc());var vn=g(R());var ho=g(Z()),Fc=g(R());var zr=g(R());var Bc=g(R());var $c=g(B()),Dc=g(R());var gr=class extends Dc.FtLitElement{render(){return $c.html`
1057
1057
  <div class="ft-loader">
1058
1058
  <div></div>
1059
1059
  <div></div>
1060
1060
  <div></div>
1061
1061
  <div></div>
1062
1062
  </div>
1063
- `}};yr.styles=as;(0,Ml.customElement)("ft-loader")(yr);var zr=g(D()),Bl=g(Vt()),ke=g(Z()),Ze=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},fe=class extends(0,Wr.toFtFormComponent)(Wr.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e;return this.addTooltipIfNeeded(zr.html`
1063
+ `}};gr.styles=as;(0,Bc.customElement)("ft-loader")(gr);var Wr=g(B()),Mc=g(Vt()),Le=g(Z()),Ze=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},ue=class extends(0,zr.toFtFormComponent)(zr.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e;return this.addTooltipIfNeeded(Wr.html`
1064
1064
  <button part="button"
1065
- class="${(0,Bl.classMap)(this.buttonClasses)}"
1065
+ class="${(0,Mc.classMap)(this.buttonClasses)}"
1066
1066
  aria-label="${(e=this.ariaLabel)!==null&&e!==void 0?e:this.getLabel()}"
1067
1067
  ?disabled=${this.isDisabled()}>
1068
1068
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1069
1069
  <ft-typography part="label"
1070
1070
  variant=${this.typographyVariant}
1071
1071
  element="span"
1072
- class="ft-button--label ${Wr.isSafari?"ft-safari-ellipsis-fix":""}"
1072
+ class="ft-button--label ${zr.isSafari?"ft-safari-ellipsis-fix":""}"
1073
1073
  ?hidden=${!this.hasTextContent()}>
1074
1074
  <slot @slotchange=${this.onSlotchange}></slot>
1075
1075
  </ft-typography>
1076
1076
  ${this.resolveIcon()}
1077
1077
  </button>
1078
- `)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?zr.html`
1078
+ `)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Wr.html`
1079
1079
  <ft-tooltip part="tooltip"
1080
1080
  text="${this.getLabel()}"
1081
1081
  position="${this.tooltipPosition}">
1082
1082
  ${e}
1083
1083
  </ft-tooltip>
1084
- `:e}resolveIcon(){return this.loading?zr.html`
1085
- <ft-loader part="loader icon"></ft-loader> `:this.icon?zr.html`
1084
+ `:e}resolveIcon(){return this.loading?Wr.html`
1085
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?Wr.html`
1086
1086
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
1087
- `:zr.html`
1087
+ `:Wr.html`
1088
1088
  <slot part="icon" name="icon"></slot>
1089
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(r=>this.unslotText(r)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};fe.elementDefinitions={"ft-ripple":j,"ft-tooltip":re,"ft-typography":de,"ft-icon":be,"ft-loader":yr};Ze([(0,ke.property)({type:String,reflect:!0})],fe.prototype,"role",void 0);Ze([(0,ke.property)()],fe.prototype,"type",void 0);Ze([(0,ke.property)({type:Boolean})],fe.prototype,"disabled",void 0);Ze([(0,ke.property)()],fe.prototype,"label",void 0);Ze([(0,ke.property)()],fe.prototype,"icon",void 0);Ze([(0,ke.property)()],fe.prototype,"iconVariant",void 0);Ze([(0,ke.property)({type:Boolean})],fe.prototype,"trailingIcon",void 0);Ze([(0,ke.property)({type:Boolean})],fe.prototype,"loading",void 0);Ze([(0,ke.property)({attribute:"aria-label"})],fe.prototype,"ariaLabel",void 0);Ze([(0,ke.property)()],fe.prototype,"tooltipPosition",void 0);Ze([(0,ke.property)({type:Boolean})],fe.prototype,"hideTooltip",void 0);Ze([(0,ke.property)({type:Boolean})],fe.prototype,"forceTooltip",void 0);Ze([(0,ke.query)(".ft-button")],fe.prototype,"button",void 0);Ze([(0,ke.query)(".ft-button--label slot")],fe.prototype,"slottedContent",void 0);var Go=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ft=class extends fe{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"}};ft.styles=[Ul.safariEllipsisFix,fs];Go([(0,ho.property)({type:Boolean})],ft.prototype,"primary",void 0);Go([(0,ho.property)({type:Boolean})],ft.prototype,"outlined",void 0);Go([(0,ho.property)({type:Boolean})],ft.prototype,"dense",void 0);Go([(0,ho.property)({type:Boolean})],ft.prototype,"round",void 0);var mo=g(Z());var Zo=g(E());var Fl=g(D()),H=g(E());var zl=[Fl.css`
1089
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(o=>this.unslotText(o)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ue.elementDefinitions={"ft-ripple":j,"ft-tooltip":oe,"ft-typography":pe,"ft-icon":ve,"ft-loader":gr};Ze([(0,Le.property)({type:String,reflect:!0})],ue.prototype,"role",void 0);Ze([(0,Le.property)()],ue.prototype,"type",void 0);Ze([(0,Le.property)({type:Boolean})],ue.prototype,"disabled",void 0);Ze([(0,Le.property)()],ue.prototype,"label",void 0);Ze([(0,Le.property)()],ue.prototype,"icon",void 0);Ze([(0,Le.property)()],ue.prototype,"iconVariant",void 0);Ze([(0,Le.property)({type:Boolean})],ue.prototype,"trailingIcon",void 0);Ze([(0,Le.property)({type:Boolean})],ue.prototype,"loading",void 0);Ze([(0,Le.property)({attribute:"aria-label"})],ue.prototype,"ariaLabel",void 0);Ze([(0,Le.property)()],ue.prototype,"tooltipPosition",void 0);Ze([(0,Le.property)({type:Boolean})],ue.prototype,"hideTooltip",void 0);Ze([(0,Le.property)({type:Boolean})],ue.prototype,"forceTooltip",void 0);Ze([(0,Le.query)(".ft-button")],ue.prototype,"button",void 0);Ze([(0,Le.query)(".ft-button--label slot")],ue.prototype,"slottedContent",void 0);var Go=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},ft=class extends ue{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"}};ft.styles=[Fc.safariEllipsisFix,fs];Go([(0,ho.property)({type:Boolean})],ft.prototype,"primary",void 0);Go([(0,ho.property)({type:Boolean})],ft.prototype,"outlined",void 0);Go([(0,ho.property)({type:Boolean})],ft.prototype,"dense",void 0);Go([(0,ho.property)({type:Boolean})],ft.prototype,"round",void 0);var yo=g(Z());var Zo=g(R());var Uc=g(B()),C=g(R());var Wc=[Uc.css`
1090
1090
  :host {
1091
1091
  display: inline-block;
1092
1092
  max-width: 100%;
@@ -1136,7 +1136,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1136
1136
  }
1137
1137
 
1138
1138
  .ft-button:focus-visible {
1139
- outline-color: ${O.focusFocusRingColor};
1139
+ outline-color: ${u.focusFocusRingColor};
1140
1140
  outline-style: solid;
1141
1141
  }
1142
1142
 
@@ -1167,178 +1167,399 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1167
1167
  border-radius: 50%;
1168
1168
  }
1169
1169
 
1170
- /** Primary styles **/
1170
+ /** Brand Primary styles **/
1171
+
1172
+ .ftds--family-brand.ft-button--primary {
1173
+ ${(0,C.setVariable)(re.color,u.primaryBrandIconColor)};
1174
+
1175
+ ${(0,C.setVariable)(w.color,u.primaryBrandStateLayerColor)};
1176
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,u.primaryBrandHoverStateLayerOpacity)};
1177
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,u.primaryBrandFocusStateLayerOpacity)};
1178
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,u.primaryBrandActiveStateLayerOpacity)};
1179
+ ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,u.primaryBrandActiveStateLayerOpacity)};
1180
+
1181
+ background-color: ${u.primaryBrandBackgroundColor};
1182
+ color: ${u.primaryBrandColor};
1183
+ border-style: none;
1184
+ }
1185
+
1186
+ .ftds--family-brand.ft-button--primary[disabled] {
1187
+ opacity: ${u.primaryBrandDisabledComponentOpacity};
1188
+ }
1189
+
1190
+ .ftds--family-brand.ft-button--primary ft-icon {
1191
+ color: ${u.primaryBrandIconColor};
1192
+ }
1193
+
1194
+ /** Brand Secondary styles **/
1195
+
1196
+ .ftds--family-brand.ft-button--secondary {
1197
+ ${(0,C.setVariable)(re.color,u.secondaryBrandIconColor)};
1198
+
1199
+ ${(0,C.setVariable)(w.color,u.secondaryBrandStateLayerColor)};
1200
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,u.secondaryBrandHoverStateLayerOpacity)};
1201
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,u.secondaryBrandFocusStateLayerOpacity)};
1202
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,u.secondaryBrandActiveStateLayerOpacity)};
1203
+ ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,u.secondaryBrandActiveStateLayerOpacity)};
1204
+
1205
+ background-color: ${u.secondaryBrandBackgroundColor};
1206
+ color: ${u.secondaryBrandColor};
1207
+ border-color: ${u.secondaryBrandBorderColor};
1208
+ border-style: solid;
1209
+ }
1210
+
1211
+ .ftds--family-brand.ft-button--secondary[disabled] {
1212
+ opacity: ${u.secondaryBrandDisabledComponentOpacity};
1213
+ }
1214
+
1215
+ .ftds--family-brand.ft-button--secondary ft-icon {
1216
+ color: ${u.secondaryBrandIconColor};
1217
+ }
1218
+
1219
+ /** Brand Tertiary styles **/
1220
+
1221
+ .ftds--family-brand.ft-button--tertiary {
1222
+ ${(0,C.setVariable)(re.color,u.tertiaryBrandIconColor)};
1223
+
1224
+ ${(0,C.setVariable)(w.color,u.tertiaryBrandStateLayerColor)};
1225
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,u.tertiaryBrandHoverStateLayerOpacity)};
1226
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,u.tertiaryBrandFocusStateLayerOpacity)};
1227
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,u.tertiaryBrandActiveStateLayerOpacity)};
1228
+ ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,u.tertiaryBrandActiveStateLayerOpacity)};
1229
+
1230
+ background-color: ${u.tertiaryBrandBackgroundColor};
1231
+ color: ${u.tertiaryBrandColor};
1232
+ border-style: none;
1233
+ }
1234
+
1235
+ .ftds--family-brand.ft-button--tertiary[disabled] {
1236
+ opacity: ${u.tertiaryBrandDisabledComponentOpacity};
1237
+ }
1238
+
1239
+ .ftds--family-brand.ft-button--tertiary ft-icon {
1240
+ color: ${u.tertiaryBrandIconColor};
1241
+ }
1242
+
1243
+ /** Neutral Secondary styles **/
1244
+
1245
+ .ftds--family-neutral.ft-button--secondary {
1246
+ ${(0,C.setVariable)(re.color,u.secondaryNeutralIconColor)};
1247
+
1248
+ ${(0,C.setVariable)(w.backgroundColor,u.secondaryNeutralStateLayerColor)};
1249
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,u.secondaryNeutralHoverStateLayerOpacity)};
1250
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,u.secondaryNeutralFocusStateLayerOpacity)};
1251
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,u.secondaryNeutralActiveStateLayerOpacity)};
1252
+ ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,u.secondaryNeutralActiveStateLayerOpacity)};
1253
+
1254
+ background-color: ${u.secondaryNeutralBackgroundColor};
1255
+ color: ${u.secondaryNeutralColor};
1256
+ border-color: ${u.secondaryNeutralBorderColor};
1257
+ border-style: solid;
1258
+ }
1259
+
1260
+ .ftds--family-neutral.ft-button--secondary[disabled] {
1261
+ opacity: ${u.secondaryNeutralDisabledComponentOpacity};
1262
+ }
1263
+
1264
+ .ftds--family-neutral.ft-button--secondary ft-icon {
1265
+ color: ${u.secondaryNeutralIconColor};
1266
+ }
1267
+
1268
+ /** Neutral Tertiary styles **/
1269
+
1270
+ .ftds--family-neutral.ft-button--tertiary {
1271
+ ${(0,C.setVariable)(re.color,u.tertiaryNeutralIconColor)};
1272
+
1273
+ ${(0,C.setVariable)(w.backgroundColor,u.tertiaryNeutralStateLayerColor)};
1274
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,u.tertiaryNeutralHoverStateLayerOpacity)};
1275
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,u.tertiaryNeutralFocusStateLayerOpacity)};
1276
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,u.tertiaryNeutralActiveStateLayerOpacity)};
1277
+ ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,u.tertiaryNeutralActiveStateLayerOpacity)};
1278
+
1279
+ background-color: ${u.tertiaryNeutralBackgroundColor};
1280
+ color: ${u.tertiaryNeutralColor};
1281
+ border-style: none;
1282
+ }
1283
+
1284
+ .ftds--family-neutral.ft-button--tertiary[disabled] {
1285
+ opacity: ${u.tertiaryNeutralDisabledComponentOpacity};
1286
+ }
1287
+
1288
+ .ftds--family-neutral.ft-button--tertiary ft-icon {
1289
+ color: ${u.tertiaryNeutralIconColor};
1290
+ }
1291
+
1292
+ /** Info Secondary styles **/
1293
+
1294
+ .ftds--family-info.ft-button--secondary {
1295
+ ${(0,C.setVariable)(re.color,u.secondaryInfoIconColor)};
1296
+
1297
+ ${(0,C.setVariable)(w.backgroundColor,u.secondaryInfoStateLayerColor)};
1298
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,u.secondaryInfoHoverStateLayerOpacity)};
1299
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,u.secondaryInfoFocusStateLayerOpacity)};
1300
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,u.secondaryInfoActiveStateLayerOpacity)};
1301
+ ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,u.secondaryInfoActiveStateLayerOpacity)};
1302
+
1303
+ background-color: ${u.secondaryInfoBackgroundColor};
1304
+ color: ${u.secondaryInfoColor};
1305
+ border-color: ${u.secondaryInfoBorderColor};
1306
+ border-style: solid;
1307
+ }
1308
+
1309
+ .ftds--family-info.ft-button--secondary[disabled] {
1310
+ opacity: ${u.secondaryInfoDisabledComponentOpacity};
1311
+ }
1312
+
1313
+ .ftds--family-info.ft-button--secondary ft-icon {
1314
+ color: ${u.secondaryInfoIconColor};
1315
+ }
1316
+
1317
+ /** Info Tertiary styles **/
1318
+
1319
+ .ftds--family-info.ft-button--tertiary {
1320
+ ${(0,C.setVariable)(re.color,u.tertiaryInfoIconColor)};
1321
+
1322
+ ${(0,C.setVariable)(w.backgroundColor,u.tertiaryInfoStateLayerColor)};
1323
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,u.tertiaryInfoHoverStateLayerOpacity)};
1324
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,u.tertiaryInfoFocusStateLayerOpacity)};
1325
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,u.tertiaryInfoActiveStateLayerOpacity)};
1326
+ ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,u.tertiaryInfoActiveStateLayerOpacity)};
1327
+
1328
+ background-color: ${u.tertiaryInfoBackgroundColor};
1329
+ color: ${u.tertiaryInfoColor};
1330
+ border-style: none;
1331
+ }
1332
+
1333
+ .ftds--family-info.ft-button--tertiary[disabled] {
1334
+ opacity: ${u.tertiaryInfoDisabledComponentOpacity};
1335
+ }
1336
+
1337
+ .ftds--family-info.ft-button--tertiary ft-icon {
1338
+ color: ${u.tertiaryInfoIconColor};
1339
+ }
1340
+
1341
+ /** Success Secondary styles **/
1342
+
1343
+ .ftds--family-success.ft-button--secondary {
1344
+ ${(0,C.setVariable)(re.color,u.secondarySuccessIconColor)};
1345
+
1346
+ ${(0,C.setVariable)(w.backgroundColor,u.secondarySuccessStateLayerColor)};
1347
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,u.secondarySuccessHoverStateLayerOpacity)};
1348
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,u.secondarySuccessFocusStateLayerOpacity)};
1349
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,u.secondarySuccessActiveStateLayerOpacity)};
1350
+ ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,u.secondarySuccessActiveStateLayerOpacity)};
1351
+
1352
+ background-color: ${u.secondarySuccessBackgroundColor};
1353
+ color: ${u.secondarySuccessColor};
1354
+ border-color: ${u.secondarySuccessBorderColor};
1355
+ border-style: solid;
1356
+ }
1357
+
1358
+ .ftds--family-success.ft-button--secondary[disabled] {
1359
+ opacity: ${u.secondarySuccessDisabledComponentOpacity};
1360
+ }
1361
+
1362
+ .ftds--family-success.ft-button--secondary ft-icon {
1363
+ color: ${u.secondarySuccessIconColor};
1364
+ }
1365
+
1366
+ /** Success Tertiary styles **/
1171
1367
 
1172
- .ft-button--primary {
1173
- ${(0,H.setVariable)(Be.color,O.primaryIconColor)};
1368
+ .ftds--family-success.ft-button--tertiary {
1369
+ ${(0,C.setVariable)(re.color,u.tertiarySuccessIconColor)};
1174
1370
 
1175
- ${(0,H.setVariable)($.color,O.primaryStateLayerColor)};
1176
- ${(0,H.setVariable)($.opacityContentOnSurfaceHover,O.primaryHoverStateLayerOpacity)};
1177
- ${(0,H.setVariable)($.opacityContentOnSurfaceFocused,O.primaryFocusStateLayerOpacity)};
1178
- ${(0,H.setVariable)($.opacityContentOnSurfaceSelected,O.primaryActiveStateLayerOpacity)};
1179
- ${(0,H.setVariable)($.opacityContentOnSurfacePressed,O.primaryActiveStateLayerOpacity)};
1371
+ ${(0,C.setVariable)(w.backgroundColor,u.tertiarySuccessStateLayerColor)};
1372
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,u.tertiarySuccessHoverStateLayerOpacity)};
1373
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,u.tertiarySuccessFocusStateLayerOpacity)};
1374
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,u.tertiarySuccessActiveStateLayerOpacity)};
1375
+ ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,u.tertiarySuccessActiveStateLayerOpacity)};
1180
1376
 
1181
- background-color: ${O.primaryBackgroundColor};
1182
- color: ${O.primaryColor};
1377
+ background-color: ${u.tertiarySuccessBackgroundColor};
1378
+ color: ${u.tertiarySuccessColor};
1183
1379
  border-style: none;
1184
1380
  }
1185
1381
 
1186
- .ft-button--primary[disabled] {
1187
- opacity: ${O.primaryDisabledComponentOpacity};
1382
+ .ftds--family-success.ft-button--tertiary[disabled] {
1383
+ opacity: ${u.tertiarySuccessDisabledComponentOpacity};
1188
1384
  }
1189
1385
 
1190
- .ft-button--primary ft-icon {
1191
- color: ${O.primaryIconColor};
1386
+ .ftds--family-success.ft-button--tertiary ft-icon {
1387
+ color: ${u.tertiarySuccessIconColor};
1192
1388
  }
1193
1389
 
1194
- /** Secondary styles **/
1390
+ /** Warning Secondary styles **/
1195
1391
 
1196
- .ft-button--secondary {
1197
- ${(0,H.setVariable)(Be.color,O.secondaryIconColor)};
1392
+ .ftds--family-warning.ft-button--secondary {
1393
+ ${(0,C.setVariable)(re.color,u.secondaryWarningIconColor)};
1198
1394
 
1199
- ${(0,H.setVariable)($.color,O.secondaryStateLayerColor)};
1200
- ${(0,H.setVariable)($.opacityContentOnSurfaceHover,O.secondaryHoverStateLayerOpacity)};
1201
- ${(0,H.setVariable)($.opacityContentOnSurfaceFocused,O.secondaryFocusStateLayerOpacity)};
1202
- ${(0,H.setVariable)($.opacityContentOnSurfaceSelected,O.secondaryActiveStateLayerOpacity)};
1203
- ${(0,H.setVariable)($.opacityContentOnSurfacePressed,O.secondaryActiveStateLayerOpacity)};
1395
+ ${(0,C.setVariable)(w.backgroundColor,u.secondaryWarningStateLayerColor)};
1396
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,u.secondaryWarningHoverStateLayerOpacity)};
1397
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,u.secondaryWarningFocusStateLayerOpacity)};
1398
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,u.secondaryWarningActiveStateLayerOpacity)};
1399
+ ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,u.secondaryWarningActiveStateLayerOpacity)};
1204
1400
 
1205
- background-color: ${O.secondaryBackgroundColor};
1206
- color: ${O.secondaryColor};
1207
- border-color: ${O.secondaryBorderColor};
1401
+ background-color: ${u.secondaryWarningBackgroundColor};
1402
+ color: ${u.secondaryWarningColor};
1403
+ border-color: ${u.secondaryWarningBorderColor};
1208
1404
  border-style: solid;
1209
1405
  }
1210
1406
 
1211
- .ft-button--secondary[disabled] {
1212
- opacity: ${O.secondaryDisabledComponentOpacity};
1407
+ .ftds--family-warning.ft-button--secondary[disabled] {
1408
+ opacity: ${u.secondaryWarningDisabledComponentOpacity};
1213
1409
  }
1214
1410
 
1215
- .ft-button--secondary ft-icon {
1216
- color: ${O.secondaryIconColor};
1411
+ .ftds--family-warning.ft-button--secondary ft-icon {
1412
+ color: ${u.secondaryWarningIconColor};
1217
1413
  }
1218
1414
 
1219
- /** Tertiary styles **/
1415
+ /** Warning Tertiary styles **/
1220
1416
 
1221
- .ft-button--tertiary {
1222
- ${(0,H.setVariable)(Be.color,O.tertiaryIconColor)};
1417
+ .ftds--family-warning.ft-button--tertiary {
1418
+ ${(0,C.setVariable)(re.color,u.tertiaryWarningIconColor)};
1223
1419
 
1224
- ${(0,H.setVariable)($.color,O.tertiaryStateLayerColor)};
1225
- ${(0,H.setVariable)($.opacityContentOnSurfaceHover,O.tertiaryHoverStateLayerOpacity)};
1226
- ${(0,H.setVariable)($.opacityContentOnSurfaceFocused,O.tertiaryFocusStateLayerOpacity)};
1227
- ${(0,H.setVariable)($.opacityContentOnSurfaceSelected,O.tertiaryActiveStateLayerOpacity)};
1228
- ${(0,H.setVariable)($.opacityContentOnSurfacePressed,O.tertiaryActiveStateLayerOpacity)};
1420
+ ${(0,C.setVariable)(w.backgroundColor,u.tertiaryWarningStateLayerColor)};
1421
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,u.tertiaryWarningHoverStateLayerOpacity)};
1422
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,u.tertiaryWarningFocusStateLayerOpacity)};
1423
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,u.tertiaryWarningActiveStateLayerOpacity)};
1424
+ ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,u.tertiaryWarningActiveStateLayerOpacity)};
1229
1425
 
1230
- background-color: ${O.tertiaryBackgroundColor};
1231
- color: ${O.tertiaryColor};
1426
+ background-color: ${u.tertiaryWarningBackgroundColor};
1427
+ color: ${u.tertiaryWarningColor};
1232
1428
  border-style: none;
1233
1429
  }
1234
1430
 
1235
- .ft-button--tertiary[disabled] {
1236
- opacity: ${O.tertiaryDisabledComponentOpacity};
1431
+ .ftds--family-warning.ft-button--tertiary[disabled] {
1432
+ opacity: ${u.tertiaryWarningDisabledComponentOpacity};
1433
+ }
1434
+
1435
+ .ftds--family-warning.ft-button--tertiary ft-icon {
1436
+ color: ${u.tertiaryWarningIconColor};
1437
+ }
1438
+
1439
+ /** Error Secondary styles **/
1440
+
1441
+ .ftds--family-error.ft-button--secondary {
1442
+ ${(0,C.setVariable)(re.color,u.secondaryErrorIconColor)};
1443
+
1444
+ ${(0,C.setVariable)(w.backgroundColor,u.secondaryErrorStateLayerColor)};
1445
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,u.secondaryErrorHoverStateLayerOpacity)};
1446
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,u.secondaryErrorFocusStateLayerOpacity)};
1447
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,u.secondaryErrorActiveStateLayerOpacity)};
1448
+ ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,u.secondaryErrorActiveStateLayerOpacity)};
1449
+
1450
+ background-color: ${u.secondaryErrorBackgroundColor};
1451
+ color: ${u.secondaryErrorColor};
1452
+ border-color: ${u.secondaryErrorBorderColor};
1453
+ border-style: solid;
1454
+ }
1455
+
1456
+ .ftds--family-error.ft-button--secondary[disabled] {
1457
+ opacity: ${u.secondaryErrorDisabledComponentOpacity};
1237
1458
  }
1238
1459
 
1239
- .ft-button--tertiary ft-icon {
1240
- color: ${O.tertiaryIconColor};
1460
+ .ftds--family-error.ft-button--secondary ft-icon {
1461
+ color: ${u.secondaryErrorIconColor};
1241
1462
  }
1242
1463
 
1243
- /** Neutral styles **/
1464
+ /** Error Tertiary styles **/
1244
1465
 
1245
- .ftds--family-neutral {
1246
- ${(0,H.setVariable)(Be.color,O.neutralIconColor)};
1466
+ .ftds--family-error.ft-button--tertiary {
1467
+ ${(0,C.setVariable)(re.color,u.tertiaryErrorIconColor)};
1247
1468
 
1248
- ${(0,H.setVariable)($.backgroundColor,O.neutralStateLayerColor)};
1249
- ${(0,H.setVariable)($.opacityContentOnSurfaceHover,O.neutralHoverStateLayerOpacity)};
1250
- ${(0,H.setVariable)($.opacityContentOnSurfaceFocused,O.neutralFocusStateLayerOpacity)};
1251
- ${(0,H.setVariable)($.opacityContentOnSurfaceSelected,O.neutralActiveStateLayerOpacity)};
1252
- ${(0,H.setVariable)($.opacityContentOnSurfacePressed,O.neutralActiveStateLayerOpacity)};
1469
+ ${(0,C.setVariable)(w.backgroundColor,u.tertiaryErrorStateLayerColor)};
1470
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,u.tertiaryErrorHoverStateLayerOpacity)};
1471
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceFocused,u.tertiaryErrorFocusStateLayerOpacity)};
1472
+ ${(0,C.setVariable)(w.opacityContentOnSurfaceSelected,u.tertiaryErrorActiveStateLayerOpacity)};
1473
+ ${(0,C.setVariable)(w.opacityContentOnSurfacePressed,u.tertiaryErrorActiveStateLayerOpacity)};
1253
1474
 
1254
- background-color: ${O.neutralBackgroundColor};
1255
- color: ${O.neutralColor};
1475
+ background-color: ${u.tertiaryErrorBackgroundColor};
1476
+ color: ${u.tertiaryErrorColor};
1256
1477
  border-style: none;
1257
1478
  }
1258
1479
 
1259
- .ftds--family-neutral[disabled] {
1260
- opacity: ${O.neutralDisabledComponentOpacity};
1480
+ .ftds--family-error.ft-button--tertiary[disabled] {
1481
+ opacity: ${u.tertiaryErrorDisabledComponentOpacity};
1261
1482
  }
1262
1483
 
1263
- .ftds--family-neutral ft-icon {
1264
- color: ${O.neutralIconColor};
1484
+ .ftds--family-error.ft-button--tertiary ft-icon {
1485
+ color: ${u.tertiaryErrorIconColor};
1265
1486
  }
1266
1487
 
1267
1488
  /** Large styles **/
1268
1489
 
1269
1490
  .ftds--size-large {
1270
- ${(0,H.setVariable)(ve.size,O.largeIconSize)};
1271
- ${(0,H.setVariable)(Be.size,O.largeIconSize)};
1491
+ ${(0,C.setVariable)(xe.size,u.largeIconSize)};
1492
+ ${(0,C.setVariable)(re.size,u.largeIconSize)};
1272
1493
 
1273
- height: ${O.largeHeight};
1274
- padding: 0 ${O.largeHorizontalPadding};
1275
- gap: ${O.largeGap};
1276
- border-radius: ${O.largeBorderRadius};
1277
- border-width: ${O.largeBorderWidth};
1494
+ height: ${u.largeHeight};
1495
+ padding: 0 ${u.largeHorizontalPadding};
1496
+ gap: ${u.largeGap};
1497
+ border-radius: ${u.largeBorderRadius};
1498
+ border-width: ${u.largeBorderWidth};
1278
1499
  }
1279
1500
 
1280
1501
  .ftds--size-large:focus-visible {
1281
- outline-width: ${O.largeFocusOutlineWidth};
1282
- outline-offset: ${O.largeFocusOutlineOffset};
1502
+ outline-width: ${u.largeFocusOutlineWidth};
1503
+ outline-offset: ${u.largeFocusOutlineOffset};
1283
1504
  }
1284
1505
 
1285
1506
  .ftds--size-large.ft-button--icon-only {
1286
- width: ${O.largeIconOnlyWidth};
1507
+ width: ${u.largeIconOnlyWidth};
1287
1508
  }
1288
1509
 
1289
1510
  /** Small styles **/
1290
1511
 
1291
1512
  .ftds--size-medium {
1292
- ${(0,H.setVariable)(ve.size,O.mediumIconSize)};
1293
- ${(0,H.setVariable)(Be.size,O.mediumIconSize)};
1513
+ ${(0,C.setVariable)(xe.size,u.mediumIconSize)};
1514
+ ${(0,C.setVariable)(re.size,u.mediumIconSize)};
1294
1515
 
1295
- height: ${O.mediumHeight};
1296
- padding: 0 ${O.mediumHorizontalPadding};
1297
- gap: ${O.mediumGap};
1298
- border-radius: ${O.mediumBorderRadius};
1299
- border-width: ${O.mediumBorderWidth};
1516
+ height: ${u.mediumHeight};
1517
+ padding: 0 ${u.mediumHorizontalPadding};
1518
+ gap: ${u.mediumGap};
1519
+ border-radius: ${u.mediumBorderRadius};
1520
+ border-width: ${u.mediumBorderWidth};
1300
1521
  }
1301
1522
 
1302
1523
  .ftds--size-medium:focus-visible {
1303
- outline-width: ${O.mediumFocusOutlineWidth};
1304
- outline-offset: ${O.mediumFocusOutlineOffset};
1524
+ outline-width: ${u.mediumFocusOutlineWidth};
1525
+ outline-offset: ${u.mediumFocusOutlineOffset};
1305
1526
  }
1306
1527
 
1307
1528
  .ftds--size-medium.ft-button--icon-only {
1308
- width: ${O.mediumIconOnlyWidth};
1529
+ width: ${u.mediumIconOnlyWidth};
1309
1530
  }
1310
1531
 
1311
1532
 
1312
1533
  /** Small styles **/
1313
1534
 
1314
1535
  .ftds--size-small {
1315
- ${(0,H.setVariable)(ve.size,O.smallIconSize)};
1316
- ${(0,H.setVariable)(Be.size,O.smallIconSize)};
1536
+ ${(0,C.setVariable)(xe.size,u.smallIconSize)};
1537
+ ${(0,C.setVariable)(re.size,u.smallIconSize)};
1317
1538
 
1318
- height: ${O.smallHeight};
1319
- padding: 0 ${O.smallHorizontalPadding};
1320
- gap: ${O.smallGap};
1321
- border-radius: ${O.smallBorderRadius};
1322
- border-width: ${O.smallBorderWidth};
1539
+ height: ${u.smallHeight};
1540
+ padding: 0 ${u.smallHorizontalPadding};
1541
+ gap: ${u.smallGap};
1542
+ border-radius: ${u.smallBorderRadius};
1543
+ border-width: ${u.smallBorderWidth};
1323
1544
  }
1324
1545
 
1325
1546
  .ftds--size-small:focus-visible {
1326
- outline-width: ${O.smallFocusOutlineWidth};
1327
- outline-offset: ${O.smallFocusOutlineOffset};
1547
+ outline-width: ${u.smallFocusOutlineWidth};
1548
+ outline-offset: ${u.smallFocusOutlineOffset};
1328
1549
  }
1329
1550
 
1330
1551
  .ftds--size-small.ft-button--icon-only {
1331
- width: ${O.smallIconOnlyWidth};
1552
+ width: ${u.smallIconOnlyWidth};
1332
1553
  }
1333
- `,H.noTextSelect];var Ko=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Lt=class extends(0,Zo.toFtdsBase)(fe){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Ro.brand,this.iconVariant=Ie.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 Cr.large:return Ht.body2medium;case Cr.medium:return Ht.caption1medium;case Cr.small:return Ht.caption2medium}}};Lt.styles=[Zo.safariEllipsisFix,zl];Ko([(0,mo.property)({type:Boolean})],Lt.prototype,"primary",void 0);Ko([(0,mo.property)({type:Boolean})],Lt.prototype,"secondary",void 0);Ko([(0,mo.property)({type:Boolean})],Lt.prototype,"tertiary",void 0);Ko([(0,mo.property)({type:Boolean})],Lt.prototype,"round",void 0);(0,vn.customElement)("ft-button")(ft);(0,vn.customElement)("ftds-button")(Lt);var Hc=g(E());var gi=g(D()),yi=g(Z()),bi=g(E());var Wl=g(D());var Hl=Wl.css`
1334
- `;var mi=g(E());var Fc=g(E());var Zl=g(D()),nt=g(Z()),ut=g(E());var Vl=g(D());var jl=Vl.css`
1335
- `;var qo=g(E()),lp="ft-app-info",xn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},cp={session:(t,e)=>{(0,qo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>N.eventBus.dispatchEvent(new xn(e.payload)),0))}},N=qo.FtReduxStore.get({name:lp,reducers:cp,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Zt=g(E());var Sn=g(E());var br=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=N.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=N.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var wt=class{constructor(e=!0,r){var i;this.overrideApi=r;let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Sn.CacheRegistry,this.cache=e?n.commonCache:new Sn.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:br.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):br.await()}clearCache(){this.cache.clearAll()}};var Gl,dp=Symbol("clearAfterUnitTest"),Yo=class extends wt{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Gl]=()=>{this.defaultMessages={},this.cache=new Zt.CacheRegistry,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=N.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Zt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Zt.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(r){console.error(r)}}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){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(r=>(0,Zt.delay)(0).then(()=>r()).catch(()=>null)))}};Gl=dp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Yo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Yo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var vr=window.FluidTopicsI18nService,Kl=window.FluidTopicsCustomI18nService;var We=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ue=class extends ut.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",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=()=>br.get(),this.messageContexts=[],this.cache=new ut.CacheRegistry,this.cleanSessionDebouncer=new ut.Debouncer}render(){return Zl.html`
1554
+ `,C.noTextSelect];var Ko=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},Pt=class extends(0,Zo.toFtdsBase)(ue){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Ro.brand,this.iconVariant=_e.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 wr.large:return Ht.body2medium;case wr.medium:return Ht.caption1medium;case wr.small:return Ht.caption2medium}}};Pt.styles=[Zo.safariEllipsisFix,Wc];Ko([(0,yo.property)({type:Boolean})],Pt.prototype,"primary",void 0);Ko([(0,yo.property)({type:Boolean})],Pt.prototype,"secondary",void 0);Ko([(0,yo.property)({type:Boolean})],Pt.prototype,"tertiary",void 0);Ko([(0,yo.property)({type:Boolean})],Pt.prototype,"round",void 0);(0,vn.customElement)("ft-button")(ft);(0,vn.customElement)("ftds-button")(Pt);var Hl=g(R());var mi=g(B()),gi=g(Z()),bi=g(R());var zc=g(B());var Hc=zc.css`
1555
+ `;var yi=g(R());var Ul=g(R());var Zc=g(B()),nt=g(Z()),ut=g(R());var Vc=g(B());var jc=Vc.css`
1556
+ `;var qo=g(R()),cp="ft-app-info",xn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},lp={session:(t,e)=>{(0,qo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>T.eventBus.dispatchEvent(new xn(e.payload)),0))}},T=qo.FtReduxStore.get({name:cp,reducers:lp,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Zt=g(R());var Sn=g(R());var br=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:i}=T.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=T.subscribe(()=>{i=t.get(e),i&&(n(),o(i))})}})}};var Ct=class{constructor(e=!0,o){var i;this.overrideApi=o;let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Sn.CacheRegistry,this.cache=e?n.commonCache:new Sn.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:br.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):br.await()}clearCache(){this.cache.clearAll()}};var Gc,dp=Symbol("clearAfterUnitTest"),Yo=class extends Ct{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Gc]=()=>{this.defaultMessages={},this.cache=new Zt.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=T.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(),Object.keys(o).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...o};(0,Zt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}await 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 Zt.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(o,...i)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(o){console.error(o)}}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,Zt.delay)(0).then(()=>o()).catch(()=>null)))}};Gc=dp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Yo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Yo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var vr=window.FluidTopicsI18nService,Kc=window.FluidTopicsCustomI18nService;var ze=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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 ut.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",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=()=>br.get(),this.messageContexts=[],this.cache=new ut.CacheRegistry,this.cleanSessionDebouncer=new ut.Debouncer}render(){return Zc.html`
1336
1557
  <slot></slot>
1337
- `}update(e){super.update(e),e.has("baseUrl")&&(N.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&N.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&N.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&N.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&N.actions.noCustom(this.noCustom),e.has("editorMode")&&N.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&N.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&N.actions.session(this.session),e.has("availableUiLocales")&&N.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>vr.addContext(r)),e.has("openExternalDocumentInNewTab")&&N.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&N.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&N.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}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 updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};ue.elementDefinitions={};ue.styles=jl;We([(0,nt.property)()],ue.prototype,"baseUrl",void 0);We([(0,nt.property)()],ue.prototype,"apiIntegrationIdentifier",void 0);We([(0,nt.property)()],ue.prototype,"uiLocale",void 0);We([(0,ut.jsonProperty)(null)],ue.prototype,"availableUiLocales",void 0);We([(0,ut.jsonProperty)(null)],ue.prototype,"metadataConfiguration",void 0);We([(0,nt.property)({type:Boolean})],ue.prototype,"editorMode",void 0);We([(0,nt.property)({type:Boolean})],ue.prototype,"noCustom",void 0);We([(0,nt.property)({type:Boolean})],ue.prototype,"openExternalDocumentInNewTab",void 0);We([(0,nt.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ue.prototype,"noCustomComponent",void 0);We([(0,nt.property)({type:Boolean})],ue.prototype,"withManualResources",void 0);We([(0,nt.property)({type:Boolean})],ue.prototype,"navigatorOnline",void 0);We([(0,nt.property)({type:Boolean})],ue.prototype,"forcedOffline",void 0);We([(0,nt.property)({type:Object})],ue.prototype,"apiProvider",void 0);We([(0,ut.jsonProperty)([])],ue.prototype,"messageContexts",void 0);We([(0,ut.jsonProperty)(void 0)],ue.prototype,"session",void 0);var Yp=g(Z());function pp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,i,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Xo(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(!Xo(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();if(n=Object.keys(t),r=n.length,r!==Object.keys(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){var a=n[i];if(!Xo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Xo(t,e){try{return pp(t,e)}catch{return!1}}function On(t,e){return!Xo(t,e)}var fp=g(Z(),1);var Jo=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(i=>i.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}};var go=g(Z(),1);var ql=g(Z(),1);function Yl(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,ql.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:On,...e??{}})}var Qo=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);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 Jl=g(D(),1);var ei=window,up=ei.ShadowRoot&&(ei.ShadyCSS===void 0||ei.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$v=Symbol();var Xl=(t,e)=>{up?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let i=document.createElement("style"),n=ei.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)})};var ti=class extends Jl.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Xl(i,e.elementStyles),i}};var ri=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},rc,Ql=Symbol("constructorPrototype"),ec=Symbol("constructorName"),oc=Symbol("exportpartsDebouncer"),tc=Symbol("dynamicDependenciesLoaded"),qt=class extends ti{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[rc]=new Qo(5),this[ec]=this.constructor.name,this[Ql]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ec]&&Object.setPrototypeOf(this,this[Ql])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[tc]||(e[tc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[oc].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 r,i,n,a,s,l;let d=y=>y!=null&&y.trim().length>0,f=e.filter(d).map(y=>y.trim());if(f.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let y of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],x=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(d).map(S=>S.trim()).forEach(S=>h.add(S))}if(h.size===0){this.removeAttribute("exportparts");return}let m=[...h.values()].flatMap(y=>f.map(v=>`${y}:${v}--${y}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};rc=oc;ri([(0,go.property)()],qt.prototype,"exportpartsPrefix",void 0);ri([Yl([])],qt.prototype,"exportpartsPrefixes",void 0);ri([(0,go.property)()],qt.prototype,"customStylesheet",void 0);ri([(0,go.state)()],qt.prototype,"useAdoptedStyleSheets",void 0);function yo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ic,nc,ac,oi=Symbol("internalReduxEventsUnsubscribers"),Yt=Symbol("internalStoresUnsubscribers"),xr=Symbol("internalStores"),bo=class extends qt{constructor(){super(...arguments),this[ic]=new Map,this[nc]=new Map,this[ac]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[xr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[xr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[xr].get(e)}addStore(e,r){var i;r=(i=r??(yo(e)?e.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[xr].delete(r)}setupStore(e,r){this[xr].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[xr].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let i=this.constructor.getPropertyOptions(r);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:r)){let n=this.getStore(e.store);n&&(e.store?this[Yt].has(e.store):this[Yt].size>0)&&(this[r]=e.selector(n.getState(),this))}})}subscribeToStore(e,r){var i;this[Yt].set(e,r.subscribe(()=>this.updateFromStores())),yo(r)&&r.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||r.name===n.store)){let s=l=>this[a](l);r.eventBus.addEventListener(n.eventName,s),this[oi].push(()=>r.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Yt].forEach((e,r)=>this.unsubscribeFromStore(r)),this[oi].forEach(e=>e()),this[oi]=[]}unsubscribeFromStore(e){this[Yt].has(e)&&this[Yt].get(e)(),this[Yt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};ic=Yt,nc=xr,ac=oi;bo.reduxProperties=new Map;bo.reduxReactiveProperties=new Set;bo.reduxEventListeners=new Map;function at(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Dt(t){return!!t&&!!t[oe]}function ht(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Sp}(t)||Array.isArray(t)||!!t[uc]||!!(!((e=t.constructor)===null||e===void 0)&&e[uc])||_n(t)||kn(t))}function Sr(t,e,r){r===void 0&&(r=!1),jr(t)===0?(r?Object.keys:Vr)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function jr(t){var e=t[oe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:_n(t)?2:kn(t)?3:0}function Hr(t,e){return jr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function hp(t,e){return jr(t)===2?t.get(e):t[e]}function hc(t,e,r){var i=jr(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function mc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function _n(t){return vp&&t instanceof Map}function kn(t){return xp&&t instanceof Set}function Xt(t){return t.o||t.t}function Pn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=bc(t);delete e[oe];for(var r=Vr(e),i=0;i<r.length;i++){var n=r[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function Ln(t,e){return e===void 0&&(e=!1),Dn(t)||Dt(t)||!ht(t)||(jr(t)>1&&(t.set=t.add=t.clear=t.delete=mp),Object.freeze(t),e&&Sr(t,function(r,i){return Ln(i,!0)},!0)),t}function mp(){at(2)}function Dn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ct(t){var e=In[t];return e||at(18,t),e}function gp(t,e){In[t]||(In[t]=e)}function Rn(){return xo}function wn(t,e){e&&(Ct("Patches"),t.u=[],t.s=[],t.v=e)}function ii(t){Nn(t),t.p.forEach(yp),t.p=null}function Nn(t){t===xo&&(xo=t.l)}function sc(t){return xo={p:[],l:xo,h:t,m:!0,_:0}}function yp(t){var e=t[oe];e.i===0||e.i===1?e.j():e.g=!0}function Cn(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||Ct("ES5").S(e,t,i),i?(r[oe].P&&(ii(e),at(4)),ht(t)&&(t=ni(e,t),e.l||ai(e,t)),e.u&&Ct("Patches").M(r[oe].t,t,e.u,e.s)):t=ni(e,r,[]),ii(e),e.u&&e.v(e.u,e.s),t!==yc?t:void 0}function ni(t,e,r){if(Dn(e))return e;var i=e[oe];if(!i)return Sr(e,function(l,d){return lc(t,i,e,l,d,r)},!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=Pn(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Sr(a,function(l,d){return lc(t,i,n,l,d,r,s)}),ai(t,n,!1),r&&t.u&&Ct("Patches").N(i,r,t.u,t.s)}return i.o}function lc(t,e,r,i,n,a,s){if(Dt(n)){var l=ni(t,n,a&&e&&e.i!==3&&!Hr(e.R,i)?a.concat(i):void 0);if(hc(r,i,l),!Dt(l))return;t.m=!1}else s&&r.add(n);if(ht(n)&&!Dn(n)){if(!t.h.D&&t._<1)return;ni(t,n),e&&e.A.l||ai(t,n)}}function ai(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ln(e,r)}function En(t,e){var r=t[oe];return(r?Xt(r):t)[e]}function cc(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function Jt(t){t.P||(t.P=!0,t.l&&Jt(t.l))}function An(t){t.o||(t.o=Pn(t.t))}function Tn(t,e,r){var i=_n(e)?Ct("MapSet").F(e,r):kn(e)?Ct("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Rn(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,f=So;s&&(d=[l],f=vo);var h=Proxy.revocable(d,f),m=h.revoke,y=h.proxy;return l.k=y,l.j=m,y}(e,r):Ct("ES5").J(e,r);return(r?r.A:Rn()).p.push(i),i}function bp(t){return Dt(t)||at(22,t),function e(r){if(!ht(r))return r;var i,n=r[oe],a=jr(r);if(n){if(!n.P&&(n.i<4||!Ct("ES5").K(n)))return n.t;n.I=!0,i=dc(r,a),n.I=!1}else i=dc(r,a);return Sr(i,function(s,l){n&&hp(n.t,s)===l||hc(i,s,e(l))}),a===3?new Set(i):i}(t)}function dc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Pn(t)}function gc(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var f=this[oe];return So.get(f,s)},set:function(f){var h=this[oe];So.set(h,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][oe];if(!d.P)switch(d.i){case 5:i(d)&&Jt(d);break;case 4:r(d)&&Jt(d)}}}function r(s){for(var l=s.t,d=s.k,f=Vr(d),h=f.length-1;h>=0;h--){var m=f[h];if(m!==oe){var y=l[m];if(y===void 0&&!Hr(l,m))return!0;var v=d[m],x=v&&v[oe];if(x?x.t!==y:!mc(v,y))return!0}}var S=!!l[oe];return f.length!==Vr(l).length+(S?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function n(s){s.g&&at(3,JSON.stringify(Xt(s)))}var a={};gp("ES5",{J:function(s,l){var d=Array.isArray(s),f=function(m,y){if(m){for(var v=Array(y.length),x=0;x<y.length;x++)Object.defineProperty(v,""+x,t(x,!0));return v}var S=bc(y);delete S[oe];for(var T=Vr(S),A=0;A<T.length;A++){var R=T[A];S[R]=t(R,m||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(y),S)}(d,s),h={i:d?5:4,A:l?l.A:Rn(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,oe,{value:h,writable:!0}),f},S:function(s,l,d){d?Dt(l)&&l[oe].A===s&&e(s.p):(s.u&&function f(h){if(h&&typeof h=="object"){var m=h[oe];if(m){var y=m.t,v=m.k,x=m.R,S=m.i;if(S===4)Sr(v,function(B){B!==oe&&(y[B]!==void 0||Hr(y,B)?x[B]||f(v[B]):(x[B]=!0,Jt(m)))}),Sr(y,function(B){v[B]!==void 0||Hr(v,B)||(x[B]=!1,Jt(m))});else if(S===5){if(i(m)&&(Jt(m),x.length=!0),v.length<y.length)for(var T=v.length;T<y.length;T++)x[T]=!1;else for(var A=y.length;A<v.length;A++)x[A]=!0;for(var R=Math.min(v.length,y.length),L=0;L<R;L++)v.hasOwnProperty(L)||(x[L]=!0),x[L]===void 0&&f(v[L])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var pc,xo,$n=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",vp=typeof Map<"u",xp=typeof Set<"u",fc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",yc=$n?Symbol.for("immer-nothing"):((pc={})["immer-nothing"]=!0,pc),uc=$n?Symbol.for("immer-draftable"):"__$immer_draftable",oe=$n?Symbol.for("immer-state"):"__$immer_state";var Sp=""+Object.prototype.constructor,Vr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,bc=Object.getOwnPropertyDescriptors||function(t){var e={};return Vr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},In={},So={get:function(t,e){if(e===oe)return t;var r=Xt(t);if(!Hr(r,e))return function(n,a,s){var l,d=cc(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(t,r,e);var i=r[e];return t.I||!ht(i)?i:i===En(t.t,e)?(An(t),t.o[e]=Tn(t.A.h,i,t)):i},has:function(t,e){return e in Xt(t)},ownKeys:function(t){return Reflect.ownKeys(Xt(t))},set:function(t,e,r){var i=cc(Xt(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=En(Xt(t),e),a=n?.[oe];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(mc(r,n)&&(r!==void 0||Hr(t.t,e)))return!0;An(t),Jt(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return En(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,An(t),Jt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Xt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){at(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){at(12)}},vo={};Sr(So,function(t,e){vo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),vo.deleteProperty=function(t,e){return vo.set.call(this,t,e,void 0)},vo.set=function(t,e,r){return So.set.call(this,t[0],e,r,t[0])};var Op=function(){function t(r){var i=this;this.O=fc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=i;return function(S){var T=this;S===void 0&&(S=l);for(var A=arguments.length,R=Array(A>1?A-1:0),L=1;L<A;L++)R[L-1]=arguments[L];return d.produce(S,function(B){var F;return(F=a).call.apply(F,[T,B].concat(R))})}}var f;if(typeof a!="function"&&at(6),s!==void 0&&typeof s!="function"&&at(7),ht(n)){var h=sc(i),m=Tn(i,n,void 0),y=!0;try{f=a(m),y=!1}finally{y?ii(h):Nn(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(S){return wn(h,s),Cn(S,h)},function(S){throw ii(h),S}):(wn(h,s),Cn(f,h))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===yc&&(f=void 0),i.D&&Ln(f,!0),s){var v=[],x=[];Ct("Patches").M(n,f,v,x),s(v,x)}return f}at(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(f){for(var h=arguments.length,m=Array(h>1?h-1:0),y=1;y<h;y++)m[y-1]=arguments[y];return i.produceWithPatches(f,function(v){return n.apply(void 0,[v].concat(m))})};var s,l,d=i.produce(n,a,function(f,h){s=f,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){ht(r)||at(8),Dt(r)&&(r=bp(r));var i=sc(this),n=Tn(this,r,void 0);return n[oe].C=!0,Nn(i),n},e.finishDraft=function(r,i){var n=r&&r[oe],a=n.A;return wn(a,i),Cn(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!fc&&at(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Ct("Patches").$;return Dt(r)?s(r,i):this.produce(r,function(l){return s(l,i)})},t}(),et=new Op,wp=et.produce,Zv=et.produceWithPatches.bind(et),qv=et.setAutoFreeze.bind(et),Yv=et.setUseProxies.bind(et),Xv=et.applyPatches.bind(et),Jv=et.createDraft.bind(et),Qv=et.finishDraft.bind(et),si=wp;function Qt(t){"@babel/helpers - typeof";return Qt=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},Qt(t)}function Mn(t,e){if(Qt(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Qt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Bn(t){var e=Mn(t,"string");return Qt(e)==="symbol"?e:String(e)}function Un(t,e,r){return e=Bn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function li(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vc(Object(r),!0).forEach(function(i){Un(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vc(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Pe(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 xc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Fn=function(){return Math.random().toString(36).substring(7).split("").join(".")},ci={INIT:"@@redux/INIT"+Fn(),REPLACE:"@@redux/REPLACE"+Fn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Fn()}};function Cp(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 zn(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Pe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Pe(1));return r(zn)(t,e)}if(typeof t!="function")throw new Error(Pe(2));var n=t,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Pe(3));return a}function m(S){if(typeof S!="function")throw new Error(Pe(4));if(d)throw new Error(Pe(5));var T=!0;return f(),l.push(S),function(){if(T){if(d)throw new Error(Pe(6));T=!1,f();var R=l.indexOf(S);l.splice(R,1),s=null}}}function y(S){if(!Cp(S))throw new Error(Pe(7));if(typeof S.type>"u")throw new Error(Pe(8));if(d)throw new Error(Pe(9));try{d=!0,a=n(a,S)}finally{d=!1}for(var T=s=l,A=0;A<T.length;A++){var R=T[A];R()}return S}function v(S){if(typeof S!="function")throw new Error(Pe(10));n=S,y({type:ci.REPLACE})}function x(){var S,T=m;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(Pe(11));function L(){R.next&&R.next(h())}L();var B=T(L);return{unsubscribe:B}}},S[xc]=function(){return this},S}return y({type:ci.INIT}),i={dispatch:y,subscribe:m,getState:h,replaceReducer:v},i[xc]=x,i}function Ep(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:ci.INIT});if(typeof i>"u")throw new Error(Pe(12));if(typeof r(void 0,{type:ci.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Pe(13))})}function Sc(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,l;try{Ep(r)}catch(d){l=d}return function(f,h){if(f===void 0&&(f={}),l)throw l;if(0)var m;for(var y=!1,v={},x=0;x<a.length;x++){var S=a[x],T=r[S],A=f[S],R=T(A,h);if(typeof R>"u"){var L=h&&h.type;throw new Error(Pe(14))}v[S]=R,y=y||R!==A}return y=y||a.length!==Object.keys(f).length,y?v:f}}function Gr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Oc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Pe(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Gr.apply(void 0,l)(n.dispatch),li(li({},n),{},{dispatch:a})}}}function wc(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var Cc=wc();Cc.withExtraArgument=wc;var Wn=Cc;var Tc=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),Ap=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(h){return d([f,h])}}function d(f){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=f[0]&2?n.return:f[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,f[1])).done)return a;switch(n=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,n=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){r.label=f[1];break}if(f[0]===6&&r.label<a[1]){r.label=a[1],a=f;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(f);break}a[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(h){f=[6,h],n=0}finally{i=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Kr=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},Rp=Object.defineProperty,Np=Object.defineProperties,Tp=Object.getOwnPropertyDescriptors,Ec=Object.getOwnPropertySymbols,Ip=Object.prototype.hasOwnProperty,_p=Object.prototype.propertyIsEnumerable,Ac=function(t,e,r){return e in t?Rp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},er=function(t,e){for(var r in e||(e={}))Ip.call(e,r)&&Ac(t,r,e[r]);if(Ec)for(var i=0,n=Ec(e);i<n.length;i++){var r=n[i];_p.call(e,r)&&Ac(t,r,e[r])}return t},Hn=function(t,e){return Np(t,Tp(e))},kp=function(t,e,r){return new Promise(function(i,n){var a=function(d){try{l(r.next(d))}catch(f){n(f)}},s=function(d){try{l(r.throw(d))}catch(f){n(f)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var Pp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Gr:Gr.apply(null,arguments)},yx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Lp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Dp=function(t){Tc(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Kr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Kr([void 0],r.concat(this))))},e}(Array),$p=function(t){Tc(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Kr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Kr([void 0],r.concat(this))))},e}(Array);function Gn(t){return ht(t)?si(t,function(){}):t}function Mp(t){return typeof t=="boolean"}function Bp(){return function(e){return Up(e)}}function Up(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,l=new Dp;if(r&&(Mp(r)?l.push(Wn):l.push(Wn.withExtraArgument(r.extraArgument))),0){if(n)var d;if(s)var f}return l}var Vn=!0;function Ic(t){var e=Bp(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,f=r.preloadedState,h=f===void 0?void 0:f,m=r.enhancers,y=m===void 0?void 0:m,v;if(typeof n=="function")v=n;else if(Lp(n))v=Sc(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 x=s;if(typeof x=="function"&&(x=x(e),!Vn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Vn&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Oc.apply(void 0,x),T=Gr;d&&(T=Pp(er({trace:!Vn},typeof d=="object"&&d)));var A=new $p(S),R=A;Array.isArray(y)?R=Kr([S],y):typeof y=="function"&&(R=y(A));var L=T.apply(void 0,R);return zn(v,h,L)}function tr(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return er(er({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function _c(t){var e={},r=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function Fp(t){return typeof t=="function"}function zp(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?_c(e):[e,r,i],a=n[0],s=n[1],l=n[2],d;if(Fp(t))d=function(){return Gn(t())};else{var f=Gn(t);d=function(){return f}}function h(m,y){m===void 0&&(m=d());var v=Kr([a[y.type]],s.filter(function(x){var S=x.matcher;return S(y)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,S){if(S)if(Dt(x)){var T=x,A=S(T,y);return A===void 0?x:A}else{if(ht(x))return si(x,function(R){return S(R,y)});var A=S(x,y);if(A===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return x},m)}return h.getInitialState=d,h}function Wp(t,e){return t+"/"+e}function kc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Gn(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(h){var m=i[h],y=Wp(e,h),v,x;"reducer"in m?(v=m.reducer,x=m.prepare):v=m,a[h]=v,s[y]=v,l[h]=x?tr(y,x):tr(y)});function d(){var h=typeof t.extraReducers=="function"?_c(t.extraReducers):[t.extraReducers],m=h[0],y=m===void 0?{}:m,v=h[1],x=v===void 0?[]:v,S=h[2],T=S===void 0?void 0:S,A=er(er({},y),s);return zp(r,function(R){for(var L in A)R.addCase(L,A[L]);for(var B=0,F=x;B<F.length;B++){var He=F[B];R.addMatcher(He.matcher,He.reducer)}T&&R.addDefaultCase(T)})}var f;return{name:e,reducer:function(h,m){return f||(f=d()),f(h,m)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}var Hp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Vp=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Hp[Math.random()*64|0];return e},jp=["name","message","stack","code"],jn=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Rc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Gp=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=jp;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},Sx=function(){function t(e,r,i){var n=tr(e+"/fulfilled",function(h,m,y,v){return{payload:h,meta:Hn(er({},v||{}),{arg:y,requestId:m,requestStatus:"fulfilled"})}}),a=tr(e+"/pending",function(h,m,y){return{payload:void 0,meta:Hn(er({},y||{}),{arg:m,requestId:h,requestStatus:"pending"})}}),s=tr(e+"/rejected",function(h,m,y,v,x){return{payload:v,error:(i&&i.serializeError||Gp)(h||"Rejected"),meta:Hn(er({},x||{}),{arg:y,requestId:m,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=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 f(h){return function(m,y,v){var x=i?.idGenerator?i.idGenerator(h):Vp(),S=new d,T,A=!1;function R(B){T=B,S.abort()}var L=function(){return kp(this,null,function(){var B,F,He,yt,$e,bt,Ce;return Ap(this,function(u){switch(u.label){case 0:return u.trys.push([0,4,,5]),yt=(B=i?.condition)==null?void 0:B.call(i,h,{getState:y,extra:v}),Zp(yt)?[4,yt]:[3,2];case 1:yt=u.sent(),u.label=2;case 2:if(yt===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,$e=new Promise(function(b,_){return S.signal.addEventListener("abort",function(){return _({name:"AbortError",message:T||"Aborted"})})}),m(a(x,h,(F=i?.getPendingMeta)==null?void 0:F.call(i,{requestId:x,arg:h},{getState:y,extra:v}))),[4,Promise.race([$e,Promise.resolve(r(h,{dispatch:m,getState:y,extra:v,requestId:x,signal:S.signal,abort:R,rejectWithValue:function(b,_){return new jn(b,_)},fulfillWithValue:function(b,_){return new Rc(b,_)}})).then(function(b){if(b instanceof jn)throw b;return b instanceof Rc?n(b.payload,x,h,b.meta):n(b,x,h)})])];case 3:return He=u.sent(),[3,5];case 4:return bt=u.sent(),He=bt instanceof jn?s(null,x,h,bt.payload,bt.meta):s(bt,x,h),[3,5];case 5:return Ce=i&&!i.dispatchConditionRejection&&s.match(He)&&He.meta.condition,Ce||m(He),[2,He]}})})}();return Object.assign(L,{abort:R,requestId:x,arg:h,unwrap:function(){return L.then(Kp)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Kp(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 Pc="listener",Lc="completed",Dc="cancelled",Ox="task-"+Dc,wx="task-"+Lc,Cx=Pc+"-"+Dc,Ex=Pc+"-"+Lc;var Kn="listenerMiddleware";var Ax=tr(Kn+"/add"),Rx=tr(Kn+"/removeAll"),Nx=tr(Kn+"/remove");var Nc,Tx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Nc||(Nc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},qp=function(t){return function(e){setTimeout(e,t)}},Ix=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:qp(10);gc();window.ftReduxStores||(window.ftReduxStores={});var $c=class t{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(yo(a))return a;if(n==null)return;let s=kc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=Ic({reducer:(d,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...f.overwrites}:s.reducer(d,f)});return window.ftReduxStores[n.name]=new t(s,l)}constructor(e,r){this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Jo,this.actions=new Proxy(this.reduxSlice.actions,{get:(i,n,a)=>{let s=n,l=i[s];return l?(...d)=>{let f=l(...d);return this.reduxStore.dispatch(f),f}:d=>{this.setState({[s]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var ui=g(E());var di=class extends wt{async listMySearches(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var pi=class extends wt{async listMyBookmarks(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Xp="ft-user-assets",fi=ui.FtReduxStore.get({name:Xp,initialState:{savedSearches:void 0,bookmarks:void 0}}),Zn=class{constructor(){this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new pi,this.savedSearchesService=new di,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=N.getState();(0,ui.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),fi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),fi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();fi.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;fi.actions.bookmarks(r)}}},Mc=new Zn;var qn=class{addCommand(e,r=!1){N.commands.add(e,r)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new qn;var Bc=g(E()),Yn=class{highlightHtml(e,r,i){(0,Bc.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Yn;var Uc=g(E());var Xn=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=N.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a;return Uc.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:N.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Xn;(0,Fc.customElement)("ft-app-context")(ue);var Wc=g(Z()),Jp=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Jn=Symbol("i18nAttributes"),Or=Symbol("i18nProperties"),Oo=Symbol("i18nUnsubs");function rr(t){var e;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Kl:vr}i18n(n,a,...s){var l;if(typeof n=="string")return this.i18nService.resolveMessage(n,a,...s);let d=(l=n.args)!==null&&l!==void 0?l:n.argsProvider?n.argsProvider(this):[];return this.i18nService.resolveMessage(n.context,n.key,...d)}onI18nUpdate(n){var a,s;(a=this[Jn])===null||a===void 0||a.forEach((l,d)=>{var f;let h=this.getI18nAttributeValue(d);((f=h?.context)===null||f===void 0?void 0:f.toLowerCase())===n.toLowerCase()&&this.updateI18nAttributeMessage(d,h,l)}),(s=this[Or])===null||s===void 0||s.forEach((l,d)=>{l.context.toLowerCase()===n.toLowerCase()&&(this[d]=this.i18n(l))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(n,a,s){this[n]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(n){var a,s;super.update(n),(a=this[Jn])===null||a===void 0||a.forEach((l,d)=>{let f=this.getI18nAttributeValue(d);f?.context&&f.key&&(n.has(d)||l.argsProvider!=null)&&(n.has(d)&&this.addI18nContext(f.context),this.updateI18nAttributeMessage(d,f,l))}),(s=this[Or])===null||s===void 0||s.forEach((l,d)=>{l.argsProvider!=null&&(this[d]=this.i18n(l))})}getI18nAttributeValue(n){return this[n]}connectedCallback(){var n,a,s,l;super.connectedCallback(),new Set([...(a=(n=this[Or])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[Jn])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(d=>this.getI18nAttributeValue(d))].map(d=>d?.context)).forEach(d=>d&&this.addI18nMessages(d))}addI18nMessages(n,a){n=n.toLowerCase(),this[Oo].has(n)||this[Oo].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,a??{}),this.onI18nUpdate(n)}addI18nContext(n,a){this.addI18nMessages(typeof n=="string"?n:n.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[Oo].forEach(n=>n()),this[Oo].clear()}}return e=Oo,Jp([(0,Wc.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var zc=class extends rr(mi.FtLitElement){},hi=class extends rr(mi.FtLitElementRedux){};var wo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},mt=class extends hi{constructor(){super(),this.editorMode=!1,this.addStore(N)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":gi.nothing:gi.html`
1558
+ `}update(e){super.update(e),e.has("baseUrl")&&(T.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&T.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&T.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&T.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&T.actions.noCustom(this.noCustom),e.has("editorMode")&&T.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&T.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&T.actions.session(this.session),e.has("availableUiLocales")&&T.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>vr.addContext(o)),e.has("openExternalDocumentInNewTab")&&T.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&T.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&T.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}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 updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};he.elementDefinitions={};he.styles=jc;ze([(0,nt.property)()],he.prototype,"baseUrl",void 0);ze([(0,nt.property)()],he.prototype,"apiIntegrationIdentifier",void 0);ze([(0,nt.property)()],he.prototype,"uiLocale",void 0);ze([(0,ut.jsonProperty)(null)],he.prototype,"availableUiLocales",void 0);ze([(0,ut.jsonProperty)(null)],he.prototype,"metadataConfiguration",void 0);ze([(0,nt.property)({type:Boolean})],he.prototype,"editorMode",void 0);ze([(0,nt.property)({type:Boolean})],he.prototype,"noCustom",void 0);ze([(0,nt.property)({type:Boolean})],he.prototype,"openExternalDocumentInNewTab",void 0);ze([(0,nt.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],he.prototype,"noCustomComponent",void 0);ze([(0,nt.property)({type:Boolean})],he.prototype,"withManualResources",void 0);ze([(0,nt.property)({type:Boolean})],he.prototype,"navigatorOnline",void 0);ze([(0,nt.property)({type:Boolean})],he.prototype,"forcedOffline",void 0);ze([(0,nt.property)({type:Object})],he.prototype,"apiProvider",void 0);ze([(0,ut.jsonProperty)([])],he.prototype,"messageContexts",void 0);ze([(0,ut.jsonProperty)(void 0)],he.prototype,"session",void 0);var Yp=g(Z());function pp(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(!Xo(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(!Xo(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();if(n=Object.keys(t),o=n.length,o!==Object.keys(e).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=o;i--!==0;){var a=n[i];if(!Xo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Xo(t,e){try{return pp(t,e)}catch{return!1}}function On(t,e){return!Xo(t,e)}var fp=g(Z(),1);var Jo=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(i=>i.type!==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}};var mo=g(Z(),1);var qc=g(Z(),1);function Yc(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,qc.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:On,...e??{}})}var Qo=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(l){n(l);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 Jc=g(B(),1);var ei=window,up=ei.ShadowRoot&&(ei.ShadyCSS===void 0||ei.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Wv=Symbol();var Xc=(t,e)=>{up?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let i=document.createElement("style"),n=ei.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,t.appendChild(i)})};var ti=class extends Jc.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 Xc(i,e.elementStyles),i}};var ri=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},rl,Qc=Symbol("constructorPrototype"),el=Symbol("constructorName"),ol=Symbol("exportpartsDebouncer"),tl=Symbol("dynamicDependenciesLoaded"),qt=class extends ti{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[rl]=new Qo(5),this[el]=this.constructor.name,this[Qc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[el]&&Object.setPrototypeOf(this,this[Qc])}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[tl]||(e[tl]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}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[ol].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,l;let p=b=>b!=null&&b.trim().length>0,f=e.filter(p).map(b=>b.trim());if(f.length===0){this.removeAttribute("exportparts");return}let y=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=(l=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...x,...S).filter(p).map(O=>O.trim()).forEach(O=>y.add(O))}if(y.size===0){this.removeAttribute("exportparts");return}let m=[...y.values()].flatMap(b=>f.map(x=>`${b}:${x}--${b}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};rl=ol;ri([(0,mo.property)()],qt.prototype,"exportpartsPrefix",void 0);ri([Yc([])],qt.prototype,"exportpartsPrefixes",void 0);ri([(0,mo.property)()],qt.prototype,"customStylesheet",void 0);ri([(0,mo.state)()],qt.prototype,"useAdoptedStyleSheets",void 0);function go(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var il,nl,al,oi=Symbol("internalReduxEventsUnsubscribers"),Yt=Symbol("internalStoresUnsubscribers"),xr=Symbol("internalStores"),bo=class extends qt{constructor(){super(...arguments),this[il]=new Map,this[nl]=new Map,this[al]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[xr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[xr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[xr].get(e)}addStore(e,o){var i;o=(i=o??(go(e)?e.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[xr].delete(o)}setupStore(e,o){this[xr].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[xr].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let i=this.constructor.getPropertyOptions(o);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:o)){let n=this.getStore(e.store);n&&(e.store?this[Yt].has(e.store):this[Yt].size>0)&&(this[o]=e.selector(n.getState(),this))}})}subscribeToStore(e,o){var i;this[Yt].set(e,o.subscribe(()=>this.updateFromStores())),go(o)&&o.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||o.name===n.store)){let s=l=>this[a](l);o.eventBus.addEventListener(n.eventName,s),this[oi].push(()=>o.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Yt].forEach((e,o)=>this.unsubscribeFromStore(o)),this[oi].forEach(e=>e()),this[oi]=[]}unsubscribeFromStore(e){this[Yt].has(e)&&this[Yt].get(e)(),this[Yt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};il=Yt,nl=xr,al=oi;bo.reduxProperties=new Map;bo.reduxReactiveProperties=new Set;bo.reduxEventListeners=new Map;function at(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 $t(t){return!!t&&!!t[ie]}function ht(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)===Sp}(t)||Array.isArray(t)||!!t[ul]||!!(!((e=t.constructor)===null||e===void 0)&&e[ul])||_n(t)||kn(t))}function Sr(t,e,o){o===void 0&&(o=!1),jr(t)===0?(o?Object.keys:Vr)(t).forEach(function(i){o&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function jr(t){var e=t[ie];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:_n(t)?2:kn(t)?3:0}function Hr(t,e){return jr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function hp(t,e){return jr(t)===2?t.get(e):t[e]}function hl(t,e,o){var i=jr(t);i===2?t.set(e,o):i===3?t.add(o):t[e]=o}function yl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function _n(t){return vp&&t instanceof Map}function kn(t){return xp&&t instanceof Set}function Xt(t){return t.o||t.t}function Ln(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=bl(t);delete e[ie];for(var o=Vr(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 Pn(t,e){return e===void 0&&(e=!1),$n(t)||$t(t)||!ht(t)||(jr(t)>1&&(t.set=t.add=t.clear=t.delete=yp),Object.freeze(t),e&&Sr(t,function(o,i){return Pn(i,!0)},!0)),t}function yp(){at(2)}function $n(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function wt(t){var e=Tn[t];return e||at(18,t),e}function mp(t,e){Tn[t]||(Tn[t]=e)}function Rn(){return xo}function Cn(t,e){e&&(wt("Patches"),t.u=[],t.s=[],t.v=e)}function ii(t){In(t),t.p.forEach(gp),t.p=null}function In(t){t===xo&&(xo=t.l)}function sl(t){return xo={p:[],l:xo,h:t,m:!0,_:0}}function gp(t){var e=t[ie];e.i===0||e.i===1?e.j():e.g=!0}function wn(t,e){e._=e.p.length;var o=e.p[0],i=t!==void 0&&t!==o;return e.h.O||wt("ES5").S(e,t,i),i?(o[ie].P&&(ii(e),at(4)),ht(t)&&(t=ni(e,t),e.l||ai(e,t)),e.u&&wt("Patches").M(o[ie].t,t,e.u,e.s)):t=ni(e,o,[]),ii(e),e.u&&e.v(e.u,e.s),t!==gl?t:void 0}function ni(t,e,o){if($n(e))return e;var i=e[ie];if(!i)return Sr(e,function(l,p){return cl(t,i,e,l,p,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=Ln(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Sr(a,function(l,p){return cl(t,i,n,l,p,o,s)}),ai(t,n,!1),o&&t.u&&wt("Patches").N(i,o,t.u,t.s)}return i.o}function cl(t,e,o,i,n,a,s){if($t(n)){var l=ni(t,n,a&&e&&e.i!==3&&!Hr(e.R,i)?a.concat(i):void 0);if(hl(o,i,l),!$t(l))return;t.m=!1}else s&&o.add(n);if(ht(n)&&!$n(n)){if(!t.h.D&&t._<1)return;ni(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&&Pn(e,o)}function En(t,e){var o=t[ie];return(o?Xt(o):t)[e]}function ll(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 Jt(t){t.P||(t.P=!0,t.l&&Jt(t.l))}function An(t){t.o||(t.o=Ln(t.t))}function Nn(t,e,o){var i=_n(e)?wt("MapSet").F(e,o):kn(e)?wt("MapSet").T(e,o):t.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Rn(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},p=l,f=So;s&&(p=[l],f=vo);var y=Proxy.revocable(p,f),m=y.revoke,b=y.proxy;return l.k=b,l.j=m,b}(e,o):wt("ES5").J(e,o);return(o?o.A:Rn()).p.push(i),i}function bp(t){return $t(t)||at(22,t),function e(o){if(!ht(o))return o;var i,n=o[ie],a=jr(o);if(n){if(!n.P&&(n.i<4||!wt("ES5").K(n)))return n.t;n.I=!0,i=dl(o,a),n.I=!1}else i=dl(o,a);return Sr(i,function(s,l){n&&hp(n.t,s)===l||hl(i,s,e(l))}),a===3?new Set(i):i}(t)}function dl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ln(t)}function ml(){function t(s,l){var p=a[s];return p?p.enumerable=l:a[s]=p={configurable:!0,enumerable:l,get:function(){var f=this[ie];return So.get(f,s)},set:function(f){var y=this[ie];So.set(y,s,f)}},p}function e(s){for(var l=s.length-1;l>=0;l--){var p=s[l][ie];if(!p.P)switch(p.i){case 5:i(p)&&Jt(p);break;case 4:o(p)&&Jt(p)}}}function o(s){for(var l=s.t,p=s.k,f=Vr(p),y=f.length-1;y>=0;y--){var m=f[y];if(m!==ie){var b=l[m];if(b===void 0&&!Hr(l,m))return!0;var x=p[m],S=x&&x[ie];if(S?S.t!==b:!yl(x,b))return!0}}var O=!!l[ie];return f.length!==Vr(l).length+(O?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(l,l.length-1);if(p&&!p.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function n(s){s.g&&at(3,JSON.stringify(Xt(s)))}var a={};mp("ES5",{J:function(s,l){var p=Array.isArray(s),f=function(m,b){if(m){for(var x=Array(b.length),S=0;S<b.length;S++)Object.defineProperty(x,""+S,t(S,!0));return x}var O=bl(b);delete O[ie];for(var _=Vr(O),I=0;I<_.length;I++){var N=_[I];O[N]=t(N,m||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(p,s),y={i:p?5:4,A:l?l.A:Rn(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,ie,{value:y,writable:!0}),f},S:function(s,l,p){p?$t(l)&&l[ie].A===s&&e(s.p):(s.u&&function f(y){if(y&&typeof y=="object"){var m=y[ie];if(m){var b=m.t,x=m.k,S=m.R,O=m.i;if(O===4)Sr(x,function(F){F!==ie&&(b[F]!==void 0||Hr(b,F)?S[F]||f(x[F]):(S[F]=!0,Jt(m)))}),Sr(b,function(F){x[F]!==void 0||Hr(x,F)||(S[F]=!1,Jt(m))});else if(O===5){if(i(m)&&(Jt(m),S.length=!0),x.length<b.length)for(var _=x.length;_<b.length;_++)S[_]=!1;else for(var I=b.length;I<x.length;I++)S[I]=!0;for(var N=Math.min(x.length,b.length),D=0;D<N;D++)x.hasOwnProperty(D)||(S[D]=!0),S[D]===void 0&&f(x[D])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):i(s)}})}var pl,xo,Dn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",vp=typeof Map<"u",xp=typeof Set<"u",fl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",gl=Dn?Symbol.for("immer-nothing"):((pl={})["immer-nothing"]=!0,pl),ul=Dn?Symbol.for("immer-draftable"):"__$immer_draftable",ie=Dn?Symbol.for("immer-state"):"__$immer_state";var Sp=""+Object.prototype.constructor,Vr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,bl=Object.getOwnPropertyDescriptors||function(t){var e={};return Vr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Tn={},So={get:function(t,e){if(e===ie)return t;var o=Xt(t);if(!Hr(o,e))return function(n,a,s){var l,p=ll(a,s);return p?"value"in p?p.value:(l=p.get)===null||l===void 0?void 0:l.call(n.k):void 0}(t,o,e);var i=o[e];return t.I||!ht(i)?i:i===En(t.t,e)?(An(t),t.o[e]=Nn(t.A.h,i,t)):i},has:function(t,e){return e in Xt(t)},ownKeys:function(t){return Reflect.ownKeys(Xt(t))},set:function(t,e,o){var i=ll(Xt(t),e);if(i?.set)return i.set.call(t.k,o),!0;if(!t.P){var n=En(Xt(t),e),a=n?.[ie];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(yl(o,n)&&(o!==void 0||Hr(t.t,e)))return!0;An(t),Jt(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 En(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,An(t),Jt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Xt(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:o[e]}},defineProperty:function(){at(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){at(12)}},vo={};Sr(So,function(t,e){vo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),vo.deleteProperty=function(t,e){return vo.set.call(this,t,e,void 0)},vo.set=function(t,e,o){return So.set.call(this,t[0],e,o,t[0])};var Op=function(){function t(o){var i=this;this.O=fl,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var p=i;return function(O){var _=this;O===void 0&&(O=l);for(var I=arguments.length,N=Array(I>1?I-1:0),D=1;D<I;D++)N[D-1]=arguments[D];return p.produce(O,function(F){var W;return(W=a).call.apply(W,[_,F].concat(N))})}}var f;if(typeof a!="function"&&at(6),s!==void 0&&typeof s!="function"&&at(7),ht(n)){var y=sl(i),m=Nn(i,n,void 0),b=!0;try{f=a(m),b=!1}finally{b?ii(y):In(y)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(O){return Cn(y,s),wn(O,y)},function(O){throw ii(y),O}):(Cn(y,s),wn(f,y))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===gl&&(f=void 0),i.D&&Pn(f,!0),s){var x=[],S=[];wt("Patches").M(n,f,x,S),s(x,S)}return f}at(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(f){for(var y=arguments.length,m=Array(y>1?y-1:0),b=1;b<y;b++)m[b-1]=arguments[b];return i.produceWithPatches(f,function(x){return n.apply(void 0,[x].concat(m))})};var s,l,p=i.produce(n,a,function(f,y){s=f,l=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,s,l]}):[p,s,l]},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){ht(o)||at(8),$t(o)&&(o=bp(o));var i=sl(this),n=Nn(this,o,void 0);return n[ie].C=!0,In(i),n},e.finishDraft=function(o,i){var n=o&&o[ie],a=n.A;return Cn(a,i),wn(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!fl&&at(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=wt("Patches").$;return $t(o)?s(o,i):this.produce(o,function(l){return s(l,i)})},t}(),et=new Op,Cp=et.produce,Qv=et.produceWithPatches.bind(et),ex=et.setAutoFreeze.bind(et),tx=et.setUseProxies.bind(et),rx=et.applyPatches.bind(et),ox=et.createDraft.bind(et),ix=et.finishDraft.bind(et),si=Cp;function Qt(t){"@babel/helpers - typeof";return Qt=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},Qt(t)}function Bn(t,e){if(Qt(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,e||"default");if(Qt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Mn(t){var e=Bn(t,"string");return Qt(e)==="symbol"?e:String(e)}function Fn(t,e,o){return e=Mn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function vl(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 ci(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?vl(Object(o),!0).forEach(function(i){Fn(t,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):vl(Object(o)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(o,i))})}return t}function Pe(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 xl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Un=function(){return Math.random().toString(36).substring(7).split("").join(".")},li={INIT:"@@redux/INIT"+Un(),REPLACE:"@@redux/REPLACE"+Un(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Un()}};function wp(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 Wn(t,e,o){var i;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Pe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Pe(1));return o(Wn)(t,e)}if(typeof t!="function")throw new Error(Pe(2));var n=t,a=e,s=[],l=s,p=!1;function f(){l===s&&(l=s.slice())}function y(){if(p)throw new Error(Pe(3));return a}function m(O){if(typeof O!="function")throw new Error(Pe(4));if(p)throw new Error(Pe(5));var _=!0;return f(),l.push(O),function(){if(_){if(p)throw new Error(Pe(6));_=!1,f();var N=l.indexOf(O);l.splice(N,1),s=null}}}function b(O){if(!wp(O))throw new Error(Pe(7));if(typeof O.type>"u")throw new Error(Pe(8));if(p)throw new Error(Pe(9));try{p=!0,a=n(a,O)}finally{p=!1}for(var _=s=l,I=0;I<_.length;I++){var N=_[I];N()}return O}function x(O){if(typeof O!="function")throw new Error(Pe(10));n=O,b({type:li.REPLACE})}function S(){var O,_=m;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(Pe(11));function D(){N.next&&N.next(y())}D();var F=_(D);return{unsubscribe:F}}},O[xl]=function(){return this},O}return b({type:li.INIT}),i={dispatch:b,subscribe:m,getState:y,replaceReducer:x},i[xl]=S,i}function Ep(t){Object.keys(t).forEach(function(e){var o=t[e],i=o(void 0,{type:li.INIT});if(typeof i>"u")throw new Error(Pe(12));if(typeof o(void 0,{type:li.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Pe(13))})}function Sl(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,l;try{Ep(o)}catch(p){l=p}return function(f,y){if(f===void 0&&(f={}),l)throw l;if(0)var m;for(var b=!1,x={},S=0;S<a.length;S++){var O=a[S],_=o[O],I=f[O],N=_(I,y);if(typeof N>"u"){var D=y&&y.type;throw new Error(Pe(14))}x[O]=N,b=b||N!==I}return b=b||a.length!==Object.keys(f).length,b?x:f}}function Gr(){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 Ol(){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(Pe(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(p){return p(s)});return a=Gr.apply(void 0,l)(n.dispatch),ci(ci({},n),{},{dispatch:a})}}}function Cl(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var wl=Cl();wl.withExtraArgument=Cl;var zn=wl;var Nl=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)}}(),Ap=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:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(y){return p([f,y])}}function p(f){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(a=f[0]&2?n.return:f[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,f[1])).done)return a;switch(n=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,n=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){o.label=f[1];break}if(f[0]===6&&o.label<a[1]){o.label=a[1],a=f;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(f);break}a[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(y){f=[6,y],n=0}finally{i=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Kr=function(t,e){for(var o=0,i=e.length,n=t.length;o<i;o++,n++)t[n]=e[o];return t},Rp=Object.defineProperty,Ip=Object.defineProperties,Np=Object.getOwnPropertyDescriptors,El=Object.getOwnPropertySymbols,Tp=Object.prototype.hasOwnProperty,_p=Object.prototype.propertyIsEnumerable,Al=function(t,e,o){return e in t?Rp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},er=function(t,e){for(var o in e||(e={}))Tp.call(e,o)&&Al(t,o,e[o]);if(El)for(var i=0,n=El(e);i<n.length;i++){var o=n[i];_p.call(e,o)&&Al(t,o,e[o])}return t},Hn=function(t,e){return Ip(t,Np(e))},kp=function(t,e,o){return new Promise(function(i,n){var a=function(p){try{l(o.next(p))}catch(f){n(f)}},s=function(p){try{l(o.throw(p))}catch(f){n(f)}},l=function(p){return p.done?i(p.value):Promise.resolve(p.value).then(a,s)};l((o=o.apply(t,e)).next())})};var Lp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Gr:Gr.apply(null,arguments)},Ox=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Pp(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 $p=function(t){Nl(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,Kr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Kr([void 0],o.concat(this))))},e}(Array),Dp=function(t){Nl(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,Kr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Kr([void 0],o.concat(this))))},e}(Array);function Gn(t){return ht(t)?si(t,function(){}):t}function Bp(t){return typeof t=="boolean"}function Mp(){return function(e){return Fp(e)}}function Fp(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,l=new $p;if(o&&(Bp(o)?l.push(zn):l.push(zn.withExtraArgument(o.extraArgument))),0){if(n)var p;if(s)var f}return l}var Vn=!0;function Tl(t){var e=Mp(),o=t||{},i=o.reducer,n=i===void 0?void 0:i,a=o.middleware,s=a===void 0?e():a,l=o.devTools,p=l===void 0?!0:l,f=o.preloadedState,y=f===void 0?void 0:f,m=o.enhancers,b=m===void 0?void 0:m,x;if(typeof n=="function")x=n;else if(Pp(n))x=Sl(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),!Vn&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Vn&&S.some(function(F){return typeof F!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Ol.apply(void 0,S),_=Gr;p&&(_=Lp(er({trace:!Vn},typeof p=="object"&&p)));var I=new Dp(O),N=I;Array.isArray(b)?N=Kr([O],b):typeof b=="function"&&(N=b(I));var D=_.apply(void 0,N);return Wn(x,y,D)}function tr(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 er(er({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 _l(t){var e={},o=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,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 Up(t){return typeof t=="function"}function Wp(t,e,o,i){o===void 0&&(o=[]);var n=typeof e=="function"?_l(e):[e,o,i],a=n[0],s=n[1],l=n[2],p;if(Up(t))p=function(){return Gn(t())};else{var f=Gn(t);p=function(){return f}}function y(m,b){m===void 0&&(m=p());var x=Kr([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=[l]),x.reduce(function(S,O){if(O)if($t(S)){var _=S,I=O(_,b);return I===void 0?S:I}else{if(ht(S))return si(S,function(N){return O(N,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},m)}return y.getInitialState=p,y}function zp(t,e){return t+"/"+e}function kl(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:Gn(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(y){var m=i[y],b=zp(e,y),x,S;"reducer"in m?(x=m.reducer,S=m.prepare):x=m,a[y]=x,s[b]=x,l[y]=S?tr(b,S):tr(b)});function p(){var y=typeof t.extraReducers=="function"?_l(t.extraReducers):[t.extraReducers],m=y[0],b=m===void 0?{}:m,x=y[1],S=x===void 0?[]:x,O=y[2],_=O===void 0?void 0:O,I=er(er({},b),s);return Wp(o,function(N){for(var D in I)N.addCase(D,I[D]);for(var F=0,W=S;F<W.length;F++){var He=W[F];N.addMatcher(He.matcher,He.reducer)}_&&N.addDefaultCase(_)})}var f;return{name:e,reducer:function(y,m){return f||(f=p()),f(y,m)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Hp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Vp=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Hp[Math.random()*64|0];return e},jp=["name","message","stack","code"],jn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Rl=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Gp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,i=jp;o<i.length;o++){var n=i[o];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},Ax=function(){function t(e,o,i){var n=tr(e+"/fulfilled",function(y,m,b,x){return{payload:y,meta:Hn(er({},x||{}),{arg:b,requestId:m,requestStatus:"fulfilled"})}}),a=tr(e+"/pending",function(y,m,b){return{payload:void 0,meta:Hn(er({},b||{}),{arg:m,requestId:y,requestStatus:"pending"})}}),s=tr(e+"/rejected",function(y,m,b,x,S){return{payload:x,error:(i&&i.serializeError||Gp)(y||"Rejected"),meta:Hn(er({},S||{}),{arg:b,requestId:m,rejectedWithValue:!!x,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),l=!1,p=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function f(y){return function(m,b,x){var S=i?.idGenerator?i.idGenerator(y):Vp(),O=new p,_,I=!1;function N(F){_=F,O.abort()}var D=function(){return kp(this,null,function(){var F,W,He,gt,Be,bt,Ee;return Ap(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),gt=(F=i?.condition)==null?void 0:F.call(i,y,{getState:b,extra:x}),Zp(gt)?[4,gt]:[3,2];case 1:gt=h.sent(),h.label=2;case 2:if(gt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Be=new Promise(function(v,L){return O.signal.addEventListener("abort",function(){return L({name:"AbortError",message:_||"Aborted"})})}),m(a(S,y,(W=i?.getPendingMeta)==null?void 0:W.call(i,{requestId:S,arg:y},{getState:b,extra:x}))),[4,Promise.race([Be,Promise.resolve(o(y,{dispatch:m,getState:b,extra:x,requestId:S,signal:O.signal,abort:N,rejectWithValue:function(v,L){return new jn(v,L)},fulfillWithValue:function(v,L){return new Rl(v,L)}})).then(function(v){if(v instanceof jn)throw v;return v instanceof Rl?n(v.payload,S,y,v.meta):n(v,S,y)})])];case 3:return He=h.sent(),[3,5];case 4:return bt=h.sent(),He=bt instanceof jn?s(null,S,y,bt.payload,bt.meta):s(bt,S,y),[3,5];case 5:return Ee=i&&!i.dispatchConditionRejection&&s.match(He)&&He.meta.condition,Ee||m(He),[2,He]}})})}();return Object.assign(D,{abort:N,requestId:S,arg:y,unwrap:function(){return D.then(Kp)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Kp(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 Ll="listener",Pl="completed",$l="cancelled",Rx="task-"+$l,Ix="task-"+Pl,Nx=Ll+"-"+$l,Tx=Ll+"-"+Pl;var Kn="listenerMiddleware";var _x=tr(Kn+"/add"),kx=tr(Kn+"/removeAll"),Lx=tr(Kn+"/remove");var Il,Px=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Il||(Il=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},qp=function(t){return function(e){setTimeout(e,t)}},$x=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:qp(10);ml();window.ftReduxStores||(window.ftReduxStores={});var Dl=class t{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(go(a))return a;if(n==null)return;let s=kl({...n,reducers:(o=n.reducers)!==null&&o!==void 0?o:{}}),l=Tl({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:s.reducer(p,f)});return window.ftReduxStores[n.name]=new t(s,l)}constructor(e,o){this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Jo,this.actions=new Proxy(this.reduxSlice.actions,{get:(i,n,a)=>{let s=n,l=i[s];return l?(...p)=>{let f=l(...p);return this.reduxStore.dispatch(f),f}:p=>{this.setState({[s]:p})}}})}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 ui=g(R());var di=class extends Ct{async listMySearches(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var pi=class extends Ct{async listMyBookmarks(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Xp="ft-user-assets",fi=ui.FtReduxStore.get({name:Xp,initialState:{savedSearches:void 0,bookmarks:void 0}}),Zn=class{constructor(){this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new pi,this.savedSearchesService=new di,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=T.getState();(0,ui.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),fi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),fi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();fi.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}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;fi.actions.bookmarks(o)}}},Bl=new Zn;var qn=class{addCommand(e,o=!1){T.commands.add(e,o)}consumeCommand(e){return T.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new qn;var Ml=g(R()),Yn=class{highlightHtml(e,o,i){(0,Ml.highlightHtml)(e,o,i)}};window.FluidTopicsHighlightHtmlService=new Yn;var Fl=g(R());var Xn=class{isDate(e){var o,i,n,a;return(a=(n=((i=(o=T.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,o){var i,n,a;return Fl.DateFormatter.format(e,(i=o?.locale)!==null&&i!==void 0?i:T.getState().uiLocale,(n=o?.longFormat)!==null&&n!==void 0?n:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Xn;(0,Ul.customElement)("ft-app-context")(he);var zl=g(Z()),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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},Jn=Symbol("i18nAttributes"),Or=Symbol("i18nProperties"),Oo=Symbol("i18nUnsubs");function rr(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Kc:vr}i18n(n,a,...s){var l;if(typeof n=="string")return this.i18nService.resolveMessage(n,a,...s);let p=(l=n.args)!==null&&l!==void 0?l:n.argsProvider?n.argsProvider(this):[];return this.i18nService.resolveMessage(n.context,n.key,...p)}onI18nUpdate(n){var a,s;(a=this[Jn])===null||a===void 0||a.forEach((l,p)=>{var f;let y=this.getI18nAttributeValue(p);((f=y?.context)===null||f===void 0?void 0:f.toLowerCase())===n.toLowerCase()&&this.updateI18nAttributeMessage(p,y,l)}),(s=this[Or])===null||s===void 0||s.forEach((l,p)=>{l.context.toLowerCase()===n.toLowerCase()&&(this[p]=this.i18n(l))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(n,a,s){this[n]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(n){var a,s;super.update(n),(a=this[Jn])===null||a===void 0||a.forEach((l,p)=>{let f=this.getI18nAttributeValue(p);f?.context&&f.key&&(n.has(p)||l.argsProvider!=null)&&(n.has(p)&&this.addI18nContext(f.context),this.updateI18nAttributeMessage(p,f,l))}),(s=this[Or])===null||s===void 0||s.forEach((l,p)=>{l.argsProvider!=null&&(this[p]=this.i18n(l))})}getI18nAttributeValue(n){return this[n]}connectedCallback(){var n,a,s,l;super.connectedCallback(),new Set([...(a=(n=this[Or])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[Jn])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(p=>this.getI18nAttributeValue(p))].map(p=>p?.context)).forEach(p=>p&&this.addI18nMessages(p))}addI18nMessages(n,a){n=n.toLowerCase(),this[Oo].has(n)||this[Oo].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,a??{}),this.onI18nUpdate(n)}addI18nContext(n,a){this.addI18nMessages(typeof n=="string"?n:n.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[Oo].forEach(n=>n()),this[Oo].clear()}}return e=Oo,Jp([(0,zl.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var Wl=class extends rr(yi.FtLitElement){},hi=class extends rr(yi.FtLitElementRedux){};var Co=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},yt=class extends hi{constructor(){super(),this.editorMode=!1,this.addStore(T)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":mi.nothing:mi.html`
1338
1559
  <span class="ft-i18n">
1339
1560
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1340
1561
  </span>
1341
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};mt.elementDefinitions={};mt.styles=Hl;wo([(0,bi.redux)()],mt.prototype,"editorMode",void 0);wo([(0,yi.property)()],mt.prototype,"context",void 0);wo([(0,yi.property)()],mt.prototype,"key",void 0);wo([(0,bi.jsonProperty)([])],mt.prototype,"args",void 0);wo([(0,yi.property)()],mt.prototype,"defaultMessage",void 0);var or=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(r,i)=>{let n=i;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(r,i)=>(...n)=>vr.resolveMessage(this.name,i,...n)}),this.rawMessages=new Proxy({},{get:(r,i)=>vr.resolveRawMessage(this.name,i)})}};var vi=(t,e)=>(r,i)=>{var n,a;r.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};r[Or]=(a=r[Or])!==null&&a!==void 0?a:new Map,r[Or].set(i,s)};(0,Hc.customElement)("ft-i18n")(mt);var V=or.build("integratedFeedbackComponent"),Vc={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=g(E());var st=g(D()),G=g(Z()),Kc=g(Vt());var Qn=t=>t??ye;var Zr=g(E());var jc=g(D()),P=g(E());var U={fontSize:P.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:P.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:P.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:P.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:P.FtCssVariableFactory.extend("--ft-text-field-helper-color","",P.designSystemVariables.colorOnSurfaceMedium),colorPrimary:P.FtCssVariableFactory.external(P.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:P.FtCssVariableFactory.external(P.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:P.FtCssVariableFactory.external(P.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:P.FtCssVariableFactory.external(P.designSystemVariables.borderRadiusS,"Design system"),colorError:P.FtCssVariableFactory.external(P.designSystemVariables.colorError,"Design system"),prefixColor:P.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",P.designSystemVariables.colorOnSurfaceMedium),iconColor:P.FtCssVariableFactory.extend("--ft-text-field-icon-color","",P.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:P.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:P.FtCssVariableFactory.external(P.designSystemVariables.colorSurface,"Design system"),colorOutline:P.FtCssVariableFactory.external(P.designSystemVariables.colorOutline,"Design system"),elevation02:P.FtCssVariableFactory.external(P.designSystemVariables.elevation02,"Design system"),suggestSize:P.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Gc=jc.css`
1562
+ `}update(e){var o;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};yt.elementDefinitions={};yt.styles=Hc;Co([(0,bi.redux)()],yt.prototype,"editorMode",void 0);Co([(0,gi.property)()],yt.prototype,"context",void 0);Co([(0,gi.property)()],yt.prototype,"key",void 0);Co([(0,bi.jsonProperty)([])],yt.prototype,"args",void 0);Co([(0,gi.property)()],yt.prototype,"defaultMessage",void 0);var or=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(o,i)=>{let n=i;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(o,i)=>(...n)=>vr.resolveMessage(this.name,i,...n)}),this.rawMessages=new Proxy({},{get:(o,i)=>vr.resolveRawMessage(this.name,i)})}};var vi=(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[Or]=(a=o[Or])!==null&&a!==void 0?a:new Map,o[Or].set(i,s)};(0,Hl.customElement)("ft-i18n")(yt);var V=or.build("integratedFeedbackComponent"),Vl={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=g(R());var st=g(B()),G=g(Z()),Kl=g(Vt());var Qn=t=>t??be;var Zr=g(R());var jl=g(B()),$=g(R());var U={fontSize:$.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:$.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:$.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:$.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:$.FtCssVariableFactory.extend("--ft-text-field-helper-color","",$.designSystemVariables.colorOnSurfaceMedium),colorPrimary:$.FtCssVariableFactory.external($.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:$.FtCssVariableFactory.external($.designSystemVariables.borderRadiusS,"Design system"),colorError:$.FtCssVariableFactory.external($.designSystemVariables.colorError,"Design system"),prefixColor:$.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",$.designSystemVariables.colorOnSurfaceMedium),iconColor:$.FtCssVariableFactory.extend("--ft-text-field-icon-color","",$.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:$.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:$.FtCssVariableFactory.external($.designSystemVariables.colorSurface,"Design system"),colorOutline:$.FtCssVariableFactory.external($.designSystemVariables.colorOutline,"Design system"),elevation02:$.FtCssVariableFactory.external($.designSystemVariables.elevation02,"Design system"),suggestSize:$.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Gl=jl.css`
1342
1563
  *:focus {
1343
1564
  outline: none;
1344
1565
  }
@@ -1351,10 +1572,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1351
1572
  }
1352
1573
 
1353
1574
  ft-input-label {
1354
- ${(0,P.setVariable)(k.fontSize,U.fontSize)};
1355
- ${(0,P.setVariable)(k.raisedFontSize,U.labelSize)};
1356
- ${(0,P.setVariable)(k.verticalSpacing,U.verticalSpacing)};
1357
- ${(0,P.setVariable)(k.horizontalSpacing,U.horizontalSpacing)};
1575
+ ${(0,$.setVariable)(P.fontSize,U.fontSize)};
1576
+ ${(0,$.setVariable)(P.raisedFontSize,U.labelSize)};
1577
+ ${(0,$.setVariable)(P.verticalSpacing,U.verticalSpacing)};
1578
+ ${(0,$.setVariable)(P.horizontalSpacing,U.horizontalSpacing)};
1358
1579
  }
1359
1580
 
1360
1581
  .ft-text-field--main-panel {
@@ -1371,13 +1592,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1371
1592
  overflow: hidden;
1372
1593
  padding: 0 ${U.horizontalSpacing};
1373
1594
 
1374
- ${(0,P.setVariable)(rt.fontSize,U.fontSize)};
1375
- ${(0,P.setVariable)(rt.lineHeight,U.fontSize)};
1595
+ ${(0,$.setVariable)(rt.fontSize,U.fontSize)};
1596
+ ${(0,$.setVariable)(rt.lineHeight,U.fontSize)};
1376
1597
  }
1377
1598
 
1378
1599
  .ft-text-field--input-panel ft-ripple {
1379
- ${(0,P.setVariable)($.opacityContentOnSurfaceHover,"0.08")};
1380
- ${(0,P.setVariable)($.opacityContentOnSurfacePressed,"0.04")};
1600
+ ${(0,$.setVariable)(w.opacityContentOnSurfaceHover,"0.08")};
1601
+ ${(0,$.setVariable)(w.opacityContentOnSurfacePressed,"0.04")};
1381
1602
  }
1382
1603
 
1383
1604
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
@@ -1426,8 +1647,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1426
1647
  }
1427
1648
 
1428
1649
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1429
- ${(0,P.setVariable)(k.borderColor,U.colorPrimary)};
1430
- ${(0,P.setVariable)(k.textColor,U.colorPrimary)};
1650
+ ${(0,$.setVariable)(P.borderColor,U.colorPrimary)};
1651
+ ${(0,$.setVariable)(P.textColor,U.colorPrimary)};
1431
1652
  }
1432
1653
 
1433
1654
  .ft-text-field--filled .ft-text-field--input-panel {
@@ -1482,14 +1703,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1482
1703
  }
1483
1704
 
1484
1705
  .ft-text-field--with-icon {
1485
- ${(0,P.setVariable)(k.labelMaxWidth,`calc(100% - ${ve.size} - ${k.horizontalSpacing})`)};
1706
+ ${(0,$.setVariable)(P.labelMaxWidth,`calc(100% - ${xe.size} - ${P.horizontalSpacing})`)};
1486
1707
  }
1487
1708
 
1488
1709
  .ft-text-field--with-password ft-icon:hover {
1489
1710
  cursor: pointer;
1490
1711
  }
1491
- `;var Q=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},W=class extends(0,Zr.toFtFormComponent)(Zr.FtLitElement,"textbox"){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=hr.EYE_SLASH,this.passwordRevealedIcon=hr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let r=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}render(){var e;let r={"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.visibleSuggestions.length===0||this.hideSuggestions,"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return st.html`
1492
- <div class="${(0,Kc.classMap)(r)}">
1712
+ `;var Q=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},H=class extends(0,Zr.toFtFormComponent)(Zr.FtLitElement,"textbox"){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=hr.EYE_SLASH,this.passwordRevealedIcon=hr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}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()}render(){var e;let o={"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.visibleSuggestions.length===0||this.hideSuggestions,"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return st.html`
1713
+ <div class="${(0,Kl.classMap)(o)}">
1493
1714
  <div class="ft-text-field--main-panel"
1494
1715
  @keydown=${this.handleKeyboardNavigation}
1495
1716
  @focusout=${this.onMainPanelBlur}>
@@ -1541,7 +1762,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1541
1762
  .variant=${this.iconVariant}
1542
1763
  .value=${this.icon}
1543
1764
  @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
1544
- `:st.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.suggestions}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",Uo(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`}))}setValue(e,r=!1){this.value!==e&&(this.setInternalValue(e),this.dispatchEvent(new CustomEvent("live-change",{detail:e}))),r&&this.dispatchedValue!==e&&(this.dispatchedValue=e,this.dispatchEvent(new CustomEvent("change",{detail:e})))}handleInput(e){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}};W.elementDefinitions={"ft-input-label":ze,"ft-ripple":j,"ft-typography":de,"ft-icon":be};W.styles=[Ir,Zr.noTextInputDefaultClearButton,Gc];Q([(0,G.property)()],W.prototype,"label",void 0);Q([(0,G.property)({noAccessor:!0})],W.prototype,"value",null);Q([(0,G.state)()],W.prototype,"dispatchedValue",void 0);Q([(0,G.property)()],W.prototype,"helper",void 0);Q([(0,G.property)({type:Boolean})],W.prototype,"outlined",void 0);Q([(0,G.property)({type:Boolean})],W.prototype,"disabled",void 0);Q([(0,G.property)({type:Boolean})],W.prototype,"error",void 0);Q([(0,G.property)({type:Boolean})],W.prototype,"fixedMenuPosition",void 0);Q([(0,G.property)()],W.prototype,"prefix",void 0);Q([(0,G.property)()],W.prototype,"icon",void 0);Q([(0,G.property)()],W.prototype,"name",void 0);Q([(0,G.property)()],W.prototype,"type",void 0);Q([(0,G.property)()],W.prototype,"passwordHiddenIcon",void 0);Q([(0,G.property)()],W.prototype,"passwordRevealedIcon",void 0);Q([(0,G.property)()],W.prototype,"iconVariant",void 0);Q([(0,G.property)({type:Boolean})],W.prototype,"filterSuggestions",void 0);Q([(0,G.property)({type:Number})],W.prototype,"maxLength",void 0);Q([(0,G.property)({type:Boolean})],W.prototype,"password",void 0);Q([(0,G.state)()],W.prototype,"focused",void 0);Q([(0,G.state)()],W.prototype,"hidePassword",void 0);Q([(0,G.state)()],W.prototype,"hideSuggestions",void 0);Q([(0,G.state)()],W.prototype,"visibleSuggestions",void 0);Q([(0,G.query)(".ft-text-field--main-panel")],W.prototype,"mainPanel",void 0);Q([(0,G.query)(".ft-text-field--input")],W.prototype,"input",void 0);Q([(0,G.query)(".ft-text-field--suggestions")],W.prototype,"suggestionsContainer",void 0);Q([(0,G.queryAssignedElements)({selector:"ft-text-field-suggestion"})],W.prototype,"suggestions",void 0);var Yc=g(E()),Xc=g(D()),qr=g(Z());var Zc=g(D()),qc=Zc.css`
1765
+ `:st.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.suggestions}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",Fo(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:o,y:i})=>{this.suggestionsContainer.style.left=`${o}px`,this.suggestionsContainer.style.top=`${i}px`}))}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}};H.elementDefinitions={"ft-input-label":We,"ft-ripple":j,"ft-typography":pe,"ft-icon":ve};H.styles=[Tr,Zr.noTextInputDefaultClearButton,Gl];Q([(0,G.property)()],H.prototype,"label",void 0);Q([(0,G.property)({noAccessor:!0})],H.prototype,"value",null);Q([(0,G.state)()],H.prototype,"dispatchedValue",void 0);Q([(0,G.property)()],H.prototype,"helper",void 0);Q([(0,G.property)({type:Boolean})],H.prototype,"outlined",void 0);Q([(0,G.property)({type:Boolean})],H.prototype,"disabled",void 0);Q([(0,G.property)({type:Boolean})],H.prototype,"error",void 0);Q([(0,G.property)({type:Boolean})],H.prototype,"fixedMenuPosition",void 0);Q([(0,G.property)()],H.prototype,"prefix",void 0);Q([(0,G.property)()],H.prototype,"icon",void 0);Q([(0,G.property)()],H.prototype,"name",void 0);Q([(0,G.property)()],H.prototype,"type",void 0);Q([(0,G.property)()],H.prototype,"passwordHiddenIcon",void 0);Q([(0,G.property)()],H.prototype,"passwordRevealedIcon",void 0);Q([(0,G.property)()],H.prototype,"iconVariant",void 0);Q([(0,G.property)({type:Boolean})],H.prototype,"filterSuggestions",void 0);Q([(0,G.property)({type:Number})],H.prototype,"maxLength",void 0);Q([(0,G.property)({type:Boolean})],H.prototype,"password",void 0);Q([(0,G.state)()],H.prototype,"focused",void 0);Q([(0,G.state)()],H.prototype,"hidePassword",void 0);Q([(0,G.state)()],H.prototype,"hideSuggestions",void 0);Q([(0,G.state)()],H.prototype,"visibleSuggestions",void 0);Q([(0,G.query)(".ft-text-field--main-panel")],H.prototype,"mainPanel",void 0);Q([(0,G.query)(".ft-text-field--input")],H.prototype,"input",void 0);Q([(0,G.query)(".ft-text-field--suggestions")],H.prototype,"suggestionsContainer",void 0);Q([(0,G.queryAssignedElements)({selector:"ft-text-field-suggestion"})],H.prototype,"suggestions",void 0);var Yl=g(R()),Xl=g(B()),qr=g(Z());var Zl=g(B()),ql=Zl.css`
1545
1766
  .ft-text-field-suggestion {
1546
1767
  position: relative;
1547
1768
  padding: 8px 16px;
@@ -1566,7 +1787,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1566
1787
  slot {
1567
1788
  pointer-events: none;
1568
1789
  }
1569
- `;var ta=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ea=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},$t=class extends Yc.FtLitElement{render(){return Xc.html`
1790
+ `;var ta=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},ea=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},Dt=class extends Yl.FtLitElement{render(){return Xl.html`
1570
1791
  <div class="ft-text-field-suggestion"
1571
1792
  tabindex="-1"
1572
1793
  @keydown=${this.onKeyDown}
@@ -1578,17 +1799,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1578
1799
  <slot></slot>
1579
1800
  </ft-typography>
1580
1801
  </div>
1581
- `}focus(e){var r;(r=this.container)===null||r===void 0||r.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new ea(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())}};$t.elementDefinitions={"ft-ripple":j,"ft-typography":de,"ft-icon":be};$t.styles=qc;ta([(0,qr.property)()],$t.prototype,"value",void 0);ta([(0,qr.query)(".ft-text-field-suggestion")],$t.prototype,"container",void 0);ta([(0,qr.queryAssignedNodes)()],$t.prototype,"assignedNodes",void 0);(0,ra.customElement)("ft-text-field")(W);(0,ra.customElement)("ft-text-field-suggestion")($t);var wd=g(E());var Co=g(D()),nr=g(Z()),qe=g(E());var gt=g(E());var Jc=g(E()),Qc=t=>Jc.FtReduxStore.get({name:"ft-reader-"+t,initialState:{mapId:void 0,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}});var oa=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(e,r,i){return e.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,r,i):[{tocId:n.tocId,title:n.title,depth:r,children:this.extractPagesToc(n.children,r+1,n.tocId)}]))}convertNodes(e,r,i){return e.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],r,n.tocId),...this.convertNodes(n.children,r,n.tocId)];let d=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),f={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:d,depth:r,parentTocId:i,children:[]};this.register(f);let h=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],r+1,n.tocId),m=this.convertNodes(n.children,r+1,f.tocId);return f.children=[...h,...m],[f]})}convertSectionNodes(e,r,i){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:r,parentTocId:i,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,r+1,n.tocId),[l]})}buildPage(e,r){var i,n,a,s,l,d;let f={number:this.pages.length+1,title:(i=e.title)!==null&&i!==void 0?i:"",rootTocId:(n=e.tocId)!==null&&n!==void 0?n:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(y,v)=>(v?f.topics:f.hiddenTopics).push(y),m=(l=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return f.breadcrumb.forEach((y,v)=>{h(y,m[v])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),f.topics.push(...this.tocIds((d=e.pageToc)!==null&&d!==void 0?d:[])),f}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},xi=class{convertPaginatedToc(e,r){return new oa(e,r).build()}};var ef=g(td(),1);var rd;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(rd||(rd={}));var od;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(od||(od={}));var id;(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"})(id||(id={}));var nd;(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"})(nd||(nd={}));var ad;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ad||(ad={}));var sd;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(sd||(sd={}));var ld;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ld||(ld={}));var Mt;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Mt||(Mt={}));var cd;(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"})(cd||(cd={}));var dd;(function(t){t.ASC="ASC",t.DESC="DESC"})(dd||(dd={}));var pd;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(pd||(pd={}));var fd;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(fd||(fd={}));var ud;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(ud||(ud={}));var hd;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(hd||(hd={}));var md;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(md||(md={}));var gd;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(gd||(gd={}));var yd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(yd||(yd={}));var bd;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"})(bd||(bd={}));var ie;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(ie||(ie={}));var vd;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(vd||(vd={}));var Qp={[ie.PERSONAL_BOOK_SHARE_USER]:[ie.PERSONAL_BOOK_USER],[ie.HTML_EXPORT_USER]:[ie.PERSONAL_BOOK_USER],[ie.PDF_EXPORT_USER]:[ie.PERSONAL_BOOK_USER],[ie.KHUB_ADMIN]:[ie.CONTENT_PUBLISHER],[ie.ADMIN]:[ie.KHUB_ADMIN,ie.USERS_ADMIN,ie.PORTAL_ADMIN],[ie.DEVELOPER]:[ie.BETA_USER,ie.DEBUG_USER]};function xd(t,e){return t===e||(Qp[t]??[]).some(r=>xd(r,e))}function wr(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=>xd(i,e))}var wi=class extends wt{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,i){super(!1,r),this.converter=e,this._mapId=i,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return wr((r=(e=N.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(e){return(await this.getEnrichedToc()).nodeByTocId[e]}getTocNodeNow(e){var r;return(r=this.enrichedToc)===null||r===void 0?void 0:r.nodeByTocId[e]}getTocNodeNowByUrl(e){var r,i;let n=this.getMapNow();return n?.prettyUrl==e||`${n?.id}/root`===e?(r=this.enrichedToc)===null||r===void 0?void 0:r.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.nodeByUrl[e]}async getPage(e){let r=await this.getEnrichedToc();return r.pages[e-1]||r.pages[0]}async getPageByTocId(e){let r=await this.getEnrichedToc();return r.pageByTocId[e]||r.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))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,i){return this.cache.get("topic-relatives-"+[e,r,...i].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,i))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true`)}getLink(e,r,i){let n=this.getNavigationData(e,r,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(e,r,i){var n,a;e=e||"root";let s=this.enrichedToc,l=s?.pageByTocId[e],d=s?.nodeByTocId[e],f=d?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(n=d?.title)!==null&&n!==void 0?n:"",page:r&&l&&l.number!==r?r:void 0,prettyUrl:f?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(f??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(e,r,i){return await this.getEnrichedToc(),this.getNavigationData(e,r,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var i;return r?{type:r.topics.type,rating:(i=r.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,i){return this.makeRateTopicRequest(e,r,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=N.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,i){return this.makeTopicFeedbackRequest(e,r,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e){let r=this.getTocNodeNow(e),i=[{tocId:r.tocId,title:r.title}],n=this.getTocNodeNow(r.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(e,{session:r,ratingType:i}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case tt.FEEDBACK:return wr(r??[],ie.FEEDBACK_USER);case tt.RATING:return wr(r??[],ie.RATING_USER)&&i!=null&&i!==Mt.NO_RATING;case tt.PRINT:return wr(r??[],ie.PRINT_USER);case tt.BOOKMARK:return!!r?.sessionAuthenticated;case tt.COLLECTIONS:return wr(r??[],ie.COLLECTION_USER);case tt.PERSONAL_BOOKS:return wr(r??[],ie.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Ci=class t extends wi{static async build(e){return new t(new xi,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e){let r=await this.api.getMap(e);return this.fingerprint=r.fingerprint,r}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e){return await this.getMap(),this.api.getPages(e,this.fingerprint)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(e,r,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,i){return this.api.rateTopic(this.mapId,e,r,i)}makeTopicFeedbackRequest(e,r,i){return this.api.sendTopicFeedback(this.mapId,e,r,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var Ei=class t{static build(e,r){return new t(Qc(e.trim()||"context"),r??Ci.build)}loaded(){return(0,gt.waitUntil)(()=>this._loaded)}constructor(e,r,i){this.store=e,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new gt.Debouncer(10),this.initService(r)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return(0,gt.waitFor)(()=>this.service)}async navigateToTopic(e,r,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i):n.getPageByTocId(e??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(e,a),section:r})}resolveValidNonRootTocId(e,r){var i,n,a;let s=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:r.rootTocId;return r.topics.includes(s)?s:(a=(n=r.topics[0])!==null&&n!==void 0?n:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){await this.loaded();let i=await(await this.awaitService()).getPage(e);this.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())}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),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var e,r,i,n,a;try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(s=>this.store.actions.configuration(s)),(r=this.service)===null||r===void 0?void 0:r.getMap().then(s=>this.store.actions.map(s)),(i=this.service)===null||i===void 0?void 0:i.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof gt.CanceledPromiseError)&&this.errorHandler(s)}}fetchRelatives(){var e,r,i;let n=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument((i=this.store.getState().configuration)===null||i===void 0?void 0:i.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(r=(e=N.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new gt.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var r,i,n;await this.loaded();let a=await(0,gt.waitFor)(()=>{var f;return(f=this.store.getState().configuration)===null||f===void 0?void 0:f.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((n=(i=(r=d?.results)===null||r===void 0?void 0:r[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let f=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(f),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}};var Sd=g(D());var Od=Sd.css`
1582
- `;var Ai=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},Ri=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},Ni=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Ti=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Ii=class extends Event{constructor(){super("ft-reader-map-not-found")}},_i=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},ki=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Pi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Ye=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},tf=t=>e=>+(e??"NaN")>0?+e:t,Oe=class extends qe.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new qe.Debouncer(5),this.navigationDebouncer=new qe.Debouncer(10),this.mapLoadedEventDebouncer=new qe.Debouncer(50),this.addStore(N)}render(){return Co.html`
1802
+ `}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 ea(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())}};Dt.elementDefinitions={"ft-ripple":j,"ft-typography":pe,"ft-icon":ve};Dt.styles=ql;ta([(0,qr.property)()],Dt.prototype,"value",void 0);ta([(0,qr.query)(".ft-text-field-suggestion")],Dt.prototype,"container",void 0);ta([(0,qr.queryAssignedNodes)()],Dt.prototype,"assignedNodes",void 0);(0,ra.customElement)("ft-text-field")(H);(0,ra.customElement)("ft-text-field-suggestion")(Dt);var Cd=g(R());var wo=g(B()),nr=g(Z()),qe=g(R());var mt=g(R());var Jl=g(R()),Ql=t=>Jl.FtReduxStore.get({name:"ft-reader-"+t,initialState:{mapId:void 0,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}});var oa=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}}extractPagesToc(e,o,i){return e.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,o,i):[{tocId:n.tocId,title:n.title,depth:o,children:this.extractPagesToc(n.children,o+1,n.tocId)}]))}convertNodes(e,o,i){return e.flatMap(n=>{var a,s,l;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 p=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),f={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:p,depth:o,parentTocId:i,children:[]};this.register(f);let y=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],o+1,n.tocId),m=this.convertNodes(n.children,o+1,f.tocId);return f.children=[...y,...m],[f]})}convertSectionNodes(e,o,i){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:o,parentTocId:i,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,o+1,n.tocId),[l]})}buildPage(e,o){var i,n,a,s,l,p;let f={number:this.pages.length+1,title:(i=e.title)!==null&&i!==void 0?i:"",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]):[]},y=(b,x)=>(x?f.topics:f.hiddenTopics).push(b),m=(l=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return f.breadcrumb.forEach((b,x)=>{y(b,m[x])}),e.tocId&&y(e.tocId,e.pageConfiguration.isVisible),f.topics.push(...this.tocIds((p=e.pageToc)!==null&&p!==void 0?p:[])),f}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}},xi=class{convertPaginatedToc(e,o){return new oa(e,o).build()}};var ef=g(td(),1);var rd;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(rd||(rd={}));var od;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(od||(od={}));var id;(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"})(id||(id={}));var nd;(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"})(nd||(nd={}));var ad;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ad||(ad={}));var sd;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(sd||(sd={}));var cd;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(cd||(cd={}));var Bt;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Bt||(Bt={}));var ld;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(ld||(ld={}));var dd;(function(t){t.ASC="ASC",t.DESC="DESC"})(dd||(dd={}));var pd;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(pd||(pd={}));var fd;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(fd||(fd={}));var ud;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(ud||(ud={}));var hd;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(hd||(hd={}));var yd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(yd||(yd={}));var md;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(md||(md={}));var gd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(gd||(gd={}));var bd;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"})(bd||(bd={}));var ne;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(ne||(ne={}));var vd;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(vd||(vd={}));var Qp={[ne.PERSONAL_BOOK_SHARE_USER]:[ne.PERSONAL_BOOK_USER],[ne.HTML_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.PDF_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.KHUB_ADMIN]:[ne.CONTENT_PUBLISHER],[ne.ADMIN]:[ne.KHUB_ADMIN,ne.USERS_ADMIN,ne.PORTAL_ADMIN],[ne.DEVELOPER]:[ne.BETA_USER,ne.DEBUG_USER]};function xd(t,e){return t===e||(Qp[t]??[]).some(o=>xd(o,e))}function Cr(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=>xd(i,e))}var Ci=class extends Ct{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.registerFinal("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 Cr((o=(e=T.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.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(e){return(await this.getEnrichedToc()).nodeByTocId[e]}getTocNodeNow(e){var o;return(o=this.enrichedToc)===null||o===void 0?void 0:o.nodeByTocId[e]}getTocNodeNowByUrl(e){var o,i;let n=this.getMapNow();return n?.prettyUrl==e||`${n?.id}/root`===e?(o=this.enrichedToc)===null||o===void 0?void 0:o.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.nodeByUrl[e]}async getPage(e){let o=await this.getEnrichedToc();return o.pages[e-1]||o.pages[0]}async getPageByTocId(e){let o=await this.getEnrichedToc();return o.pageByTocId[e]||o.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))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}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`)}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){var n,a;e=e||"root";let s=this.enrichedToc,l=s?.pageByTocId[e],p=s?.nodeByTocId[e],f=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(n=p?.title)!==null&&n!==void 0?n:"",page:o&&l&&l.number!==o?o:void 0,prettyUrl:f?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(f??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(e,o,i){return await this.getEnrichedToc(),this.getNavigationData(e,o,i)}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=T.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){let o=this.getTocNodeNow(e),i=[{tocId:o.tocId,title:o.title}],n=this.getTocNodeNow(o.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(e,{session:o,ratingType:i}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case tt.FEEDBACK:return Cr(o??[],ne.FEEDBACK_USER);case tt.RATING:return Cr(o??[],ne.RATING_USER)&&i!=null&&i!==Bt.NO_RATING;case tt.PRINT:return Cr(o??[],ne.PRINT_USER);case tt.BOOKMARK:return!!o?.sessionAuthenticated;case tt.COLLECTIONS:return Cr(o??[],ne.COLLECTION_USER);case tt.PERSONAL_BOOKS:return Cr(o??[],ne.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var wi=class t extends Ci{static async build(e){return new t(new xi,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e){let o=await this.api.getMap(e);return this.fingerprint=o.fingerprint,o}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e){return await this.getMap(),this.api.getPages(e,this.fingerprint)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}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 Ei=class t{static build(e,o){return new t(Ql(e.trim()||"context"),o??wi.build)}loaded(){return(0,mt.waitUntil)(()=>this._loaded)}constructor(e,o,i){this.store=e,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new mt.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())}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return(0,mt.waitFor)(()=>this.service)}async navigateToTopic(e,o,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i):n.getPageByTocId(e??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(e,a),section:o})}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.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())}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),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var e,o,i,n,a;try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(s=>this.store.actions.configuration(s)),(o=this.service)===null||o===void 0?void 0:o.getMap().then(s=>this.store.actions.map(s)),(i=this.service)===null||i===void 0?void 0:i.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof mt.CanceledPromiseError)&&this.errorHandler(s)}}fetchRelatives(){var e,o,i;let n=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(o=this.service)===null||o===void 0||o.getRelativesForDocument((i=this.store.getState().configuration)===null||i===void 0?void 0:i.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var e,o;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(o=(e=T.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&o!==void 0?o:[];return new mt.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var o,i,n;await this.loaded();let a=await(0,mt.waitFor)(()=>{var f;return(f=this.store.getState().configuration)===null||f===void 0?void 0:f.relativeTopicPivotMetadata}),s=this.store.getState().mapId,p=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((n=(i=(o=p?.results)===null||o===void 0?void 0:o[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let f=p.results[0].entries[0].topic.tocId;return await this.navigateToTopic(f),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}};var Sd=g(B());var Od=Sd.css`
1803
+ `;var Ai=class extends CustomEvent{constructor(e,o){super("ft-reader-map-loaded",{detail:{map:e,toc:o}})}},Ri=class extends CustomEvent{constructor(e,o){super("ft-reader-visible-topics-change",{detail:{visibleTopics:o}})}},Ii=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Ni=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Ti=class extends Event{constructor(){super("ft-reader-map-not-found")}},_i=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},ki=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Li=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},tf=t=>e=>+(e??"NaN")>0?+e:t,Ce=class extends qe.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new qe.Debouncer(5),this.navigationDebouncer=new qe.Debouncer(10),this.mapLoadedEventDebouncer=new qe.Debouncer(50),this.addStore(T)}render(){return wo.html`
1583
1804
  ${this.importStyleIfNeeded()}
1584
1805
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1585
- `}importStyleIfNeeded(){var e,r;let i=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!i||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?Co.nothing:Co.html`
1806
+ `}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:"")?wo.nothing:wo.html`
1586
1807
  <style>
1587
1808
  @import "${i}"
1588
1809
  </style>
1589
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=Ei.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let r=e.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",r),document.head.append(i)}})}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>e.has(r))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var r;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let i=e.get("scrollTarget");i?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var n;return this.stateManager.service.getAccurateNavigationData(i.tocId,(n=this.currentPage)===null||n===void 0?void 0:n.number,i.section).then(a=>this.dispatchEvent(new Ni(a)))})}e.has("visibleTopics")&&Promise.all(this.visibleTopics.map(i=>{var n;return this.stateManager.service.getAccurateNavigationData(i,(n=this.currentPage)===null||n===void 0?void 0:n.number)})).then(i=>{let n=i.filter(a=>a!=null&&a.topicTitle!=="").map(a=>{var s;return{tocId:a.tocId,title:a.topicTitle,page:a.page,prettyUrl:a.prettyUrl,prettyUrlDuplicated:a.prettyUrlDuplicated,breadcrumb:(s=this.stateManager.service)===null||s===void 0?void 0:s.buildBreadcrumb(a.tocId)}});this.dispatchEvent(new Ri(this.map,n))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Pi),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)})}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let r=e;r.status===401?this.dispatchEvent(new _i):r.status===403?this.dispatchEvent(new ki):r.status===404?this.dispatchEvent(new Ii):this.dispatchEvent(new Ti(e))}reloadBookmarks(){Mc.reloadBookmarks()}async reloadRating(){var e,r;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Ai(this.map,this.toc))})}};Oe.styles=Od;Ye([(0,qe.redux)({store:N.name})],Oe.prototype,"baseUrl",void 0);Ye([(0,qe.redux)({store:N.name})],Oe.prototype,"session",void 0);Ye([(0,nr.property)()],Oe.prototype,"mapId",void 0);Ye([(0,nr.property)()],Oe.prototype,"tocId",void 0);Ye([(0,nr.property)()],Oe.prototype,"section",void 0);Ye([(0,nr.property)()],Oe.prototype,"topicPivot",void 0);Ye([(0,nr.property)()],Oe.prototype,"searchInDocumentQuery",void 0);Ye([(0,nr.property)({type:Number,converter:{fromAttribute:tf()}})],Oe.prototype,"page",void 0);Ye([(0,qe.redux)({store:"reader"})],Oe.prototype,"map",void 0);Ye([(0,qe.redux)({store:"reader"})],Oe.prototype,"toc",void 0);Ye([(0,qe.redux)({store:"reader"})],Oe.prototype,"visibleTopics",void 0);Ye([(0,qe.redux)({store:"reader"})],Oe.prototype,"currentPage",void 0);Ye([(0,qe.redux)({store:"reader"})],Oe.prototype,"scrollTarget",void 0);Ye([(0,nr.property)({attribute:!1})],Oe.prototype,"readerServiceProvider",void 0);(0,wd.customElement)("ft-reader-context")(Oe);var Li=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},Di=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},$i=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},Mi=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},Bi=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var we=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},X=class extends rr(Bt){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,Vc)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(tt.FEEDBACK,{session:this.session})}get canAccessRating(){var e,r;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(tt.RATING,{session:this.session,ratingType:(r=this.ratingSummary)===null||r===void 0?void 0:r.type})}get configuredRatingType(){var e,r;return(r=this.ratingAllowed?(e=this.ratingSummary)===null||e===void 0?void 0:e.type:"NO_RATING")!==null&&r!==void 0?r:"NO_RATING"}get ratingType(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:"NO_RATING"}get ratingValue(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var e,r;let i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?(0,Ui.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canAccessRating?he.nothing:he.html`
1810
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=Ei.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)}})}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;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 i=e.get("scrollTarget");i?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var n;return this.stateManager.service.getAccurateNavigationData(i.tocId,(n=this.currentPage)===null||n===void 0?void 0:n.number,i.section).then(a=>this.dispatchEvent(new Ii(a)))})}e.has("visibleTopics")&&Promise.all(this.visibleTopics.map(i=>{var n;return this.stateManager.service.getAccurateNavigationData(i,(n=this.currentPage)===null||n===void 0?void 0:n.number)})).then(i=>{let n=i.filter(a=>a!=null&&a.topicTitle!=="").map(a=>{var s;return{tocId:a.tocId,title:a.topicTitle,page:a.page,prettyUrl:a.prettyUrl,prettyUrlDuplicated:a.prettyUrlDuplicated,breadcrumb:(s=this.stateManager.service)===null||s===void 0?void 0:s.buildBreadcrumb(a.tocId)}});this.dispatchEvent(new Ri(this.map,n))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Li),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)})}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 _i):o.status===403?this.dispatchEvent(new ki):o.status===404?this.dispatchEvent(new Ti):this.dispatchEvent(new Ni(e))}reloadBookmarks(){Bl.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.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Ai(this.map,this.toc))})}};Ce.styles=Od;Ye([(0,qe.redux)({store:T.name})],Ce.prototype,"baseUrl",void 0);Ye([(0,qe.redux)({store:T.name})],Ce.prototype,"session",void 0);Ye([(0,nr.property)()],Ce.prototype,"mapId",void 0);Ye([(0,nr.property)()],Ce.prototype,"tocId",void 0);Ye([(0,nr.property)()],Ce.prototype,"section",void 0);Ye([(0,nr.property)()],Ce.prototype,"topicPivot",void 0);Ye([(0,nr.property)()],Ce.prototype,"searchInDocumentQuery",void 0);Ye([(0,nr.property)({type:Number,converter:{fromAttribute:tf()}})],Ce.prototype,"page",void 0);Ye([(0,qe.redux)({store:"reader"})],Ce.prototype,"map",void 0);Ye([(0,qe.redux)({store:"reader"})],Ce.prototype,"toc",void 0);Ye([(0,qe.redux)({store:"reader"})],Ce.prototype,"visibleTopics",void 0);Ye([(0,qe.redux)({store:"reader"})],Ce.prototype,"currentPage",void 0);Ye([(0,qe.redux)({store:"reader"})],Ce.prototype,"scrollTarget",void 0);Ye([(0,nr.property)({attribute:!1})],Ce.prototype,"readerServiceProvider",void 0);(0,Cd.customElement)("ft-reader-context")(Ce);var Pi=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},$i=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},Di=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},Bi=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},Mi=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var we=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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},X=class extends rr(Mt){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,Vl)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(tt.FEEDBACK,{session:this.session})}get canAccessRating(){var e,o;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(tt.RATING,{session:this.session,ratingType:(o=this.ratingSummary)===null||o===void 0?void 0:o.type})}get configuredRatingType(){var e,o;return(o=this.ratingAllowed?(e=this.ratingSummary)===null||e===void 0?void 0:e.type:"NO_RATING")!==null&&o!==void 0?o:"NO_RATING"}get ratingType(){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:"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,Fi.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canAccessRating?ye.nothing:ye.html`
1590
1811
  <div class="ft-reader-feedback">
1591
- ${this.hideTitle?he.nothing:he.html`
1812
+ ${this.hideTitle?ye.nothing:ye.html`
1592
1813
  <ft-typography variant="title" part="main-title">
1593
1814
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1594
1815
  </ft-typography>
@@ -1596,7 +1817,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1596
1817
  ${this.renderRatingSection()}
1597
1818
  ${this.renderFeedbackSection()}
1598
1819
  </div>
1599
- `}renderRatingSection(){return this.canAccessRating?he.html`
1820
+ `}renderRatingSection(){return this.canAccessRating?ye.html`
1600
1821
  <div class="ft-reader-feedback--rating" part="rating-container">
1601
1822
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1602
1823
  ${this.i18n(this.ratingSummary.type==="DICHOTOMOUS"?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
@@ -1606,28 +1827,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1606
1827
  ${this.renderRatingDate()}
1607
1828
  </ft-typography>
1608
1829
  </div>
1609
- `:he.nothing}renderRatingDate(){let e=this.ratingDate;if(e==null)return V.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return V.messages.ratedNow();let r=new Date().toLocaleDateString(),i=e.toLocaleDateString();return r===i?V.messages.ratedToday():V.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case"STARS":return he.html`
1830
+ `: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"STARS":return ye.html`
1610
1831
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1611
- ${(0,Cd.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingType==="STARS"&&this.ratingValue>s,d=s+1;return he.html`
1612
- <ft-button round part="rating-stars-${d}"
1613
- label="${V.messages.starsRating(d)}"
1832
+ ${(0,wd.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingType==="STARS"&&this.ratingValue>s,p=s+1;return ye.html`
1833
+ <ft-button round part="rating-stars-${p}"
1834
+ label="${V.messages.starsRating(p)}"
1614
1835
  tooltipPosition="top"
1615
1836
  .iconVariant=${this.iconVariant}
1616
1837
  icon="${l?this.filledStarIcon:this.emptyStarIcon}"
1617
1838
  class="ft-reader-feedback--${l?"active":"inactive"}"
1618
- @click=${()=>this.rate(this.ratingValue===d?void 0:d)}
1839
+ @click=${()=>this.rate(this.ratingValue===p?void 0:p)}
1619
1840
  ></ft-button>
1620
1841
  `})}
1621
1842
  </div>
1622
- `;case"LIKE":let e=this.ratingType==="LIKE"&&this.ratingValue===0,r=this.ratingType==="LIKE"&&this.ratingValue===1;return he.html`
1843
+ `;case"LIKE":let e=this.ratingType==="LIKE"&&this.ratingValue===0,o=this.ratingType==="LIKE"&&this.ratingValue===1;return ye.html`
1623
1844
  <ft-switch unselectable
1624
1845
  @change=${a=>this.rate(a.detail)}
1625
1846
  part="rating rating-like"
1626
1847
  label=${this.i18n(this.i18nProperties.ratingSectionTitle)}>
1627
1848
  <ft-switch-option .value=${1}
1628
- ?selected=${r}
1849
+ ?selected=${o}
1629
1850
  .iconVariant=${this.iconVariant}
1630
- icon="${r?this.filledLikeIcon:this.emptyLikeIcon}"
1851
+ icon="${o?this.filledLikeIcon:this.emptyLikeIcon}"
1631
1852
  role="radio">
1632
1853
  ${V.messages.like()}
1633
1854
  </ft-switch-option>
@@ -1639,7 +1860,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1639
1860
  ${V.messages.dislike()}
1640
1861
  </ft-switch-option>
1641
1862
  </ft-switch>
1642
- `;case"DICHOTOMOUS":let i=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return he.html`
1863
+ `;case"DICHOTOMOUS":let i=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return ye.html`
1643
1864
  <ft-switch unselectable
1644
1865
  @change=${a=>this.rate(a.detail)}
1645
1866
  part="rating rating-dichotomous">
@@ -1652,7 +1873,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1652
1873
  ${V.messages.dichotomousNo()}
1653
1874
  </ft-switch-option>
1654
1875
  </ft-switch>
1655
- `}return he.nothing}rate(e){(e??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:e}))}renderFeedbackSection(){var e,r,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=he.html`
1876
+ `}return ye.nothing}rate(e){(e??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:e}))}renderFeedbackSection(){var e,o,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=ye.html`
1656
1877
  <ft-button primary
1657
1878
  type="submit" name="submit"
1658
1879
  class="ft-reader-feedback--send-feedback"
@@ -1660,11 +1881,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1660
1881
  part="send-feedback">
1661
1882
  ${V.messages.okButton()}
1662
1883
  </ft-button>
1663
- `;s&&(l=he.html`
1884
+ `;s&&(l=ye.html`
1664
1885
  <a class="ft-reader-feedback--feedback-link" href="${s}">
1665
1886
  ${l}
1666
1887
  </a>
1667
- `);let d=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?he.html`
1888
+ `);let p=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers)?ye.html`
1668
1889
  <ft-button outlined
1669
1890
  type="button" name="more-options"
1670
1891
  class="ft-reader-feedback--more-options"
@@ -1672,13 +1893,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1672
1893
  part="more-options">
1673
1894
  ${V.messages.moreOptionsButton()}
1674
1895
  </ft-button>
1675
- `:he.nothing;return he.html`
1896
+ `:ye.nothing;return ye.html`
1676
1897
  <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
1677
1898
  @submit="${f=>this.onFormSubmitEvent(f,!!s)}">
1678
1899
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1679
1900
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1680
1901
  </ft-typography>
1681
- ${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?he.html`
1902
+ ${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?ye.html`
1682
1903
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1683
1904
  class="ft-reader-feedback--from-input"
1684
1905
  label=${V.messages.feedbackfromEmail()}
@@ -1686,18 +1907,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1686
1907
  ?error=${this.from&&!this.validFromEmail()}
1687
1908
  helper=${this.from&&!this.validFromEmail()?V.messages.feedbackfromEmailInvalid():""}
1688
1909
  />
1689
- `:he.nothing}
1910
+ `:ye.nothing}
1690
1911
  <ft-text-area outlined
1691
1912
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1692
1913
  label="${V.messages.feedbackInputLabel()}"
1693
1914
  @live-change=${f=>this.feedbackMessage=f.detail.trim()}
1694
1915
  ></ft-text-area>
1695
1916
  <div part="buttons-container">
1696
- ${d}
1917
+ ${p}
1697
1918
  ${l}
1698
1919
  </div>
1699
1920
  </form>
1700
- `}return he.nothing}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0?void 0:r.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new Li({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.value="",0)}};X.elementDefinitions={"ft-button":ft,"ft-typography":de,"ft-switch":Fe,"ft-switch-option":pe,"ft-text-area":Re,"ft-text-field":W};X.styles=hs;we([(0,me.property)({type:Boolean})],X.prototype,"editorMode",void 0);we([(0,me.property)({type:Boolean})],X.prototype,"hideTitle",void 0);we([(0,me.property)({type:Boolean})],X.prototype,"withMoreOptionsButton",void 0);we([(0,me.property)({type:Boolean})],X.prototype,"ratingAllowed",void 0);we([(0,me.property)({attribute:!1})],X.prototype,"i18nProperties",void 0);we([(0,me.property)({attribute:!1})],X.prototype,"ratingSummary",void 0);we([(0,me.property)({attribute:!1})],X.prototype,"session",void 0);we([(0,me.query)(".ft-reader-feedback--feedback-input")],X.prototype,"feedbackInput",void 0);we([(0,me.state)()],X.prototype,"from",void 0);we([(0,me.state)()],X.prototype,"feedbackMessage",void 0);we([(0,me.property)()],X.prototype,"iconVariant",void 0);we([(0,me.property)()],X.prototype,"emptyStarIcon",void 0);we([(0,me.property)()],X.prototype,"filledStarIcon",void 0);we([(0,me.property)()],X.prototype,"emptyLikeIcon",void 0);we([(0,me.property)()],X.prototype,"filledLikeIcon",void 0);we([(0,me.property)()],X.prototype,"emptyDislikeIcon",void 0);we([(0,me.property)()],X.prototype,"filledDislikeIcon",void 0);we([(0,Ui.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],X.prototype,"configuration",void 0);we([(0,me.property)()],X.prototype,"feedbackMailLinkBuilder",void 0);var Xr=or.fromGwt("server");var Jr=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,r,i,n,a){var s;this.subject=e,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(e,r){return r.map(i=>e.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var e,r;let i=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(e){var r;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1921
+ `}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 Pi({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.value="",0)}};X.elementDefinitions={"ft-button":ft,"ft-typography":pe,"ft-switch":Ue,"ft-switch-option":fe,"ft-text-area":Ie,"ft-text-field":H};X.styles=hs;we([(0,me.property)({type:Boolean})],X.prototype,"editorMode",void 0);we([(0,me.property)({type:Boolean})],X.prototype,"hideTitle",void 0);we([(0,me.property)({type:Boolean})],X.prototype,"withMoreOptionsButton",void 0);we([(0,me.property)({type:Boolean})],X.prototype,"ratingAllowed",void 0);we([(0,me.property)({attribute:!1})],X.prototype,"i18nProperties",void 0);we([(0,me.property)({attribute:!1})],X.prototype,"ratingSummary",void 0);we([(0,me.property)({attribute:!1})],X.prototype,"session",void 0);we([(0,me.query)(".ft-reader-feedback--feedback-input")],X.prototype,"feedbackInput",void 0);we([(0,me.state)()],X.prototype,"from",void 0);we([(0,me.state)()],X.prototype,"feedbackMessage",void 0);we([(0,me.property)()],X.prototype,"iconVariant",void 0);we([(0,me.property)()],X.prototype,"emptyStarIcon",void 0);we([(0,me.property)()],X.prototype,"filledStarIcon",void 0);we([(0,me.property)()],X.prototype,"emptyLikeIcon",void 0);we([(0,me.property)()],X.prototype,"filledLikeIcon",void 0);we([(0,me.property)()],X.prototype,"emptyDislikeIcon",void 0);we([(0,me.property)()],X.prototype,"filledDislikeIcon",void 0);we([(0,Fi.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],X.prototype,"configuration",void 0);we([(0,me.property)()],X.prototype,"feedbackMailLinkBuilder",void 0);var Xr=or.fromGwt("server");var Jr=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(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.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(`
1701
1922
  ${this.bodyMetadata}
1702
1923
  ${this.url}
1703
1924
  _________________________________________________________________
@@ -1705,7 +1926,7 @@ _________________________________________________________________
1705
1926
  ${e??""}
1706
1927
 
1707
1928
  _________________________________________________________________
1708
- ${Xr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var ar=or.build("inDesignerFeedbackComponent"),Fi={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Ne=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},le=class extends rr(Bt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ie.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 Jr,this.i18nProperties={feedbackMainTitle:V.properties.mapFeedbackMainTitle(),ratingSectionTitle:V.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new Le.Debouncer(100),this.sendRatingDebouncer=new Le.Debouncer(500),this.addStore(N)}render(){return Ed.html`
1929
+ ${Xr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(o=this.configuration)===null||o===void 0?void 0:o.recipients.join(",")}?subject=${i}&body=${n}`}};var ar=or.build("inDesignerFeedbackComponent"),Ui={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Ne=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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 rr(Mt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=_e.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 Jr,this.i18nProperties={feedbackMainTitle:V.properties.mapFeedbackMainTitle(),ratingSectionTitle:V.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new $e.Debouncer(100),this.sendRatingDebouncer=new $e.Debouncer(500),this.addStore(T)}render(){return Ed.html`
1709
1930
  <ft-reader-feedback
1710
1931
  ratingAllowed
1711
1932
  .i18nProperties=${this.i18nProperties}
@@ -1727,7 +1948,7 @@ ${Xr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1727
1948
  @mailer-feedback=${this.onMailerFeedbackSent}
1728
1949
  @open-more-options=${this.openMoreOptions}
1729
1950
  ></ft-reader-feedback>
1730
- `}update(e){var r,i,n,a;super.update(e),e.has("map")&&this.map&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(ar,Fi),["map","configuration","user","mailSubject"].some(s=>e.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(r=this.service)===null||r===void 0?void 0:r.getLink())!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(e){super.onStoreAvailable(e),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var e,r;this.map&&(!((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0)&&r.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var e;this.ratingSummary=await((e=this.service)===null||e===void 0?void 0:e.getMapRating())}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.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n;if(!this.editorMode&&this.ratingSummary){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new Le.FtNotificationEvent({type:"error",message:V.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Le.FtNotificationEvent({type:"info",message:ar.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new Le.FtNotificationEvent({type:"info",message:ar.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new Le.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Le.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Bi)}openMoreOptions(){var e,r,i;this.dispatchEvent(new $i({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((e=this.map)===null||e===void 0?void 0:e.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||Mt.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};le.elementDefinitions={"ft-reader-feedback":X};Ne([(0,Le.redux)({store:N.name})],le.prototype,"session",void 0);Ne([(0,Le.redux)({store:"reader"})],le.prototype,"map",void 0);Ne([(0,Le.redux)({store:N.name})],le.prototype,"editorMode",void 0);Ne([(0,Le.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],le.prototype,"configuration",void 0);Ne([(0,Xe.state)()],le.prototype,"ratingSummary",void 0);Ne([(0,Xe.property)({type:Boolean})],le.prototype,"hideTitle",void 0);Ne([(0,Xe.property)({type:Boolean})],le.prototype,"withMoreOptionsButton",void 0);Ne([(0,Xe.property)()],le.prototype,"iconVariant",void 0);Ne([(0,Xe.property)()],le.prototype,"emptyStarIcon",void 0);Ne([(0,Xe.property)()],le.prototype,"filledStarIcon",void 0);Ne([(0,Xe.property)()],le.prototype,"emptyLikeIcon",void 0);Ne([(0,Xe.property)()],le.prototype,"filledLikeIcon",void 0);Ne([(0,Xe.property)()],le.prototype,"emptyDislikeIcon",void 0);Ne([(0,Xe.property)()],le.prototype,"filledDislikeIcon",void 0);Ne([(0,Xe.query)("ft-reader-feedback")],le.prototype,"readerFeedback",void 0);Ne([vi(Xr.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);Ne([(0,Le.reduxEventListener)({eventName:"rating-changed"})],le.prototype,"fetchRatingSummary",null);var Rd=g(D()),Je=g(Z()),De=g(E());var na=g(Z());var Ad=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},aa=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},ia=Symbol("registerInterval");function rf(t){var e;class r extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[ia]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[ia]):this.dispatchEvent(new aa)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=ia,Ad([(0,na.state)()],r.prototype,"tocNode",void 0),Ad([(0,na.state)()],r.prototype,"disableContextInteractions",void 0),r}var zi=class extends rf(Bt){};var Te=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ce=class extends rr(zi){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ie.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 Jr,this.i18nProperties={feedbackMainTitle:V.properties.topicFeedbackMainTitle(),ratingSectionTitle:V.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new De.Debouncer(100),this.sendRatingDebouncer=new De.Debouncer(500),this.addStore(N)}render(){var e;return Rd.html`
1951
+ `}update(e){var o,i,n,a;super.update(e),e.has("map")&&this.map&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(ar,Ui),["map","configuration","user","mailSubject"].some(s=>e.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(o=this.service)===null||o===void 0?void 0:o.getLink())!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(e){super.onStoreAvailable(e),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var e,o;this.map&&(!((o=(e=this.session)===null||e===void 0?void 0:e.profile)===null||o===void 0)&&o.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var e;this.ratingSummary=await((e=this.service)===null||e===void 0?void 0:e.getMapRating())}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.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var o,i,n;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 $e.FtNotificationEvent({type:"error",message:V.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new $e.FtNotificationEvent({type:"info",message:ar.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var o;try{this.editorMode?this.dispatchEvent(new $e.FtNotificationEvent({type:"info",message:ar.messages.feedbackAndRatingDisabledInEditor()})):(await((o=this.service)===null||o===void 0?void 0:o.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new $e.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new $e.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Mi)}openMoreOptions(){var e,o,i;this.dispatchEvent(new Di({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)||Bt.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};le.elementDefinitions={"ft-reader-feedback":X};Ne([(0,$e.redux)({store:T.name})],le.prototype,"session",void 0);Ne([(0,$e.redux)({store:"reader"})],le.prototype,"map",void 0);Ne([(0,$e.redux)({store:T.name})],le.prototype,"editorMode",void 0);Ne([(0,$e.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],le.prototype,"configuration",void 0);Ne([(0,Xe.state)()],le.prototype,"ratingSummary",void 0);Ne([(0,Xe.property)({type:Boolean})],le.prototype,"hideTitle",void 0);Ne([(0,Xe.property)({type:Boolean})],le.prototype,"withMoreOptionsButton",void 0);Ne([(0,Xe.property)()],le.prototype,"iconVariant",void 0);Ne([(0,Xe.property)()],le.prototype,"emptyStarIcon",void 0);Ne([(0,Xe.property)()],le.prototype,"filledStarIcon",void 0);Ne([(0,Xe.property)()],le.prototype,"emptyLikeIcon",void 0);Ne([(0,Xe.property)()],le.prototype,"filledLikeIcon",void 0);Ne([(0,Xe.property)()],le.prototype,"emptyDislikeIcon",void 0);Ne([(0,Xe.property)()],le.prototype,"filledDislikeIcon",void 0);Ne([(0,Xe.query)("ft-reader-feedback")],le.prototype,"readerFeedback",void 0);Ne([vi(Xr.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);Ne([(0,$e.reduxEventListener)({eventName:"rating-changed"})],le.prototype,"fetchRatingSummary",null);var Rd=g(B()),Je=g(Z()),De=g(R());var na=g(Z());var Ad=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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 Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},ia=Symbol("registerInterval");function rf(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[ia]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[ia]):this.dispatchEvent(new aa)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=ia,Ad([(0,na.state)()],o.prototype,"tocNode",void 0),Ad([(0,na.state)()],o.prototype,"disableContextInteractions",void 0),o}var Wi=class extends rf(Mt){};var Te=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 l=t.length-1;l>=0;l--)(s=t[l])&&(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 rr(Wi){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=_e.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 Jr,this.i18nProperties={feedbackMainTitle:V.properties.topicFeedbackMainTitle(),ratingSectionTitle:V.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new De.Debouncer(100),this.sendRatingDebouncer=new De.Debouncer(500),this.addStore(T)}render(){var e;return Rd.html`
1731
1952
  <ft-reader-feedback
1732
1953
  .i18nProperties=${this.i18nProperties}
1733
1954
  ?ratingAllowed=${(e=this.tocNode)===null||e===void 0?void 0:e.hasRating}
@@ -1743,13 +1964,13 @@ ${Xr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1743
1964
  .filledLikeIcon=${this.filledLikeIcon}
1744
1965
  .emptyDislikeIcon=${this.emptyDislikeIcon}
1745
1966
  .filledDislikeIcon=${this.filledDislikeIcon}
1746
- .feedbackMailLinkBuilder=${r=>this.feedbackLinkBuilder.build(r)}
1967
+ .feedbackMailLinkBuilder=${o=>this.feedbackLinkBuilder.build(o)}
1747
1968
  @rate=${this.rate}
1748
1969
  @send-feedback=${this.sendFeedback}
1749
1970
  @mailer-feedback=${this.onMailerFeedbackSent}
1750
1971
  @open-more-options=${this.openMoreOptions}
1751
1972
  ></ft-reader-feedback>
1752
- `}update(e){var r,i,n,a;super.update(e),["tocNode","user"].some(s=>e.has(s))&&this.tocNode&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(ar,Fi),["map","tocNode","configuration","user","mailSubject"].some(s=>e.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(r=this.service)===null||r===void 0?void 0:r.getLink(this.tocNode.tocId))!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var e,r;this.tocNode&&(!((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0)&&r.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var e;this.ratingSummary=await((e=this.service)===null||e===void 0?void 0:e.getTopicRating(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.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new De.FtNotificationEvent({type:"error",message:V.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new De.FtNotificationEvent({type:"info",message:ar.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,e.detail.message,e.detail.from)),this.dispatchEvent(new De.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new De.FtNotificationEvent({type:"info",message:ar.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new De.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new Mi(e))}openMoreOptions(){var e,r,i,n,a,s,l,d;this.dispatchEvent(new Di({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(l=this.ratingSummary)===null||l===void 0?void 0:l.type:Mt.NO_RATING)||Mt.NO_RATING,ratingValue:(d=this.ratingSummary)===null||d===void 0?void 0:d.rating}))}};ce.elementDefinitions={"ft-reader-feedback":X};Te([(0,De.redux)({store:N.name})],ce.prototype,"session",void 0);Te([(0,De.redux)({store:"reader"})],ce.prototype,"map",void 0);Te([(0,De.redux)({store:N.name})],ce.prototype,"editorMode",void 0);Te([(0,De.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ce.prototype,"configuration",void 0);Te([(0,Je.state)()],ce.prototype,"ratingSummary",void 0);Te([(0,Je.property)({type:Boolean})],ce.prototype,"hideTitle",void 0);Te([(0,Je.property)({type:Boolean})],ce.prototype,"withMoreOptionsButton",void 0);Te([(0,Je.property)()],ce.prototype,"iconVariant",void 0);Te([(0,Je.property)()],ce.prototype,"emptyStarIcon",void 0);Te([(0,Je.property)()],ce.prototype,"filledStarIcon",void 0);Te([(0,Je.property)()],ce.prototype,"emptyLikeIcon",void 0);Te([(0,Je.property)()],ce.prototype,"filledLikeIcon",void 0);Te([(0,Je.property)()],ce.prototype,"emptyDislikeIcon",void 0);Te([(0,Je.property)()],ce.prototype,"filledDislikeIcon",void 0);Te([(0,Je.query)("ft-reader-feedback")],ce.prototype,"readerFeedback",void 0);Te([vi(Xr.properties["mail.feedback.subject"](t=>{var e,r;return[(e=t.tocNode)===null||e===void 0?void 0:e.title,(r=t.map)===null||r===void 0?void 0:r.title]}))],ce.prototype,"mailSubject",void 0);Te([(0,De.reduxEventListener)({eventName:"rating-changed"})],ce.prototype,"fetchRatingSummary",null);(0,sa.customElement)("ft-reader-map-feedback")(le);(0,sa.customElement)("ft-reader-topic-feedback")(ce);})();
1973
+ `}update(e){var o,i,n,a;super.update(e),["tocNode","user"].some(s=>e.has(s))&&this.tocNode&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(ar,Ui),["map","tocNode","configuration","user","mailSubject"].some(s=>e.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(o=this.service)===null||o===void 0?void 0:o.getLink(this.tocNode.tocId))!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var e,o;this.tocNode&&(!((o=(e=this.session)===null||e===void 0?void 0:e.profile)===null||o===void 0)&&o.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var e;this.ratingSummary=await((e=this.service)===null||e===void 0?void 0:e.getTopicRating(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.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var o,i,n;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 De.FtNotificationEvent({type:"error",message:V.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new De.FtNotificationEvent({type:"info",message:ar.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 De.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new De.FtNotificationEvent({type:"info",message:ar.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new De.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new Bi(e))}openMoreOptions(){var e,o,i,n,a,s,l,p;this.dispatchEvent(new $i({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?(l=this.ratingSummary)===null||l===void 0?void 0:l.type:Bt.NO_RATING)||Bt.NO_RATING,ratingValue:(p=this.ratingSummary)===null||p===void 0?void 0:p.rating}))}};de.elementDefinitions={"ft-reader-feedback":X};Te([(0,De.redux)({store:T.name})],de.prototype,"session",void 0);Te([(0,De.redux)({store:"reader"})],de.prototype,"map",void 0);Te([(0,De.redux)({store:T.name})],de.prototype,"editorMode",void 0);Te([(0,De.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],de.prototype,"configuration",void 0);Te([(0,Je.state)()],de.prototype,"ratingSummary",void 0);Te([(0,Je.property)({type:Boolean})],de.prototype,"hideTitle",void 0);Te([(0,Je.property)({type:Boolean})],de.prototype,"withMoreOptionsButton",void 0);Te([(0,Je.property)()],de.prototype,"iconVariant",void 0);Te([(0,Je.property)()],de.prototype,"emptyStarIcon",void 0);Te([(0,Je.property)()],de.prototype,"filledStarIcon",void 0);Te([(0,Je.property)()],de.prototype,"emptyLikeIcon",void 0);Te([(0,Je.property)()],de.prototype,"filledLikeIcon",void 0);Te([(0,Je.property)()],de.prototype,"emptyDislikeIcon",void 0);Te([(0,Je.property)()],de.prototype,"filledDislikeIcon",void 0);Te([(0,Je.query)("ft-reader-feedback")],de.prototype,"readerFeedback",void 0);Te([vi(Xr.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]}))],de.prototype,"mailSubject",void 0);Te([(0,De.reduxEventListener)({eventName:"rating-changed"})],de.prototype,"fetchRatingSummary",null);(0,sa.customElement)("ft-reader-map-feedback")(le);(0,sa.customElement)("ft-reader-topic-feedback")(de);})();
1753
1974
  /*! Bundled license information:
1754
1975
 
1755
1976
  lit-html/lit-html.js: