@fluid-topics/ft-reader-feedback 1.1.70 → 1.1.72

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,4 +1,4 @@
1
- !function(t,e,o,i,r,n,a){var s;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(s||(s={}));var l=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class c extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const d=Symbol("registerInterval");class f extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[d]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[d]):this.dispatchEvent(new c)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=d,l([i.state()],o.prototype,"stateManager",void 0),o}(e.FtLitElementRedux)){}const p=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorContent),h={color:p,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color","",p),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},u=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorPrimary),g=u,b=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",u),y=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorSecondary),m=y,v=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",y),x=o.css`
1
+ "use strict";(()=>{var ml=Object.create;var Di=Object.defineProperty;var gl=Object.getOwnPropertyDescriptor;var yl=Object.getOwnPropertyNames;var bl=Object.getPrototypeOf,xl=Object.prototype.hasOwnProperty;var Fe=(o,t)=>()=>(t||o((t={exports:{}}).exports,t),t.exports);var vl=(o,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of yl(t))!xl.call(o,n)&&n!==r&&Di(o,n,{get:()=>t[n],enumerable:!(i=gl(t,n))||i.enumerable});return o};var u=(o,t,r)=>(r=o!=null?ml(bl(o)):{},vl(t||!o||!o.__esModule?Di(r,"default",{value:o,enumerable:!0}):r,o));var S=Fe((oc,Bi)=>{Bi.exports=ftGlobals.wcUtils});var _=Fe((rc,Ui)=>{Ui.exports=ftGlobals.lit});var K=Fe((ic,Mi)=>{Mi.exports=ftGlobals.litDecorators});var Te=Fe((au,ca)=>{ca.exports=ftGlobals.litClassMap});var Fa=Fe((ju,Ma)=>{Ma.exports=ftGlobals.litUnsafeHTML});var ls=Fe((um,ss)=>{ss.exports=ftGlobals.litRepeat});var Hs=Fe(Ws=>{(function(o){var t=function(r){var i={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function n(f){return f&&DataView.prototype.isPrototypeOf(f)}if(i.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(f){return f&&a.indexOf(Object.prototype.toString.call(f))>-1};function c(f){if(typeof f!="string"&&(f=String(f)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(f))throw new TypeError("Invalid character in header field name");return f.toLowerCase()}function p(f){return typeof f!="string"&&(f=String(f)),f}function h(f){var m={next:function(){var I=f.shift();return{done:I===void 0,value:I}}};return i.iterable&&(m[Symbol.iterator]=function(){return m}),m}function g(f){this.map={},f instanceof g?f.forEach(function(m,I){this.append(I,m)},this):Array.isArray(f)?f.forEach(function(m){this.append(m[0],m[1])},this):f&&Object.getOwnPropertyNames(f).forEach(function(m){this.append(m,f[m])},this)}g.prototype.append=function(f,m){f=c(f),m=p(m);var I=this.map[f];this.map[f]=I?I+", "+m:m},g.prototype.delete=function(f){delete this.map[c(f)]},g.prototype.get=function(f){return f=c(f),this.has(f)?this.map[f]:null},g.prototype.has=function(f){return this.map.hasOwnProperty(c(f))},g.prototype.set=function(f,m){this.map[c(f)]=p(m)},g.prototype.forEach=function(f,m){for(var I in this.map)this.map.hasOwnProperty(I)&&f.call(m,this.map[I],I,this)},g.prototype.keys=function(){var f=[];return this.forEach(function(m,I){f.push(I)}),h(f)},g.prototype.values=function(){var f=[];return this.forEach(function(m){f.push(m)}),h(f)},g.prototype.entries=function(){var f=[];return this.forEach(function(m,I){f.push([I,m])}),h(f)},i.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function x(f){if(f.bodyUsed)return Promise.reject(new TypeError("Already read"));f.bodyUsed=!0}function A(f){return new Promise(function(m,I){f.onload=function(){m(f.result)},f.onerror=function(){I(f.error)}})}function R(f){var m=new FileReader,I=A(m);return m.readAsArrayBuffer(f),I}function P(f){var m=new FileReader,I=A(m);return m.readAsText(f),I}function X(f){for(var m=new Uint8Array(f),I=new Array(m.length),yt=0;yt<m.length;yt++)I[yt]=String.fromCharCode(m[yt]);return I.join("")}function Q(f){if(f.slice)return f.slice(0);var m=new Uint8Array(f.byteLength);return m.set(new Uint8Array(f)),m.buffer}function q(){return this.bodyUsed=!1,this._initBody=function(f){this._bodyInit=f,f?typeof f=="string"?this._bodyText=f:i.blob&&Blob.prototype.isPrototypeOf(f)?this._bodyBlob=f:i.formData&&FormData.prototype.isPrototypeOf(f)?this._bodyFormData=f:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)?this._bodyText=f.toString():i.arrayBuffer&&i.blob&&n(f)?(this._bodyArrayBuffer=Q(f.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(f)||s(f))?this._bodyArrayBuffer=Q(f):this._bodyText=f=Object.prototype.toString.call(f):this._bodyText="",this.headers.get("content-type")||(typeof f=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var f=x(this);if(f)return f;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(){return this._bodyArrayBuffer?x(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(R)}),this.text=function(){var f=x(this);if(f)return f;if(this._bodyBlob)return P(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(X(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(gt)}),this.json=function(){return this.text().then(JSON.parse)},this}var ot=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function vt(f){var m=f.toUpperCase();return ot.indexOf(m)>-1?m:f}function Rt(f,m){m=m||{};var I=m.body;if(f instanceof Rt){if(f.bodyUsed)throw new TypeError("Already read");this.url=f.url,this.credentials=f.credentials,m.headers||(this.headers=new g(f.headers)),this.method=f.method,this.mode=f.mode,this.signal=f.signal,!I&&f._bodyInit!=null&&(I=f._bodyInit,f.bodyUsed=!0)}else this.url=String(f);if(this.credentials=m.credentials||this.credentials||"same-origin",(m.headers||!this.headers)&&(this.headers=new g(m.headers)),this.method=vt(m.method||this.method||"GET"),this.mode=m.mode||this.mode||null,this.signal=m.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&I)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(I)}Rt.prototype.clone=function(){return new Rt(this,{body:this._bodyInit})};function gt(f){var m=new FormData;return f.trim().split("&").forEach(function(I){if(I){var yt=I.split("="),St=yt.shift().replace(/\+/g," "),F=yt.join("=").replace(/\+/g," ");m.append(decodeURIComponent(St),decodeURIComponent(F))}}),m}function Go(f){var m=new g,I=f.replace(/\r?\n[\t ]+/g," ");return I.split(/\r?\n/).forEach(function(yt){var St=yt.split(":"),F=St.shift().trim();if(F){var Ko=St.join(":").trim();m.append(F,Ko)}}),m}q.call(Rt.prototype);function Wt(f,m){m||(m={}),this.type="default",this.status=m.status===void 0?200:m.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in m?m.statusText:"OK",this.headers=new g(m.headers),this.url=m.url||"",this._initBody(f)}q.call(Wt.prototype),Wt.prototype.clone=function(){return new Wt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},Wt.error=function(){var f=new Wt(null,{status:0,statusText:""});return f.type="error",f};var Pi=[301,302,303,307,308];Wt.redirect=function(f,m){if(Pi.indexOf(m)===-1)throw new RangeError("Invalid status code");return new Wt(null,{status:m,headers:{location:f}})},r.DOMException=o.DOMException;try{new r.DOMException}catch{r.DOMException=function(m,I){this.message=m,this.name=I;var yt=Error(m);this.stack=yt.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Je(f,m){return new Promise(function(I,yt){var St=new Rt(f,m);if(St.signal&&St.signal.aborted)return yt(new r.DOMException("Aborted","AbortError"));var F=new XMLHttpRequest;function Ko(){F.abort()}F.onload=function(){var wo={status:F.status,statusText:F.statusText,headers:Go(F.getAllResponseHeaders()||"")};wo.url="responseURL"in F?F.responseURL:wo.headers.get("X-Request-URL");var Gr="response"in F?F.response:F.responseText;I(new Wt(Gr,wo))},F.onerror=function(){yt(new TypeError("Network request failed"))},F.ontimeout=function(){yt(new TypeError("Network request failed"))},F.onabort=function(){yt(new r.DOMException("Aborted","AbortError"))},F.open(St.method,St.url,!0),St.credentials==="include"?F.withCredentials=!0:St.credentials==="omit"&&(F.withCredentials=!1),"responseType"in F&&i.blob&&(F.responseType="blob"),St.headers.forEach(function(wo,Gr){F.setRequestHeader(Gr,wo)}),St.signal&&(St.signal.addEventListener("abort",Ko),F.onreadystatechange=function(){F.readyState===4&&St.signal.removeEventListener("abort",Ko)}),F.send(typeof St._bodyInit>"u"?null:St._bodyInit)})}return Je.polyfill=!0,o.fetch||(o.fetch=Je,o.Headers=g,o.Request=Rt,o.Response=Wt),r.Headers=g,r.Request=Rt,r.Response=Wt,r.fetch=Je,Object.defineProperty(r,"__esModule",{value:!0}),r}({})})(typeof self<"u"?self:Ws)});var $i=u(S());var fl=u(_()),Ft=u(K()),It=u(S());var Fi=u(S()),zi=u(K());var jt;(function(o){o.FEEDBACK="FEEDBACK",o.RATING="RATING",o.PRINT="PRINT",o.BOOKMARK="BOOKMARK",o.COLLECTIONS="COLLECTIONS",o.PERSONAL_BOOKS="PERSONAL_BOOKS"})(jt||(jt={}));var Sl=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Zr=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Kr=Symbol("registerInterval");function Cl(o){var t;class r extends o{constructor(){super(...arguments),this[t]=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[Kr]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Kr]):this.dispatchEvent(new Zr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Kr,Sl([(0,zi.state)()],r.prototype,"stateManager",void 0),r}var Ee=class extends Cl(Fi.FtLitElementRedux){};var at=u(_()),st=u(K()),Wr=u(S());var zn=u(_()),H=u(S());var Mn=u(_()),T=u(S());var Zi=u(_()),lt=u(S()),Wi=lt.FtCssVariableFactory.extend("--ft-ripple-color","",lt.designSystemVariables.colorContent),N={color:Wi,backgroundColor:lt.FtCssVariableFactory.extend("--ft-ripple-background-color","",Wi),opacityContentOnSurfacePressed:lt.FtCssVariableFactory.external(lt.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:lt.FtCssVariableFactory.external(lt.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:lt.FtCssVariableFactory.external(lt.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:lt.FtCssVariableFactory.external(lt.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:lt.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Hi=lt.FtCssVariableFactory.extend("--ft-ripple-color","",lt.designSystemVariables.colorPrimary),Vi={color:Hi,backgroundColor:lt.FtCssVariableFactory.extend("--ft-ripple-background-color","",Hi)},Gi=lt.FtCssVariableFactory.extend("--ft-ripple-color","",lt.designSystemVariables.colorSecondary),Ki={color:Gi,backgroundColor:lt.FtCssVariableFactory.extend("--ft-ripple-background-color","",Gi)},ji=Zi.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -11,7 +11,7 @@
11
11
 
12
12
  .ft-ripple:not(.ft-ripple--unbounded) {
13
13
  overflow: hidden;
14
- border-radius: ${h.borderRadius};
14
+ border-radius: ${N.borderRadius};
15
15
  }
16
16
 
17
17
  .ft-ripple .ft-ripple--background,
@@ -45,27 +45,27 @@
45
45
  }
46
46
 
47
47
  .ft-ripple .ft-ripple--background {
48
- background-color: ${h.backgroundColor};
48
+ background-color: ${N.backgroundColor};
49
49
  }
50
50
 
51
51
  .ft-ripple .ft-ripple--effect {
52
- background-color: ${h.color};
52
+ background-color: ${N.color};
53
53
  }
54
54
 
55
55
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
56
- background-color: ${v};
56
+ background-color: ${Ki.backgroundColor};
57
57
  }
58
58
 
59
59
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
60
- background-color: ${m};
60
+ background-color: ${Ki.color};
61
61
  }
62
62
 
63
63
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
64
- background-color: ${b};
64
+ background-color: ${Vi.backgroundColor};
65
65
  }
66
66
 
67
67
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
68
- background-color: ${g};
68
+ background-color: ${Vi.color};
69
69
  }
70
70
 
71
71
  .ft-ripple .ft-ripple--background {
@@ -95,126 +95,127 @@
95
95
  }
96
96
 
97
97
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
98
- opacity: ${h.opacityContentOnSurfaceHover};
98
+ opacity: ${N.opacityContentOnSurfaceHover};
99
99
  }
100
100
 
101
101
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
102
- opacity: ${h.opacityContentOnSurfaceSelected};
102
+ opacity: ${N.opacityContentOnSurfaceSelected};
103
103
  }
104
104
 
105
105
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
106
- opacity: ${h.opacityContentOnSurfaceFocused};
106
+ opacity: ${N.opacityContentOnSurfaceFocused};
107
107
  }
108
108
 
109
109
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
110
- opacity: ${h.opacityContentOnSurfacePressed};
110
+ opacity: ${N.opacityContentOnSurfacePressed};
111
111
  transform: translate(-50%, -50%) scale(1);
112
112
  }
113
- `,w=t=>"string"==typeof t?o.unsafeCSS(t):t;class O{static create(t,e,i,r){const n=t=>w(null!=t?t:r),a=o.css`var(${w(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${w(t)}, ${n(e)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>r,a}static extend(t,e,i,r){const n=t=>i.get(null!=t?t:r),a=o.css`var(${w(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i.category,a.fallbackVariable=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${w(t)}, ${n(e)})`,a.breadcrumb=()=>[i.name,...i.breadcrumb()],a.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),a}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):w(null!=e?e:t.lastResortDefaultValue()),r=o.css`var(${w(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=i,r.get=e=>o.css`var(${w(t.name)}, ${i(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const S={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","12px"),iconSize2:O.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:O.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:O.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:O.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:O.create("--ft-icon-size-6","","SIZE","48px"),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"),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)")},N={display:{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")},"title-1":{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")},"title-2":{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")},"title-3":{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")},"body-1-regular":{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")},"body-1-medium":{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")},"body-1-semibold":{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")},"body-2-regular":{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")},"body-2-medium":{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")},"body-2-medium-underline":{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")},"body-2-semibold":{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")},"label-1-medium":{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")},"label-1-semibold":{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")},"label-1-bold":{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")},"label-2-medium":{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")},"label-2-semibold":{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")},"label-2-bold":{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")},"caption-1-medium":{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")},"caption-1-semibold":{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")},"caption-1-bold":{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")},"caption-2-medium":{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")},"caption-2-semibold":{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")},"caption-2-bold":{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")},"caption-3-medium":{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")},"caption-3-semibold":{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")},"caption-3-bold":{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")}},$={backgroundActionPrimary:O.extend("--ft-background-action-primary","Used as backgorund of primary action components.",S.colorBrand0),backgroundErrorSubtle:O.extend("--ft-background-error-subtle","Used as background of subtle error components.",S.colorRed10),backgroundInfoSubtle:O.extend("--ft-background-info-subtle","Used as background of subtle information components.",S.colorCyan10),backgroundWarningSubtle:O.extend("--ft-background-warning-subtle","Used as background of subtle information components.",S.colorOrange10),backgroundSuccessSubtle:O.extend("--ft-background-success-subtle","Used as background of subtle success components.",S.colorGreen10),backgroundGlobalSurface:O.extend("--ft-background-global-surface","Used as app background.",S.colorWhite),backgroundGlobalOnSurface:O.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",S.colorGray10),backgroundGlobalOnSurfaceDark:O.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",S.colorGray30),contentActionPrimary:O.extend("--ft-content-action-primary","Used on label of primary action on light surface.",S.colorBrand0),contentWarningPrimary:O.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",S.colorOrange200),contentWarningIconOnly:O.extend("--ft-content-warning-icon-only","Used on warning status icons alone",S.colorOrange0),contentErrorPrimary:O.extend("--ft-content-error-primary","Used on label of error messages on light surface.",S.colorRed0),contentErrorIconOnly:O.extend("--ft-content-error-icon-only","Used on error status icons alone",S.colorRed70),contentInfoPrimary:O.extend("--ft-content-info-primary","Used on label of information messages on light surface.",S.colorCyan200),contentInfoIconOnly:O.extend("--ft-content-info-icon-only","Used on info status icons alone",S.colorCyan0),contentSuccessPrimary:O.extend("--ft-content-success-primary","Used on label of success messages on light surface.",S.colorGreen200),contentSuccessIconOnly:O.extend("--ft-content-success-icon-only","Used on success status icons alone",S.colorGreen0),contentGlobalPrimary:O.extend("--ft-content-global-primary","Used for main content on the page.",S.colorGray500),contentGlobalSecondary:O.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",S.colorGray200),contentGlobalSubtle:O.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",S.colorGray0),contentGlobalOnColor:O.extend("--ft-content-global-on-color","Used for content on a dominant color.",S.colorWhite),borderActionPrimary:O.extend("--ft-border-action-primary","Used as border for primary action components.",S.colorBrand0),borderActionFocusRing:O.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",S.colorCyan0),borderWarningPrimary:O.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",S.colorOrange200),borderWarningSubtle:O.extend("--ft-border-warning-subtle","Used as border for warning components.",S.colorOrange30),borderSuccessPrimary:O.extend("--ft-border-success-primary","Used as border for success buttons.",S.colorGreen200),borderSuccessSubtle:O.extend("--ft-border-success-subtle","Used as border for success components.",S.colorGreen30),borderErrorPrimary:O.extend("--ft-border-error-primary","Used as border for text fields in error states.",S.colorRed0),borderErrorSubtle:O.extend("--ft-border-error-subtle","Used as border for error components.",S.colorRed30),borderInfoPrimary:O.extend("--ft-border-info-primary","Used as border for buttons in info color.",S.colorCyan200),borderInfoSubtle:O.extend("--ft-border-info-subtle","Used as border for information components.",S.colorCyan30),borderGlobalPrimary:O.extend("--ft-border-global-primary","Used as border for element like input.",S.colorGray50),borderGlobalSubtle:O.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",S.colorGray30),borderInputPrimary:O.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",S.colorGray80)},I={largeHeight:O.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:O.extend("--ft-button-large-horizontal-padding","",S.spacing4),largeGap:O.extend("--ft-button-large-gap","",S.spacing2),largeBorderRadius:O.extend("--ft-button-large-border-radius","",S.borderRadiusS),largeIconSize:O.extend("--ft-button-large-icon-size","",S.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"),smallHeight:O.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:O.extend("--ft-button-small-horizontal-padding","",S.spacing3),smallGap:O.extend("--ft-button-small-gap","",S.spacing2),smallBorderRadius:O.extend("--ft-button-small-border-radius","",S.borderRadiusS),smallIconSize:O.extend("--ft-button-small-icon-size","",S.iconSize2),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","30px"),primaryBackgroundColor:O.extend("--ft-button-primary-background-color","",$.backgroundActionPrimary),primaryColor:O.extend("--ft-button-primary-color","",$.contentGlobalOnColor),primaryIconColor:O.extend("--ft-button-primary-icon-color","",$.contentGlobalOnColor),primaryStateLayerColor:O.extend("--ft-button-primary-state-layer-color","",$.contentGlobalOnColor),primaryHoverStateLayerOpacity:O.extend("--ft-button-primary-hover-state-layer-opacity","",S.opacity16),primaryFocusStateLayerOpacity:O.extend("--ft-button-primary-focus-state-layer-opacity","",S.opacity16),primaryActiveStateLayerOpacity:O.extend("--ft-button-primary-active-state-layer-opacity","",S.opacity24),primaryDisabledComponentOpacity:O.extend("--ft-button-primary-disabled-component-opacity","",S.opacity40),focusFocusRingColor:O.extend("--ft-button-focus-focus-ring-color","",$.borderActionFocusRing),tertiaryBackgroundColor:O.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:O.extend("--ft-button-tertiary-color","",$.contentActionPrimary),tertiaryIconColor:O.extend("--ft-button-tertiary-icon-color","",$.contentActionPrimary),tertiaryStateLayerColor:O.extend("--ft-button-tertiary-state-layer-color","",$.contentActionPrimary),tertiaryHoverStateLayerOpacity:O.extend("--ft-button-tertiary-hover-state-layer-opacity","",S.opacity8),tertiaryFocusStateLayerOpacity:O.extend("--ft-button-tertiary-focus-state-layer-opacity","",S.opacity8),tertiaryActiveStateLayerOpacity:O.extend("--ft-button-tertiary-active-state-layer-opacity","",S.opacity16),tertiaryDisabledComponentOpacity:O.extend("--ft-button-tertiary-disabled-component-opacity","",S.opacity40),secondaryBackgroundColor:O.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:O.extend("--ft-button-secondary-color","",$.contentActionPrimary),secondaryIconColor:O.extend("--ft-button-secondary-icon-color","",$.contentActionPrimary),secondaryStateLayerColor:O.extend("--ft-button-secondary-state-layer-color","",$.contentActionPrimary),secondaryHoverStateLayerOpacity:O.extend("--ft-button-secondary-hover-state-layer-opacity","",S.opacity8),secondaryFocusStateLayerOpacity:O.extend("--ft-button-secondary-focus-state-layer-opacity","",S.opacity8),secondaryActiveStateLayerOpacity:O.extend("--ft-button-secondary-active-state-layer-opacity","",S.opacity16),secondaryDisabledComponentOpacity:O.extend("--ft-button-secondary-disabled-component-opacity","",S.opacity40),secondaryBorderColor:O.extend("--ft-button-secondary-border-color","",$.borderActionPrimary),neutralBackgroundColor:O.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:O.extend("--ft-button-neutral-icon-color","",$.contentGlobalSecondary),neutralColor:O.extend("--ft-button-neutral-color","",$.contentGlobalSecondary),neutralStateLayerColor:O.extend("--ft-button-neutral-state-layer-color","",$.contentGlobalSecondary),neutralHoverStateLayerOpacity:O.extend("--ft-button-neutral-hover-state-layer-opacity","",S.opacity8),neutralFocusStateLayerOpacity:O.extend("--ft-button-neutral-focus-state-layer-opacity","",S.opacity8),neutralActiveStateLayerOpacity:O.extend("--ft-button-neutral-active-state-layer-opacity","",S.opacity16),neutralDisabledComponentOpacity:O.extend("--ft-button-neutral-disabled-component-opacity","",S.opacity40)};O.extend("--ft-banner-icon-size","",S.iconSize5),O.create("--ft-banner-border-width","","SIZE","1px"),O.extend("--ft-banner-horizontal-padding","",S.spacing6),O.extend("--ft-banner-vertical-padding","",S.spacing6),O.extend("--ft-banner-horizontal-side-gap","",S.spacing6),O.extend("--ft-banner-horizontal-mobile-gap","",S.spacing4),O.extend("--ft-banner-vertical-mobile-gap","",S.spacing6),O.extend("--ft-banner-horizontal-middle-gap","",S.spacing20),O.extend("--ft-banner-info-background-color","",$.backgroundInfoSubtle),O.extend("--ft-banner-info-color","",$.contentInfoPrimary),O.extend("--ft-banner-info-icon-color","",$.contentInfoIconOnly),O.extend("--ft-breadcrumb-horizontal-gap","",S.spacing1),O.extend("--ft-breadcrumb-vertical-gap","",S.spacing2),O.extend("--ft-breadcrumb-current-element-color","",$.contentGlobalPrimary),O.extend("--ft-breadcrumb-icon-color","",$.contentGlobalSubtle),O.extend("--ft-page-header-horizontal-padding","",S.spacing12),O.extend("--ft-page-header-horizontal-gap","",S.spacing4),O.extend("--ft-page-header-vertical-gap","",S.spacing2),O.extend("--ft-page-header-classic-vertical-padding","",S.spacing6),O.extend("--ft-page-header-multiline-vertical-padding","",S.spacing4),O.extend("--ft-page-header-inline-vertical-padding","",S.spacing2),O.extend("--ft-page-header-background-color","",S.colorWhite),O.extend("--ft-page-header-bottom-border-color","",$.borderGlobalSubtle),O.extend("--ft-page-header-title-color","",$.contentGlobalPrimary),O.extend("--ft-page-header-subtitle-color","",$.contentGlobalSecondary),O.create("--ft-modal-small-container-width","","SIZE","600px"),O.create("--ft-modal-large-container-width","","SIZE","900px"),O.extend("--ft-modal-overlay-background-color","",S.colorGray700),O.extend("--ft-modal-overlay-opacity","",S.opacity40),O.extend("--ft-modal-shadow","",S.shadowElevation03),O.extend("--ft-modal-body-background-color","",S.colorWhite),O.extend("--ft-modal-body-color","",$.contentGlobalPrimary),O.extend("--ft-modal-body-horizontal-padding","",S.spacing6),O.extend("--ft-modal-body-vertical-padding","",S.spacing6),O.extend("--ft-modal-body-vertical-gap","",S.spacing6),O.extend("--ft-modal-container-margin","",S.spacing3),O.extend("--ft-modal-header-background-color","",$.backgroundGlobalOnSurface),O.extend("--ft-modal-header-border-color","",$.borderGlobalSubtle),O.extend("--ft-modal-header-color","",$.contentGlobalPrimary),O.extend("--ft-modal-header-trailing-icon-color","",$.contentGlobalSecondary),O.extend("--ft-modal-header-vertical-padding","",S.spacing1),O.extend("--ft-modal-header-right-padding","",S.spacing1),O.extend("--ft-modal-header-left-padding","",S.spacing6),O.extend("--ft-modal-header-gap","",S.spacing2),O.create("--ft-modal-header-border-bottom","","SIZE","1px"),O.extend("--ft-modal-border-radius","",S.borderRadiusM),O.extend("--ft-drawer-overlay-opacity","",S.opacity40),O.extend("--ft-drawer-shadow","",S.shadowElevation03),O.extend("--ft-drawer-body-color","",$.contentGlobalPrimary),O.extend("--ft-drawer-body-horizontal-padding","",S.spacing6),O.extend("--ft-drawer-body-vertical-padding","",S.spacing6),O.extend("--ft-drawer-body-gap","",S.spacing6),O.extend("--ft-drawer-body-background-color","",S.colorWhite),O.extend("--ft-drawer-header-background-color","",$.backgroundGlobalOnSurface),O.extend("--ft-drawer-header-border-color","",$.borderGlobalSubtle),O.extend("--ft-drawer-header-color","",$.contentGlobalPrimary),O.extend("--ft-drawer-header-trailing-icon-color","",$.contentGlobalSecondary),O.create("--ft-drawer-header-height","","SIZE","50px"),O.extend("--ft-drawer-header-horizontal-padding","",S.spacing2),O.create("--ft-drawer-header-border-width","","SIZE","1px"),O.extend("--ft-drawer-header-gap","",S.spacing3),O.extend("--ft-drawer-buttons-bar-background-color","",$.backgroundGlobalOnSurface),O.extend("--ft-drawer-buttons-bar-border-color","",$.borderGlobalSubtle),O.extend("--ft-drawer-buttons-bar-color","",$.contentGlobalPrimary),O.extend("--ft-drawer-buttons-bar-horizontal-padding","",S.spacing4),O.extend("--ft-drawer-buttons-bar-vertical-padding","",S.spacing4),O.extend("--ft-drawer-buttons-bar-gap","",S.spacing3),O.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),O.create("--ft-drawer-container-width","","SIZE","66%"),O.create("--ft-drawer-container-min-width","","SIZE","500px"),O.create("--ft-drawer-container-max-width","","SIZE","1000px"),O.create("--ft-drawer-container-height","","SIZE","100%"),O.extend("--ft-drawer-overlay-background-color","",S.colorGray700),O.extend("--ft-text-input-field-horizontal-padding","",S.spacing4),O.extend("--ft-text-input-field-horizontal-gap","",S.spacing3),O.extend("--ft-text-input-field-vertical-gap","",S.spacing05),O.extend("--ft-text-input-field-icon-size","",S.iconSize3),O.create("--ft-text-input-field-height","","SIZE","50px"),O.extend("--ft-text-input-helper-horizontal-padding","",S.spacing4),O.extend("--ft-text-input-helper-horizontal-gap","",S.spacing1),O.extend("--ft-text-input-helper-icon-size","",S.iconSize2),O.extend("--ft-text-input-border-radius","",S.borderRadiusM),O.extend("--ft-text-input-background-color","",S.colorWhite),O.extend("--ft-text-input-content-value-color","",$.contentGlobalPrimary),O.extend("--ft-text-input-trailing-icon-color","",$.contentGlobalSubtle),O.extend("--ft-text-input-label-color","",$.contentGlobalSubtle),O.extend("--ft-text-input-default-border-color","",$.borderInputPrimary),O.extend("--ft-text-input-default-helper-text-color","",$.contentGlobalSubtle),O.create("--ft-text-input-default-border-width","","SIZE","1px"),O.create("--ft-text-input-error-border-width","","SIZE","2px"),O.extend("--ft-text-input-error-border-color","",$.borderErrorPrimary),O.extend("--ft-text-input-error-helper-text-color","",$.contentErrorPrimary),O.extend("--ft-text-input-error-helper-icon-color","",$.contentErrorIconOnly),O.create("--ft-text-input-warning-border-width","","SIZE","2px"),O.create("--ft-text-input-focus-outline-width","","SIZE","2px"),O.extend("--ft-text-input-focus-focus-ring-color","",$.borderActionFocusRing),O.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),O.extend("--ft-text-input-disabled-component-opacity","",S.opacity40),O.extend("--ft-text-area-background-color","",S.colorWhite),O.extend("--ft-text-area-content-value-color","",$.contentGlobalPrimary),O.extend("--ft-text-area-label-color","",$.contentGlobalSubtle),O.extend("--ft-text-area-default-border-color","",$.borderInputPrimary),O.extend("--ft-text-area-default-helper-text-color","",$.contentGlobalSubtle),O.create("--ft-text-area-default-border-width","","SIZE","1px"),O.create("--ft-text-area-error-border-width","","SIZE","2px"),O.extend("--ft-text-area-error-border-color","",$.borderErrorPrimary),O.extend("--ft-text-area-error-helper-text-color","",$.contentErrorPrimary),O.extend("--ft-text-area-error-helper-icon-color","",$.contentErrorIconOnly),O.extend("--ft-text-area-focus-focus-ring-color","",$.borderActionFocusRing),O.create("--ft-text-area-focus-outline-width","","SIZE","2px"),O.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),O.extend("--ft-text-area-disabled-component-opacity","",S.opacity40),O.extend("--ft-text-area-field-horizontal-left-padding","",S.spacing4),O.extend("--ft-text-area-field-horizontal-gap","",S.spacing3),O.extend("--ft-text-area-field-vertical-gap","",S.spacing05),O.create("--ft-text-area-field-min-height","","SIZE","64px"),O.extend("--ft-text-area-helper-horizontal-padding","",S.spacing4),O.extend("--ft-text-area-helper-horizontal-gap","",S.spacing1),O.extend("--ft-text-area-helper-icon-size","",S.iconSize2),O.extend("--ft-text-area-border-radius","",S.borderRadiusM),O.create("--ft-floating-menu-height","","SIZE","50px"),O.extend("--ft-floating-menu-horizontal-padding","",S.spacing4),O.extend("--ft-floating-menu-off-icon-color","",$.contentGlobalPrimary),O.extend("--ft-floating-menu-off-color","",$.contentGlobalPrimary),O.extend("--ft-floating-menu-on-color","",$.contentActionPrimary),O.extend("--ft-floating-menu-on-state-layer-color","",$.contentActionPrimary),O.extend("--ft-floating-menu-gap","",S.spacing3),O.extend("--ft-floating-menu-focus-focus-ring-color","",$.borderActionFocusRing),O.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),O.extend("--ft-floating-menu-focus-state-layer-opacity","",S.opacity8),O.extend("--ft-floating-menu-hover-state-layer-opacity","",S.opacity8),O.extend("--ft-floating-menu-active-state-layer-opacity","",S.opacity16),O.extend("--ft-floating-menu-disabled-component-opacity","",S.opacity40),O.extend("--ft-floating-menu-icon-size","",S.iconSize3),O.extend("--ft-floating-menu-background-color","",$.backgroundGlobalOnSurface),O.extend("--ft-combobox-single-select-field-horizontal-padding","",S.spacing4),O.extend("--ft-combobox-single-select-field-horizontal-gap","",S.spacing3),O.extend("--ft-combobox-single-select-field-vertical-gap","",S.spacing05),O.extend("--ft-combobox-single-select-field-icon-size","",S.iconSize3),O.create("--ft-combobox-single-select-field-height","","SIZE","50px"),O.extend("--ft-combobox-single-select-helper-horizontal-padding","",S.spacing4),O.extend("--ft-combobox-single-select-helper-horizontal-gap","",S.spacing1),O.extend("--ft-combobox-single-select-helper-vertical-gap","",S.spacing1),O.extend("--ft-combobox-single-select-helper-icon-size","",S.iconSize2),O.extend("--ft-combobox-single-select-menu-vertical-gap","",S.spacing2),O.extend("--ft-combobox-single-select-border-radius","",S.borderRadiusM),O.extend("--ft-combobox-single-select-background-color","",S.colorWhite),O.extend("--ft-combobox-single-select-label-color","",$.contentGlobalSubtle),O.extend("--ft-combobox-single-select-content-value-color","",$.contentGlobalPrimary),O.extend("--ft-combobox-single-select-trailing-icon-color","",$.contentGlobalSubtle),O.extend("--ft-combobox-single-select-default-border-color","",$.borderInputPrimary),O.extend("--ft-combobox-single-select-default-helper-text-color","",$.contentGlobalSubtle),O.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),O.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),O.extend("--ft-combobox-single-select-error-border-color","",$.borderErrorPrimary),O.extend("--ft-combobox-single-select-error-helper-text-color","",$.contentErrorPrimary),O.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),O.extend("--ft-combobox-single-select-warning-border-color","",$.borderWarningPrimary),O.extend("--ft-combobox-single-select-warning-helper-text-color","",$.contentWarningPrimary),O.extend("--ft-combobox-single-select-warning-helper-icon-color","",$.contentWarningIconOnly),O.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),O.extend("--ft-combobox-single-select-focus-focus-ring-color","",$.borderActionFocusRing),O.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),O.extend("--ft-combobox-single-select-disabled-component-opacity","",S.opacity40),O.extend("--ft-combobox-multi-select-background-color","",S.colorWhite),O.extend("--ft-combobox-multi-select-label-color","",$.contentGlobalSubtle),O.extend("--ft-combobox-multi-select-trailing-icon-color","",$.contentGlobalSubtle),O.extend("--ft-combobox-multi-select-default-border-color","",$.borderInputPrimary),O.extend("--ft-combobox-multi-select-default-helper-text-color","",$.contentGlobalSubtle),O.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),O.extend("--ft-combobox-multi-select-error-border-color","",$.borderErrorPrimary),O.extend("--ft-combobox-multi-select-error-helper-text-color","",$.contentErrorPrimary),O.extend("--ft-combobox-multi-select-error-helper-icon","",$.contentErrorIconOnly),O.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),O.extend("--ft-combobox-multi-select-warning-border-color","",$.borderWarningPrimary),O.extend("--ft-combobox-multi-select-warning-helper-text-color","",$.contentWarningPrimary),O.extend("--ft-combobox-multi-select-warning-helper-icon-color","",$.contentWarningIconOnly),O.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),O.extend("--ft-combobox-multi-select-focus-focus-ring-color","",$.borderActionFocusRing),O.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),O.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),O.extend("--ft-combobox-multi-select-disabled-component-opacity","",S.opacity40),O.extend("--ft-combobox-multi-select-helper-horizontal-padding","",S.spacing4),O.extend("--ft-combobox-multi-select-helper-horizontal-gap","",S.spacing1),O.extend("--ft-combobox-multi-select-helper-vertical-gap","",S.spacing1),O.extend("--ft-combobox-multi-select-helper-icon-size","",S.iconSize2),O.extend("--ft-combobox-multi-select-field-horizontal-padding","",S.spacing4),O.extend("--ft-combobox-multi-select-field-horizontal-gap","",S.spacing3),O.extend("--ft-combobox-multi-select-field-vertical-gap","",S.spacing05),O.extend("--ft-combobox-multi-select-field-icon-size","",S.iconSize3),O.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),O.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",S.spacing1),O.extend("--ft-combobox-multi-select-content-values-vertical-gap","",S.spacing1),O.extend("--ft-combobox-multi-select-border-radius","",S.borderRadiusM),O.extend("--ft-popover-background-color","",$.backgroundGlobalOnSurface),O.extend("--ft-popover-horizontal-padding","",S.spacing6),O.extend("--ft-popover-vertical-padding","",S.spacing6),O.extend("--ft-popover-icon-color","",$.contentGlobalSecondary),O.extend("--ft-popover-icon-size","",S.iconSize2),O.extend("--ft-popover-title-color","",$.contentGlobalPrimary),O.extend("--ft-popover-body-color","",$.contentGlobalSecondary),O.extend("--ft-popover-link-color","",$.contentActionPrimary),O.extend("--ft-popover-gap","",S.spacing3),O.extend("--ft-popover-border-radius","",S.borderRadiusM),O.extend("--ft-popover-shadow","",S.shadowElevation02),O.extend("--ft-tabs-top-left-border-radius","",S.borderRadiusS),O.extend("--ft-tabs-top-right-border-radius","",S.borderRadiusS),O.extend("--ft-tabs-label-horizontal-padding","",S.spacing4),O.extend("--ft-tabs-label-vertical-padding","",S.spacing3),O.extend("--ft-tabs-label-gap","",S.spacing1),O.extend("--ft-tabs-off-hover-state-layer-opacity","",S.opacity8),O.extend("--ft-tabs-off-focus-state-layer-opacity","",S.opacity8),O.extend("--ft-tabs-off-active-state-layer-opacity","",S.opacity16),O.extend("--ft-tabs-off-disabled-component-opacity","",S.opacity40),O.extend("--ft-tabs-off-color","",$.contentGlobalSubtle),O.extend("--ft-tabs-off-state-layer-color","",$.contentGlobalSubtle),O.extend("--ft-tabs-on-hover-state-layer-opacity","",S.opacity8),O.extend("--ft-tabs-on-focus-state-layer-opacity","",S.opacity8),O.extend("--ft-tabs-on-active-state-layer-opacity","",S.opacity16),O.extend("--ft-tabs-on-disabled-component-opacity","",S.opacity40),O.extend("--ft-tabs-on-color","",$.contentActionPrimary),O.extend("--ft-tabs-on-state-layer-color","",$.contentActionPrimary),O.extend("--ft-tabs-icon-horizontal-padding","",S.spacing1),O.extend("--ft-tabs-icon-vertical-padding","",S.spacing4),O.create("--ft-tabs-focus-outline-width","","SIZE","2px"),O.extend("--ft-tabs-focus-focus-ring-color","",$.borderActionFocusRing),O.extend("--ft-collapsible-hover-state-layer-opacity","",S.opacity8),O.extend("--ft-collapsible-focus-state-layer-opacity","",S.opacity8),O.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),O.extend("--ft-collapsible-focus-focus-ring-color","",$.borderActionFocusRing),O.extend("--ft-collapsible-active-state-layer-opacity","",S.opacity16),O.extend("--ft-collapsible-disabled-component-opacity","",S.opacity40),O.extend("--ft-collapsible-horizontal-padding","",S.spacing4),O.extend("--ft-collapsible-vertical-padding","",S.spacing3),O.extend("--ft-collapsible-color","",$.contentGlobalPrimary),O.extend("--ft-collapsible-state-layer-color","",$.contentGlobalPrimary),O.extend("--ft-collapsible-background-color","",$.backgroundGlobalOnSurface),O.extend("--ft-collapsible-border-color","",$.borderGlobalSubtle),O.extend("--ft-collapsible-icon-size","",S.iconSize3),O.extend("--ft-switch-group-horizontal-padding","",S.spacing1),O.extend("--ft-switch-group-vertical-padding","",S.spacing1),O.extend("--ft-switch-group-gap","",S.spacing1),O.extend("--ft-switch-group-background-color","",$.backgroundGlobalSurface),O.extend("--ft-switch-group-border-color","",$.borderGlobalSubtle),O.create("--ft-switch-group-border-radius","","SIZE","6px"),O.extend("--ft-switch-label-horizontal-padding","",S.spacing2),O.extend("--ft-switch-label-vertical-padding","",S.spacing1),O.extend("--ft-switch-off-hover-state-layer-opacity","",S.opacity8),O.extend("--ft-switch-off-focus-state-layer-opacity","",S.opacity8),O.extend("--ft-switch-off-active-state-layer-opacity","",S.opacity16),O.extend("--ft-switch-off-disabled-component-opacity","",S.opacity40),O.extend("--ft-switch-off-color","",$.contentGlobalSubtle),O.extend("--ft-switch-off-state-layer-color","",$.contentGlobalSubtle),O.extend("--ft-switch-on-hover-state-layer-opacity","",S.opacity8),O.extend("--ft-switch-on-focus-state-layer-opacity","",S.opacity8),O.extend("--ft-switch-on-active-state-layer-opacity","",S.opacity16),O.extend("--ft-switch-on-disabled-component-opacity","",S.opacity40),O.extend("--ft-switch-on-color","",$.contentActionPrimary),O.extend("--ft-switch-on-state-layer-color","",$.contentActionPrimary),O.extend("--ft-switch-icon-horizontal-padding","",S.spacing1),O.extend("--ft-switch-icon-vertical-padding","",S.spacing1),O.create("--ft-switch-focus-outline-width","","SIZE","2px"),O.extend("--ft-switch-focus-focus-ring-color","",$.borderActionFocusRing),O.extend("--ft-switch-option-border-radius","",S.borderRadiusS),O.extend("--ft-chart-1-light","for area color charts",S.colorBrand40),O.extend("--ft-chart-1-base","for line charts",S.colorBrand0),O.extend("--ft-chart-2-light","for area color charts",S.colorYellow60),O.extend("--ft-chart-2-base","for line charts",S.colorYellow100),O.extend("--ft-chart-3-light","",S.colorUltramarine40),O.extend("--ft-chart-3-base","",S.colorUltramarine70),O.extend("--ft-chart-4-light","",S.colorCyan50),O.extend("--ft-chart-4-base","",S.colorCyan100),O.extend("--ft-chart-5-light","",S.colorRed40),O.extend("--ft-chart-5-base","",S.colorRed60),O.extend("--ft-chart-6-light","",S.colorGreen40),O.extend("--ft-chart-6-base","",S.colorGreen70),O.extend("--ft-chart-7-light","",S.colorOrange70),O.extend("--ft-chart-7-base","",S.colorOrange100),O.extend("--ft-chart-8-light","",S.colorAvocado70),O.extend("--ft-chart-8-base","",S.colorAvocado200),O.extend("--ft-chart-9-light","",S.colorBrown50),O.extend("--ft-chart-9-base","",S.colorBrown200),O.extend("--ft-chart-10-light","",S.colorGray50),O.extend("--ft-chart-10-base","",S.colorGray80),O.extend("--ft-chart-monochrome-10","",S.colorBrand10),O.extend("--ft-chart-monochrome-20","",S.colorBrand20),O.extend("--ft-chart-monochrome-30","",S.colorBrand40),O.extend("--ft-chart-monochrome-40","",S.colorBrand60),O.extend("--ft-chart-monochrome-50","",S.colorBrand0),O.extend("--ft-chart-monochrome-60","",S.colorBrand200),O.extend("--ft-chip-large-horizontal-padding","",S.spacing4),O.extend("--ft-chip-large-vertical-padding","",S.spacing2),O.extend("--ft-chip-large-gap","",S.spacing1),O.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-large-border-radius","",S.borderRadiusPill),O.create("--ft-chip-large-border-width","","SIZE","1px"),O.extend("--ft-chip-large-icon-size","",S.iconSize3),O.extend("--ft-chip-medium-horizontal-padding","",S.spacing3),O.extend("--ft-chip-medium-vertical-padding","",S.spacing1),O.extend("--ft-chip-medium-gap","",S.spacing1),O.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-medium-border-radius","",S.borderRadiusPill),O.create("--ft-chip-medium-border-width","","SIZE","1px"),O.extend("--ft-chip-medium-icon-size","",S.iconSize2),O.extend("--ft-chip-small-horizontal-padding","",S.spacing2),O.extend("--ft-chip-small-vertical-padding","",S.spacing05),O.extend("--ft-chip-small-gap","",S.spacing1),O.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-small-border-radius","",S.borderRadiusPill),O.create("--ft-chip-small-border-width","","SIZE","1px"),O.extend("--ft-chip-small-icon-size","",S.iconSize1),O.extend("--ft-chip-neutral-background-color","",$.backgroundGlobalOnSurface),O.extend("--ft-chip-neutral-color","",$.contentGlobalPrimary),O.extend("--ft-chip-neutral-icon-color","",$.contentGlobalPrimary),O.extend("--ft-chip-neutral-border-color","",$.borderGlobalSubtle),O.extend("--ft-chip-info-background-color","",$.backgroundInfoSubtle),O.extend("--ft-chip-info-color","",$.contentInfoPrimary),O.extend("--ft-chip-info-icon-color","",$.contentInfoIconOnly),O.extend("--ft-chip-info-border-color","",$.borderInfoSubtle),O.extend("--ft-chip-success-background-color","",$.backgroundSuccessSubtle),O.extend("--ft-chip-success-color","",$.contentSuccessPrimary),O.extend("--ft-chip-success-icon-color","",$.contentSuccessIconOnly),O.extend("--ft-chip-success-border-color","",$.borderSuccessSubtle),O.extend("--ft-chip-warning-background-color","",$.backgroundWarningSubtle),O.extend("--ft-chip-warning-color","",$.contentWarningPrimary),O.extend("--ft-chip-warning-icon-color","",$.contentWarningIconOnly),O.extend("--ft-chip-warning-border-color","",$.borderWarningSubtle),O.extend("--ft-chip-error-background-color","",$.backgroundErrorSubtle),O.extend("--ft-chip-error-color","",$.contentErrorPrimary),O.extend("--ft-chip-error-icon-color","",$.contentErrorIconOnly),O.extend("--ft-chip-error-border-color","",$.borderErrorSubtle),O.extend("--ft-border-info-border-color","",$.borderInfoSubtle),O.create("--ft-notice-border-width","","SIZE","1px"),O.extend("--ft-notice-horizontal-padding","",S.spacing2),O.extend("--ft-notice-vertical-padding","",S.spacing1),O.extend("--ft-notice-border-radius","",S.borderRadiusS),O.extend("--ft-notice-gap","",S.spacing2),O.extend("--ft-notice-icon-size","",S.iconSize3),O.extend("--ft-notice-info-background-color","",$.backgroundInfoSubtle),O.extend("--ft-notice-info-border-color","",$.borderInfoSubtle),O.extend("--ft-notice-info-color","",$.contentInfoPrimary),O.extend("--ft-notice-info-icon-color","",$.contentInfoIconOnly),O.extend("--ft-notice-warning-background-color","",$.backgroundWarningSubtle),O.extend("--ft-notice-warning-border-color","",$.borderWarningSubtle),O.extend("--ft-notice-warning-color","",$.contentWarningPrimary),O.extend("--ft-notice-warning-icon-color","",$.contentWarningIconOnly),O.extend("--ft-notice-error-background-color","",$.backgroundErrorSubtle),O.extend("--ft-notice-error-border-color","",$.borderErrorSubtle),O.extend("--ft-notice-error-color","",$.contentErrorPrimary),O.extend("--ft-notice-error-icon-color","",$.contentErrorIconOnly),O.extend("--ft-notice-success-background-color","",$.backgroundSuccessSubtle),O.extend("--ft-notice-success-border-color","",$.borderSuccessSubtle),O.extend("--ft-notice-success-color","",$.contentSuccessPrimary),O.extend("--ft-notice-success-icon-color","",$.contentSuccessIconOnly),O.extend("--ft-checkbox-color","",$.contentGlobalPrimary),O.extend("--ft-checkbox-checked-background-color","",$.contentActionPrimary),O.extend("--ft-checkbox-checked-state-layer-color","",$.contentActionPrimary),O.extend("--ft-checkbox-checked-icon-color","",$.contentGlobalOnColor),O.extend("--ft-checkbox-checked-hover-state-layer-opacity","",S.opacity16),O.extend("--ft-checkbox-checked-focus-state-layer-opacity","",S.opacity16),O.extend("--ft-checkbox-checked-active-state-layer-opacity","",S.opacity24),O.extend("--ft-checkbox-checked-disabled-component-opacity","",S.opacity40),O.extend("--ft-checkbox-unchecked-border-color","",S.colorGray80),O.extend("--ft-checkbox-unchecked-state-layer-color","",S.colorGray80),O.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",S.opacity16),O.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",S.opacity16),O.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",S.opacity24),O.extend("--ft-checkbox-unchecked-disabled-component-opacity","",S.opacity40),O.extend("--ft-checkbox-focus-focus-ring-color","",$.borderActionFocusRing),O.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),O.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),O.extend("--ft-checkbox-gap","",S.spacing3),O.extend("--ft-toggle-off-hover-state-layer-opacity","",S.opacity16),O.extend("--ft-toggle-off-focus-state-layer-opacity","",S.opacity16),O.extend("--ft-toggle-off-active-state-layer-opacity","",S.opacity24),O.extend("--ft-toggle-off-disabled-component-opacity","",S.opacity40),O.extend("--ft-toggle-off-background-color","",$.contentGlobalSubtle),O.extend("--ft-toggle-off-icon-color","",$.contentGlobalSubtle),O.extend("--ft-toggle-off-state-layer-color","",$.contentGlobalSubtle),O.extend("--ft-toggle-on-hover-state-layer-opacity","",S.opacity16),O.extend("--ft-toggle-on-focus-state-layer-opacity","",S.opacity16),O.extend("--ft-toggle-on-active-state-layer-opacity","",S.opacity24),O.extend("--ft-toggle-on-disabled-component-opacity","",S.opacity40),O.extend("--ft-toggle-on-background-color","",$.contentActionPrimary),O.extend("--ft-toggle-on-state-layer-color","",$.contentActionPrimary),O.extend("--ft-toggle-on-icon-color","",$.contentActionPrimary),O.extend("--ft-toggle-color","",$.contentGlobalPrimary),O.extend("--ft-toggle-focus-focus-ring-color","",$.borderActionFocusRing),O.extend("--ft-toggle-gap","",S.spacing3),O.extend("--ft-radio-color","",$.contentGlobalPrimary),O.extend("--ft-radio-selected-radio-color","",$.contentActionPrimary),O.extend("--ft-radio-selected-state-layer-color","",$.contentActionPrimary),O.extend("--ft-radio-selected-hover-state-layer-opacity","",S.opacity16),O.extend("--ft-radio-selected-focus-state-layer-opacity","",S.opacity16),O.extend("--ft-radio-selected-active-state-layer-opacity","",S.opacity24),O.extend("--ft-radio-selected-disabled-component-opacity","",S.opacity40),O.extend("--ft-radio-unselected-state-layer-color","",$.borderInputPrimary),O.extend("--ft-radio-unselected-border-color","",$.borderInputPrimary),O.extend("--ft-radio-unselected-hover-state-layer-opacity","",S.opacity16),O.extend("--ft-radio-unselected-focus-state-layer-opacity","",S.opacity16),O.extend("--ft-radio-unselected-active-state-layer-opacity","",S.opacity24),O.extend("--ft-radio-unselected-disabled-component-opacity","",S.opacity40),O.extend("--ft-radio-focus-focus-ring-color","",$.borderActionFocusRing),O.create("--ft-radio-focus-outline-offset","","SIZE","3px"),O.create("--ft-radio-focus-outline-width","","SIZE","2px"),O.extend("--ft-radio-gap","",S.spacing3),O.extend("--ft-notification-icon-size","",S.iconSize4),O.extend("--ft-notification-horizontal-padding","",S.spacing4),O.extend("--ft-notification-vertical-padding","",S.spacing4),O.extend("--ft-notification-info-background-color","",$.backgroundInfoSubtle),O.extend("--ft-notification-info-color","",$.contentInfoPrimary),O.extend("--ft-notification-info-icon-color","",$.contentInfoIconOnly),O.extend("--ft-notification-info-border-color","",$.borderInfoSubtle),O.extend("--ft-notification-success-background-color","",$.backgroundSuccessSubtle),O.extend("--ft-notification-success-color","",$.contentSuccessPrimary),O.extend("--ft-notification-success-icon-color","",$.contentSuccessIconOnly),O.extend("--ft-notification-success-border-color","",$.borderSuccessSubtle),O.extend("--ft-notification-warning-background-color","",$.backgroundWarningSubtle),O.extend("--ft-notification-warning-color","",$.contentWarningPrimary),O.extend("--ft-notification-warning-icon-color","",$.contentWarningIconOnly),O.extend("--ft-notification-warning-border-color","",$.borderWarningSubtle),O.extend("--ft-notification-error-background-color","",$.backgroundErrorSubtle),O.extend("--ft-notification-error-color","",$.contentErrorPrimary),O.extend("--ft-notification-error-icon-color","",$.contentErrorIconOnly),O.extend("--ft-notification-error-border-color","",$.borderErrorSubtle),O.extend("--ft-notification-border-radius","",S.borderRadiusPill),O.create("--ft-notification-border-width","","SIZE","1px"),O.extend("--ft-notification-leading-gap","",S.spacing2),O.extend("--ft-notification-trailing-gap","",S.spacing8),O.extend("--ft-tooltip-horizontal-padding","",S.spacing2),O.extend("--ft-tooltip-vertical-padding","",S.spacing2),O.extend("--ft-tooltip-border-radius","",S.borderRadiusS),O.extend("--ft-tooltip-color","",$.contentGlobalOnColor),O.extend("--ft-tooltip-background-color","",$.contentGlobalPrimary),O.extend("--ft-tooltip-background-opacity","",S.opacity80),O.extend("--ft-tooltip-shadow","",S.shadowElevation03),O.create("--ft-tooltip-max-width","","SIZE","256px"),O.extend("--ft-tooltip-gap","",S.spacing05);const C=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.titleFont),k=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.contentFont),E={fontFamily:k,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},R={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-font-family","",C),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-font-size","",E.fontSize,"20px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",E.letterSpacing,"0.15px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-line-height","",E.lineHeight,"1.2"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",E.textTransform,"inherit")},U={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",C),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",E.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",E.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",E.textTransform,"inherit")},L=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",k),W=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",E.fontSize,"16px"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",E.fontWeight,"600"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",E.letterSpacing,"0.144px"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",E.lineHeight,"1.5"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",E.textTransform,"inherit"),_=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",k),Z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",E.fontSize,"14px"),F=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",E.fontWeight,"normal"),B=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",E.letterSpacing,"0.098px"),K=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",E.lineHeight,"1.7"),M=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",E.textTransform,"inherit"),P={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",E.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",E.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",E.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",E.textTransform,"inherit")},H=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",k),j=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",E.fontSize,"14px"),G=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",E.fontWeight,"normal"),V=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",E.letterSpacing,"0.252px"),Y=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",E.lineHeight,"1.4"),q=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",E.textTransform,"inherit"),X={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",E.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",E.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",E.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",E.textTransform,"inherit")},Q=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",k),J=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",E.fontSize,"10px"),tt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",E.fontWeight,"normal"),et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",E.letterSpacing,"0.33px"),ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",E.lineHeight,"1.6"),it=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",E.textTransform,"inherit"),rt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",k),nt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",E.fontSize,"10px"),at=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",E.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",E.letterSpacing,"1.5px"),lt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",E.lineHeight,"1.6"),ct=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",E.textTransform,"uppercase"),dt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",E.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",E.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height","",E.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",E.textTransform,"uppercase")},ft=o.css`
113
+ `;var qt=u(_()),b=u(S());var ue=u(_(),1),Re=o=>typeof o=="string"?(0,ue.unsafeCSS)(o):o,e=class{static create(t,r,i,n){let a=c=>Re(c??n),s=ue.css`var(${Re(t)}, ${a(n)})`;return s.name=t,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=c=>ue.css`var(${Re(t)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,r,i,n){let a=c=>i.get(c??n),s=ue.css`var(${Re(t)}, ${a(n)})`;return s.name=t,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=c=>ue.css`var(${Re(t)}, ${a(c)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(t,r){let i=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):Re(a??t.lastResortDefaultValue()),n=ue.css`var(${Re(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=r,n.defaultCssValue=i,n.get=a=>ue.css`var(${Re(t.name)}, ${i(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};var l={colorWhite:e.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:e.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:e.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:e.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:e.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:e.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:e.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:e.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:e.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:e.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:e.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:e.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:e.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:e.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:e.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:e.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:e.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:e.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:e.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:e.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:e.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:e.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:e.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:e.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:e.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:e.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:e.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:e.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:e.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:e.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:e.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:e.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:e.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:e.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:e.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:e.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:e.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:e.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:e.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:e.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:e.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:e.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:e.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:e.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:e.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:e.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:e.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:e.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:e.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:e.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:e.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:e.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:e.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:e.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:e.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:e.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:e.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:e.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:e.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:e.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:e.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:e.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:e.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:e.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:e.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:e.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:e.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:e.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:e.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:e.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:e.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:e.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:e.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:e.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:e.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:e.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:e.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:e.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:e.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:e.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:e.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:e.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:e.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:e.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:e.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:e.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:e.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:e.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:e.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:e.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:e.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:e.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:e.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:e.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:e.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:e.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:e.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:e.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:e.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:e.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:e.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:e.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:e.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:e.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:e.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:e.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:e.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:e.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:e.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:e.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:e.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:e.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:e.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:e.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:e.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:e.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:e.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:e.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:e.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:e.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:e.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:e.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:e.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:e.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:e.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:e.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:e.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:e.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:e.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:e.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:e.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:e.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:e.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:e.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:e.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:e.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:e.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:e.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:e.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:e.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:e.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:e.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:e.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:e.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:e.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:e.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:e.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:e.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:e.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:e.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:e.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:e.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:e.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:e.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:e.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:e.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:e.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:e.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:e.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:e.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:e.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:e.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:e.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:e.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:e.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:e.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:e.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:e.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:e.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:e.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:e.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:e.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:e.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:e.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:e.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:e.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:e.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:e.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:e.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:e.create("--ft-icon-size-6","","SIZE","48px"),opacity0:e.create("--ft-opacity-0","","NUMBER","0"),opacity8:e.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:e.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:e.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:e.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:e.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:e.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:e.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:e.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:e.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:e.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:e.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:e.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:e.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:e.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)")},Yi={fontFamily:e.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:e.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:e.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:e.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-display-textCase","","UNKNOWN","none")},qi={fontFamily:e.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:e.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:e.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:e.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Xi={fontFamily:e.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:e.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:e.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:e.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Qi={fontFamily:e.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:e.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:e.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:e.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Ji={fontFamily:e.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:e.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:e.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},tn={fontFamily:e.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:e.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},en={fontFamily:e.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:e.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},on={fontFamily:e.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:e.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},rn={fontFamily:e.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Ol={fontFamily:e.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:e.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:e.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},nn={fontFamily:e.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},an={fontFamily:e.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},sn={fontFamily:e.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},ln={fontFamily:e.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:e.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},cn={fontFamily:e.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},dn={fontFamily:e.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},pn={fontFamily:e.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:e.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},fn={fontFamily:e.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},un={fontFamily:e.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},hn={fontFamily:e.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:e.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},mn={fontFamily:e.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:e.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},gn={fontFamily:e.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:e.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},yn={fontFamily:e.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:e.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:e.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},bn={fontFamily:e.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:e.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},xn={fontFamily:e.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:e.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},vn={fontFamily:e.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:e.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:e.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Zo={display:Yi,"title-1":qi,"title-2":Xi,"title-3":Qi,"body-1-regular":Ji,"body-1-medium":tn,"body-1-semibold":en,"body-2-regular":on,"body-2-medium":rn,"body-2-medium-underline":Ol,"body-2-semibold":nn,"label-1-medium":an,"label-1-semibold":sn,"label-1-bold":ln,"label-2-medium":cn,"label-2-semibold":dn,"label-2-bold":pn,"caption-1-medium":fn,"caption-1-semibold":un,"caption-1-bold":hn,"caption-2-medium":mn,"caption-2-semibold":gn,"caption-2-bold":yn,"caption-3-medium":bn,"caption-3-semibold":xn,"caption-3-bold":vn};var d={backgroundActionPrimary:e.extend("--ft-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:e.extend("--ft-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:e.extend("--ft-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:e.extend("--ft-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:e.extend("--ft-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:e.extend("--ft-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:e.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:e.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:e.extend("--ft-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:e.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:e.extend("--ft-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:e.extend("--ft-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:e.extend("--ft-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:e.extend("--ft-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:e.extend("--ft-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:e.extend("--ft-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:e.extend("--ft-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:e.extend("--ft-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:e.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
114
+ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:e.extend("--ft-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:e.extend("--ft-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:e.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:e.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:e.extend("--ft-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:e.extend("--ft-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:e.extend("--ft-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:e.extend("--ft-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:e.extend("--ft-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:e.extend("--ft-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:e.extend("--ft-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:e.extend("--ft-border-global-primary","Used as border for element like input.",l.colorGray50),borderGlobalSubtle:e.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",l.colorGray30),borderInputPrimary:e.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80)};var v={largeHeight:e.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:e.extend("--ft-button-large-horizontal-padding","",l.spacing4),largeGap:e.extend("--ft-button-large-gap","",l.spacing2),largeBorderRadius:e.extend("--ft-button-large-border-radius","",l.borderRadiusS),largeIconSize:e.extend("--ft-button-large-icon-size","",l.iconSize3),largeBorderWidth:e.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:e.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:e.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:e.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:e.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:e.extend("--ft-button-small-horizontal-padding","",l.spacing3),smallGap:e.extend("--ft-button-small-gap","",l.spacing2),smallBorderRadius:e.extend("--ft-button-small-border-radius","",l.borderRadiusS),smallIconSize:e.extend("--ft-button-small-icon-size","",l.iconSize2),smallBorderWidth:e.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:e.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:e.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:e.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:e.extend("--ft-button-primary-background-color","",d.backgroundActionPrimary),primaryColor:e.extend("--ft-button-primary-color","",d.contentGlobalOnColor),primaryIconColor:e.extend("--ft-button-primary-icon-color","",d.contentGlobalOnColor),primaryStateLayerColor:e.extend("--ft-button-primary-state-layer-color","",d.contentGlobalOnColor),primaryHoverStateLayerOpacity:e.extend("--ft-button-primary-hover-state-layer-opacity","",l.opacity16),primaryFocusStateLayerOpacity:e.extend("--ft-button-primary-focus-state-layer-opacity","",l.opacity16),primaryActiveStateLayerOpacity:e.extend("--ft-button-primary-active-state-layer-opacity","",l.opacity24),primaryDisabledComponentOpacity:e.extend("--ft-button-primary-disabled-component-opacity","",l.opacity40),focusFocusRingColor:e.extend("--ft-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBackgroundColor:e.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:e.extend("--ft-button-tertiary-color","",d.contentActionPrimary),tertiaryIconColor:e.extend("--ft-button-tertiary-icon-color","",d.contentActionPrimary),tertiaryStateLayerColor:e.extend("--ft-button-tertiary-state-layer-color","",d.contentActionPrimary),tertiaryHoverStateLayerOpacity:e.extend("--ft-button-tertiary-hover-state-layer-opacity","",l.opacity8),tertiaryFocusStateLayerOpacity:e.extend("--ft-button-tertiary-focus-state-layer-opacity","",l.opacity8),tertiaryActiveStateLayerOpacity:e.extend("--ft-button-tertiary-active-state-layer-opacity","",l.opacity16),tertiaryDisabledComponentOpacity:e.extend("--ft-button-tertiary-disabled-component-opacity","",l.opacity40),secondaryBackgroundColor:e.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:e.extend("--ft-button-secondary-color","",d.contentActionPrimary),secondaryIconColor:e.extend("--ft-button-secondary-icon-color","",d.contentActionPrimary),secondaryStateLayerColor:e.extend("--ft-button-secondary-state-layer-color","",d.contentActionPrimary),secondaryHoverStateLayerOpacity:e.extend("--ft-button-secondary-hover-state-layer-opacity","",l.opacity8),secondaryFocusStateLayerOpacity:e.extend("--ft-button-secondary-focus-state-layer-opacity","",l.opacity8),secondaryActiveStateLayerOpacity:e.extend("--ft-button-secondary-active-state-layer-opacity","",l.opacity16),secondaryDisabledComponentOpacity:e.extend("--ft-button-secondary-disabled-component-opacity","",l.opacity40),secondaryBorderColor:e.extend("--ft-button-secondary-border-color","",d.borderActionPrimary),neutralBackgroundColor:e.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:e.extend("--ft-button-neutral-icon-color","",d.contentGlobalSecondary),neutralColor:e.extend("--ft-button-neutral-color","",d.contentGlobalSecondary),neutralStateLayerColor:e.extend("--ft-button-neutral-state-layer-color","",d.contentGlobalSecondary),neutralHoverStateLayerOpacity:e.extend("--ft-button-neutral-hover-state-layer-opacity","",l.opacity8),neutralFocusStateLayerOpacity:e.extend("--ft-button-neutral-focus-state-layer-opacity","",l.opacity8),neutralActiveStateLayerOpacity:e.extend("--ft-button-neutral-active-state-layer-opacity","",l.opacity16),neutralDisabledComponentOpacity:e.extend("--ft-button-neutral-disabled-component-opacity","",l.opacity40)};var Cc={iconSize:e.extend("--ft-banner-icon-size","",l.iconSize5),borderWidth:e.create("--ft-banner-border-width","","SIZE","1px"),horizontalPadding:e.extend("--ft-banner-horizontal-padding","",l.spacing6),verticalPadding:e.extend("--ft-banner-vertical-padding","",l.spacing6),horizontalSideGap:e.extend("--ft-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:e.extend("--ft-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:e.extend("--ft-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:e.extend("--ft-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:e.extend("--ft-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:e.extend("--ft-banner-info-color","",d.contentInfoPrimary),infoIconColor:e.extend("--ft-banner-info-icon-color","",d.contentInfoIconOnly)};var Ac={horizontalGap:e.extend("--ft-breadcrumb-horizontal-gap","",l.spacing1),verticalGap:e.extend("--ft-breadcrumb-vertical-gap","",l.spacing2),currentElementColor:e.extend("--ft-breadcrumb-current-element-color","",d.contentGlobalPrimary),iconColor:e.extend("--ft-breadcrumb-icon-color","",d.contentGlobalSubtle)};var Lc={horizontalPadding:e.extend("--ft-page-header-horizontal-padding","",l.spacing12),horizontalGap:e.extend("--ft-page-header-horizontal-gap","",l.spacing4),verticalGap:e.extend("--ft-page-header-vertical-gap","",l.spacing2),classicVerticalPadding:e.extend("--ft-page-header-classic-vertical-padding","",l.spacing6),multilineVerticalPadding:e.extend("--ft-page-header-multiline-vertical-padding","",l.spacing4),inlineVerticalPadding:e.extend("--ft-page-header-inline-vertical-padding","",l.spacing2),backgroundColor:e.extend("--ft-page-header-background-color","",l.colorWhite),bottomBorderColor:e.extend("--ft-page-header-bottom-border-color","",d.borderGlobalSubtle),titleColor:e.extend("--ft-page-header-title-color","",d.contentGlobalPrimary),subtitleColor:e.extend("--ft-page-header-subtitle-color","",d.contentGlobalSecondary)};var Bc={smallContainerWidth:e.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:e.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:e.extend("--ft-modal-overlay-background-color","",l.colorGray700),overlayOpacity:e.extend("--ft-modal-overlay-opacity","",l.opacity40),shadow:e.extend("--ft-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:e.extend("--ft-modal-body-background-color","",l.colorWhite),bodyColor:e.extend("--ft-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:e.extend("--ft-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:e.extend("--ft-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:e.extend("--ft-modal-body-vertical-gap","",l.spacing6),containerMargin:e.extend("--ft-modal-container-margin","",l.spacing3),headerBackgroundColor:e.extend("--ft-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:e.extend("--ft-modal-header-border-color","",d.borderGlobalSubtle),headerColor:e.extend("--ft-modal-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:e.extend("--ft-modal-header-trailing-icon-color","",d.contentGlobalSecondary),headerVerticalPadding:e.extend("--ft-modal-header-vertical-padding","",l.spacing1),headerRightPadding:e.extend("--ft-modal-header-right-padding","",l.spacing1),headerLeftPadding:e.extend("--ft-modal-header-left-padding","",l.spacing6),headerGap:e.extend("--ft-modal-header-gap","",l.spacing2),headerBorderBottom:e.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:e.extend("--ft-modal-border-radius","",l.borderRadiusM)};var Wc={overlayOpacity:e.extend("--ft-drawer-overlay-opacity","",l.opacity40),shadow:e.extend("--ft-drawer-shadow","",l.shadowElevation03),bodyColor:e.extend("--ft-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:e.extend("--ft-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:e.extend("--ft-drawer-body-vertical-padding","",l.spacing6),bodyGap:e.extend("--ft-drawer-body-gap","",l.spacing6),bodyBackgroundColor:e.extend("--ft-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:e.extend("--ft-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:e.extend("--ft-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:e.extend("--ft-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:e.extend("--ft-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:e.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:e.extend("--ft-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:e.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:e.extend("--ft-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:e.extend("--ft-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:e.extend("--ft-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:e.extend("--ft-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:e.extend("--ft-drawer-buttons-bar-horizontal-padding","",l.spacing4),buttonsBarVerticalPadding:e.extend("--ft-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:e.extend("--ft-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:e.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:e.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:e.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:e.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:e.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:e.extend("--ft-drawer-overlay-background-color","",l.colorGray700)};var Zc={fieldHorizontalPadding:e.extend("--ft-text-input-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:e.extend("--ft-text-input-field-horizontal-gap","",l.spacing3),fieldVerticalGap:e.extend("--ft-text-input-field-vertical-gap","",l.spacing05),fieldIconSize:e.extend("--ft-text-input-field-icon-size","",l.iconSize3),fieldHeight:e.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:e.extend("--ft-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:e.extend("--ft-text-input-helper-horizontal-gap","",l.spacing1),helperIconSize:e.extend("--ft-text-input-helper-icon-size","",l.iconSize2),borderRadius:e.extend("--ft-text-input-border-radius","",l.borderRadiusM),backgroundColor:e.extend("--ft-text-input-background-color","",l.colorWhite),contentValueColor:e.extend("--ft-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:e.extend("--ft-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:e.extend("--ft-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:e.extend("--ft-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:e.extend("--ft-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:e.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:e.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:e.extend("--ft-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:e.extend("--ft-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:e.extend("--ft-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderWidth:e.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:e.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:e.extend("--ft-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:e.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:e.extend("--ft-text-input-disabled-component-opacity","",l.opacity40)};var Qc={backgroundColor:e.extend("--ft-text-area-background-color","",l.colorWhite),contentValueColor:e.extend("--ft-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:e.extend("--ft-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:e.extend("--ft-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:e.extend("--ft-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:e.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:e.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:e.extend("--ft-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:e.extend("--ft-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:e.extend("--ft-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:e.extend("--ft-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:e.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:e.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:e.extend("--ft-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:e.extend("--ft-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:e.extend("--ft-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:e.extend("--ft-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:e.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:e.extend("--ft-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:e.extend("--ft-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:e.extend("--ft-text-area-helper-icon-size","",l.iconSize2),borderRadius:e.extend("--ft-text-area-border-radius","",l.borderRadiusM)};var rd={height:e.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:e.extend("--ft-floating-menu-horizontal-padding","",l.spacing4),offIconColor:e.extend("--ft-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:e.extend("--ft-floating-menu-off-color","",d.contentGlobalPrimary),onColor:e.extend("--ft-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:e.extend("--ft-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:e.extend("--ft-floating-menu-gap","",l.spacing3),focusFocusRingColor:e.extend("--ft-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:e.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:e.extend("--ft-floating-menu-focus-state-layer-opacity","",l.opacity8),hoverStateLayerOpacity:e.extend("--ft-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:e.extend("--ft-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:e.extend("--ft-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:e.extend("--ft-floating-menu-icon-size","",l.iconSize3),backgroundColor:e.extend("--ft-floating-menu-background-color","",d.backgroundGlobalOnSurface)};var ld={fieldHorizontalPadding:e.extend("--ft-combobox-single-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:e.extend("--ft-combobox-single-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:e.extend("--ft-combobox-single-select-field-vertical-gap","",l.spacing05),fieldIconSize:e.extend("--ft-combobox-single-select-field-icon-size","",l.iconSize3),fieldHeight:e.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:e.extend("--ft-combobox-single-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:e.extend("--ft-combobox-single-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:e.extend("--ft-combobox-single-select-helper-vertical-gap","",l.spacing1),helperIconSize:e.extend("--ft-combobox-single-select-helper-icon-size","",l.iconSize2),menuVerticalGap:e.extend("--ft-combobox-single-select-menu-vertical-gap","",l.spacing2),borderRadius:e.extend("--ft-combobox-single-select-border-radius","",l.borderRadiusM),backgroundColor:e.extend("--ft-combobox-single-select-background-color","",l.colorWhite),labelColor:e.extend("--ft-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:e.extend("--ft-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:e.extend("--ft-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:e.extend("--ft-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:e.extend("--ft-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:e.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:e.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:e.extend("--ft-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:e.extend("--ft-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:e.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:e.extend("--ft-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:e.extend("--ft-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:e.extend("--ft-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:e.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:e.extend("--ft-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:e.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:e.extend("--ft-combobox-single-select-disabled-component-opacity","",l.opacity40)};var ud={backgroundColor:e.extend("--ft-combobox-multi-select-background-color","",l.colorWhite),labelColor:e.extend("--ft-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:e.extend("--ft-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:e.extend("--ft-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:e.extend("--ft-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:e.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:e.extend("--ft-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:e.extend("--ft-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:e.extend("--ft-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:e.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:e.extend("--ft-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:e.extend("--ft-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:e.extend("--ft-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:e.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:e.extend("--ft-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:e.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:e.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:e.extend("--ft-combobox-multi-select-disabled-component-opacity","",l.opacity40),helperHorizontalPadding:e.extend("--ft-combobox-multi-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:e.extend("--ft-combobox-multi-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:e.extend("--ft-combobox-multi-select-helper-vertical-gap","",l.spacing1),helperIconSize:e.extend("--ft-combobox-multi-select-helper-icon-size","",l.iconSize2),fieldHorizontalPadding:e.extend("--ft-combobox-multi-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:e.extend("--ft-combobox-multi-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:e.extend("--ft-combobox-multi-select-field-vertical-gap","",l.spacing05),fieldIconSize:e.extend("--ft-combobox-multi-select-field-icon-size","",l.iconSize3),fieldMaxHeight:e.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:e.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",l.spacing1),contentValuesVerticalGap:e.extend("--ft-combobox-multi-select-content-values-vertical-gap","",l.spacing1),borderRadius:e.extend("--ft-combobox-multi-select-border-radius","",l.borderRadiusM)};var bd={backgroundColor:e.extend("--ft-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:e.extend("--ft-popover-horizontal-padding","",l.spacing6),verticalPadding:e.extend("--ft-popover-vertical-padding","",l.spacing6),iconColor:e.extend("--ft-popover-icon-color","",d.contentGlobalSecondary),iconSize:e.extend("--ft-popover-icon-size","",l.iconSize2),titleColor:e.extend("--ft-popover-title-color","",d.contentGlobalPrimary),bodyColor:e.extend("--ft-popover-body-color","",d.contentGlobalSecondary),linkColor:e.extend("--ft-popover-link-color","",d.contentActionPrimary),gap:e.extend("--ft-popover-gap","",l.spacing3),borderRadius:e.extend("--ft-popover-border-radius","",l.borderRadiusM),shadow:e.extend("--ft-popover-shadow","",l.shadowElevation02)};var Od={topLeftBorderRadius:e.extend("--ft-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:e.extend("--ft-tabs-top-right-border-radius","",l.borderRadiusS),labelHorizontalPadding:e.extend("--ft-tabs-label-horizontal-padding","",l.spacing4),labelVerticalPadding:e.extend("--ft-tabs-label-vertical-padding","",l.spacing3),labelGap:e.extend("--ft-tabs-label-gap","",l.spacing1),offHoverStateLayerOpacity:e.extend("--ft-tabs-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:e.extend("--ft-tabs-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:e.extend("--ft-tabs-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:e.extend("--ft-tabs-off-disabled-component-opacity","",l.opacity40),offColor:e.extend("--ft-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:e.extend("--ft-tabs-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:e.extend("--ft-tabs-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:e.extend("--ft-tabs-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:e.extend("--ft-tabs-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:e.extend("--ft-tabs-on-disabled-component-opacity","",l.opacity40),onColor:e.extend("--ft-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:e.extend("--ft-tabs-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:e.extend("--ft-tabs-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:e.extend("--ft-tabs-icon-vertical-padding","",l.spacing4),focusOutlineWidth:e.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:e.extend("--ft-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var Id={hoverStateLayerOpacity:e.extend("--ft-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:e.extend("--ft-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:e.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:e.extend("--ft-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:e.extend("--ft-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:e.extend("--ft-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:e.extend("--ft-collapsible-horizontal-padding","",l.spacing4),verticalPadding:e.extend("--ft-collapsible-vertical-padding","",l.spacing3),color:e.extend("--ft-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:e.extend("--ft-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:e.extend("--ft-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:e.extend("--ft-collapsible-border-color","",d.borderGlobalSubtle),iconSize:e.extend("--ft-collapsible-icon-size","",l.iconSize3)};var kd={groupHorizontalPadding:e.extend("--ft-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:e.extend("--ft-switch-group-vertical-padding","",l.spacing1),groupGap:e.extend("--ft-switch-group-gap","",l.spacing1),groupBackgroundColor:e.extend("--ft-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:e.extend("--ft-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:e.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:e.extend("--ft-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:e.extend("--ft-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:e.extend("--ft-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:e.extend("--ft-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:e.extend("--ft-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:e.extend("--ft-switch-off-disabled-component-opacity","",l.opacity40),offColor:e.extend("--ft-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:e.extend("--ft-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:e.extend("--ft-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:e.extend("--ft-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:e.extend("--ft-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:e.extend("--ft-switch-on-disabled-component-opacity","",l.opacity40),onColor:e.extend("--ft-switch-on-color","",d.contentActionPrimary),onStateLayerColor:e.extend("--ft-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:e.extend("--ft-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:e.extend("--ft-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:e.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:e.extend("--ft-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:e.extend("--ft-switch-option-border-radius","",l.borderRadiusS)};var Bd={color1Light:e.extend("--ft-chart-1-light","for area color charts",l.colorBrand40),color1Base:e.extend("--ft-chart-1-base","for line charts",l.colorBrand0),color2Light:e.extend("--ft-chart-2-light","for area color charts",l.colorYellow60),color2Base:e.extend("--ft-chart-2-base","for line charts",l.colorYellow100),color3Light:e.extend("--ft-chart-3-light","",l.colorUltramarine40),color3Base:e.extend("--ft-chart-3-base","",l.colorUltramarine70),color4Light:e.extend("--ft-chart-4-light","",l.colorCyan50),color4Base:e.extend("--ft-chart-4-base","",l.colorCyan100),color5Light:e.extend("--ft-chart-5-light","",l.colorRed40),color5Base:e.extend("--ft-chart-5-base","",l.colorRed60),color6Light:e.extend("--ft-chart-6-light","",l.colorGreen40),color6Base:e.extend("--ft-chart-6-base","",l.colorGreen70),color7Light:e.extend("--ft-chart-7-light","",l.colorOrange70),color7Base:e.extend("--ft-chart-7-base","",l.colorOrange100),color8Light:e.extend("--ft-chart-8-light","",l.colorAvocado70),color8Base:e.extend("--ft-chart-8-base","",l.colorAvocado200),color9Light:e.extend("--ft-chart-9-light","",l.colorBrown50),color9Base:e.extend("--ft-chart-9-base","",l.colorBrown200),color10Light:e.extend("--ft-chart-10-light","",l.colorGray50),color10Base:e.extend("--ft-chart-10-base","",l.colorGray80),monochrome10:e.extend("--ft-chart-monochrome-10","",l.colorBrand10),monochrome20:e.extend("--ft-chart-monochrome-20","",l.colorBrand20),monochrome30:e.extend("--ft-chart-monochrome-30","",l.colorBrand40),monochrome40:e.extend("--ft-chart-monochrome-40","",l.colorBrand60),monochrome50:e.extend("--ft-chart-monochrome-50","",l.colorBrand0),monochrome60:e.extend("--ft-chart-monochrome-60","",l.colorBrand200)};var Wd={largeHorizontalPadding:e.extend("--ft-chip-large-horizontal-padding","",l.spacing4),largeVerticalPadding:e.extend("--ft-chip-large-vertical-padding","",l.spacing2),largeGap:e.extend("--ft-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:e.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:e.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:e.extend("--ft-chip-large-border-radius","",l.borderRadiusPill),largeBorderWidth:e.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:e.extend("--ft-chip-large-icon-size","",l.iconSize3),mediumHorizontalPadding:e.extend("--ft-chip-medium-horizontal-padding","",l.spacing3),mediumVerticalPadding:e.extend("--ft-chip-medium-vertical-padding","",l.spacing1),mediumGap:e.extend("--ft-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:e.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:e.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:e.extend("--ft-chip-medium-border-radius","",l.borderRadiusPill),mediumBorderWidth:e.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:e.extend("--ft-chip-medium-icon-size","",l.iconSize2),smallHorizontalPadding:e.extend("--ft-chip-small-horizontal-padding","",l.spacing2),smallVerticalPadding:e.extend("--ft-chip-small-vertical-padding","",l.spacing05),smallGap:e.extend("--ft-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:e.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:e.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:e.extend("--ft-chip-small-border-radius","",l.borderRadiusPill),smallBorderWidth:e.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:e.extend("--ft-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:e.extend("--ft-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:e.extend("--ft-chip-neutral-color","",d.contentGlobalPrimary),neutralIconColor:e.extend("--ft-chip-neutral-icon-color","",d.contentGlobalPrimary),neutralBorderColor:e.extend("--ft-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:e.extend("--ft-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:e.extend("--ft-chip-info-color","",d.contentInfoPrimary),infoIconColor:e.extend("--ft-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:e.extend("--ft-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:e.extend("--ft-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:e.extend("--ft-chip-success-color","",d.contentSuccessPrimary),successIconColor:e.extend("--ft-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:e.extend("--ft-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:e.extend("--ft-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:e.extend("--ft-chip-warning-color","",d.contentWarningPrimary),warningIconColor:e.extend("--ft-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:e.extend("--ft-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:e.extend("--ft-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:e.extend("--ft-chip-error-color","",d.contentErrorPrimary),errorIconColor:e.extend("--ft-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:e.extend("--ft-chip-error-border-color","",d.borderErrorSubtle)};var Kd={infoBorderColor:e.extend("--ft-border-info-border-color","",d.borderInfoSubtle)};var Xd={borderWidth:e.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:e.extend("--ft-notice-horizontal-padding","",l.spacing2),verticalPadding:e.extend("--ft-notice-vertical-padding","",l.spacing1),borderRadius:e.extend("--ft-notice-border-radius","",l.borderRadiusS),gap:e.extend("--ft-notice-gap","",l.spacing2),iconSize:e.extend("--ft-notice-icon-size","",l.iconSize3),infoBackgroundColor:e.extend("--ft-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:e.extend("--ft-notice-info-border-color","",d.borderInfoSubtle),infoColor:e.extend("--ft-notice-info-color","",d.contentInfoPrimary),infoIconColor:e.extend("--ft-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:e.extend("--ft-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:e.extend("--ft-notice-warning-border-color","",d.borderWarningSubtle),warningColor:e.extend("--ft-notice-warning-color","",d.contentWarningPrimary),warningIconColor:e.extend("--ft-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:e.extend("--ft-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:e.extend("--ft-notice-error-border-color","",d.borderErrorSubtle),errorColor:e.extend("--ft-notice-error-color","",d.contentErrorPrimary),errorIconColor:e.extend("--ft-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:e.extend("--ft-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:e.extend("--ft-notice-success-border-color","",d.borderSuccessSubtle),successColor:e.extend("--ft-notice-success-color","",d.contentSuccessPrimary),successIconColor:e.extend("--ft-notice-success-icon-color","",d.contentSuccessIconOnly)};var op={color:e.extend("--ft-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:e.extend("--ft-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:e.extend("--ft-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:e.extend("--ft-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:e.extend("--ft-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:e.extend("--ft-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:e.extend("--ft-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:e.extend("--ft-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:e.extend("--ft-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:e.extend("--ft-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:e.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:e.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:e.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:e.extend("--ft-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:e.extend("--ft-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:e.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:e.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:e.extend("--ft-checkbox-gap","",l.spacing3)};var sp={offHoverStateLayerOpacity:e.extend("--ft-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:e.extend("--ft-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:e.extend("--ft-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:e.extend("--ft-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:e.extend("--ft-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:e.extend("--ft-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:e.extend("--ft-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:e.extend("--ft-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:e.extend("--ft-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:e.extend("--ft-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:e.extend("--ft-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:e.extend("--ft-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:e.extend("--ft-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:e.extend("--ft-toggle-on-icon-color","",d.contentActionPrimary),color:e.extend("--ft-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:e.extend("--ft-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:e.extend("--ft-toggle-gap","",l.spacing3)};var fp={color:e.extend("--ft-radio-color","",d.contentGlobalPrimary),selectedRadioColor:e.extend("--ft-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:e.extend("--ft-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:e.extend("--ft-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:e.extend("--ft-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:e.extend("--ft-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:e.extend("--ft-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:e.extend("--ft-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:e.extend("--ft-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:e.extend("--ft-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:e.extend("--ft-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:e.extend("--ft-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:e.extend("--ft-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:e.extend("--ft-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:e.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:e.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:e.extend("--ft-radio-gap","",l.spacing3)};var yp={iconSize:e.extend("--ft-notification-icon-size","",l.iconSize4),horizontalPadding:e.extend("--ft-notification-horizontal-padding","",l.spacing4),verticalPadding:e.extend("--ft-notification-vertical-padding","",l.spacing4),infoBackgroundColor:e.extend("--ft-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:e.extend("--ft-notification-info-color","",d.contentInfoPrimary),infoIconColor:e.extend("--ft-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:e.extend("--ft-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:e.extend("--ft-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:e.extend("--ft-notification-success-color","",d.contentSuccessPrimary),successIconColor:e.extend("--ft-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:e.extend("--ft-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:e.extend("--ft-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:e.extend("--ft-notification-warning-color","",d.contentWarningPrimary),warningIconColor:e.extend("--ft-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:e.extend("--ft-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:e.extend("--ft-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:e.extend("--ft-notification-error-color","",d.contentErrorPrimary),errorIconColor:e.extend("--ft-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:e.extend("--ft-notification-error-border-color","",d.borderErrorSubtle),borderRadius:e.extend("--ft-notification-border-radius","",l.borderRadiusPill),borderWidth:e.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:e.extend("--ft-notification-leading-gap","",l.spacing2),trailingGap:e.extend("--ft-notification-trailing-gap","",l.spacing8)};var Cp={horizontalPadding:e.extend("--ft-tooltip-horizontal-padding","",l.spacing2),verticalPadding:e.extend("--ft-tooltip-vertical-padding","",l.spacing2),borderRadius:e.extend("--ft-tooltip-border-radius","",l.borderRadiusS),color:e.extend("--ft-tooltip-color","",d.contentGlobalOnColor),backgroundColor:e.extend("--ft-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:e.extend("--ft-tooltip-background-opacity","",l.opacity80),shadow:e.extend("--ft-tooltip-shadow","",l.shadowElevation03),maxWidth:e.create("--ft-tooltip-max-width","","SIZE","256px"),gap:e.extend("--ft-tooltip-gap","",l.spacing05)};var jo=u(_());function Sn(o){let t=Zo[o];return jo.css`
115
+ .ft-typography--${(0,jo.unsafeCSS)(o)} {
116
+ font-family: ${t.fontFamily};
117
+ font-size: ${t.fontSize};
118
+ font-weight: ${t.fontWeight};
119
+ letter-spacing: ${t.letterSpacing};
120
+ line-height: ${t.lineHeight};
121
+ text-transform: ${t.textCase};
122
+ }
123
+ `}var Cn=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.titleFont),he=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.contentFont),C={fontFamily:he,fontSize:b.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:b.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:b.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:b.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:b.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ae={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Cn),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-font-size","",C.fontSize,"20px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",C.letterSpacing,"0.15px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-line-height","",C.lineHeight,"1.2"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",C.textTransform,"inherit")},Ie={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Cn),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",C.letterSpacing,"0.105px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",C.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",C.textTransform,"inherit")},to={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",C.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",C.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",C.letterSpacing,"0.144px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",C.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",C.textTransform,"inherit")},eo={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",C.letterSpacing,"0.098px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",C.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",C.textTransform,"inherit")},Yt={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",C.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",C.letterSpacing,"0.496px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",C.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",C.textTransform,"inherit")},oo={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",C.letterSpacing,"0.252px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",C.lineHeight,"1.4"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",C.textTransform,"inherit")},ee={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",C.fontSize,"12px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",C.letterSpacing,"0.396px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",C.lineHeight,"1.33"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",C.textTransform,"inherit")},ro={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",C.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",C.letterSpacing,"0.33px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",C.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",C.textTransform,"inherit")},io={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",C.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",C.letterSpacing,"1.5px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",C.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",C.textTransform,"uppercase")},Tt={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-button-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-button-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",C.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",C.letterSpacing,"1.246px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-button-line-height","",C.lineHeight,"1.15"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",C.textTransform,"uppercase")},On=qt.css`
114
124
  .ft-typography--title {
115
- font-family: ${R.fontFamily};
116
- font-size: ${R.fontSize};
117
- font-weight: ${R.fontWeight};
118
- letter-spacing: ${R.letterSpacing};
119
- line-height: ${R.lineHeight};
120
- text-transform: ${R.textTransform};
121
- }
122
- `,pt=o.css`
125
+ font-family: ${Ae.fontFamily};
126
+ font-size: ${Ae.fontSize};
127
+ font-weight: ${Ae.fontWeight};
128
+ letter-spacing: ${Ae.letterSpacing};
129
+ line-height: ${Ae.lineHeight};
130
+ text-transform: ${Ae.textTransform};
131
+ }
132
+ `,wn=qt.css`
123
133
  .ft-typography--title-dense {
124
- font-family: ${U.fontFamily};
125
- font-size: ${U.fontSize};
126
- font-weight: ${U.fontWeight};
127
- letter-spacing: ${U.letterSpacing};
128
- line-height: ${U.lineHeight};
129
- text-transform: ${U.textTransform};
130
- }
131
- `,ht=o.css`
134
+ font-family: ${Ie.fontFamily};
135
+ font-size: ${Ie.fontSize};
136
+ font-weight: ${Ie.fontWeight};
137
+ letter-spacing: ${Ie.letterSpacing};
138
+ line-height: ${Ie.lineHeight};
139
+ text-transform: ${Ie.textTransform};
140
+ }
141
+ `,En=qt.css`
132
142
  .ft-typography--subtitle1 {
133
- font-family: ${L};
134
- font-size: ${W};
135
- font-weight: ${z};
136
- letter-spacing: ${T};
137
- line-height: ${D};
138
- text-transform: ${A};
139
- }
140
- `,ut=o.css`
143
+ font-family: ${to.fontFamily};
144
+ font-size: ${to.fontSize};
145
+ font-weight: ${to.fontWeight};
146
+ letter-spacing: ${to.letterSpacing};
147
+ line-height: ${to.lineHeight};
148
+ text-transform: ${to.textTransform};
149
+ }
150
+ `,Rn=qt.css`
141
151
  .ft-typography--subtitle2 {
142
- font-family: ${_};
143
- font-size: ${Z};
144
- font-weight: ${F};
145
- letter-spacing: ${B};
146
- line-height: ${K};
147
- text-transform: ${M};
152
+ font-family: ${eo.fontFamily};
153
+ font-size: ${eo.fontSize};
154
+ font-weight: ${eo.fontWeight};
155
+ letter-spacing: ${eo.letterSpacing};
156
+ line-height: ${eo.lineHeight};
157
+ text-transform: ${eo.textTransform};
148
158
  }
149
159
 
150
- `,gt=o.css`
160
+ `,no=qt.css`
151
161
  .ft-typography--body1 {
152
- font-family: ${P.fontFamily};
153
- font-size: ${P.fontSize};
154
- font-weight: ${P.fontWeight};
155
- letter-spacing: ${P.letterSpacing};
156
- line-height: ${P.lineHeight};
157
- text-transform: ${P.textTransform};
158
- }
159
- `,bt=o.css`
162
+ font-family: ${Yt.fontFamily};
163
+ font-size: ${Yt.fontSize};
164
+ font-weight: ${Yt.fontWeight};
165
+ letter-spacing: ${Yt.letterSpacing};
166
+ line-height: ${Yt.lineHeight};
167
+ text-transform: ${Yt.textTransform};
168
+ }
169
+ `,An=qt.css`
160
170
  .ft-typography--body2 {
161
- font-family: ${H};
162
- font-size: ${j};
163
- font-weight: ${G};
164
- letter-spacing: ${V};
165
- line-height: ${Y};
166
- text-transform: ${q};
167
- }
168
- `,yt=o.css`
171
+ font-family: ${oo.fontFamily};
172
+ font-size: ${oo.fontSize};
173
+ font-weight: ${oo.fontWeight};
174
+ letter-spacing: ${oo.letterSpacing};
175
+ line-height: ${oo.lineHeight};
176
+ text-transform: ${oo.textTransform};
177
+ }
178
+ `,Yo=qt.css`
169
179
  .ft-typography--caption {
170
- font-family: ${X.fontFamily};
171
- font-size: ${X.fontSize};
172
- font-weight: ${X.fontWeight};
173
- letter-spacing: ${X.letterSpacing};
174
- line-height: ${X.lineHeight};
175
- text-transform: ${X.textTransform};
176
- }
177
- `,mt=o.css`
180
+ font-family: ${ee.fontFamily};
181
+ font-size: ${ee.fontSize};
182
+ font-weight: ${ee.fontWeight};
183
+ letter-spacing: ${ee.letterSpacing};
184
+ line-height: ${ee.lineHeight};
185
+ text-transform: ${ee.textTransform};
186
+ }
187
+ `,In=qt.css`
178
188
  .ft-typography--breadcrumb {
179
- font-family: ${Q};
180
- font-size: ${J};
181
- font-weight: ${tt};
182
- letter-spacing: ${et};
183
- line-height: ${ot};
184
- text-transform: ${it};
185
- }
186
- `,vt=o.css`
189
+ font-family: ${ro.fontFamily};
190
+ font-size: ${ro.fontSize};
191
+ font-weight: ${ro.fontWeight};
192
+ letter-spacing: ${ro.letterSpacing};
193
+ line-height: ${ro.lineHeight};
194
+ text-transform: ${ro.textTransform};
195
+ }
196
+ `,Nn=qt.css`
187
197
  .ft-typography--overline {
188
- font-family: ${rt};
189
- font-size: ${nt};
190
- font-weight: ${at};
191
- letter-spacing: ${st};
192
- line-height: ${lt};
193
- text-transform: ${ct};
194
- }
195
- `,xt=o.css`
198
+ font-family: ${io.fontFamily};
199
+ font-size: ${io.fontSize};
200
+ font-weight: ${io.fontWeight};
201
+ letter-spacing: ${io.letterSpacing};
202
+ line-height: ${io.lineHeight};
203
+ text-transform: ${io.textTransform};
204
+ }
205
+ `,Tn=qt.css`
196
206
  .ft-typography--button {
197
- font-family: ${dt.fontFamily};
198
- font-size: ${dt.fontSize};
199
- font-weight: ${dt.fontWeight};
200
- letter-spacing: ${dt.letterSpacing};
201
- line-height: ${dt.lineHeight};
202
- text-transform: ${dt.textTransform};
203
- }
204
- `,wt=o.css`
207
+ font-family: ${Tt.fontFamily};
208
+ font-size: ${Tt.fontSize};
209
+ font-weight: ${Tt.fontWeight};
210
+ letter-spacing: ${Tt.letterSpacing};
211
+ line-height: ${Tt.lineHeight};
212
+ text-transform: ${Tt.textTransform};
213
+ }
214
+ `,_n=qt.css`
205
215
  .ft-typography {
206
216
  vertical-align: inherit;
207
217
  }
208
- `,Ot=[Object.keys(N).map((t=>function(t){const e=N[t];return o.css`
209
- .ft-typography--${o.unsafeCSS(t)} {
210
- font-family: ${e.fontFamily};
211
- font-size: ${e.fontSize};
212
- font-weight: ${e.fontWeight};
213
- letter-spacing: ${e.letterSpacing};
214
- line-height: ${e.lineHeight};
215
- text-transform: ${e.textCase};
216
- }
217
- `}(t)))],St={color:e.FtCssVariableFactory.extend("--ft-loader-color","",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Nt=o.css`
218
+ `,Ln=[Object.keys(Zo).map(o=>Sn(o))];var kn=u(_()),Eo=u(S()),Pt={color:Eo.FtCssVariableFactory.extend("--ft-loader-color","",Eo.designSystemVariables.colorPrimary),size:Eo.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},$n=kn.css`
218
219
  :host {
219
220
  line-height: 0;
220
221
  }
@@ -223,8 +224,8 @@
223
224
  display: inline-block;
224
225
  position: relative;
225
226
 
226
- width: ${St.size};
227
- height: ${St.size};
227
+ width: ${Pt.size};
228
+ height: ${Pt.size};
228
229
  }
229
230
 
230
231
  .ft-loader div {
@@ -233,7 +234,7 @@
233
234
  width: 25%;
234
235
  height: 25%;
235
236
  border-radius: 50%;
236
- background: ${St.color};
237
+ background: ${Pt.color};
237
238
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
238
239
  }
239
240
 
@@ -280,10 +281,10 @@
280
281
  transform: translate(0, 0);
281
282
  }
282
283
  100% {
283
- transform: translate(calc(0.35 * ${St.size}), 0);
284
+ transform: translate(calc(0.35 * ${Pt.size}), 0);
284
285
  }
285
286
  }
286
- `,$t={size:e.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},It=o.css`
287
+ `;var Pn=u(_()),me=u(S()),bt={size:me.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:me.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",me.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:me.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",me.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:me.FtCssVariableFactory.extend("--ft-icon-material-font-family","",me.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:me.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Dn=Pn.css`
287
288
  :host, i.ft-icon {
288
289
  display: inline-flex;
289
290
  align-items: center;
@@ -292,14 +293,14 @@
292
293
  }
293
294
 
294
295
  :host {
295
- width: ${$t.size};
296
- height: ${$t.size};
296
+ width: ${bt.size};
297
+ height: ${bt.size};
297
298
  }
298
299
 
299
300
  i.ft-icon {
300
301
  width: 100%;
301
302
  height: 100%;
302
- font-size: ${$t.size};
303
+ font-size: ${bt.size};
303
304
  line-height: 1;
304
305
  font-weight: normal;
305
306
  text-transform: none;
@@ -310,28 +311,28 @@
310
311
  text-rendering: auto;
311
312
  -webkit-font-smoothing: antialiased;
312
313
  -moz-osx-font-smoothing: grayscale;
313
- vertical-align: ${$t.verticalAlign};
314
+ vertical-align: ${bt.verticalAlign};
314
315
  }
315
316
 
316
317
  i.ft-icon.ft-icon--fluid-topics {
317
- font-family: ${$t.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
318
+ font-family: ${bt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
318
319
 
319
320
  /* Ugly fix because font is broken */
320
- font-size: calc(0.75 * ${$t.size});
321
- line-height: ${$t.size};
321
+ font-size: calc(0.75 * ${bt.size});
322
+ line-height: ${bt.size};
322
323
  position: relative;
323
324
  top: -4%;
324
325
  justify-content: center;
325
326
  }
326
327
 
327
328
  .ft-icon--file-format {
328
- font-family: ${$t.fileFormatFontFamily}, ft-mime, sans-serif;
329
+ font-family: ${bt.fileFormatFontFamily}, ft-mime, sans-serif;
329
330
  }
330
331
 
331
332
  .ft-icon--material {
332
- font-family: ${$t.materialFontFamily}, "Material Icons", sans-serif;
333
+ font-family: ${bt.materialFontFamily}, "Material Icons", sans-serif;
333
334
  }
334
- `,Ct=e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorPrimary),kt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusL),color:Ct,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ct),verticalPadding:e.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:e.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:e.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Et=e.FtCssVariableFactory.extend("--ft-button-primary-color","",e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorOnPrimary)),Rt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color","",e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorPrimary)),color:Et,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Et)},Ut=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusM)),Lt=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Wt=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),zt=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),Tt=[o.css`
335
+ `;var Bn=T.FtCssVariableFactory.extend("--ft-button-color","",T.designSystemVariables.colorPrimary),V={backgroundColor:T.FtCssVariableFactory.extend("--ft-button-background-color","",T.designSystemVariables.colorSurface),borderRadius:T.FtCssVariableFactory.extend("--ft-button-border-radius","",T.designSystemVariables.borderRadiusL),color:Bn,fontSize:T.FtCssVariableFactory.extend("--ft-button-font-size","",Tt.fontSize),iconSize:T.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:T.FtCssVariableFactory.extend("--ft-button-ripple-color","",Bn),verticalPadding:T.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:T.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:T.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:T.FtCssVariableFactory.external(T.designSystemVariables.colorOpacityDisabled,"Design system")},Un=T.FtCssVariableFactory.extend("--ft-button-primary-color","",T.FtCssVariableFactory.extend("--ft-button-color","",T.designSystemVariables.colorOnPrimary)),jr={backgroundColor:T.FtCssVariableFactory.extend("--ft-button-primary-background-color","",T.FtCssVariableFactory.extend("--ft-button-background-color","",T.designSystemVariables.colorPrimary)),color:Un,rippleColor:T.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Un)},se={borderRadius:T.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",T.FtCssVariableFactory.extend("--ft-button-border-radius","",T.designSystemVariables.borderRadiusM)),verticalPadding:T.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:T.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:T.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Fn=[Mn.css`
335
336
  :host {
336
337
  display: inline-block;
337
338
  max-width: 100%;
@@ -342,7 +343,7 @@
342
343
  box-shadow: 0px 0px 0px transparent;
343
344
  border: 0px solid transparent;
344
345
  text-shadow: 0px 0px 0px transparent;
345
- font-size: ${kt.fontSize};
346
+ font-size: ${V.fontSize};
346
347
  }
347
348
 
348
349
  button:hover {
@@ -371,31 +372,31 @@
371
372
  border: none;
372
373
  pointer-events: auto;
373
374
 
374
- --ft-button-internal-line-height: max(calc(${kt.fontSize} + 2px), ${kt.iconSize});
375
- --ft-button-internal-color: ${kt.color};
376
- ${e.setVariable($t.size,kt.iconSize)};
377
- ${e.setVariable(h.color,kt.rippleColor)};
375
+ --ft-button-internal-line-height: max(calc(${V.fontSize} + 2px), ${V.iconSize});
376
+ --ft-button-internal-color: ${V.color};
377
+ ${(0,T.setVariable)(bt.size,V.iconSize)};
378
+ ${(0,T.setVariable)(N.color,V.rippleColor)};
378
379
 
379
- border-radius: ${kt.borderRadius};
380
- padding: ${kt.verticalPadding} ${kt.horizontalPadding};
381
- background-color: ${kt.backgroundColor};
380
+ border-radius: ${V.borderRadius};
381
+ padding: ${V.verticalPadding} ${V.horizontalPadding};
382
+ background-color: ${V.backgroundColor};
382
383
  color: var(--ft-button-internal-color);
383
384
  -webkit-mask-image: radial-gradient(white, black);
384
385
  }
385
386
 
386
387
  .ft-button.ft-button--outlined {
387
388
  border: 1px solid var(--ft-button-internal-color);
388
- padding: calc(${kt.verticalPadding} - 1px) calc(${kt.horizontalPadding} - 1px);
389
+ padding: calc(${V.verticalPadding} - 1px) calc(${V.horizontalPadding} - 1px);
389
390
  }
390
391
 
391
392
  .ft-button.ft-button--dense {
392
- padding: ${Lt} ${Wt};
393
- border-radius: ${Ut};
394
- gap: ${zt};
393
+ padding: ${se.verticalPadding} ${se.horizontalPadding};
394
+ border-radius: ${se.borderRadius};
395
+ gap: ${se.iconPadding};
395
396
  }
396
397
 
397
398
  .ft-button.ft-button--dense.ft-button--outlined {
398
- padding: calc(${Lt} - 1px) calc(${Wt} - 1px);
399
+ padding: calc(${se.verticalPadding} - 1px) calc(${se.horizontalPadding} - 1px);
399
400
  }
400
401
 
401
402
  .ft-button:not([disabled]):hover {
@@ -403,22 +404,22 @@
403
404
  }
404
405
 
405
406
  .ft-button--round {
406
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${kt.verticalPadding});
407
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${V.verticalPadding});
407
408
  }
408
409
 
409
410
  .ft-button--round.ft-button--dense {
410
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Lt});
411
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${se.verticalPadding});
411
412
  }
412
413
 
413
414
  .ft-button[disabled] {
414
415
  filter: grayscale(1);
415
- opacity: ${kt.opacityDisabled};
416
+ opacity: ${V.opacityDisabled};
416
417
  }
417
418
 
418
419
  .ft-button.ft-button--primary {
419
- background-color: ${Rt.backgroundColor};
420
- --ft-button-internal-color: ${Rt.color};
421
- ${e.setVariable(h.color,Rt.rippleColor)};
420
+ background-color: ${jr.backgroundColor};
421
+ --ft-button-internal-color: ${jr.color};
422
+ ${(0,T.setVariable)(N.color,jr.rippleColor)};
422
423
  }
423
424
 
424
425
  .ft-button:focus {
@@ -431,44 +432,43 @@
431
432
  white-space: nowrap;
432
433
  text-overflow: ellipsis;
433
434
  display: block;
434
- margin: 0 ${kt.iconPadding};
435
- ${e.setVariable(dt.fontSize,"1em")};
436
- ${e.setVariable(dt.lineHeight,"var(--ft-button-internal-line-height)")};
435
+ margin: 0 ${V.iconPadding};
436
+ ${(0,T.setVariable)(Tt.fontSize,"1em")};
437
+ ${(0,T.setVariable)(Tt.lineHeight,"var(--ft-button-internal-line-height)")};
437
438
  }
438
439
 
439
440
  .ft-button--dense .ft-button--label {
440
- margin: 0 ${zt};
441
+ margin: 0 ${se.iconPadding};
441
442
  }
442
443
 
443
444
  .ft-button--label[hidden] {
444
445
  display: none;
445
446
  }
446
447
 
447
- ft-icon {
448
+ [part="icon"] {
448
449
  flex-shrink: 0;
449
450
  position: relative;
450
451
  }
451
452
 
452
- .ft-button--label[hidden] + ft-icon {
453
- margin: 0 calc(${kt.horizontalPadding} * -1);
454
- padding: 0 ${kt.verticalPadding};
453
+ .ft-button--label[hidden] + [part="icon"] {
454
+ margin: 0 calc(${V.horizontalPadding} * -1);
455
+ padding: 0 ${V.verticalPadding};
455
456
  }
456
457
 
457
- .ft-button--dense .ft-button--label[hidden] + ft-icon {
458
- margin: 0 calc(${Wt} * -1);
459
- padding: 0 ${Lt};
458
+ .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
459
+ margin: 0 calc(${se.horizontalPadding} * -1);
460
+ padding: 0 ${se.verticalPadding};
460
461
  }
461
462
 
462
- .ft-button:not(.ft-button--trailing-icon) ft-icon,
463
- .ft-button:not(.ft-button--trailing-icon) ft-loader {
464
- order: -1;
463
+ .ft-button:not(.ft-button--trailing-icon) [part="label"]{
464
+ order: 2;
465
465
  }
466
466
 
467
467
  ft-loader {
468
- ${e.setVariable(St.size,kt.iconSize)};
469
- ${e.setVariable(St.color,"var(--ft-button-internal-color)")};
468
+ ${(0,T.setVariable)(Pt.size,V.iconSize)};
469
+ ${(0,T.setVariable)(Pt.color,"var(--ft-button-internal-color)")};
470
470
  }
471
- `,e.noTextSelect],Dt={textColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceHigh),backgroundColor:e.FtCssVariableFactory.extend("--ft-switch-background-color","",e.designSystemVariables.colorSurface),selectedTextColor:e.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",e.designSystemVariables.colorPrimary),selectedBackgroundColor:e.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",e.designSystemVariables.colorPrimary),borderColor:e.FtCssVariableFactory.extend("--ft-switch-border-color","",e.designSystemVariables.colorOutline),borderRadius:e.FtCssVariableFactory.extend("--ft-switch-border-radius","",e.designSystemVariables.borderRadiusL),fontSize:e.FtCssVariableFactory.extend("--ft-switch-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceMedium),rippleColor:e.FtCssVariableFactory.extend("--ft-switch-ripple-color","",e.designSystemVariables.colorPrimary),outlineColor:e.FtCssVariableFactory.extend("--ft-switch-outline-color","",e.designSystemVariables.colorPrimary)},At={feedbackInputMinWidth:e.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",e.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",e.designSystemVariables.colorPrimary),filledRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",e.designSystemVariables.colorPrimary),emptyRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",e.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:e.FtCssVariableFactory.external(R.fontSize,"Typography"),sectionTitleFontSize:e.FtCssVariableFactory.external(U.fontSize,"Typography"),starsBackgroundColor:e.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",e.designSystemVariables.colorSurface)},_t=o.css`
471
+ `,T.noTextSelect];var J=u(S());var rt={textColor:J.FtCssVariableFactory.extend("--ft-switch-text-color","",J.designSystemVariables.colorOnSurfaceHigh),backgroundColor:J.FtCssVariableFactory.extend("--ft-switch-background-color","",J.designSystemVariables.colorSurface),selectedTextColor:J.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",J.designSystemVariables.colorPrimary),selectedBackgroundColor:J.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",J.designSystemVariables.colorPrimary),borderColor:J.FtCssVariableFactory.extend("--ft-switch-border-color","",J.designSystemVariables.colorOutline),borderRadius:J.FtCssVariableFactory.extend("--ft-switch-border-radius","",J.designSystemVariables.borderRadiusL),fontSize:J.FtCssVariableFactory.extend("--ft-switch-font-size","",Tt.fontSize),iconSize:J.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:J.FtCssVariableFactory.extend("--ft-switch-text-color","",J.designSystemVariables.colorOnSurfaceMedium),rippleColor:J.FtCssVariableFactory.extend("--ft-switch-ripple-color","",J.designSystemVariables.colorPrimary),outlineColor:J.FtCssVariableFactory.extend("--ft-switch-outline-color","",J.designSystemVariables.colorPrimary)};var le={feedbackInputMinWidth:H.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:H.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",H.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:H.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",H.designSystemVariables.colorPrimary),filledRatingColor:H.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",H.designSystemVariables.colorPrimary),emptyRatingColor:H.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",H.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:H.FtCssVariableFactory.external(Ae.fontSize,"Typography"),sectionTitleFontSize:H.FtCssVariableFactory.external(Ie.fontSize,"Typography"),starsBackgroundColor:H.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",H.designSystemVariables.colorSurface)},Wn=zn.css`
472
472
  .ft-reader-feedback {
473
473
  box-sizing: border-box;
474
474
  display: flex;
@@ -481,7 +481,7 @@
481
481
  flex-direction: row;
482
482
  align-items: center;
483
483
  margin-left: -6px;
484
- ${e.setVariable(kt.backgroundColor,At.starsBackgroundColor)}
484
+ ${(0,H.setVariable)(V.backgroundColor,le.starsBackgroundColor)}
485
485
  }
486
486
 
487
487
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -494,14 +494,14 @@
494
494
  }
495
495
 
496
496
  .ft-reader-feedback--rating {
497
- ${e.setVariable(kt.color,At.emptyRatingColor)};
498
- ${e.setVariable(kt.rippleColor,At.filledRatingColor)};
499
- ${e.setVariable(Dt.textColor,At.emptyRatingColor)};
500
- ${e.setVariable(Dt.selectedTextColor,At.filledRatingColor)};
497
+ ${(0,H.setVariable)(V.color,le.emptyRatingColor)};
498
+ ${(0,H.setVariable)(V.rippleColor,le.filledRatingColor)};
499
+ ${(0,H.setVariable)(rt.textColor,le.emptyRatingColor)};
500
+ ${(0,H.setVariable)(rt.selectedTextColor,le.filledRatingColor)};
501
501
  }
502
502
 
503
503
  .ft-reader-feedback--rating .ft-reader-feedback--active {
504
- ${e.setVariable(kt.color,At.filledRatingColor)};
504
+ ${(0,H.setVariable)(V.color,le.filledRatingColor)};
505
505
  }
506
506
 
507
507
  .ft-reader-feedback--feedback {
@@ -509,51 +509,43 @@
509
509
  }
510
510
 
511
511
  .ft-reader-feedback--rating-date {
512
- color: ${At.ratedDateColor};
512
+ color: ${le.ratedDateColor};
513
513
  }
514
514
 
515
515
  .ft-reader-feedback--feedback ft-text-area {
516
- min-width: ${At.feedbackInputMinWidth};
516
+ min-width: ${le.feedbackInputMinWidth};
517
517
  }
518
518
 
519
519
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
520
- ${e.setVariable(kt.color,At.sendFeedbackColor)};
521
- ${e.setVariable(kt.backgroundColor,At.sendFeedbackBackgroundColor)};
520
+ ${(0,H.setVariable)(V.color,le.sendFeedbackColor)};
521
+ ${(0,H.setVariable)(V.backgroundColor,le.sendFeedbackBackgroundColor)};
522
522
  }
523
523
 
524
524
  [part="buttons-container"] {
525
525
  align-self: flex-end;
526
526
  }
527
- `
528
- /**
529
- * @license
530
- * Copyright 2017 Google LLC
531
- * SPDX-License-Identifier: BSD-3-Clause
532
- */,Zt=globalThis,Ft=Zt.trustedTypes,Bt=Ft?Ft.createPolicy("lit-html",{createHTML:t=>t}):void 0,Kt="$lit$",Mt=`lit$${(Math.random()+"").slice(9)}$`,Pt="?"+Mt,Ht=`<${Pt}>`,jt=document,Gt=()=>jt.createComment(""),Vt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Yt=Array.isArray,qt="[ \t\n\f\r]",Xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qt=/-->/g,Jt=/>/g,te=RegExp(`>|${qt}(?:([^\\s"'>=/]+)(${qt}*=${qt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ee=/'/g,oe=/"/g,ie=/^(?:script|style|textarea|title)$/i,re=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),ne=Symbol.for("lit-noChange"),ae=Symbol.for("lit-nothing"),se=new WeakMap,le=jt.createTreeWalker(jt,129);function ce(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Bt?Bt.createHTML(e):e}const de=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=Xt;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,d=0;for(;d<o.length&&(a.lastIndex=d,l=a.exec(o),null!==l);)d=a.lastIndex,a===Xt?"!--"===l[1]?a=Qt:void 0!==l[1]?a=Jt:void 0!==l[2]?(ie.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=te):void 0!==l[3]&&(a=te):a===te?">"===l[0]?(a=r??Xt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?te:'"'===l[3]?oe:ee):a===oe||a===ee?a=te:a===Qt||a===Jt?a=Xt:(a=te,r=void 0);const f=a===te&&t[e+1].startsWith("/>")?" ":"";n+=a===Xt?o+Ht:c>=0?(i.push(s),o.slice(0,c)+Kt+o.slice(c)+Mt+f):o+Mt+(-2===c?e:f)}return[ce(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class fe{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=de(t,e);if(this.el=fe.createElement(l,o),le.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=le.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Kt)){const e=c[n++],o=i.getAttribute(t).split(Mt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?be:"?"===a[1]?ye:"@"===a[1]?me:ge}),i.removeAttribute(t)}else t.startsWith(Mt)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(ie.test(i.tagName)){const t=i.textContent.split(Mt),e=t.length-1;if(e>0){i.textContent=Ft?Ft.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],Gt()),le.nextNode(),s.push({type:2,index:++r});i.append(t[e],Gt())}}}else if(8===i.nodeType)if(i.data===Pt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Mt,t+1));)s.push({type:7,index:r}),t+=Mt.length-1}r++}}static createElement(t,e){const o=jt.createElement("template");return o.innerHTML=t,o}}function pe(t,e,o=t,i){if(e===ne)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=Vt(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=pe(t,r._$AS(t,e.values),r,i)),e}class he{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??jt).importNode(e,!0);le.currentNode=i;let r=le.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new ue(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new ve(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=le.nextNode(),n++)}return le.currentNode=jt,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class ue{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=ae,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=pe(this,t,e),Vt(t)?t===ae||null==t||""===t?(this._$AH!==ae&&this._$AR(),this._$AH=ae):t!==this._$AH&&t!==ne&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Yt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ae&&Vt(this._$AH)?this._$AA.nextSibling.data=t:this.$(jt.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=fe.createElement(ce(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new he(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=se.get(t.strings);return void 0===e&&se.set(t.strings,e=new fe(t)),e}T(t){Yt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new ue(this.k(Gt()),this.k(Gt()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class ge{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=ae,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ae}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=pe(this,t,e,0),n=!Vt(t)||t!==this._$AH&&t!==ne,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=pe(this,i[o+a],e,a),s===ne&&(s=this._$AH[a]),n||=!Vt(s)||s!==this._$AH[a],s===ae?t=ae:t!==ae&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===ae?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class be extends ge{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ae?void 0:t}}class ye extends ge{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ae)}}class me extends ge{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=pe(this,t,e,0)??ae)===ne)return;const o=this._$AH,i=t===ae&&o!==ae||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==ae&&(o===ae||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class ve{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){pe(this,t)}}const xe=Zt.litHtmlPolyfillSupport;xe?.(fe,ue),(Zt.litHtmlVersions??=[]).push("3.1.0");
533
- /**
534
- * @license
535
- * Copyright 2020 Google LLC
536
- * SPDX-License-Identifier: BSD-3-Clause
537
- */
538
- const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$litStatic$:t,r:we}),Ne=new Map,$e=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,d=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=Oe(n));)l+=r+e[++c],d=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),d){const t=a.join("$$lit$$");void 0===(e=Ne.get(t))&&(a.raw=a,Ne.set(t,e=a)),o=s}return t(e,...o)})(re);var Ie;!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"}(Ie||(Ie={}));var Ce=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ke extends e.FtLitElement{constructor(){super(...arguments),this.variant=Ie.body1}render(){return this.element?$e`
539
- <${Se(this.element)}
527
+ `;var la=u(S());var ei=globalThis,qo=ei.trustedTypes,Hn=qo?qo.createPolicy("lit-html",{createHTML:o=>o}):void 0,Yn="$lit$",Ne=`lit$${(Math.random()+"").slice(9)}$`,qn="?"+Ne,wl=`<${qn}>`,He=document,Xo=()=>He.createComment(""),Ao=o=>o===null||typeof o!="object"&&typeof o!="function",Xn=Array.isArray,El=o=>Xn(o)||typeof o?.[Symbol.iterator]=="function",Yr=`[
528
+ \f\r]`,Ro=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vn=/-->/g,Gn=/>/g,ze=RegExp(`>|${Yr}(?:([^\\s"'>=/]+)(${Yr}*=${Yr}*(?:[^
529
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Kn=/'/g,Zn=/"/g,Qn=/^(?:script|style|textarea|title)$/i,Jn=o=>(t,...r)=>({_$litType$:o,strings:t,values:r}),ta=Jn(1),ea=Jn(2),Io=Symbol.for("lit-noChange"),ct=Symbol.for("lit-nothing"),jn=new WeakMap,We=He.createTreeWalker(He,129);function oa(o,t){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Hn!==void 0?Hn.createHTML(t):t}var Rl=(o,t)=>{let r=o.length-1,i=[],n,a=t===2?"<svg>":"",s=Ro;for(let c=0;c<r;c++){let p=o[c],h,g,x=-1,A=0;for(;A<p.length&&(s.lastIndex=A,g=s.exec(p),g!==null);)A=s.lastIndex,s===Ro?g[1]==="!--"?s=Vn:g[1]!==void 0?s=Gn:g[2]!==void 0?(Qn.test(g[2])&&(n=RegExp("</"+g[2],"g")),s=ze):g[3]!==void 0&&(s=ze):s===ze?g[0]===">"?(s=n??Ro,x=-1):g[1]===void 0?x=-2:(x=s.lastIndex-g[2].length,h=g[1],s=g[3]===void 0?ze:g[3]==='"'?Zn:Kn):s===Zn||s===Kn?s=ze:s===Vn||s===Gn?s=Ro:(s=ze,n=void 0);let R=s===ze&&o[c+1].startsWith("/>")?" ":"";a+=s===Ro?p+wl:x>=0?(i.push(h),p.slice(0,x)+Yn+p.slice(x)+Ne+R):p+Ne+(x===-2?c:R)}return[oa(o,a+(o[r]||"<?>")+(t===2?"</svg>":"")),i]},No=class o{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,c=t.length-1,p=this.parts,[h,g]=Rl(t,r);if(this.el=o.createElement(h,i),We.currentNode=this.el.content,r===2){let x=this.el.content.firstChild;x.replaceWith(...x.childNodes)}for(;(n=We.nextNode())!==null&&p.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let x of n.getAttributeNames())if(x.endsWith(Yn)){let A=g[s++],R=n.getAttribute(x).split(Ne),P=/([.?@])?(.*)/.exec(A);p.push({type:1,index:a,name:P[2],strings:R,ctor:P[1]==="."?Xr:P[1]==="?"?Qr:P[1]==="@"?Jr:so}),n.removeAttribute(x)}else x.startsWith(Ne)&&(p.push({type:6,index:a}),n.removeAttribute(x));if(Qn.test(n.tagName)){let x=n.textContent.split(Ne),A=x.length-1;if(A>0){n.textContent=qo?qo.emptyScript:"";for(let R=0;R<A;R++)n.append(x[R],Xo()),We.nextNode(),p.push({type:2,index:++a});n.append(x[A],Xo())}}}else if(n.nodeType===8)if(n.data===qn)p.push({type:2,index:a});else{let x=-1;for(;(x=n.data.indexOf(Ne,x+1))!==-1;)p.push({type:7,index:a}),x+=Ne.length-1}a++}}static createElement(t,r){let i=He.createElement("template");return i.innerHTML=t,i}};function ao(o,t,r=o,i){if(t===Io)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=Ao(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(o),n._$AT(o,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=ao(o,n._$AS(o,t.values),n,i)),t}var qr=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:i}=this._$AD,n=(t?.creationScope??He).importNode(r,!0);We.currentNode=n;let a=We.nextNode(),s=0,c=0,p=i[0];for(;p!==void 0;){if(s===p.index){let h;p.type===2?h=new Qo(a,a.nextSibling,this,t):p.type===1?h=new p.ctor(a,p.name,p.strings,this,t):p.type===6&&(h=new ti(a,this,t)),this._$AV.push(h),p=i[++c]}s!==p?.index&&(a=We.nextNode(),s++)}return We.currentNode=He,n}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Qo=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=ct,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=ao(this,t,r),Ao(t)?t===ct||t==null||t===""?(this._$AH!==ct&&this._$AR(),this._$AH=ct):t!==this._$AH&&t!==Io&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):El(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ct&&Ao(this._$AH)?this._$AA.nextSibling.data=t:this.$(He.createTextNode(t)),this._$AH=t}g(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=No.createElement(oa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new qr(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(t){let r=jn.get(t.strings);return r===void 0&&jn.set(t.strings,r=new No(t)),r}T(t){Xn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of t)n===r.length?r.push(i=new o(this.k(Xo()),this.k(Xo()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},so=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,n,a){this.type=1,this._$AH=ct,this._$AN=void 0,this.element=t,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=ct}_$AI(t,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=ao(this,t,r,0),s=!Ao(t)||t!==this._$AH&&t!==Io,s&&(this._$AH=t);else{let c=t,p,h;for(t=a[0],p=0;p<a.length-1;p++)h=ao(this,c[i+p],r,p),h===Io&&(h=this._$AH[p]),s||=!Ao(h)||h!==this._$AH[p],h===ct?t=ct:t!==ct&&(t+=(h??"")+a[p+1]),this._$AH[p]=h}s&&!n&&this.O(t)}O(t){t===ct?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Xr=class extends so{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ct?void 0:t}},Qr=class extends so{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ct)}},Jr=class extends so{constructor(t,r,i,n,a){super(t,r,i,n,a),this.type=5}_$AI(t,r=this){if((t=ao(this,t,r,0)??ct)===Io)return;let i=this._$AH,n=t===ct&&i!==ct||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==ct&&(i===ct||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ti=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ao(this,t)}};var Al=ei.litHtmlPolyfillSupport;Al?.(No,Qo),(ei.litHtmlVersions??=[]).push("3.1.0");var ia=Symbol.for(""),Il=o=>{if(o?.r===ia)return o?._$litStatic$},oi=o=>({_$litStatic$:o,r:ia});var ra=new Map,na=o=>(t,...r)=>{let i=r.length,n,a,s=[],c=[],p,h=0,g=!1;for(;h<i;){for(p=t[h];h<i&&(a=r[h],(n=Il(a))!==void 0);)p+=n+t[++h],g=!0;h!==i&&c.push(a),s.push(p),h++}if(h===i&&s.push(t[i]),g){let x=s.join("$$lit$$");(t=ra.get(x))===void 0&&(s.raw=s,ra.set(x,t=s)),r=c}return o(t,...r)},ri=na(ta),Kf=na(ea);var ii=u(K()),sa=u(S());var Ve;(function(o){o.title="title",o.title_dense="title-dense",o.subtitle1="subtitle1",o.subtitle2="subtitle2",o.body1="body1",o.body2="body2",o.caption="caption",o.breadcrumb="breadcrumb",o.overline="overline",o.button="button",o.display="display",o.title1="title-1",o.title2="title-2",o.title3="title-3",o.body1regular="body-1-regular",o.body1medium="body-1-medium",o.body1semibold="body-1-semibold",o.body2regular="body-2-regular",o.body2medium="body-2-medium",o.body2semibold="body-2-semibold",o.label1medium="label-1-medium",o.label1semibold="label-1-semibold",o.label1bold="label-1-bold",o.label2medium="label-2-medium",o.label2semibold="label-2-semibold",o.label2bold="label-2-bold",o.caption1medium="caption-1-medium",o.caption1semibold="caption-1-semibold",o.caption1bold="caption-1-bold",o.caption2medium="caption-2-medium",o.caption2semibold="caption-2-semibold",o.caption2bold="caption-2-bold"})(Ve||(Ve={}));var aa=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},it=class extends sa.FtLitElement{constructor(){super(...arguments),this.variant=Ve.body1}render(){return this.element?ri`
530
+ <${oi(this.element)}
531
+ part="text"
540
532
  class="ft-typography ft-typography--${this.variant}">
541
533
  <slot></slot>
542
- </${Se(this.element)}>
543
- `:$e`
544
- <slot class="ft-typography ft-typography--${this.variant}"></slot>
545
- `}}ke.styles=[ft,pt,ht,ut,gt,bt,yt,mt,vt,xt,wt,...Ot],Ce([i.property()],ke.prototype,"element",void 0),Ce([i.property()],ke.prototype,"variant",void 0),e.customElement("ft-typography")(ke);var Ee=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Re extends e.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 e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e.Debouncer(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"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 o.html`
534
+ </${oi(this.element)}>
535
+ `:ri`
536
+ <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
537
+ `}};it.styles=[On,wn,En,Rn,no,An,Yo,In,Nn,Tn,_n,...Ln];aa([(0,ii.property)()],it.prototype,"element",void 0);aa([(0,ii.property)()],it.prototype,"variant",void 0);(0,la.customElement)("ft-typography")(it);var bi=u(S());var sr=u(_()),ke=u(K()),Za=u(Te()),ve=u(S());var uo=u(_()),Xt=u(K()),ho=u(S());var fa=u(S());var da=u(_()),Ct=u(K()),pa=u(Te()),To=u(S());var Dt=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},B=class extends To.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 To.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new To.Debouncer(10),this.moveRipple=t=>{var r,i;let{x:n,y:a}=this.getCoordinates(t),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=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"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 da.html`
546
538
  <style>
547
539
  .ft-ripple .ft-ripple--effect {
548
540
  left: ${this.originX}px;
549
541
  top: ${this.originY}px;
550
542
  }
551
543
  </style>
552
- <div class="${r.classMap(t)}">
544
+ <div class="${(0,pa.classMap)(t)}">
553
545
  <div class="ft-ripple--background"></div>
554
546
  <div class="ft-ripple--effect"></div>
555
547
  </div>
556
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.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 t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Re.elementDefinitions={},Re.styles=x,Ee([i.property({type:Boolean})],Re.prototype,"primary",void 0),Ee([i.property({type:Boolean})],Re.prototype,"secondary",void 0),Ee([i.property({type:Boolean})],Re.prototype,"unbounded",void 0),Ee([i.property({type:Boolean})],Re.prototype,"activated",void 0),Ee([i.property({type:Boolean})],Re.prototype,"selected",void 0),Ee([i.property({type:Boolean})],Re.prototype,"disabled",void 0),Ee([i.state()],Re.prototype,"hovered",void 0),Ee([i.state()],Re.prototype,"focused",void 0),Ee([i.state()],Re.prototype,"pressed",void 0),Ee([i.state()],Re.prototype,"rippling",void 0),Ee([i.state()],Re.prototype,"originX",void 0),Ee([i.state()],Re.prototype,"originY",void 0),Ee([i.query(".ft-ripple")],Re.prototype,"ripple",void 0),Ee([i.query(".ft-ripple--effect")],Re.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(Re);const Ue=e.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),Le=e.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),We=e.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),ze=e.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),Te=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),De=e.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),Ae=o.css`
548
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,i;super.update(t),t.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 t,r;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...c)=>p=>{c.forEach(h=>window.addEventListener(h,this.endPress,{once:!0})),this.startPress(p)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&r("keyup")(c)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",i,s),t.addEventListener("touchstart",n,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",i,s),t.removeEventListener("touchstart",n,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,i=t,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(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.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()}};B.elementDefinitions={};B.styles=ji;Dt([(0,Ct.property)({type:Boolean})],B.prototype,"primary",void 0);Dt([(0,Ct.property)({type:Boolean})],B.prototype,"secondary",void 0);Dt([(0,Ct.property)({type:Boolean})],B.prototype,"unbounded",void 0);Dt([(0,Ct.property)({type:Boolean})],B.prototype,"activated",void 0);Dt([(0,Ct.property)({type:Boolean})],B.prototype,"selected",void 0);Dt([(0,Ct.property)({type:Boolean})],B.prototype,"disabled",void 0);Dt([(0,Ct.state)()],B.prototype,"hovered",void 0);Dt([(0,Ct.state)()],B.prototype,"focused",void 0);Dt([(0,Ct.state)()],B.prototype,"pressed",void 0);Dt([(0,Ct.state)()],B.prototype,"rippling",void 0);Dt([(0,Ct.state)()],B.prototype,"originX",void 0);Dt([(0,Ct.state)()],B.prototype,"originY",void 0);Dt([(0,Ct.query)(".ft-ripple")],B.prototype,"ripple",void 0);Dt([(0,Ct.query)(".ft-ripple--effect")],B.prototype,"rippleEffect",void 0);(0,fa.customElement)("ft-ripple")(B);var Ka=u(Te());var Ua=u(S());var Ba=u(_()),ut=u(K()),Do=u(S());var ua=u(_()),ge=u(S()),lo={distance:ge.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:ge.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:ge.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:ge.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:ge.FtCssVariableFactory.external(ge.designSystemVariables.borderRadiusS,"Design system"),maxWidth:ge.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},ha=ua.css`
557
549
  .ft-tooltip--container {
558
550
  display: block;
559
551
  }
@@ -568,21 +560,21 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
568
560
  box-sizing: border-box;
569
561
  overflow: hidden;
570
562
  width: max-content;
571
- max-width: ${De};
563
+ max-width: ${lo.maxWidth};
572
564
  text-align: center;
573
- padding: ${Ue};
574
- z-index: ${ze};
565
+ padding: ${lo.distance};
566
+ z-index: ${lo.zIndex};
575
567
  }
576
568
 
577
569
  .ft-tooltip--content {
578
570
  padding: 4px 8px;
579
- border-radius: ${Te};
580
- background-color: ${We};
581
- color: ${Le};
571
+ border-radius: ${lo.borderRadiusS};
572
+ background-color: ${lo.backgroundColor};
573
+ color: ${lo.color};
582
574
  position: relative;
583
575
  word-break: break-word;
584
576
  }
585
- `,_e=["start","end"],Ze=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+_e[0],e+"-"+_e[1])),[]),Fe=Math.min,Be=Math.max,Ke=Math.round,Me=t=>({x:t,y:t}),Pe={left:"right",right:"left",bottom:"top",top:"bottom"},He={start:"end",end:"start"};function je(t,e,o){return Be(t,Fe(e,o))}function Ge(t,e){return"function"==typeof t?t(e):t}function Ve(t){return t.split("-")[0]}function Ye(t){return t.split("-")[1]}function qe(t){return"x"===t?"y":"x"}function Xe(t){return"y"===t?"height":"width"}function Qe(t){return["top","bottom"].includes(Ve(t))?"y":"x"}function Je(t){return qe(Qe(t))}function to(t){return t.replace(/left|right|bottom|top/g,(t=>Pe[t]))}function eo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function oo(t,e,o){let{reference:i,floating:r}=t;const n=Qe(e),a=Je(e),s=Xe(a),l=Ve(e),c="y"===n,d=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,p=i[s]/2-r[s]/2;let h;switch(l){case"top":h={x:d,y:i.y-r.height};break;case"bottom":h={x:d,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:f};break;case"left":h={x:i.x-r.width,y:f};break;default:h={x:i.x,y:i.y}}switch(Ye(e)){case"start":h[a]-=p*(o&&c?-1:1);break;case"end":h[a]+=p*(o&&c?-1:1)}return h}async function io(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=Ge(e,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),g=s[p?"floating"===f?"reference":"floating":f],b=eo(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(g)))||o?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),y="floating"===f?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=eo(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:m,strategy:l}):y);return{top:(b.top-x.top+u.top)/v.y,bottom:(x.bottom-b.bottom+u.bottom)/v.y,left:(b.left-x.left+u.left)/v.x,right:(x.right-b.right+u.right)/v.x}}function ro(t,e,o){return(t?[...o.filter((e=>Ye(e)===t)),...o.filter((e=>Ye(e)!==t))]:o.filter((t=>Ve(t)===t))).filter((o=>!t||(Ye(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>He[t]))}(o)!==o)))}const no=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:f,allowedPlacements:p=Ze,autoAlignment:h=!0,...u}=Ge(t,e),g=void 0!==f||p===Ze?ro(f||null,h,p):p,b=await io(e,u),y=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=g[y];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const i=Ye(t),r=Je(t),n=Xe(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=to(a)),[a,to(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:g[0]}};const x=[b[Ve(m)],b[v[0]],b[v[1]]],w=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:x}],O=g[y+1];if(O)return{data:{index:y+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=Ye(t.placement);return[t.placement,e&&d?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,Ye(t[0])?2:3).every((t=>t<=0)))),$=(null==(r=N[0])?void 0:r[0])||S[0][0];return $!==s?{data:{index:y+1,overflows:w},reset:{placement:$}}:{}}}};function ao(t){return co(t)?(t.nodeName||"").toLowerCase():"#document"}function so(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function lo(t){var e;return null==(e=(co(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function co(t){return t instanceof Node||t instanceof so(t).Node}function fo(t){return t instanceof Element||t instanceof so(t).Element}function po(t){return t instanceof HTMLElement||t instanceof so(t).HTMLElement}function ho(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof so(t).ShadowRoot)}function uo(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=vo(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function go(t){return["table","td","th"].includes(ao(t))}function bo(t){const e=yo(),o=vo(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function yo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function mo(t){return["html","body","#document"].includes(ao(t))}function vo(t){return so(t).getComputedStyle(t)}function xo(t){return fo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function wo(t){if("html"===ao(t))return t;const e=t.assignedSlot||t.parentNode||ho(t)&&t.host||lo(t);return ho(e)?e.host:e}function Oo(t){const e=wo(t);return mo(e)?t.ownerDocument?t.ownerDocument.body:t.body:po(e)&&uo(e)?e:Oo(e)}function So(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=Oo(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=so(r);return n?e.concat(a,a.visualViewport||[],uo(r)?r:[],a.frameElement&&o?So(a.frameElement):[]):e.concat(r,So(r,[],o))}function No(t){const e=vo(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=po(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=Ke(o)!==n||Ke(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function $o(t){return fo(t)?t:t.contextElement}function Io(t){const e=$o(t);if(!po(e))return Me(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=No(e);let a=(n?Ke(o.width):o.width)/i,s=(n?Ke(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Co=Me(0);function ko(t){const e=so(t);return yo()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Co}function Eo(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=$o(t);let a=Me(1);e&&(i?fo(i)&&(a=Io(i)):a=Io(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==so(t))&&e}(n,o,i)?ko(n):Me(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(n){const t=so(n),e=i&&fo(i)?so(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Io(o),e=o.getBoundingClientRect(),i=vo(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,f*=t.y,l+=r,c+=n,o=so(o).frameElement}}return eo({width:d,height:f,x:l,y:c})}function Ro(t){return Eo(lo(t)).left+xo(t).scrollLeft}function Uo(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=so(t),i=lo(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=yo();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=lo(t),o=xo(t),i=t.ownerDocument.body,r=Be(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Be(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+Ro(t);const s=-o.scrollTop;return"rtl"===vo(i).direction&&(a+=Be(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(lo(t));else if(fo(e))i=function(t,e){const o=Eo(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=po(t)?Io(t):Me(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=ko(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return eo(i)}function Lo(t,e){const o=wo(t);return!(o===e||!fo(o)||mo(o))&&("fixed"===vo(o).position||Lo(o,e))}function Wo(t,e,o){const i=po(e),r=lo(e),n="fixed"===o,a=Eo(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=Me(0);if(i||!i&&!n)if(("body"!==ao(e)||uo(r))&&(s=xo(e)),i){const t=Eo(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Ro(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function zo(t,e){return po(t)&&"fixed"!==vo(t).position?e?e(t):t.offsetParent:null}function To(t,e){const o=so(t);if(!po(t))return o;let i=zo(t,e);for(;i&&go(i)&&"static"===vo(i).position;)i=zo(i,e);return i&&("html"===ao(i)||"body"===ao(i)&&"static"===vo(i).position&&!bo(i))?o:i||function(t){let e=wo(t);for(;po(e)&&!mo(e);){if(bo(e))return e;e=wo(e)}return null}(t)||o}const Do={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=po(o),n=lo(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=Me(1);const l=Me(0);if((r||!r&&"fixed"!==i)&&(("body"!==ao(o)||uo(n))&&(a=xo(o)),po(o))){const t=Eo(o);s=Io(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:lo,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=So(t,[],!1).filter((t=>fo(t)&&"body"!==ao(t))),r=null;const n="fixed"===vo(t).position;let a=n?wo(t):t;for(;fo(a)&&!mo(a);){const e=vo(a),o=bo(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||uo(a)&&!o&&Lo(t,a))?i=i.filter((t=>t!==a)):r=e,a=wo(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=n[0],s=n.reduce(((t,o)=>{const i=Uo(e,o,r);return t.top=Be(i.top,t.top),t.right=Fe(i.right,t.right),t.bottom=Fe(i.bottom,t.bottom),t.left=Be(i.left,t.left),t}),Uo(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:To,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||To,n=this.getDimensions;return{reference:Wo(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return No(t)},getScale:Io,isElement:fo,isRTL:function(t){return"rtl"===vo(t).direction}},Ao=(t,e,o)=>{const i=new Map,r={platform:Do,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:f}=oo(c,i,l),p=i,h={},u=0;for(let o=0;o<s.length;o++){const{name:n,fn:g}=s[o],{x:b,y,data:m,reset:v}=await g({x:d,y:f,initialPlacement:i,placement:p,strategy:r,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:e}});d=null!=b?b:d,f=null!=y?y:f,h={...h,[n]:{...h[n],...m}},v&&u<=50&&(u++,"object"==typeof v&&(v.placement&&(p=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:d,y:f}=oo(c,p,l))),o=-1)}return{x:d,y:f,placement:p,strategy:r,middlewareData:h}})(t,e,{...r,platform:n})};function _o(t){return function(t){for(let e=t;e;e=Zo(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Zo(t);e;e=Zo(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Zo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}async function Fo(t,e,o){return Ao(t,e,{platform:{...Do,getOffsetParent:t=>Do.getOffsetParent(t,_o)},middleware:[(i={crossAxis:!0},void 0===i&&(i={}),{name:"shift",options:i,async fn(t){const{x:e,y:o,placement:r}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=Ge(i,t),c={x:e,y:o},d=await io(t,l),f=Qe(Ve(r)),p=qe(f);let h=c[p],u=c[f];if(n){const t="y"===p?"bottom":"right";h=je(h+d["y"===p?"top":"left"],h,h-d[t])}if(a){const t="y"===f?"bottom":"right";u=je(u+d["y"===f?"top":"left"],u,u-d[t])}const g=s.fn({...t,[p]:h,[f]:u});return{...g,data:{x:g.x-e,y:g.y-o}}}}),no({allowedPlacements:[o]})]});var i}var Bo,Ko,Mo,Po=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ho extends e.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 e.Debouncer,this.revealDebouncer=new e.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return o.html`
577
+ `;var ga=["top","right","bottom","left"],ma=["start","end"],ai=ga.reduce((o,t)=>o.concat(t,t+"-"+ma[0],t+"-"+ma[1]),[]),_o=Math.min,_e=Math.max,Lo=Math.round;var ye=o=>({x:o,y:o}),Nl={left:"right",right:"left",bottom:"top",top:"bottom"},Tl={start:"end",end:"start"};function si(o,t,r){return _e(o,_o(t,r))}function Jo(o,t){return typeof o=="function"?o(t):o}function co(o){return o.split("-")[0]}function Le(o){return o.split("-")[1]}function li(o){return o==="x"?"y":"x"}function ci(o){return o==="y"?"height":"width"}function tr(o){return["top","bottom"].includes(co(o))?"y":"x"}function di(o){return li(tr(o))}function ya(o,t,r){r===void 0&&(r=!1);let i=Le(o),n=di(o),a=ci(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=ni(s)),[s,ni(s)]}function ba(o){return o.replace(/start|end/g,t=>Tl[t])}function ni(o){return o.replace(/left|right|bottom|top/g,t=>Nl[t])}function _l(o){return{top:0,right:0,bottom:0,left:0,...o}}function xa(o){return typeof o!="number"?_l(o):{top:o,right:o,bottom:o,left:o}}function Ge(o){return{...o,top:o.y,left:o.x,right:o.x+o.width,bottom:o.y+o.height}}function va(o,t,r){let{reference:i,floating:n}=o,a=tr(t),s=di(t),c=ci(s),p=co(t),h=a==="y",g=i.x+i.width/2-n.width/2,x=i.y+i.height/2-n.height/2,A=i[c]/2-n[c]/2,R;switch(p){case"top":R={x:g,y:i.y-n.height};break;case"bottom":R={x:g,y:i.y+i.height};break;case"right":R={x:i.x+i.width,y:x};break;case"left":R={x:i.x-n.width,y:x};break;default:R={x:i.x,y:i.y}}switch(Le(t)){case"start":R[s]-=A*(r&&h?-1:1);break;case"end":R[s]+=A*(r&&h?-1:1);break}return R}var Sa=async(o,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,c=a.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(t)),h=await s.getElementRects({reference:o,floating:t,strategy:n}),{x:g,y:x}=va(h,i,p),A=i,R={},P=0;for(let X=0;X<c.length;X++){let{name:Q,fn:q}=c[X],{x:ot,y:vt,data:Rt,reset:gt}=await q({x:g,y:x,initialPlacement:i,placement:A,strategy:n,middlewareData:R,rects:h,platform:s,elements:{reference:o,floating:t}});if(g=ot??g,x=vt??x,R={...R,[Q]:{...R[Q],...Rt}},gt&&P<=50){P++,typeof gt=="object"&&(gt.placement&&(A=gt.placement),gt.rects&&(h=gt.rects===!0?await s.getElementRects({reference:o,floating:t,strategy:n}):gt.rects),{x:g,y:x}=va(h,A,p)),X=-1;continue}}return{x:g,y:x,placement:A,strategy:n,middlewareData:R}};async function pi(o,t){var r;t===void 0&&(t={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:p}=o,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:x="floating",altBoundary:A=!1,padding:R=0}=Jo(t,o),P=xa(R),Q=c[A?x==="floating"?"reference":"floating":x],q=Ge(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(Q)))==null||r?Q:Q.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:h,rootBoundary:g,strategy:p})),ot=x==="floating"?{...s.floating,x:i,y:n}:s.reference,vt=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),Rt=await(a.isElement==null?void 0:a.isElement(vt))?await(a.getScale==null?void 0:a.getScale(vt))||{x:1,y:1}:{x:1,y:1},gt=Ge(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:ot,offsetParent:vt,strategy:p}):ot);return{top:(q.top-gt.top+P.top)/Rt.y,bottom:(gt.bottom-q.bottom+P.bottom)/Rt.y,left:(q.left-gt.left+P.left)/Rt.x,right:(gt.right-q.right+P.right)/Rt.x}}function Ll(o,t,r){return(o?[...r.filter(n=>Le(n)===o),...r.filter(n=>Le(n)!==o)]:r.filter(n=>co(n)===n)).filter(n=>o?Le(n)===o||(t?ba(n)!==n:!1):!0)}var fi=function(o){return o===void 0&&(o={}),{name:"autoPlacement",options:o,async fn(t){var r,i,n;let{rects:a,middlewareData:s,placement:c,platform:p,elements:h}=t,{crossAxis:g=!1,alignment:x,allowedPlacements:A=ai,autoAlignment:R=!0,...P}=Jo(o,t),X=x!==void 0||A===ai?Ll(x||null,R,A):A,Q=await pi(t,P),q=((r=s.autoPlacement)==null?void 0:r.index)||0,ot=X[q];if(ot==null)return{};let vt=ya(ot,a,await(p.isRTL==null?void 0:p.isRTL(h.floating)));if(c!==ot)return{reset:{placement:X[0]}};let Rt=[Q[co(ot)],Q[vt[0]],Q[vt[1]]],gt=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:ot,overflows:Rt}],Go=X[q+1];if(Go)return{data:{index:q+1,overflows:gt},reset:{placement:Go}};let Wt=gt.map(f=>{let m=Le(f.placement);return[f.placement,m&&g?f.overflows.slice(0,2).reduce((I,yt)=>I+yt,0):f.overflows[0],f.overflows]}).sort((f,m)=>f[1]-m[1]),Je=((n=Wt.filter(f=>f[2].slice(0,Le(f[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||Wt[0][0];return Je!==c?{data:{index:q+1,overflows:gt},reset:{placement:Je}}:{}}}};var ui=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:r,y:i,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:Q=>{let{x:q,y:ot}=Q;return{x:q,y:ot}}},...p}=Jo(o,t),h={x:r,y:i},g=await pi(t,p),x=tr(co(n)),A=li(x),R=h[A],P=h[x];if(a){let Q=A==="y"?"top":"left",q=A==="y"?"bottom":"right",ot=R+g[Q],vt=R-g[q];R=si(ot,R,vt)}if(s){let Q=x==="y"?"top":"left",q=x==="y"?"bottom":"right",ot=P+g[Q],vt=P-g[q];P=si(ot,P,vt)}let X=c.fn({...t,[A]:R,[x]:P});return{...X,data:{x:X.x-r,y:X.y-i}}}}};function be(o){return Oa(o)?(o.nodeName||"").toLowerCase():"#document"}function Bt(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function xe(o){var t;return(t=(Oa(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function Oa(o){return o instanceof Node||o instanceof Bt(o).Node}function ce(o){return o instanceof Element||o instanceof Bt(o).Element}function oe(o){return o instanceof HTMLElement||o instanceof Bt(o).HTMLElement}function Ca(o){return typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof Bt(o).ShadowRoot}function po(o){let{overflow:t,overflowX:r,overflowY:i,display:n}=Ht(o);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!["inline","contents"].includes(n)}function wa(o){return["table","td","th"].includes(be(o))}function or(o){let t=rr(),r=Ht(o);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(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 Ea(o){let t=Ke(o);for(;oe(t)&&!ko(t);){if(or(t))return t;t=Ke(t)}return null}function rr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ko(o){return["html","body","#document"].includes(be(o))}function Ht(o){return Bt(o).getComputedStyle(o)}function $o(o){return ce(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function Ke(o){if(be(o)==="html")return o;let t=o.assignedSlot||o.parentNode||Ca(o)&&o.host||xe(o);return Ca(t)?t.host:t}function Ra(o){let t=Ke(o);return ko(t)?o.ownerDocument?o.ownerDocument.body:o.body:oe(t)&&po(t)?t:Ra(t)}function er(o,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=Ra(o),a=n===((i=o.ownerDocument)==null?void 0:i.body),s=Bt(n);return a?t.concat(s,s.visualViewport||[],po(n)?n:[],s.frameElement&&r?er(s.frameElement):[]):t.concat(n,er(n,[],r))}function Na(o){let t=Ht(o),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=oe(o),a=n?o.offsetWidth:r,s=n?o.offsetHeight:i,c=Lo(r)!==a||Lo(i)!==s;return c&&(r=a,i=s),{width:r,height:i,$:c}}function Ta(o){return ce(o)?o:o.contextElement}function fo(o){let t=Ta(o);if(!oe(t))return ye(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:a}=Na(t),s=(a?Lo(r.width):r.width)/i,c=(a?Lo(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var kl=ye(0);function _a(o){let t=Bt(o);return!rr()||!t.visualViewport?kl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $l(o,t,r){return t===void 0&&(t=!1),!r||t&&r!==Bt(o)?!1:t}function Po(o,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=o.getBoundingClientRect(),a=Ta(o),s=ye(1);t&&(i?ce(i)&&(s=fo(i)):s=fo(o));let c=$l(a,r,i)?_a(a):ye(0),p=(n.left+c.x)/s.x,h=(n.top+c.y)/s.y,g=n.width/s.x,x=n.height/s.y;if(a){let A=Bt(a),R=i&&ce(i)?Bt(i):i,P=A.frameElement;for(;P&&i&&R!==A;){let X=fo(P),Q=P.getBoundingClientRect(),q=Ht(P),ot=Q.left+(P.clientLeft+parseFloat(q.paddingLeft))*X.x,vt=Q.top+(P.clientTop+parseFloat(q.paddingTop))*X.y;p*=X.x,h*=X.y,g*=X.x,x*=X.y,p+=ot,h+=vt,P=Bt(P).frameElement}}return Ge({width:g,height:x,x:p,y:h})}function Pl(o){let{rect:t,offsetParent:r,strategy:i}=o,n=oe(r),a=xe(r);if(r===a)return t;let s={scrollLeft:0,scrollTop:0},c=ye(1),p=ye(0);if((n||!n&&i!=="fixed")&&((be(r)!=="body"||po(a))&&(s=$o(r)),oe(r))){let h=Po(r);c=fo(r),p.x=h.x+r.clientLeft,p.y=h.y+r.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-s.scrollLeft*c.x+p.x,y:t.y*c.y-s.scrollTop*c.y+p.y}}function Dl(o){return Array.from(o.getClientRects())}function La(o){return Po(xe(o)).left+$o(o).scrollLeft}function Bl(o){let t=xe(o),r=$o(o),i=o.ownerDocument.body,n=_e(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=_e(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+La(o),c=-r.scrollTop;return Ht(i).direction==="rtl"&&(s+=_e(t.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function Ul(o,t){let r=Bt(o),i=xe(o),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,p=0;if(n){a=n.width,s=n.height;let h=rr();(!h||h&&t==="fixed")&&(c=n.offsetLeft,p=n.offsetTop)}return{width:a,height:s,x:c,y:p}}function Ml(o,t){let r=Po(o,!0,t==="fixed"),i=r.top+o.clientTop,n=r.left+o.clientLeft,a=oe(o)?fo(o):ye(1),s=o.clientWidth*a.x,c=o.clientHeight*a.y,p=n*a.x,h=i*a.y;return{width:s,height:c,x:p,y:h}}function Aa(o,t,r){let i;if(t==="viewport")i=Ul(o,r);else if(t==="document")i=Bl(xe(o));else if(ce(t))i=Ml(t,r);else{let n=_a(o);i={...t,x:t.x-n.x,y:t.y-n.y}}return Ge(i)}function ka(o,t){let r=Ke(o);return r===t||!ce(r)||ko(r)?!1:Ht(r).position==="fixed"||ka(r,t)}function Fl(o,t){let r=t.get(o);if(r)return r;let i=er(o,[],!1).filter(c=>ce(c)&&be(c)!=="body"),n=null,a=Ht(o).position==="fixed",s=a?Ke(o):o;for(;ce(s)&&!ko(s);){let c=Ht(s),p=or(s);!p&&c.position==="fixed"&&(n=null),(a?!p&&!n:!p&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||po(s)&&!p&&ka(o,s))?i=i.filter(g=>g!==s):n=c,s=Ke(s)}return t.set(o,i),i}function zl(o){let{element:t,boundary:r,rootBoundary:i,strategy:n}=o,s=[...r==="clippingAncestors"?Fl(t,this._c):[].concat(r),i],c=s[0],p=s.reduce((h,g)=>{let x=Aa(t,g,n);return h.top=_e(x.top,h.top),h.right=_o(x.right,h.right),h.bottom=_o(x.bottom,h.bottom),h.left=_e(x.left,h.left),h},Aa(t,c,n));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Wl(o){return Na(o)}function Hl(o,t,r){let i=oe(t),n=xe(t),a=r==="fixed",s=Po(o,!0,a,t),c={scrollLeft:0,scrollTop:0},p=ye(0);if(i||!i&&!a)if((be(t)!=="body"||po(n))&&(c=$o(t)),i){let h=Po(t,!0,a,t);p.x=h.x+t.clientLeft,p.y=h.y+t.clientTop}else n&&(p.x=La(n));return{x:s.left+c.scrollLeft-p.x,y:s.top+c.scrollTop-p.y,width:s.width,height:s.height}}function Ia(o,t){return!oe(o)||Ht(o).position==="fixed"?null:t?t(o):o.offsetParent}function $a(o,t){let r=Bt(o);if(!oe(o))return r;let i=Ia(o,t);for(;i&&wa(i)&&Ht(i).position==="static";)i=Ia(i,t);return i&&(be(i)==="html"||be(i)==="body"&&Ht(i).position==="static"&&!or(i))?r:i||Ea(o)||r}var Vl=async function(o){let{reference:t,floating:r,strategy:i}=o,n=this.getOffsetParent||$a,a=this.getDimensions;return{reference:Hl(t,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function Gl(o){return Ht(o).direction==="rtl"}var ir={convertOffsetParentRelativeRectToViewportRelativeRect:Pl,getDocumentElement:xe,getClippingRect:zl,getOffsetParent:$a,getElementRects:Vl,getClientRects:Dl,getDimensions:Wl,getScale:fo,isElement:ce,isRTL:Gl};var Pa=(o,t,r)=>{let i=new Map,n={platform:ir,...r},a={...n.platform,_c:i};return Sa(o,t,{...n,platform:a})};function Da(o){return Kl(o)}function hi(o){return o.assignedSlot?o.assignedSlot:o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}function Kl(o){for(let t=o;t;t=hi(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=hi(o);t;t=hi(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function nr(o,t,r){return Pa(o,t,{platform:{...ir,getOffsetParent:i=>ir.getOffsetParent(i,Da)},middleware:[ui({crossAxis:!0}),fi({allowedPlacements:[r]})]})}var Ut=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Z=class extends Do.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 Do.Debouncer,this.revealDebouncer=new Do.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Ba.html`
586
578
  <div part="container"
587
579
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
588
580
  @mouseenter=${this.onHover}
@@ -600,12 +592,12 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
600
592
  </div>
601
593
  </div>
602
594
  </div>
603
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Fo(this.slottedElement,this.tooltip,this.position).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}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",(t=>{t.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(t,e){return Math.max(t,Math.min(0,-e))}}Ho.elementDefinitions={"ft-typography":ke},Ho.styles=Ae,Po([i.property()],Ho.prototype,"text",void 0),Po([i.property({type:Boolean})],Ho.prototype,"manual",void 0),Po([i.property({type:Boolean})],Ho.prototype,"inline",void 0),Po([i.property({type:Number})],Ho.prototype,"delay",void 0),Po([i.property()],Ho.prototype,"position",void 0),Po([i.queryAssignedNodes()],Ho.prototype,"slotNodes",void 0),Po([i.query(".ft-tooltip--container")],Ho.prototype,"container",void 0),Po([i.query(".ft-tooltip")],Ho.prototype,"tooltip",void 0),Po([i.query(".ft-tooltip--content")],Ho.prototype,"tooltipContent",void 0),Po([i.state()],Ho.prototype,"visible",void 0),Po([i.eventOptions({passive:!0})],Ho.prototype,"onTouch",null),Po([i.eventOptions({passive:!0})],Ho.prototype,"onHover",null),Po([i.eventOptions({passive:!0})],Ho.prototype,"onOut",null),Po([i.eventOptions({passive:!0})],Ho.prototype,"onClick",null),e.customElement("ft-tooltip")(Ho),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE="&#xe909;",t.OCTAGON_XMARK="&#xe97d;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",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.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CONSUMER="&#xe97c;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;"}(Bo||(Bo={})),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;"}(Ko||(Ko={})),new Map([...["abw"].map((t=>[t,Ko.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,Ko.AUDIO])),...["avi"].map((t=>[t,Ko.AVI])),...["chm","xhs"].map((t=>[t,Ko.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,Ko.CODE])),...["csv"].map((t=>[t,Ko.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ko.DITA])),...["epub"].map((t=>[t,Ko.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ko.EXCEL])),...["flac"].map((t=>[t,Ko.FLAC])),...["gif"].map((t=>[t,Ko.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ko.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ko.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,Ko.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ko.JPEG])),...["json"].map((t=>[t,Ko.JSON])),...["m4a","m4p"].map((t=>[t,Ko.M4A])),...["mov","qt"].map((t=>[t,Ko.MOV])),...["mp3"].map((t=>[t,Ko.MP3])),...["mp4","m4v"].map((t=>[t,Ko.MP4])),...["ogg","oga"].map((t=>[t,Ko.OGG])),...["pdf","ps"].map((t=>[t,Ko.PDF])),...["png"].map((t=>[t,Ko.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ko.POWERPOINT])),...["rar"].map((t=>[t,Ko.RAR])),...["stp"].map((t=>[t,Ko.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ko.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,Ko.VIDEO])),...["wav"].map((t=>[t,Ko.WAV])),...["wma"].map((t=>[t,Ko.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ko.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ko.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ko.YAML])),...["zip"].map((t=>[t,Ko.ZIP]))]),Ko.ABW,Ko.AUDIO,Ko.AVI,Ko.CHM,Ko.CODE,Ko.CSV,Ko.DITA,Ko.EPUB,Ko.EXCEL,Ko.FLAC,Ko.GIF,Ko.GZIP,Ko.HTML,Ko.IMAGE,Ko.JPEG,Ko.JSON,Ko.M4A,Ko.MOV,Ko.MP3,Ko.MP4,Ko.OGG,Ko.PDF,Ko.PNG,Ko.POWERPOINT,Ko.RAR,Ko.STP,Ko.TEXT,Ko.UNKNOWN,Ko.VIDEO,Ko.WAV,Ko.WMA,Ko.WORD,Ko.XML,Ko.YAML,Ko.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Mo||(Mo={}));var jo=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Go extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=o.nothing}render(){const t=this.variant&&Object.values(Mo).includes(this.variant)?this.variant:Mo.fluid_topics,e=t!==Mo.material||!!this.value;return o.html`
595
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",nr(this.slottedElement,this.tooltip,this.position).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${t}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",t=>{t.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(t,r){return Math.max(t,Math.min(0,-r))}};Z.elementDefinitions={"ft-typography":it};Z.styles=ha;Ut([(0,ut.property)()],Z.prototype,"text",void 0);Ut([(0,ut.property)({type:Boolean})],Z.prototype,"manual",void 0);Ut([(0,ut.property)({type:Boolean})],Z.prototype,"inline",void 0);Ut([(0,ut.property)({type:Number})],Z.prototype,"delay",void 0);Ut([(0,ut.property)()],Z.prototype,"position",void 0);Ut([(0,ut.queryAssignedNodes)()],Z.prototype,"slotNodes",void 0);Ut([(0,ut.query)(".ft-tooltip--container")],Z.prototype,"container",void 0);Ut([(0,ut.query)(".ft-tooltip")],Z.prototype,"tooltip",void 0);Ut([(0,ut.query)(".ft-tooltip--content")],Z.prototype,"tooltipContent",void 0);Ut([(0,ut.state)()],Z.prototype,"visible",void 0);Ut([(0,ut.eventOptions)({passive:!0})],Z.prototype,"onTouch",null);Ut([(0,ut.eventOptions)({passive:!0})],Z.prototype,"onHover",null);Ut([(0,ut.eventOptions)({passive:!0})],Z.prototype,"onOut",null);Ut([(0,ut.eventOptions)({passive:!0})],Z.prototype,"onClick",null);(0,Ua.customElement)("ft-tooltip")(Z);var Ha=u(S());var Bo=u(_()),je=u(K()),za=u(S()),Wa=u(Fa());var Ze;(function(o){o.THUMBS_DOWN="&#xe94d;",o.THUMBS_DOWN_PLAIN="&#xe94e;",o.THUMBS_UP="&#xe94f;",o.THUMBS_UP_PLAIN="&#xe950;",o.STAR="&#xe94c;",o.STAR_PLAIN="&#xe900;",o.DESKTOP="&#xe95e;",o.LIFE_RING="&#xe975;",o.GLOBE="&#xe976;",o.PIGGY_BANK="&#xe977;",o.TABLET_LANDSCAPE="&#xe95f;",o.TABLET_PORTRAIT="&#xe960;",o.MOBILE_LANDSCAPE="&#xe961;",o.MOBILE_PORTRAIT="&#xe962;",o.ARROW_RIGHT_TO_LINE="&#xe95d;",o.THIN_ARROW_UP="&#xe95c;",o.CONTEXTUAL="&#xe95b;",o.CHART_SIMPLE="&#xe968;",o.BARS_PROGRESS="&#xe969;",o.LINE_CHART="&#xe96c;",o.STACKED_CHART="&#xe96d;",o.CHART_BAR_NORMALIZED="&#xe97b;",o.BOOK_OPEN_GEAR="&#xe96a;",o.BOOK_OPEN_GEAR_SLASH="&#xe96b;",o.DIAGRAM_SUNBURST="&#xe963;",o.DIAGRAM_SANKEY="&#xe964;",o.UNSTRUCTURED_DOC="&#xe95a;",o.RESET="&#xe958;",o.THIN_ARROW_LEFT="&#xe956;",o.THIN_ARROW_RIGHT="&#xe957;",o.MY_COLLECTIONS="&#xe955;",o.OFFLINE_SETTINGS="&#xe954;",o.MY_LIBRARY="&#xe959;",o.RATE_PLAIN="&#xe952;",o.RATE="&#xe953;",o.FEEDBACK_PLAIN="&#xe951;",o.PAUSE="&#xe949;",o.PLAY="&#xe94a;",o.RELATIVES_PLAIN="&#xe947;",o.RELATIVES="&#xe948;",o.SHORTCUT_MENU="&#xe946;",o.PRINT="&#xe944;",o.DEFAULT_ROLES="&#xe945;",o.ACCOUNT_SETTINGS="&#xe943;",o.ONLINE="&#xe941;",o.OFFLINE="&#xe816;",o.UPLOAD="&#xe940;",o.BOOK_PLAIN="&#xe93f;",o.SYNC="&#xe93d;",o.SHARED_PBK="&#xe931;",o.COLLECTIONS="&#xe92a;",o.SEARCH_IN_PUBLICATION="&#xe92f;",o.BOOKS="&#xe806;",o.LOCKER="&#xe93b;",o.ARROW_DOWN="&#xe92b;",o.ARROW_LEFT="&#xe92c;",o.ARROW_RIGHT="&#xe92d;",o.ARROW_UP="&#xe92e;",o.SAVE="&#xe93a;",o.MAILS_AND_NOTIFICATIONS="&#xe939;",o.DOT="&#xe936;",o.MINUS="&#xe937;",o.PLUS="&#xe938;",o.FILTERS="&#xe935;",o.STRIPE_ARROW_RIGHT="&#xe934;",o.STRIPE_ARROW_LEFT="&#xe933;",o.ATTACHMENTS="&#xe932;",o.ADD_BOOKMARK="&#xe804;",o.BOOKMARK="&#xe805;",o.EXPORT="&#xe80f;",o.MENU="&#xe807;",o.TAG="&#xe93e;",o.TAG_PLAIN="&#xe942;",o.COPY_TO_CLIPBOARD="&#xe930;",o.COLUMNS="&#xe928;",o.ARTICLE="&#xe927;",o.CLOSE="&#xe909;",o.OCTAGON_XMARK="&#xe97d;",o.CLOSE_PLAIN="&#xe925;",o.CHECK_PLAIN="&#xe926;",o.LOGOUT="&#xe923;",o.SIGN_IN="&#xe922;",o.THIN_ARROW="&#xe921;",o.TRIANGLE_BOTTOM="&#xe91d;",o.TRIANGLE_LEFT="&#xe91e;",o.TRIANGLE_RIGHT="&#xe91f;",o.TRIANGLE_TOP="&#xe920;",o.FACET_HAS_DESCENDANT="&#xe91c;",o.MINUS_PLAIN="&#xe91a;",o.PLUS_PLAIN="&#xe91b;",o.INFO="&#xe919;",o.ICON_EXPAND="&#xe917;",o.ICON_COLLAPSE="&#xe918;",o.ADD_TO_PBK="&#xe800;",o.ALERT="&#xe801;",o.ADD_ALERT="&#xe802;",o.BACK_TO_SEARCH="&#xe803;",o.DOWNLOAD="&#xe808;",o.EDIT="&#xe809;",o.FEEDBACK="&#xe80a;",o.MODIFY_PBK="&#xe80c;",o.SCHEDULED="&#xe80d;",o.SEARCH="&#xe80e;",o.SHARE="&#xe80f1;",o.TOC="&#xe810;",o.WRITE_UGC="&#xe811;",o.TRASH="&#xe812;",o.EXTLINK="&#xe814;",o.EXTLINK_LIGHT="&#xe978;",o.CALENDAR="&#xe815;",o.BOOK="&#xe817;",o.DOWNLOAD_PLAIN="&#xe818;",o.CHECK="&#xe819;",o.TOPICS="&#xe901;",o.EYE="&#xf06e;",o.EYE_SLASH="&#xe970;",o.DISC="&#xe902;",o.CIRCLE="&#xe903;",o.SHARED="&#xe904;",o.SORT_UNSORTED="&#xe905;",o.SORT_UP="&#xe906;",o.SORT_DOWN="&#xe907;",o.WORKING="&#xe908;",o.ZOOM_OUT="&#xe90a;",o.ZOOM_IN="&#xe90b;",o.ZOOM_REALSIZE="&#xe90c;",o.ZOOM_FULLSCREEN="&#xe90d;",o.ADMIN_RESTRICTED="&#xe90e;",o.ADMIN_THEME="&#xe911;",o.WARNING="&#xe913;",o.CONTEXT="&#xe914;",o.SEARCH_HOME="&#xe915;",o.STEPS="&#xe916;",o.HOME="&#xe80b;",o.TRANSLATE="&#xe924;",o.USER="&#xe813;",o.ADMIN="&#xe90f;",o.ANALYTICS="&#xe929;",o.ADMIN_KHUB="&#xe910;",o.ADMIN_USERS="&#xe912;",o.ADMIN_INTEGRATION="&#xe93c;",o.ADMIN_PORTAL="&#xe94b;",o.COMMENT_QUESTION="&#xe965;",o.COMMENT_QUESTION_PLAIN="&#xe966;",o.MESSAGE_BOT="&#xe967;",o.PIP="&#xe973;",o.PIP_WIDE="&#xe974;",o.EXPAND_WIDE="&#xe972;",o.X_MARK="&#xe971;",o.CLONE="&#xe979;",o.CLONE_LINK_SIMPLE="&#xe97a;",o.CONSUMER="&#xe97c;",o.HOURGLASS_HALF="&#xe97e;",o.CLOCK_THREE="&#xe97f;",o.CALENDAR_DAY="&#xe980;",o.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",o.WAND_MAGIC_SPARKLES="&#xe982;",o.PAPER_PLANE="&#xe983;"})(Ze||(Ze={}));var y;(function(o){o.UNKNOWN="&#xe90a;",o.ABW="&#xe900;",o.AUDIO="&#xe901;",o.AVI="&#xe902;",o.CHM="&#xe904;",o.CODE="&#xe905;",o.CSV="&#xe903;",o.DITA="&#xe906;",o.EPUB="&#xe907;",o.EXCEL="&#xe908;",o.FLAC="&#xe909;",o.GIF="&#xe90b;",o.GZIP="&#xe90c;",o.HTML="&#xe90d;",o.IMAGE="&#xe90e;",o.JPEG="&#xe90f;",o.JSON="&#xe910;",o.M4A="&#xe911;",o.MOV="&#xe912;",o.MP3="&#xe913;",o.MP4="&#xe914;",o.OGG="&#xe915;",o.PDF="&#xe916;",o.PNG="&#xe917;",o.POWERPOINT="&#xe918;",o.RAR="&#xe91a;",o.STP="&#xe91b;",o.TEXT="&#xe91c;",o.VIDEO="&#xe91e;",o.WAV="&#xe91f;",o.WMA="&#xe920;",o.WORD="&#xe921;",o.XML="&#xe922;",o.YAML="&#xe919;",o.ZIP="&#xe923;"})(y||(y={}));var Yu=new Map([...["abw"].map(o=>[o,y.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(o=>[o,y.AUDIO]),...["avi"].map(o=>[o,y.AVI]),...["chm","xhs"].map(o=>[o,y.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(o=>[o,y.CODE]),...["csv"].map(o=>[o,y.CSV]),...["dita","ditamap","ditaval"].map(o=>[o,y.DITA]),...["epub"].map(o=>[o,y.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(o=>[o,y.EXCEL]),...["flac"].map(o=>[o,y.FLAC]),...["gif"].map(o=>[o,y.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(o=>[o,y.GZIP]),...["html","htm","xhtml"].map(o=>[o,y.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(o=>[o,y.IMAGE]),...["jpeg","jpg","jpe"].map(o=>[o,y.JPEG]),...["json"].map(o=>[o,y.JSON]),...["m4a","m4p"].map(o=>[o,y.M4A]),...["mov","qt"].map(o=>[o,y.MOV]),...["mp3"].map(o=>[o,y.MP3]),...["mp4","m4v"].map(o=>[o,y.MP4]),...["ogg","oga"].map(o=>[o,y.OGG]),...["pdf","ps"].map(o=>[o,y.PDF]),...["png"].map(o=>[o,y.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(o=>[o,y.POWERPOINT]),...["rar"].map(o=>[o,y.RAR]),...["stp"].map(o=>[o,y.STP]),...["txt","rtf","md","mdown"].map(o=>[o,y.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(o=>[o,y.VIDEO]),...["wav"].map(o=>[o,y.WAV]),...["wma"].map(o=>[o,y.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(o=>[o,y.WORD]),...["xml","xsl","rdf"].map(o=>[o,y.XML]),...["yaml","yml","x-yaml"].map(o=>[o,y.YAML]),...["zip"].map(o=>[o,y.ZIP])]);var qu={[y.ABW]:"#91ABC6",[y.AUDIO]:"#1795E3",[y.AVI]:"#E63324",[y.CHM]:"#71C3EB",[y.CODE]:"#71C3EB",[y.CSV]:"#1F7345",[y.DITA]:"#71C3EB",[y.EPUB]:"#85B926",[y.EXCEL]:"#1F7345",[y.FLAC]:"#1795E3",[y.GIF]:"#59B031",[y.GZIP]:"#F8AB36",[y.HTML]:"#71C3EB",[y.IMAGE]:"#59B031",[y.JPEG]:"#59B031",[y.JSON]:"#71C3EB",[y.M4A]:"#1795E3",[y.MOV]:"#E63324",[y.MP3]:"#1795E3",[y.MP4]:"#E63324",[y.OGG]:"#1795E3",[y.PDF]:"#E44948",[y.PNG]:"#59B031",[y.POWERPOINT]:"#B54A2B",[y.RAR]:"#F8AB36",[y.STP]:"#3764B1",[y.TEXT]:"#3162AB",[y.UNKNOWN]:"#999999",[y.VIDEO]:"#E63324",[y.WAV]:"#1795E3",[y.WMA]:"#1795E3",[y.WORD]:"#3162AB",[y.XML]:"#71C3EB",[y.YAML]:"#71C3EB",[y.ZIP]:"#F8AB36"};var Mt;(function(o){o.fluid_topics="fluid-topics",o.file_format="file-format",o.material="material"})(Mt||(Mt={}));var ar=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},dt=class extends za.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Bo.nothing}render(){let t=this.variant&&Object.values(Mt).includes(this.variant)?this.variant:Mt.fluid_topics,r=t!==Mt.material||!!this.value;return Bo.html`
604
596
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
605
- ${n.unsafeHTML(this.resolvedIcon)}
606
- <slot ?hidden=${e}></slot>
597
+ ${(0,Wa.unsafeHTML)(this.resolvedIcon)}
598
+ <slot ?hidden=${r}></slot>
607
599
  </i>
608
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Mo.file_format:this.resolvedIcon=null!==(t=Ko[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Mo.material:this.resolvedIcon=this.value||o.nothing;break;default:this.resolvedIcon=null!==(e=Bo[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Go.elementDefinitions={},Go.styles=It,jo([i.property()],Go.prototype,"variant",void 0),jo([i.property()],Go.prototype,"value",void 0),jo([i.state()],Go.prototype,"resolvedIcon",void 0),jo([i.query("slot")],Go.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Go);const Vo={borderRadiusLeft:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",e.designSystemVariables.borderRadiusL),borderRadiusRight:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",e.designSystemVariables.borderRadiusL),borderWidthLeft:e.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:e.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:e.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Yo=o.css`
600
+ `}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let i=this.value||this.textContent;switch(this.variant){case Mt.file_format:this.resolvedIcon=(t=y[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case Mt.material:this.resolvedIcon=this.value||Bo.nothing;break;default:this.resolvedIcon=(r=Ze[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};dt.elementDefinitions={};dt.styles=Dn;ar([(0,je.property)()],dt.prototype,"variant",void 0);ar([(0,je.property)()],dt.prototype,"value",void 0);ar([(0,je.state)()],dt.prototype,"resolvedIcon",void 0);ar([(0,je.query)("slot")],dt.prototype,"slottedContent",void 0);(0,Ha.customElement)("ft-icon")(dt);var Va=u(_()),_t=u(S());var ht={borderRadiusLeft:_t.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",_t.designSystemVariables.borderRadiusL),borderRadiusRight:_t.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",_t.designSystemVariables.borderRadiusL),borderWidthLeft:_t.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:_t.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:_t.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Ga=Va.css`
609
601
  .ft-switch-option {
610
602
  position: relative;
611
603
  display: inline-block;
@@ -619,20 +611,20 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
619
611
  }
620
612
 
621
613
  .ft-switch-option--content {
622
- --ft-switch-option-internal-line-height: calc(${Dt.fontSize} + 2px);
623
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Dt.iconSize});
614
+ --ft-switch-option-internal-line-height: calc(${rt.fontSize} + 2px);
615
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${rt.iconSize});
624
616
 
625
617
  border-style: solid;
626
- border-color: ${Dt.borderColor};
627
- border-width: ${Vo.borderWidthVertical} ${Vo.borderWidthRight} ${Vo.borderWidthVertical} ${Vo.borderWidthLeft};
628
- border-radius: ${Vo.borderRadiusLeft} ${Vo.borderRadiusRight} ${Vo.borderRadiusRight} ${Vo.borderRadiusLeft};
618
+ border-color: ${rt.borderColor};
619
+ border-width: ${ht.borderWidthVertical} ${ht.borderWidthRight} ${ht.borderWidthVertical} ${ht.borderWidthLeft};
620
+ border-radius: ${ht.borderRadiusLeft} ${ht.borderRadiusRight} ${ht.borderRadiusRight} ${ht.borderRadiusLeft};
629
621
  display: flex;
630
622
  align-items: center;
631
623
  justify-content: center;
632
624
  overflow: hidden;
633
- ${e.setVariable($t.size,Dt.iconSize)};
625
+ ${(0,_t.setVariable)(bt.size,rt.iconSize)};
634
626
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
635
- background-color: ${Dt.backgroundColor};
627
+ background-color: ${rt.backgroundColor};
636
628
  -webkit-mask-image: radial-gradient(white, black);
637
629
  }
638
630
 
@@ -641,28 +633,28 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
641
633
  }
642
634
 
643
635
  .ft-switch-option--selected .ft-switch-option--content:before {
644
- background-color: ${Dt.selectedBackgroundColor};
645
- border-radius: ${Vo.borderRadiusLeft} ${Vo.borderRadiusRight} ${Vo.borderRadiusRight} ${Vo.borderRadiusLeft};
636
+ background-color: ${rt.selectedBackgroundColor};
637
+ border-radius: ${ht.borderRadiusLeft} ${ht.borderRadiusRight} ${ht.borderRadiusRight} ${ht.borderRadiusLeft};
646
638
  position: absolute;
647
639
  inset: 0;
648
640
  content: "";
649
641
  z-index: 1;
650
- opacity: ${e.designSystemVariables.opacityPrimaryOnSurfaceSelected};
642
+ opacity: ${_t.designSystemVariables.opacityPrimaryOnSurfaceSelected};
651
643
  }
652
644
 
653
645
  .ft-switch-option--label {
654
- color: ${Dt.textColor};
646
+ color: ${rt.textColor};
655
647
  overflow: hidden;
656
648
  white-space: nowrap;
657
649
  text-overflow: ellipsis;
658
650
  display: block;
659
651
  margin: 0 8px;
660
- ${e.setVariable(dt.fontSize,Dt.fontSize)};
661
- ${e.setVariable(dt.lineHeight,"var(--ft-switch-option-internal-content-height)")}
652
+ ${(0,_t.setVariable)(Tt.fontSize,rt.fontSize)};
653
+ ${(0,_t.setVariable)(Tt.lineHeight,"var(--ft-switch-option-internal-content-height)")}
662
654
  }
663
655
 
664
656
  .ft-switch-option--selected .ft-switch-option--label {
665
- color: ${Dt.selectedTextColor};
657
+ color: ${rt.selectedTextColor};
666
658
  }
667
659
 
668
660
  .ft-switch-option--label[hidden] {
@@ -670,7 +662,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
670
662
  }
671
663
 
672
664
  .ft-switch-option--ripple {
673
- ${e.setVariable(h.color,Dt.rippleColor)};
665
+ ${(0,_t.setVariable)(N.color,rt.rippleColor)};
674
666
  }
675
667
 
676
668
  ft-icon, ft-ripple, ft-typography {
@@ -683,20 +675,20 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
683
675
 
684
676
  ft-icon {
685
677
  flex-shrink: 0;
686
- color: ${Dt.iconColor};
678
+ color: ${rt.iconColor};
687
679
  }
688
680
 
689
681
  .ft-switch-option--selected ft-icon {
690
- color: ${Dt.selectedTextColor};
682
+ color: ${rt.selectedTextColor};
691
683
  }
692
- `;var qo=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Xo extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Qo extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class Jo extends e.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Qo(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(o.html`
693
- <label part="label" for="input" class=${r.classMap(t)}
684
+ `;var de=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},mi=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},gi=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},pt=class extends ho.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new gi(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(uo.html`
685
+ <label part="label" for="input" class=${(0,Ka.classMap)(t)}
694
686
  @click=${this.onChange}>
695
687
  <div class="ft-switch-option--content">
696
688
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
697
689
  <ft-typography part="text"
698
690
  variant="button"
699
- class="ft-switch-option--label ${e.isSafari?"ft-safari-ellipsis-fix":""}"
691
+ class="ft-switch-option--label ${ho.isSafari?"ft-safari-ellipsis-fix":""}"
700
692
  ?hidden=${!this.hasTextContent()}>
701
693
  <slot @slotchange=${this.onSlotchange}></slot>
702
694
  </ft-typography>
@@ -705,29 +697,29 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
705
697
  </label>
706
698
  <input id="input" type="radio" class="ft-switch-option--input"
707
699
  .checked=${this.selected}>
708
- `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:o.html`
700
+ `)}addTooltip(t){return this.hasTextContent()||this.getLabel().trim().length===0?t:uo.html`
709
701
  <ft-tooltip part="tooltip"
710
702
  text="${this.getLabel()}"
711
703
  position="${this.tooltipPosition}">
712
704
  ${t}
713
705
  </ft-tooltip>
714
- `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new Xo(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?o.html`
706
+ `}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new mi(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?uo.html`
715
707
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
716
- `:o.nothing}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Jo.elementDefinitions={"ft-ripple":Re,"ft-typography":ke,"ft-tooltip":Ho,"ft-icon":Go},Jo.styles=[e.safariEllipsisFix,Yo],qo([i.property()],Jo.prototype,"value",void 0),qo([i.property()],Jo.prototype,"icon",void 0),qo([i.property()],Jo.prototype,"iconVariant",void 0),qo([i.property()],Jo.prototype,"label",void 0),qo([i.property()],Jo.prototype,"tooltipPosition",void 0),qo([i.property({type:Boolean,reflect:!0})],Jo.prototype,"selected",void 0),qo([i.property({type:Boolean})],Jo.prototype,"trailingIcon",void 0),qo([i.property({type:Boolean})],Jo.prototype,"unselectable",void 0),qo([i.query(".ft-switch-option--content slot")],Jo.prototype,"slottedContent",void 0),qo([i.query(".ft-switch-option--input")],Jo.prototype,"input",void 0);var ti=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ei extends CustomEvent{constructor(t){super("change",{detail:t})}}class oi extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return o.html`
717
- <div @keydown=${this.onKeyDown} tabindex="0" class="${r.classMap(t)}">
708
+ `:uo.nothing}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};pt.elementDefinitions={"ft-ripple":B,"ft-typography":it,"ft-tooltip":Z,"ft-icon":dt};pt.styles=[ho.safariEllipsisFix,Ga];de([(0,Xt.property)()],pt.prototype,"value",void 0);de([(0,Xt.property)()],pt.prototype,"icon",void 0);de([(0,Xt.property)()],pt.prototype,"iconVariant",void 0);de([(0,Xt.property)()],pt.prototype,"label",void 0);de([(0,Xt.property)()],pt.prototype,"tooltipPosition",void 0);de([(0,Xt.property)({type:Boolean,reflect:!0})],pt.prototype,"selected",void 0);de([(0,Xt.property)({type:Boolean})],pt.prototype,"trailingIcon",void 0);de([(0,Xt.property)({type:Boolean})],pt.prototype,"unselectable",void 0);de([(0,Xt.query)(".ft-switch-option--content slot")],pt.prototype,"slottedContent",void 0);de([(0,Xt.query)(".ft-switch-option--input")],pt.prototype,"input",void 0);var Uo=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},yi=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Vt=class extends ve.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return sr.html`
709
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${(0,Za.classMap)(t)}">
718
710
  <slot @slotchange=${this.onSlotchange}
719
711
  @option-change=${this.onOptionChangeByScript}
720
712
  @option-change-by-user=${this.onOptionChangeByUser}
721
713
  ></slot>
722
714
  </div>
723
- `}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof Jo&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new ei(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}oi.elementDefinitions={},oi.styles=o.css`
715
+ `}onKeyDown(t){let r;(t.key=="ArrowDown"||t.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(t.key=="ArrowUp"||t.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),r!=null&&(t.preventDefault(),this.options[this.fixIndex(r)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],(t=this.slottedContent)===null||t===void 0||t.assignedElements().forEach(r=>{r instanceof pt&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let r=t.target;this.onOptionChange(r)}onOptionChangeByUser(t){var r;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new yi((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(t=>{t.selected=t===this.selectedOption})}};Vt.elementDefinitions={};Vt.styles=sr.css`
724
716
  :host {
725
717
  display: inline-block;
726
718
  }
727
719
 
728
720
  .ft-switch {
729
- border-radius: ${Dt.borderRadius};
730
- outline-color: ${Dt.outlineColor};
721
+ border-radius: ${rt.borderRadius};
722
+ outline-color: ${rt.outlineColor};
731
723
  }
732
724
 
733
725
  .ft-switch slot {
@@ -736,25 +728,25 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
736
728
  }
737
729
 
738
730
  .ft-switch slot::slotted(ft-switch-option) {
739
- ${e.setVariable(Vo.borderRadiusLeft,"0")};
740
- ${e.setVariable(Vo.borderRadiusRight,"0")};
741
- ${e.setVariable(Vo.borderWidthLeft,"0")};
731
+ ${(0,ve.setVariable)(ht.borderRadiusLeft,"0")};
732
+ ${(0,ve.setVariable)(ht.borderRadiusRight,"0")};
733
+ ${(0,ve.setVariable)(ht.borderWidthLeft,"0")};
742
734
  }
743
735
 
744
736
  .ft-switch slot::slotted(ft-switch-option:first-child) {
745
- ${e.setVariable(Vo.borderRadiusLeft,Dt.borderRadius)};
746
- ${e.setVariable(Vo.borderWidthLeft,"1px")};
737
+ ${(0,ve.setVariable)(ht.borderRadiusLeft,rt.borderRadius)};
738
+ ${(0,ve.setVariable)(ht.borderWidthLeft,"1px")};
747
739
  }
748
740
 
749
741
  .ft-switch slot::slotted(ft-switch-option:last-child) {
750
- ${e.setVariable(Vo.borderRadiusRight,Dt.borderRadius)};
742
+ ${(0,ve.setVariable)(ht.borderRadiusRight,rt.borderRadius)};
751
743
  }
752
744
 
753
745
  .ft-switch--dense slot::slotted(ft-switch-option) {
754
746
  --ft-switch-internal-vertical-padding: 2px;
755
747
  --ft-switch-internal-horizontal-padding: 4px;
756
748
  }
757
- `,ti([i.property({type:Boolean})],oi.prototype,"dense",void 0),ti([i.property({type:Boolean})],oi.prototype,"unselectable",void 0),ti([i.query(".ft-switch slot")],oi.prototype,"slottedContent",void 0),ti([i.state()],oi.prototype,"selectedOption",void 0),ti([i.query(".ft-switch")],oi.prototype,"ftSwitchDiv",void 0),e.customElement("ft-switch")(oi),e.customElement("ft-switch-option")(Jo);const ii=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),ri=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),ni=o.css`
749
+ `;Uo([(0,ke.property)({type:Boolean})],Vt.prototype,"dense",void 0);Uo([(0,ke.property)({type:Boolean})],Vt.prototype,"unselectable",void 0);Uo([(0,ke.query)(".ft-switch slot")],Vt.prototype,"slottedContent",void 0);Uo([(0,ke.state)()],Vt.prototype,"selectedOption",void 0);Uo([(0,ke.query)(".ft-switch")],Vt.prototype,"ftSwitchDiv",void 0);(0,bi.customElement)("ft-switch")(Vt);(0,bi.customElement)("ft-switch-option")(pt);var as=u(S());var dr=u(_()),Qt=u(K()),ns=u(Te()),pr=u(S());var Xa=u(S());var lr=u(_()),re=u(K()),cr=u(S());var Ya=u(_()),mo=u(S()),ja={colorOutline:mo.FtCssVariableFactory.external(mo.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:mo.FtCssVariableFactory.external(mo.designSystemVariables.colorOnSurfaceMedium,"Design system")},qa=Ya.css`
758
750
  :host {
759
751
  display: block;
760
752
  }
@@ -765,17 +757,17 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
765
757
 
766
758
  ft-icon {
767
759
  transform: rotate(-45deg);
768
- color: ${ii};
760
+ color: ${ja.colorOutline};
769
761
  }
770
762
 
771
763
  .ft-resizer--dragging ft-icon,
772
764
  .ft-resizer:hover ft-icon {
773
- color: ${ri};
765
+ color: ${ja.colorOnSurfaceMedium};
774
766
  }
775
- `;var ai=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class si extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class li extends e.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Mo.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.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 o.html`
767
+ `;var $e=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},xi=class extends CustomEvent{constructor(t,r){super("resize",{detail:{width:t,height:r}})}},At=class extends cr.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Mt.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.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 lr.html`
776
768
  <style>
777
769
  .ft-resizer {
778
- cursor: ${o.unsafeCSS(this.cursor)}
770
+ cursor: ${(0,lr.unsafeCSS)(this.cursor)}
779
771
  }
780
772
  </style>
781
773
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -783,25 +775,25 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
783
775
  @touchstart=${this.initDragFromTouch}>
784
776
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
785
777
  </div>
786
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,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(t,e){let o=this.fixedWidth+t-this.startX,i=this.fixedHeight+e-this.startY;this.dispatchEvent(new si(o,i))}}li.elementDefinitions={"ft-icon":Go},li.styles=[e.noTextSelect,ni],ai([i.property({type:Number})],li.prototype,"initialWidth",void 0),ai([i.property({type:Number})],li.prototype,"initialHeight",void 0),ai([i.property()],li.prototype,"icon",void 0),ai([i.property()],li.prototype,"iconVariant",void 0),ai([i.property()],li.prototype,"cursor",void 0),ai([i.state()],li.prototype,"dragging",void 0),ai([i.eventOptions({passive:!0})],li.prototype,"initDragFromMouse",null),ai([i.eventOptions({passive:!0})],li.prototype,"initDragFromTouch",null),e.customElement("ft-resizer")(li);const ci={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:e.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color","",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color","",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},di=o.css`
778
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,r){this.dragging=!0,this.startX=t,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(t,r){let i=this.fixedWidth+t-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new xi(i,n))}};At.elementDefinitions={"ft-icon":dt};At.styles=[cr.noTextSelect,qa];$e([(0,re.property)({type:Number})],At.prototype,"initialWidth",void 0);$e([(0,re.property)({type:Number})],At.prototype,"initialHeight",void 0);$e([(0,re.property)()],At.prototype,"icon",void 0);$e([(0,re.property)()],At.prototype,"iconVariant",void 0);$e([(0,re.property)()],At.prototype,"cursor",void 0);$e([(0,re.state)()],At.prototype,"dragging",void 0);$e([(0,re.eventOptions)({passive:!0})],At.prototype,"initDragFromMouse",null);$e([(0,re.eventOptions)({passive:!0})],At.prototype,"initDragFromTouch",null);(0,Xa.customElement)("ft-resizer")(At);var os=u(S());var vi=u(_()),go=u(K()),ts=u(Te()),es=u(S());var Qa=u(_()),G=u(S());var w={fontSize:G.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:G.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:G.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:G.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:G.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:G.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:G.FtCssVariableFactory.extend("--ft-input-label-border-color","",G.designSystemVariables.colorOutline),textColor:G.FtCssVariableFactory.extend("--ft-input-label-text-color","",G.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:G.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",G.designSystemVariables.colorOnSurfaceDisabled),colorSurface:G.FtCssVariableFactory.external(G.designSystemVariables.colorSurface,"Design system"),borderRadiusS:G.FtCssVariableFactory.external(G.designSystemVariables.borderRadiusS,"Design system"),colorError:G.FtCssVariableFactory.external(G.designSystemVariables.colorError,"Design system")},Ja=Qa.css`
787
779
  .ft-input-label {
788
780
  position: absolute;
789
781
  inset: 0;
790
782
  display: flex;
791
- background-color: ${ci.colorSurface};
792
- border-radius: ${ci.borderRadiusS} ${ci.borderRadiusS} 0 0;
783
+ background-color: ${w.colorSurface};
784
+ border-radius: ${w.borderRadiusS} ${w.borderRadiusS} 0 0;
793
785
  }
794
786
 
795
787
  .ft-input-label--outlined {
796
- border-radius: ${ci.borderRadiusS};
788
+ border-radius: ${w.borderRadiusS};
797
789
  }
798
790
 
799
791
  .ft-input-label {
800
- border-color: ${ci.borderColor};
792
+ border-color: ${w.borderColor};
801
793
  }
802
794
 
803
795
  .ft-input-label.ft-input-label--in-error {
804
- border-color: ${ci.colorError}
796
+ border-color: ${w.colorError}
805
797
  }
806
798
 
807
799
  .ft-input-label:before,
@@ -814,7 +806,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
814
806
  }
815
807
 
816
808
  .ft-input-label:before {
817
- width: calc(${ci.horizontalSpacing} - 4px);
809
+ width: calc(${w.horizontalSpacing} - 4px);
818
810
  flex-shrink: 0;
819
811
  }
820
812
 
@@ -830,20 +822,20 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
830
822
  border-bottom-width: 1px;
831
823
  border-bottom-style: solid;
832
824
  border-color: inherit;
833
- color: ${ci.textColor};
825
+ color: ${w.textColor};
834
826
  transition: font-size 250ms, line-height 250ms, color 250ms;
835
- max-width: calc(${ci.labelMaxWidth} - 2 * (${ci.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
827
+ max-width: calc(${w.labelMaxWidth} - 2 * (${w.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
836
828
  text-overflow: ellipsis;
837
- ${e.setVariable(X.fontSize,ci.fontSize)};
838
- ${e.setVariable(X.lineHeight,ci.fontSize)};
829
+ ${(0,G.setVariable)(ee.fontSize,w.fontSize)};
830
+ ${(0,G.setVariable)(ee.lineHeight,w.fontSize)};
839
831
  }
840
832
 
841
833
  .ft-input-label--in-error .ft-input-label--text {
842
- color: ${ci.colorError}
834
+ color: ${w.colorError}
843
835
  }
844
836
 
845
837
  .ft-input-label--disabled .ft-input-label--text {
846
- color: ${ci.disabledTextColor};
838
+ color: ${w.disabledTextColor};
847
839
  }
848
840
 
849
841
  .ft-input-label--hidden-text {
@@ -860,19 +852,19 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
860
852
  overflow: hidden;
861
853
  white-space: nowrap;
862
854
  text-overflow: ellipsis;
863
- padding: ${ci.verticalSpacing} 4px;
864
- margin: calc(${ci.verticalSpacing} * -1) 0;
855
+ padding: ${w.verticalSpacing} 4px;
856
+ margin: calc(${w.verticalSpacing} * -1) 0;
865
857
  max-width: 100%;
866
858
  box-sizing: border-box;
867
859
  }
868
860
 
869
861
  .ft-input-label--raised .ft-input-label--text {
870
- ${e.setVariable(X.fontSize,ci.raisedFontSize)};
871
- ${e.setVariable(X.lineHeight,ci.raisedFontSize)};
862
+ ${(0,G.setVariable)(ee.fontSize,w.raisedFontSize)};
863
+ ${(0,G.setVariable)(ee.lineHeight,w.raisedFontSize)};
872
864
  }
873
865
 
874
866
  .ft-input-label--raised .ft-input-label--floating-text {
875
- top: ${ci.verticalSpacing};
867
+ top: ${w.verticalSpacing};
876
868
  }
877
869
 
878
870
  .ft-input-label--outlined .ft-input-label--text,
@@ -885,36 +877,36 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
885
877
  .ft-input-label--outlined:before {
886
878
  border-left-width: 1px;
887
879
  border-left-style: solid;
888
- border-radius: ${ci.borderRadiusS} 0 0 ${ci.borderRadiusS};
880
+ border-radius: ${w.borderRadiusS} 0 0 ${w.borderRadiusS};
889
881
  }
890
882
 
891
883
  .ft-input-label--outlined:after {
892
884
  border-right-width: 1px;
893
885
  border-right-style: solid;
894
- border-radius: 0 ${ci.borderRadiusS} ${ci.borderRadiusS} 0;
886
+ border-radius: 0 ${w.borderRadiusS} ${w.borderRadiusS} 0;
895
887
  }
896
888
 
897
889
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
898
890
  padding: 2px 4px;
899
- z-index: ${ci.raisedZIndex};
900
- background-color: ${ci.colorSurface};
901
- border-radius: ${ci.borderRadiusS};
891
+ z-index: ${w.raisedZIndex};
892
+ background-color: ${w.colorSurface};
893
+ border-radius: ${w.borderRadiusS};
902
894
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
903
895
  }
904
896
 
905
897
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
906
898
  border-top: none;
907
899
  }
908
- `;var fi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class pi extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"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 o.html`
909
- <div class="${r.classMap(t)}">
910
- ${this.text?o.html`
900
+ `;var Mo=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Lt=class extends es.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let t={"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 vi.html`
901
+ <div class="${(0,ts.classMap)(t)}">
902
+ ${this.text?vi.html`
911
903
  <div class="ft-input-label--text ft-typography--caption">
912
904
  <span class="ft-input-label--floating-text">${this.text}</span>
913
905
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
914
906
  </div>
915
907
  `:null}
916
908
  </div>
917
- `}}pi.elementDefinitions={},pi.styles=[yt,di],fi([i.property({type:String})],pi.prototype,"text",void 0),fi([i.property({type:Boolean})],pi.prototype,"raised",void 0),fi([i.property({type:Boolean})],pi.prototype,"outlined",void 0),fi([i.property({type:Boolean})],pi.prototype,"disabled",void 0),fi([i.property({type:Boolean})],pi.prototype,"error",void 0),e.customElement("ft-input-label")(pi);const hi={fontSize:e.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-area-helper-color","",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},ui=o.css`
909
+ `}};Lt.elementDefinitions={};Lt.styles=[Yo,Ja];Mo([(0,go.property)({type:String})],Lt.prototype,"text",void 0);Mo([(0,go.property)({type:Boolean})],Lt.prototype,"raised",void 0);Mo([(0,go.property)({type:Boolean})],Lt.prototype,"outlined",void 0);Mo([(0,go.property)({type:Boolean})],Lt.prototype,"disabled",void 0);Mo([(0,go.property)({type:Boolean})],Lt.prototype,"error",void 0);(0,os.customElement)("ft-input-label")(Lt);var rs=u(_()),U=u(S());var z={fontSize:U.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:U.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:U.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:U.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:U.FtCssVariableFactory.extend("--ft-text-area-helper-color","",U.designSystemVariables.colorOnSurfaceMedium),colorPrimary:U.FtCssVariableFactory.external(U.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:U.FtCssVariableFactory.external(U.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:U.FtCssVariableFactory.external(U.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:U.FtCssVariableFactory.external(U.designSystemVariables.borderRadiusS,"Design system"),colorError:U.FtCssVariableFactory.external(U.designSystemVariables.colorError,"Design system")},is=rs.css`
918
910
  *:focus {
919
911
  outline: none;
920
912
  }
@@ -926,10 +918,10 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
926
918
  }
927
919
 
928
920
  ft-input-label {
929
- ${e.setVariable(ci.fontSize,hi.fontSize)};
930
- ${e.setVariable(ci.raisedFontSize,hi.labelSize)};
931
- ${e.setVariable(ci.verticalSpacing,hi.verticalSpacing)};
932
- ${e.setVariable(ci.horizontalSpacing,hi.horizontalSpacing)};
921
+ ${(0,U.setVariable)(w.fontSize,z.fontSize)};
922
+ ${(0,U.setVariable)(w.raisedFontSize,z.labelSize)};
923
+ ${(0,U.setVariable)(w.verticalSpacing,z.verticalSpacing)};
924
+ ${(0,U.setVariable)(w.horizontalSpacing,z.horizontalSpacing)};
933
925
  }
934
926
 
935
927
  .ft-text-area--main-panel {
@@ -947,8 +939,8 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
947
939
  }
948
940
 
949
941
  .ft-text-area--input-panel ft-ripple {
950
- ${e.setVariable(h.opacityContentOnSurfaceHover,"0.08")};
951
- ${e.setVariable(h.opacityContentOnSurfacePressed,"0.04")};
942
+ ${(0,U.setVariable)(N.opacityContentOnSurfaceHover,"0.08")};
943
+ ${(0,U.setVariable)(N.opacityContentOnSurfacePressed,"0.04")};
952
944
  }
953
945
 
954
946
  .ft-text-area--input {
@@ -960,12 +952,12 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
960
952
  align-self: stretch;
961
953
  resize: none;
962
954
 
963
- ${e.setVariable(P.fontSize,hi.fontSize)};
964
- ${e.setVariable(P.lineHeight,hi.fontSize)};
965
- color: ${hi.colorOnSurface};
955
+ ${(0,U.setVariable)(Yt.fontSize,z.fontSize)};
956
+ ${(0,U.setVariable)(Yt.lineHeight,z.fontSize)};
957
+ color: ${z.colorOnSurface};
966
958
 
967
- padding: 0 ${hi.horizontalSpacing};
968
- margin: calc(${hi.verticalSpacing} + ${hi.labelSize} / 2) 0 ${hi.verticalSpacing} 0;
959
+ padding: 0 ${z.horizontalSpacing};
960
+ margin: calc(${z.verticalSpacing} + ${z.labelSize} / 2) 0 ${z.verticalSpacing} 0;
969
961
 
970
962
  border: none;
971
963
  background: none;
@@ -974,7 +966,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
974
966
  }
975
967
 
976
968
  .ft-text-area--disabled .ft-text-area--input {
977
- color: ${hi.colorOnSurfaceDisabled};
969
+ color: ${z.colorOnSurfaceDisabled};
978
970
  }
979
971
 
980
972
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -982,59 +974,59 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
982
974
  }
983
975
 
984
976
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
985
- ${e.setVariable(ci.borderColor,hi.colorPrimary)};
986
- ${e.setVariable(ci.textColor,hi.colorPrimary)};
977
+ ${(0,U.setVariable)(w.borderColor,z.colorPrimary)};
978
+ ${(0,U.setVariable)(w.textColor,z.colorPrimary)};
987
979
  }
988
980
 
989
981
  .ft-text-area--filled .ft-text-area--input-panel {
990
- border-radius: ${hi.borderRadiusS} ${hi.borderRadiusS} 0 0;
982
+ border-radius: ${z.borderRadiusS} ${z.borderRadiusS} 0 0;
991
983
  }
992
984
 
993
985
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
994
986
  align-self: stretch;
995
- margin-bottom: ${hi.verticalSpacing};
996
- margin-top: calc(${hi.labelSize} + 2 * ${hi.verticalSpacing});
987
+ margin-bottom: ${z.verticalSpacing};
988
+ margin-top: calc(${z.labelSize} + 2 * ${z.verticalSpacing});
997
989
  }
998
990
 
999
991
  .ft-text-area--outlined .ft-text-area--input-panel {
1000
- border-radius: ${hi.borderRadiusS};
992
+ border-radius: ${z.borderRadiusS};
1001
993
  }
1002
994
 
1003
995
  .ft-text-area--helper-text {
1004
- padding: 0 12px 0 ${hi.horizontalSpacing};
1005
- color: ${hi.helperColor};
996
+ padding: 0 12px 0 ${z.horizontalSpacing};
997
+ color: ${z.helperColor};
1006
998
  }
1007
999
 
1008
1000
  .ft-text-area--in-error .ft-text-area--input,
1009
1001
  .ft-text-area--in-error .ft-text-area--helper-text {
1010
- color: ${hi.colorError};
1002
+ color: ${z.colorError};
1011
1003
  }
1012
1004
 
1013
1005
  ft-resizer {
1014
1006
  position: absolute;
1015
1007
  bottom: 0;
1016
1008
  }
1017
- `;var gi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class bi extends(e.toFtFormComponent(e.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(){const t={"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 o.html`
1009
+ `;var Se=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Ot=class extends(0,pr.toFtFormComponent)(pr.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 t={"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 dr.html`
1018
1010
  <style>
1019
1011
  .ft-text-area--main-panel {
1020
- height: calc(4 * ${hi.verticalSpacing} + ${hi.labelSize} + ${hi.fontSize} + ${this.height}px);
1012
+ height: calc(4 * ${z.verticalSpacing} + ${z.labelSize} + ${z.fontSize} + ${this.height}px);
1021
1013
  }
1022
1014
 
1023
1015
  ft-resizer {
1024
- right: ${null!=this.textarea?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1016
+ right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1025
1017
  }
1026
1018
  </style>
1027
- <div class="${r.classMap(t)}">
1019
+ <div class="${(0,ns.classMap)(t)}">
1028
1020
  <div class="ft-text-area--main-panel">
1029
1021
  <ft-input-label text="${this.label}"
1030
1022
  ?disabled=${this.disabled}
1031
1023
  ?outlined=${this.outlined}
1032
- ?raised=${this.focused||""!=this.value}
1024
+ ?raised=${this.focused||this.value!=""}
1033
1025
  ?error=${this.error}
1034
1026
  ></ft-input-label>
1035
1027
  <div class="ft-text-area--input-panel"
1036
1028
  aria-label="${this.label}">
1037
- ${this.outlined?null:o.html`
1029
+ ${this.outlined?null:dr.html`
1038
1030
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1039
1031
  `}
1040
1032
  <textarea class="ft-typography--body1 ft-text-area--input"
@@ -1051,42 +1043,45 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1051
1043
  initialHeight="${this.height}"
1052
1044
  cursor="ns-resize"></ft-resizer>
1053
1045
  </div>
1054
- ${this.helper?o.html`
1046
+ ${this.helper?dr.html`
1055
1047
  <ft-typography class="ft-text-area--helper-text" variant="caption">
1056
1048
  ${this.helper}
1057
1049
  </ft-typography>`:void 0}
1058
1050
  </div>
1059
- `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}bi.elementDefinitions={"ft-input-label":pi,"ft-resizer":li,"ft-ripple":Re,"ft-typography":ke},bi.styles=[gt,ui],gi([i.property({type:String})],bi.prototype,"label",void 0),gi([i.property({reflect:!0})],bi.prototype,"value",void 0),gi([i.property({type:String})],bi.prototype,"helper",void 0),gi([i.property({type:Boolean})],bi.prototype,"outlined",void 0),gi([i.property({type:Boolean})],bi.prototype,"disabled",void 0),gi([i.property({type:Boolean})],bi.prototype,"error",void 0),gi([i.property({type:Number,reflect:!0})],bi.prototype,"height",void 0),gi([i.query("textarea")],bi.prototype,"textarea",void 0),gi([i.state()],bi.prototype,"focused",void 0),e.customElement("ft-text-area")(bi);class yi extends e.FtLitElement{render(){return o.html`
1051
+ `}setValue(t,r=!1){this.value=t,this.setFormValue(t),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}};Ot.elementDefinitions={"ft-input-label":Lt,"ft-resizer":At,"ft-ripple":B,"ft-typography":it};Ot.styles=[no,is];Se([(0,Qt.property)({type:String})],Ot.prototype,"label",void 0);Se([(0,Qt.property)({reflect:!0})],Ot.prototype,"value",void 0);Se([(0,Qt.property)({type:String})],Ot.prototype,"helper",void 0);Se([(0,Qt.property)({type:Boolean})],Ot.prototype,"outlined",void 0);Se([(0,Qt.property)({type:Boolean})],Ot.prototype,"disabled",void 0);Se([(0,Qt.property)({type:Boolean})],Ot.prototype,"error",void 0);Se([(0,Qt.property)({type:Number,reflect:!0})],Ot.prototype,"height",void 0);Se([(0,Qt.query)("textarea")],Ot.prototype,"textarea",void 0);Se([(0,Qt.state)()],Ot.prototype,"focused",void 0);(0,as.customElement)("ft-text-area")(Ot);var pl=u(ls());var Si=u(S());var Fo=u(K()),us=u(S());var bo=u(S());var ps=u(S());var cs=u(_()),ds=u(S());var Ye=class extends ds.FtLitElement{render(){return cs.html`
1060
1052
  <div class="ft-loader">
1061
1053
  <div></div>
1062
1054
  <div></div>
1063
1055
  <div></div>
1064
1056
  <div></div>
1065
1057
  </div>
1066
- `}}yi.styles=Nt,e.customElement("ft-loader")(yi);var mi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class vi extends(e.toFtFormComponent(e.FtLitElement,"button")){constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",(t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}))}render(){return this.addTooltipIfNeeded(o.html`
1058
+ `}};Ye.styles=$n;(0,ps.customElement)("ft-loader")(Ye);var yo=u(_()),fs=u(Te()),kt=u(K()),Gt=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ft=class extends(0,bo.toFtFormComponent)(bo.FtLitElement,"button"){constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){return this.addTooltipIfNeeded(yo.html`
1067
1059
  <button part="button"
1068
- class="${r.classMap(this.buttonClasses)}"
1060
+ class="${(0,fs.classMap)(this.buttonClasses)}"
1069
1061
  aria-label="${this.getLabel()}"
1070
1062
  ?disabled=${this.isDisabled()}>
1071
1063
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1072
1064
  <ft-typography part="label"
1073
1065
  variant=${this.typographyVariant}
1074
1066
  element="span"
1075
- class="ft-button--label ${e.isSafari?"ft-safari-ellipsis-fix":""}"
1067
+ class="ft-button--label ${bo.isSafari?"ft-safari-ellipsis-fix":""}"
1076
1068
  ?hidden=${!this.hasTextContent()}>
1077
1069
  <slot @slotchange=${this.onSlotchange}></slot>
1078
1070
  </ft-typography>
1079
1071
  ${this.resolveIcon()}
1080
1072
  </button>
1081
- `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?o.html`
1073
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?yo.html`
1082
1074
  <ft-tooltip part="tooltip"
1083
1075
  text="${this.getLabel()}"
1084
1076
  position="${this.tooltipPosition}">
1085
1077
  ${t}
1086
1078
  </ft-tooltip>
1087
- `:t}resolveIcon(){return this.loading?o.html`
1088
- <ft-loader part="loader icon"></ft-loader> `:this.icon?o.html`
1089
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:o.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}vi.elementDefinitions={"ft-ripple":Re,"ft-tooltip":Ho,"ft-typography":ke,"ft-icon":Go,"ft-loader":yi},mi([i.property({type:String,reflect:!0})],vi.prototype,"role",void 0),mi([i.property()],vi.prototype,"type",void 0),mi([i.property({type:Boolean})],vi.prototype,"disabled",void 0),mi([i.property()],vi.prototype,"label",void 0),mi([i.property()],vi.prototype,"icon",void 0),mi([i.property()],vi.prototype,"iconVariant",void 0),mi([i.property({type:Boolean})],vi.prototype,"trailingIcon",void 0),mi([i.property({type:Boolean})],vi.prototype,"loading",void 0),mi([i.property()],vi.prototype,"tooltipPosition",void 0),mi([i.property({type:Boolean})],vi.prototype,"hideTooltip",void 0),mi([i.property({type:Boolean})],vi.prototype,"forceTooltip",void 0),mi([i.query(".ft-button")],vi.prototype,"button",void 0),mi([i.query(".ft-button--label slot")],vi.prototype,"slottedContent",void 0);var xi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class wi extends vi{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"}}wi.styles=[e.safariEllipsisFix,Tt],xi([i.property({type:Boolean})],wi.prototype,"primary",void 0),xi([i.property({type:Boolean})],wi.prototype,"outlined",void 0),xi([i.property({type:Boolean})],wi.prototype,"dense",void 0),xi([i.property({type:Boolean})],wi.prototype,"round",void 0);const Oi=[o.css`
1079
+ `:t}resolveIcon(){return this.loading?yo.html`
1080
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?yo.html`
1081
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
1082
+ `:yo.html`
1083
+ <slot part="icon" name="icon"></slot>
1084
+ `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(r=>this.unslotText(r)).join(""):t?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ft.elementDefinitions={"ft-ripple":B,"ft-tooltip":Z,"ft-typography":it,"ft-icon":dt,"ft-loader":Ye};Gt([(0,kt.property)({type:String,reflect:!0})],ft.prototype,"role",void 0);Gt([(0,kt.property)()],ft.prototype,"type",void 0);Gt([(0,kt.property)({type:Boolean})],ft.prototype,"disabled",void 0);Gt([(0,kt.property)()],ft.prototype,"label",void 0);Gt([(0,kt.property)()],ft.prototype,"icon",void 0);Gt([(0,kt.property)()],ft.prototype,"iconVariant",void 0);Gt([(0,kt.property)({type:Boolean})],ft.prototype,"trailingIcon",void 0);Gt([(0,kt.property)({type:Boolean})],ft.prototype,"loading",void 0);Gt([(0,kt.property)()],ft.prototype,"tooltipPosition",void 0);Gt([(0,kt.property)({type:Boolean})],ft.prototype,"hideTooltip",void 0);Gt([(0,kt.property)({type:Boolean})],ft.prototype,"forceTooltip",void 0);Gt([(0,kt.query)(".ft-button")],ft.prototype,"button",void 0);Gt([(0,kt.query)(".ft-button--label slot")],ft.prototype,"slottedContent",void 0);var fr=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ie=class extends ft{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"}};ie.styles=[us.safariEllipsisFix,Fn];fr([(0,Fo.property)({type:Boolean})],ie.prototype,"primary",void 0);fr([(0,Fo.property)({type:Boolean})],ie.prototype,"outlined",void 0);fr([(0,Fo.property)({type:Boolean})],ie.prototype,"dense",void 0);fr([(0,Fo.property)({type:Boolean})],ie.prototype,"round",void 0);var xo=u(K());var gs=u(S());var hs=u(_()),D=u(S());var ms=[hs.css`
1090
1085
  :host {
1091
1086
  display: inline-block;
1092
1087
  max-width: 100%;
@@ -1136,7 +1131,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1136
1131
  }
1137
1132
 
1138
1133
  .ft-button:focus-visible {
1139
- outline-color: ${I.focusFocusRingColor};
1134
+ outline-color: ${v.focusFocusRingColor};
1140
1135
  outline-style: solid;
1141
1136
  }
1142
1137
 
@@ -1165,154 +1160,154 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1165
1160
  /** Primary styles **/
1166
1161
 
1167
1162
  .ft-button--primary {
1168
- ${e.setVariable(St.color,I.primaryIconColor)};
1163
+ ${(0,D.setVariable)(Pt.color,v.primaryIconColor)};
1169
1164
 
1170
- ${e.setVariable(h.color,I.primaryStateLayerColor)};
1171
- ${e.setVariable(h.opacityContentOnSurfaceHover,I.primaryHoverStateLayerOpacity)};
1172
- ${e.setVariable(h.opacityContentOnSurfaceFocused,I.primaryFocusStateLayerOpacity)};
1173
- ${e.setVariable(h.opacityContentOnSurfaceSelected,I.primaryActiveStateLayerOpacity)};
1174
- ${e.setVariable(h.opacityContentOnSurfacePressed,I.primaryActiveStateLayerOpacity)};
1165
+ ${(0,D.setVariable)(N.color,v.primaryStateLayerColor)};
1166
+ ${(0,D.setVariable)(N.opacityContentOnSurfaceHover,v.primaryHoverStateLayerOpacity)};
1167
+ ${(0,D.setVariable)(N.opacityContentOnSurfaceFocused,v.primaryFocusStateLayerOpacity)};
1168
+ ${(0,D.setVariable)(N.opacityContentOnSurfaceSelected,v.primaryActiveStateLayerOpacity)};
1169
+ ${(0,D.setVariable)(N.opacityContentOnSurfacePressed,v.primaryActiveStateLayerOpacity)};
1175
1170
 
1176
- background-color: ${I.primaryBackgroundColor};
1177
- color: ${I.primaryColor};
1171
+ background-color: ${v.primaryBackgroundColor};
1172
+ color: ${v.primaryColor};
1178
1173
  border-style: none;
1179
1174
  }
1180
1175
 
1181
1176
  .ft-button--primary[disabled] {
1182
- opacity: ${I.primaryDisabledComponentOpacity};
1177
+ opacity: ${v.primaryDisabledComponentOpacity};
1183
1178
  }
1184
1179
 
1185
1180
  .ft-button--primary ft-icon {
1186
- color: ${I.primaryIconColor};
1181
+ color: ${v.primaryIconColor};
1187
1182
  }
1188
1183
 
1189
1184
  /** Secondary styles **/
1190
1185
 
1191
1186
  .ft-button--secondary {
1192
- ${e.setVariable(St.color,I.secondaryIconColor)};
1187
+ ${(0,D.setVariable)(Pt.color,v.secondaryIconColor)};
1193
1188
 
1194
- ${e.setVariable(h.color,I.secondaryStateLayerColor)};
1195
- ${e.setVariable(h.opacityContentOnSurfaceHover,I.secondaryHoverStateLayerOpacity)};
1196
- ${e.setVariable(h.opacityContentOnSurfaceFocused,I.secondaryFocusStateLayerOpacity)};
1197
- ${e.setVariable(h.opacityContentOnSurfaceSelected,I.secondaryActiveStateLayerOpacity)};
1198
- ${e.setVariable(h.opacityContentOnSurfacePressed,I.secondaryActiveStateLayerOpacity)};
1189
+ ${(0,D.setVariable)(N.color,v.secondaryStateLayerColor)};
1190
+ ${(0,D.setVariable)(N.opacityContentOnSurfaceHover,v.secondaryHoverStateLayerOpacity)};
1191
+ ${(0,D.setVariable)(N.opacityContentOnSurfaceFocused,v.secondaryFocusStateLayerOpacity)};
1192
+ ${(0,D.setVariable)(N.opacityContentOnSurfaceSelected,v.secondaryActiveStateLayerOpacity)};
1193
+ ${(0,D.setVariable)(N.opacityContentOnSurfacePressed,v.secondaryActiveStateLayerOpacity)};
1199
1194
 
1200
- background-color: ${I.secondaryBackgroundColor};
1201
- color: ${I.secondaryColor};
1202
- border-color: ${I.secondaryBorderColor};
1195
+ background-color: ${v.secondaryBackgroundColor};
1196
+ color: ${v.secondaryColor};
1197
+ border-color: ${v.secondaryBorderColor};
1203
1198
  border-style: solid;
1204
1199
  }
1205
1200
 
1206
1201
  .ft-button--secondary[disabled] {
1207
- opacity: ${I.secondaryDisabledComponentOpacity};
1202
+ opacity: ${v.secondaryDisabledComponentOpacity};
1208
1203
  }
1209
1204
 
1210
1205
  .ft-button--secondary ft-icon {
1211
- color: ${I.secondaryIconColor};
1206
+ color: ${v.secondaryIconColor};
1212
1207
  }
1213
1208
 
1214
1209
  /** Tertiary styles **/
1215
1210
 
1216
1211
  .ft-button--tertiary {
1217
- ${e.setVariable(St.color,I.tertiaryIconColor)};
1212
+ ${(0,D.setVariable)(Pt.color,v.tertiaryIconColor)};
1218
1213
 
1219
- ${e.setVariable(h.color,I.tertiaryStateLayerColor)};
1220
- ${e.setVariable(h.opacityContentOnSurfaceHover,I.tertiaryHoverStateLayerOpacity)};
1221
- ${e.setVariable(h.opacityContentOnSurfaceFocused,I.tertiaryFocusStateLayerOpacity)};
1222
- ${e.setVariable(h.opacityContentOnSurfaceSelected,I.tertiaryActiveStateLayerOpacity)};
1223
- ${e.setVariable(h.opacityContentOnSurfacePressed,I.tertiaryActiveStateLayerOpacity)};
1214
+ ${(0,D.setVariable)(N.color,v.tertiaryStateLayerColor)};
1215
+ ${(0,D.setVariable)(N.opacityContentOnSurfaceHover,v.tertiaryHoverStateLayerOpacity)};
1216
+ ${(0,D.setVariable)(N.opacityContentOnSurfaceFocused,v.tertiaryFocusStateLayerOpacity)};
1217
+ ${(0,D.setVariable)(N.opacityContentOnSurfaceSelected,v.tertiaryActiveStateLayerOpacity)};
1218
+ ${(0,D.setVariable)(N.opacityContentOnSurfacePressed,v.tertiaryActiveStateLayerOpacity)};
1224
1219
 
1225
- background-color: ${I.tertiaryBackgroundColor};
1226
- color: ${I.tertiaryColor};
1220
+ background-color: ${v.tertiaryBackgroundColor};
1221
+ color: ${v.tertiaryColor};
1227
1222
  border-style: none;
1228
1223
  }
1229
1224
 
1230
1225
  .ft-button--tertiary[disabled] {
1231
- opacity: ${I.tertiaryDisabledComponentOpacity};
1226
+ opacity: ${v.tertiaryDisabledComponentOpacity};
1232
1227
  }
1233
1228
 
1234
1229
  .ft-button--tertiary ft-icon {
1235
- color: ${I.tertiaryIconColor};
1230
+ color: ${v.tertiaryIconColor};
1236
1231
  }
1237
1232
 
1238
1233
  /** Neutral styles **/
1239
1234
 
1240
1235
  .ft-button--neutral {
1241
- ${e.setVariable(St.color,I.neutralIconColor)};
1236
+ ${(0,D.setVariable)(Pt.color,v.neutralIconColor)};
1242
1237
 
1243
- ${e.setVariable(h.backgroundColor,I.neutralStateLayerColor)};
1244
- ${e.setVariable(h.opacityContentOnSurfaceHover,I.neutralHoverStateLayerOpacity)};
1245
- ${e.setVariable(h.opacityContentOnSurfaceFocused,I.neutralFocusStateLayerOpacity)};
1246
- ${e.setVariable(h.opacityContentOnSurfaceSelected,I.neutralActiveStateLayerOpacity)};
1247
- ${e.setVariable(h.opacityContentOnSurfacePressed,I.neutralActiveStateLayerOpacity)};
1238
+ ${(0,D.setVariable)(N.backgroundColor,v.neutralStateLayerColor)};
1239
+ ${(0,D.setVariable)(N.opacityContentOnSurfaceHover,v.neutralHoverStateLayerOpacity)};
1240
+ ${(0,D.setVariable)(N.opacityContentOnSurfaceFocused,v.neutralFocusStateLayerOpacity)};
1241
+ ${(0,D.setVariable)(N.opacityContentOnSurfaceSelected,v.neutralActiveStateLayerOpacity)};
1242
+ ${(0,D.setVariable)(N.opacityContentOnSurfacePressed,v.neutralActiveStateLayerOpacity)};
1248
1243
 
1249
- background-color: ${I.neutralBackgroundColor};
1250
- color: ${I.neutralColor};
1244
+ background-color: ${v.neutralBackgroundColor};
1245
+ color: ${v.neutralColor};
1251
1246
  border-style: none;
1252
1247
  }
1253
1248
 
1254
1249
  .ft-button--neutral[disabled] {
1255
- opacity: ${I.neutralDisabledComponentOpacity};
1250
+ opacity: ${v.neutralDisabledComponentOpacity};
1256
1251
  }
1257
1252
 
1258
1253
  .ft-button--neutral ft-icon {
1259
- color: ${I.neutralIconColor};
1254
+ color: ${v.neutralIconColor};
1260
1255
  }
1261
1256
 
1262
1257
  /** Large styles **/
1263
1258
 
1264
1259
  .ft-button--large {
1265
- ${e.setVariable($t.size,I.largeIconSize)};
1266
- ${e.setVariable(St.size,I.largeIconSize)};
1260
+ ${(0,D.setVariable)(bt.size,v.largeIconSize)};
1261
+ ${(0,D.setVariable)(Pt.size,v.largeIconSize)};
1267
1262
 
1268
- height: ${I.largeHeight};
1269
- padding: 0 ${I.largeHorizontalPadding};
1270
- gap: ${I.largeGap};
1271
- border-radius: ${I.largeBorderRadius};
1272
- border-width: ${I.largeBorderWidth};
1263
+ height: ${v.largeHeight};
1264
+ padding: 0 ${v.largeHorizontalPadding};
1265
+ gap: ${v.largeGap};
1266
+ border-radius: ${v.largeBorderRadius};
1267
+ border-width: ${v.largeBorderWidth};
1273
1268
  }
1274
1269
 
1275
1270
  .ft-button--large:focus-visible {
1276
- outline-width: ${I.largeFocusOutlineWidth};
1277
- outline-offset: ${I.largeFocusOutlineOffset};
1271
+ outline-width: ${v.largeFocusOutlineWidth};
1272
+ outline-offset: ${v.largeFocusOutlineOffset};
1278
1273
  }
1279
1274
 
1280
1275
  .ft-button--large.ft-button--icon-only {
1281
- width: ${I.largeIconOnlyWidth};
1276
+ width: ${v.largeIconOnlyWidth};
1282
1277
  padding: unset;
1283
1278
  }
1284
1279
 
1285
1280
  /** Small styles **/
1286
1281
 
1287
1282
  .ft-button--small {
1288
- ${e.setVariable($t.size,I.smallIconSize)};
1289
- ${e.setVariable(St.size,I.smallIconSize)};
1283
+ ${(0,D.setVariable)(bt.size,v.smallIconSize)};
1284
+ ${(0,D.setVariable)(Pt.size,v.smallIconSize)};
1290
1285
 
1291
- height: ${I.smallHeight};
1292
- padding: 0 ${I.smallHorizontalPadding};
1293
- gap: ${I.smallGap};
1294
- border-radius: ${I.smallBorderRadius};
1295
- border-width: ${I.smallBorderWidth};
1286
+ height: ${v.smallHeight};
1287
+ padding: 0 ${v.smallHorizontalPadding};
1288
+ gap: ${v.smallGap};
1289
+ border-radius: ${v.smallBorderRadius};
1290
+ border-width: ${v.smallBorderWidth};
1296
1291
  }
1297
1292
 
1298
1293
  .ft-button--small:focus-visible {
1299
- outline-width: ${I.smallFocusOutlineWidth};
1300
- outline-offset: ${I.smallFocusOutlineOffset};
1294
+ outline-width: ${v.smallFocusOutlineWidth};
1295
+ outline-offset: ${v.smallFocusOutlineOffset};
1301
1296
  }
1302
1297
 
1303
1298
  .ft-button--small.ft-button--icon-only {
1304
- width: ${I.smallIconOnlyWidth};
1299
+ width: ${v.smallIconOnlyWidth};
1305
1300
  padding: unset;
1306
1301
  }
1307
- `,e.noTextSelect];var Si=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ni extends vi{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}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&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"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}}get typographyVariant(){return this.small?Ie.caption1medium:Ie.body2medium}}Ni.styles=[e.safariEllipsisFix,Oi],Si([i.property({type:Boolean})],Ni.prototype,"primary",void 0),Si([i.property({type:Boolean})],Ni.prototype,"secondary",void 0),Si([i.property({type:Boolean})],Ni.prototype,"tertiary",void 0),Si([i.property({type:Boolean})],Ni.prototype,"neutral",void 0),Si([i.property({type:Boolean})],Ni.prototype,"small",void 0),e.customElement("ft-button")(wi),e.customElement("ftds-button")(Ni);const $i=o.css`
1308
- `,Ii=o.css`
1309
- `,Ci=e.FtReduxStore.get({name:"ft-app-info",reducers:{},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}});class ki{static get(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Ci.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static await(t){return new Promise((e=>{let o=ki.get(t);if(o)e(o);else{const i=Ci.subscribe((()=>{o=ki.get(t),o&&(i(),e(o))}))}}))}}class Ei{constructor(t=!0,o){var i;this.overrideApi=o;let r=this.constructor;r.commonCache=null!==(i=r.commonCache)&&void 0!==i?i:new e.CacheRegistry,this.cache=t?r.commonCache:new e.CacheRegistry}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:ki.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:ki.await()}clearCache(){this.cache.clearAll()}}var Ri;const Ui=Symbol("clearAfterUnitTest");class Li extends Ei{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ri]=()=>{this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={}},this.currentUiLocale=Ci.getState().uiLocale,Ci.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Ci.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var i;if(t=t.toLowerCase(),Object.keys(o).length>0){const r={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...o};e.deepEqual(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,o,...i){var r,n,a;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(n=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==n?n:{};return new e.ParametrizedLabelResolver(null!==(a=this.defaultMessages[t])&&void 0!==a?a:{},s).resolve(o,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>e.delay(0).then((()=>t())).catch((()=>null)))))}}Ri=Ui,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Li{constructor(){super((async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Li{constructor(){super((async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e)))}});const Wi=window.FluidTopicsI18nService,zi=window.FluidTopicsCustomI18nService;var Ti=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Di extends e.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=()=>ki.get(),this.messageContexts=[],this.cache=new e.CacheRegistry,this.cleanSessionDebouncer=new e.Debouncer}render(){return o.html`
1302
+ `,D.noTextSelect];var zo=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},pe=class extends ft{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}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&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"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}}get typographyVariant(){return this.small?Ve.caption1medium:Ve.body2medium}};pe.styles=[gs.safariEllipsisFix,ms];zo([(0,xo.property)({type:Boolean})],pe.prototype,"primary",void 0);zo([(0,xo.property)({type:Boolean})],pe.prototype,"secondary",void 0);zo([(0,xo.property)({type:Boolean})],pe.prototype,"tertiary",void 0);zo([(0,xo.property)({type:Boolean})],pe.prototype,"neutral",void 0);zo([(0,xo.property)({type:Boolean})],pe.prototype,"small",void 0);(0,Si.customElement)("ft-button")(ie);(0,Si.customElement)("ftds-button")(pe);var Ts=u(S());var vr=u(_()),Sr=u(K()),Cr=u(S());var ys=u(_());var bs=ys.css`
1303
+ `;var xr=u(S());var As=u(S());var ws=u(_()),Jt=u(K()),ne=u(S());var xs=u(_());var vs=xs.css`
1304
+ `;var Ss=u(S()),Zl="ft-app-info",jl={},O=Ss.FtReduxStore.get({name:Zl,reducers:jl,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 Pe=u(S());var Ci=u(S());var qe=class o{static get(t){let{baseUrl:r,apiIntegrationIdentifier:i}=O.getState(),n=t??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(t){return new Promise(r=>{let i=o.get(t);if(i)r(i);else{let n=O.subscribe(()=>{i=o.get(t),i&&(n(),r(i))})}})}};var fe=class{constructor(t=!0,r){var i;this.overrideApi=r;let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Ci.CacheRegistry,this.cache=t?n.commonCache:new Ci.CacheRegistry}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:qe.get()}get awaitApi(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:qe.await()}clearCache(){this.cache.clearAll()}};var Cs,Yl=Symbol("clearAfterUnitTest"),ur=class extends fe{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Cs]=()=>{this.defaultMessages={},this.cache=new Pe.CacheRegistry,this.listeners={}},this.currentUiLocale=O.getState().uiLocale,O.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=O.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var i;if(t=t.toLowerCase(),Object.keys(r).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...r};(0,Pe.deepEqual)(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,r,...i){var n,a,s;t=t.toLowerCase(),this.fetchContext(t);let c=(a=(n=this.cache.getNow(t))===null||n===void 0?void 0:n.messages)!==null&&a!==void 0?a:{};return new Pe.ParametrizedLabelResolver((s=this.defaultMessages[t])!==null&&s!==void 0?s:{},c).resolve(r,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(r){console.error(r)}}subscribe(t,r){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(r),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(r=>(0,Pe.delay)(0).then(()=>r()).catch(()=>null)))}};Cs=Yl;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ur{constructor(){super(async(o,t)=>(await this.awaitApi).getFluidTopicsMessageContext(o,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ur{constructor(){super(async(o,t)=>(await this.awaitApi).getCustomMessageContext(o,t))}});var vo=window.FluidTopicsI18nService,Os=window.FluidTopicsCustomI18nService;var $t=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},nt=class extends ne.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=()=>qe.get(),this.messageContexts=[],this.cache=new ne.CacheRegistry,this.cleanSessionDebouncer=new ne.Debouncer}render(){return ws.html`
1310
1305
  <slot></slot>
1311
- `}update(t){super.update(t),t.has("baseUrl")&&(Ci.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Ci.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Ci.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Ci.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Ci.actions.noCustom(this.noCustom),t.has("editorMode")&&Ci.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Ci.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Ci.actions.session(this.session),t.has("availableUiLocales")&&Ci.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Wi.addContext(t))),t.has("openExternalDocumentInNewTab")&&Ci.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&Ci.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&Ci.actions.forcedOffline(this.forcedOffline),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Di.elementDefinitions={},Di.styles=Ii,Ti([i.property()],Di.prototype,"baseUrl",void 0),Ti([i.property()],Di.prototype,"apiIntegrationIdentifier",void 0),Ti([i.property()],Di.prototype,"uiLocale",void 0),Ti([e.jsonProperty(null)],Di.prototype,"availableUiLocales",void 0),Ti([e.jsonProperty(null)],Di.prototype,"metadataConfiguration",void 0),Ti([i.property({type:Boolean})],Di.prototype,"editorMode",void 0),Ti([i.property({type:Boolean})],Di.prototype,"noCustom",void 0),Ti([i.property({type:Boolean})],Di.prototype,"openExternalDocumentInNewTab",void 0),Ti([i.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Di.prototype,"noCustomComponent",void 0),Ti([i.property({type:Boolean})],Di.prototype,"withManualResources",void 0),Ti([i.property({type:Boolean})],Di.prototype,"navigatorOnline",void 0),Ti([i.property({type:Boolean})],Di.prototype,"forcedOffline",void 0),Ti([i.property({type:Object})],Di.prototype,"apiProvider",void 0),Ti([e.jsonProperty([])],Di.prototype,"messageContexts",void 0),Ti([e.jsonProperty(void 0)],Di.prototype,"session",void 0);class Ai extends Ei{async listMySearches(){let t=Ci.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class _i extends Ei{async listMyBookmarks(){let t=Ci.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const Zi=e.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Fi=new class{constructor(){this.currentSession=Ci.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _i,this.savedSearchesService=new Ai,Ci.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:o}=Ci.getState();e.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==o?void 0:o.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Zi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Zi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();Zi.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Zi.actions.bookmarks(e)}}};window.FluidTopicsAppInfoStoreService=new class{addCommand(t,e=!1){Ci.commands.add(t,e)}consumeCommand(t){return Ci.commands.consume(t)}};window.FluidTopicsHighlightHtmlService=new class{highlightHtml(t,o){e.highlightHtml(t,o)}},e.customElement("ft-app-context")(Di);var Bi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ki=Symbol("i18nAttributes"),Mi=Symbol("i18nProperties"),Pi=Symbol("i18nUnsubs");function Hi(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?zi:Wi}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e,o;null===(e=this[Ki])||void 0===e||e.forEach(((e,o)=>{var i;const r=this.getI18nAttributeValue(o);(null===(i=null==r?void 0:r.context)||void 0===i?void 0:i.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(o,r,e)})),null===(o=this[Mi])||void 0===o||o.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,e,o){this[t]={...e,message:this.i18n({context:e.context,key:e.key,...o})}}update(t){var e,o;super.update(t),null===(e=this[Ki])||void 0===e||e.forEach(((e,o)=>{const i=this.getI18nAttributeValue(o);(null==i?void 0:i.context)&&i.key&&(t.has(o)||null!=e.argsProvider)&&(t.has(o)&&this.addI18nContext(i.context),this.updateI18nAttributeMessage(o,i,e))})),null===(o=this[Mi])||void 0===o||o.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,e,o,i;super.connectedCallback(),new Set([...null!==(e=null===(t=this[Mi])||void 0===t?void 0:t.values())&&void 0!==e?e:[],...[...null!==(i=null===(o=this[Ki])||void 0===o?void 0:o.keys())&&void 0!==i?i:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Pi].has(t)||this[Pi].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages("string"==typeof t?t:t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Pi].forEach((t=>t())),this[Pi].clear()}}return e=Pi,Bi([i.property({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class ji extends(Hi(e.FtLitElement)){}class Gi extends(Hi(e.FtLitElementRedux)){}var Vi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Yi extends Gi{constructor(){super(),this.editorMode=!1,this.addStore(Ci)}render(){return this.key&&this.context?o.html`
1306
+ `}update(t){super.update(t),t.has("baseUrl")&&(O.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&O.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&O.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&O.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&O.actions.noCustom(this.noCustom),t.has("editorMode")&&O.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&O.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&O.actions.session(this.session),t.has("availableUiLocales")&&O.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>vo.addContext(r)),t.has("openExternalDocumentInNewTab")&&O.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&O.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&O.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 t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};nt.elementDefinitions={};nt.styles=vs;$t([(0,Jt.property)()],nt.prototype,"baseUrl",void 0);$t([(0,Jt.property)()],nt.prototype,"apiIntegrationIdentifier",void 0);$t([(0,Jt.property)()],nt.prototype,"uiLocale",void 0);$t([(0,ne.jsonProperty)(null)],nt.prototype,"availableUiLocales",void 0);$t([(0,ne.jsonProperty)(null)],nt.prototype,"metadataConfiguration",void 0);$t([(0,Jt.property)({type:Boolean})],nt.prototype,"editorMode",void 0);$t([(0,Jt.property)({type:Boolean})],nt.prototype,"noCustom",void 0);$t([(0,Jt.property)({type:Boolean})],nt.prototype,"openExternalDocumentInNewTab",void 0);$t([(0,Jt.property)({converter:{fromAttribute(o){return o==="false"?!1:o==="true"||(o??!1)}}})],nt.prototype,"noCustomComponent",void 0);$t([(0,Jt.property)({type:Boolean})],nt.prototype,"withManualResources",void 0);$t([(0,Jt.property)({type:Boolean})],nt.prototype,"navigatorOnline",void 0);$t([(0,Jt.property)({type:Boolean})],nt.prototype,"forcedOffline",void 0);$t([(0,Jt.property)({type:Object})],nt.prototype,"apiProvider",void 0);$t([(0,ne.jsonProperty)([])],nt.prototype,"messageContexts",void 0);$t([(0,ne.jsonProperty)(void 0)],nt.prototype,"session",void 0);var yr=u(S());var hr=class extends fe{async listMySearches(){let t=O.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var mr=class extends fe{async listMyBookmarks(){let t=O.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var ql="ft-user-assets",gr=yr.FtReduxStore.get({name:ql,initialState:{savedSearches:void 0,bookmarks:void 0}}),Oi=class{constructor(){this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new mr,this.savedSearchesService=new hr,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=O.getState();(0,yr.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),gr.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),gr.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();gr.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;gr.actions.bookmarks(r)}}},Es=new Oi;var wi=class{addCommand(t,r=!1){O.commands.add(t,r)}consumeCommand(t){return O.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new wi;var Rs=u(S()),Ei=class{highlightHtml(t,r){(0,Rs.highlightHtml)(t,r)}};window.FluidTopicsHighlightHtmlService=new Ei;(0,As.customElement)("ft-app-context")(nt);var Ns=u(K()),Xl=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Ri=Symbol("i18nAttributes"),Xe=Symbol("i18nProperties"),Wo=Symbol("i18nUnsubs");function De(o){var t;class r extends o{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?Os:vo}i18n(n,a,...s){var c;if(typeof n=="string")return this.i18nService.resolveMessage(n,a,...s);let p=(c=n.args)!==null&&c!==void 0?c:n.argsProvider?n.argsProvider(this):[];return this.i18nService.resolveMessage(n.context,n.key,...p)}onI18nUpdate(n){var a,s;(a=this[Ri])===null||a===void 0||a.forEach((c,p)=>{var h;let g=this.getI18nAttributeValue(p);((h=g?.context)===null||h===void 0?void 0:h.toLowerCase())===n.toLowerCase()&&this.updateI18nAttributeMessage(p,g,c)}),(s=this[Xe])===null||s===void 0||s.forEach((c,p)=>{c.context.toLowerCase()===n.toLowerCase()&&(this[p]=this.i18n(c))}),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[Ri])===null||a===void 0||a.forEach((c,p)=>{let h=this.getI18nAttributeValue(p);h?.context&&h.key&&(n.has(p)||c.argsProvider!=null)&&(n.has(p)&&this.addI18nContext(h.context),this.updateI18nAttributeMessage(p,h,c))}),(s=this[Xe])===null||s===void 0||s.forEach((c,p)=>{c.argsProvider!=null&&(this[p]=this.i18n(c))})}getI18nAttributeValue(n){return this[n]}connectedCallback(){var n,a,s,c;super.connectedCallback(),new Set([...(a=(n=this[Xe])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(c=(s=this[Ri])===null||s===void 0?void 0:s.keys())!==null&&c!==void 0?c:[]].map(p=>this.getI18nAttributeValue(p))].map(p=>p?.context)).forEach(p=>p&&this.addI18nMessages(p))}addI18nMessages(n,a){n=n.toLowerCase(),this[Wo].has(n)||this[Wo].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,a??{})}addI18nContext(n,a){this.addI18nMessages(typeof n=="string"?n:n.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[Wo].forEach(n=>n()),this[Wo].clear()}}return t=Wo,Xl([(0,Ns.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var Is=class extends De(xr.FtLitElement){},br=class extends De(xr.FtLitElementRedux){};var Ho=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ae=class extends br{constructor(){super(),this.editorMode=!1,this.addStore(O)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":vr.nothing:vr.html`
1312
1307
  <span class="ft-i18n">
1313
1308
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1314
1309
  </span>
1315
- `:this.editorMode?"Select a context and a label key.":o.nothing}update(t){var e;super.update(t),["context","key","defaultMessage"].some((e=>t.has(e)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}Yi.elementDefinitions={},Yi.styles=$i,Vi([e.redux()],Yi.prototype,"editorMode",void 0),Vi([i.property()],Yi.prototype,"context",void 0),Vi([i.property()],Yi.prototype,"key",void 0),Vi([e.jsonProperty([])],Yi.prototype,"args",void 0),Vi([i.property()],Yi.prototype,"defaultMessage",void 0);class qi{static build(t){return new qi(t)}static fromGwt(t){return new qi(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Wi.resolveMessage(this.name,e,...t)})}}const Xi=(t,e)=>(o,i)=>{var r,n;o.constructor.createProperty(i,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:i};o[Mi]=null!==(n=o[Mi])&&void 0!==n?n:new Map,o[Mi].set(i,a)};e.customElement("ft-i18n")(Yi);const Qi=qi.build("integratedFeedbackComponent"),Ji={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"},tr={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-field-helper-color","",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system"),prefixColor:e.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",e.designSystemVariables.colorOnSurfaceMedium),iconColor:e.FtCssVariableFactory.extend("--ft-text-field-icon-color","",e.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:e.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),suggestSize:e.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},er=o.css`
1310
+ `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};ae.elementDefinitions={};ae.styles=bs;Ho([(0,Cr.redux)()],ae.prototype,"editorMode",void 0);Ho([(0,Sr.property)()],ae.prototype,"context",void 0);Ho([(0,Sr.property)()],ae.prototype,"key",void 0);Ho([(0,Cr.jsonProperty)([])],ae.prototype,"args",void 0);Ho([(0,Sr.property)()],ae.prototype,"defaultMessage",void 0);var Be=class o{static build(t){return new o(t)}static fromGwt(t){return new o(t)}constructor(t){this.name=t,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)=>vo.resolveMessage(this.name,i,...n)})}};var Or=(o,t)=>(r,i)=>{var n,a;r.constructor.createProperty(i,t??{attribute:!1,type:String});let s={...o,key:(n=o.key)!==null&&n!==void 0?n:i};r[Xe]=(a=r[Xe])!==null&&a!==void 0?a:new Map,r[Xe].set(i,s)};(0,Ts.customElement)("ft-i18n")(ae);var k=Be.build("integratedFeedbackComponent"),_s={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 Ni=u(S());var te=u(_()),M=u(K()),Ps=u(Te());var Ls=o=>o??ct;var wr=u(S());var ks=u(_()),E=u(S());var L={fontSize:E.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:E.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:E.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:E.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:E.FtCssVariableFactory.extend("--ft-text-field-helper-color","",E.designSystemVariables.colorOnSurfaceMedium),colorPrimary:E.FtCssVariableFactory.external(E.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:E.FtCssVariableFactory.external(E.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:E.FtCssVariableFactory.external(E.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:E.FtCssVariableFactory.external(E.designSystemVariables.borderRadiusS,"Design system"),colorError:E.FtCssVariableFactory.external(E.designSystemVariables.colorError,"Design system"),prefixColor:E.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",E.designSystemVariables.colorOnSurfaceMedium),iconColor:E.FtCssVariableFactory.extend("--ft-text-field-icon-color","",E.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:E.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:E.FtCssVariableFactory.external(E.designSystemVariables.colorSurface,"Design system"),colorOutline:E.FtCssVariableFactory.external(E.designSystemVariables.colorOutline,"Design system"),elevation02:E.FtCssVariableFactory.external(E.designSystemVariables.elevation02,"Design system"),suggestSize:E.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},$s=ks.css`
1316
1311
  *:focus {
1317
1312
  outline: none;
1318
1313
  }
@@ -1325,16 +1320,16 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1325
1320
  }
1326
1321
 
1327
1322
  ft-input-label {
1328
- ${e.setVariable(ci.fontSize,tr.fontSize)};
1329
- ${e.setVariable(ci.raisedFontSize,tr.labelSize)};
1330
- ${e.setVariable(ci.verticalSpacing,tr.verticalSpacing)};
1331
- ${e.setVariable(ci.horizontalSpacing,tr.horizontalSpacing)};
1323
+ ${(0,E.setVariable)(w.fontSize,L.fontSize)};
1324
+ ${(0,E.setVariable)(w.raisedFontSize,L.labelSize)};
1325
+ ${(0,E.setVariable)(w.verticalSpacing,L.verticalSpacing)};
1326
+ ${(0,E.setVariable)(w.horizontalSpacing,L.horizontalSpacing)};
1332
1327
  }
1333
1328
 
1334
1329
  .ft-text-field--main-panel {
1335
1330
  position: relative;
1336
1331
  display: flex;
1337
- height: calc(4 * ${tr.verticalSpacing} + ${tr.labelSize} + ${tr.fontSize});
1332
+ height: calc(4 * ${L.verticalSpacing} + ${L.labelSize} + ${L.fontSize});
1338
1333
  }
1339
1334
 
1340
1335
  .ft-text-field--input-panel {
@@ -1343,24 +1338,24 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1343
1338
  display: flex;
1344
1339
  align-items: center;
1345
1340
  overflow: hidden;
1346
- padding: 0 ${tr.horizontalSpacing};
1341
+ padding: 0 ${L.horizontalSpacing};
1347
1342
 
1348
- ${e.setVariable(P.fontSize,tr.fontSize)};
1349
- ${e.setVariable(P.lineHeight,tr.fontSize)};
1343
+ ${(0,E.setVariable)(Yt.fontSize,L.fontSize)};
1344
+ ${(0,E.setVariable)(Yt.lineHeight,L.fontSize)};
1350
1345
  }
1351
1346
 
1352
1347
  .ft-text-field--input-panel ft-ripple {
1353
- ${e.setVariable(h.opacityContentOnSurfaceHover,"0.08")};
1354
- ${e.setVariable(h.opacityContentOnSurfacePressed,"0.04")};
1348
+ ${(0,E.setVariable)(N.opacityContentOnSurfaceHover,"0.08")};
1349
+ ${(0,E.setVariable)(N.opacityContentOnSurfacePressed,"0.04")};
1355
1350
  }
1356
1351
 
1357
1352
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1358
1353
  align-items: flex-end;
1359
- padding: 0 ${tr.horizontalSpacing} ${tr.verticalSpacing} ${tr.horizontalSpacing};
1354
+ padding: 0 ${L.horizontalSpacing} ${L.verticalSpacing} ${L.horizontalSpacing};
1360
1355
  }
1361
1356
 
1362
1357
  .ft-text-field--prefix {
1363
- color: ${tr.prefixColor};
1358
+ color: ${L.prefixColor};
1364
1359
  margin-right: 2px;
1365
1360
  flex-shrink: 1;
1366
1361
  overflow: hidden;
@@ -1379,15 +1374,15 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1379
1374
  flex-shrink: 1;
1380
1375
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1381
1376
 
1382
- color: ${tr.colorOnSurface};
1383
- padding: calc(2 * ${tr.verticalSpacing}) 0;
1377
+ color: ${L.colorOnSurface};
1378
+ padding: calc(2 * ${L.verticalSpacing}) 0;
1384
1379
  border: none;
1385
1380
  background: none;
1386
1381
  }
1387
1382
 
1388
1383
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1389
1384
  padding-bottom: 0;
1390
- padding-top: calc(${tr.labelSize} + 2 * ${tr.verticalSpacing});
1385
+ padding-top: calc(${L.labelSize} + 2 * ${L.verticalSpacing});
1391
1386
  }
1392
1387
 
1393
1388
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -1396,37 +1391,37 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1396
1391
  }
1397
1392
 
1398
1393
  .ft-text-field--disabled .ft-text-field--input {
1399
- color: ${tr.colorOnSurfaceDisabled};
1394
+ color: ${L.colorOnSurfaceDisabled};
1400
1395
  }
1401
1396
 
1402
1397
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1403
- ${e.setVariable(ci.borderColor,tr.colorPrimary)};
1404
- ${e.setVariable(ci.textColor,tr.colorPrimary)};
1398
+ ${(0,E.setVariable)(w.borderColor,L.colorPrimary)};
1399
+ ${(0,E.setVariable)(w.textColor,L.colorPrimary)};
1405
1400
  }
1406
1401
 
1407
1402
  .ft-text-field--filled .ft-text-field--input-panel {
1408
- border-radius: ${tr.borderRadiusS} ${tr.borderRadiusS} 0 0;
1403
+ border-radius: ${L.borderRadiusS} ${L.borderRadiusS} 0 0;
1409
1404
  }
1410
1405
 
1411
1406
  .ft-text-field--outlined .ft-text-field--input-panel {
1412
- border-radius: ${tr.borderRadiusS};
1407
+ border-radius: ${L.borderRadiusS};
1413
1408
  }
1414
1409
 
1415
1410
  .ft-text-field--helper-text {
1416
- padding: 0 12px 0 ${tr.horizontalSpacing};
1417
- color: ${tr.helperColor};
1411
+ padding: 0 12px 0 ${L.horizontalSpacing};
1412
+ color: ${L.helperColor};
1418
1413
  }
1419
1414
 
1420
1415
  .ft-text-field--in-error .ft-text-field--input,
1421
1416
  .ft-text-field--in-error .ft-text-field--helper-text,
1422
1417
  .ft-text-field--in-error .ft-text-field--prefix {
1423
- color: ${tr.colorError};
1418
+ color: ${L.colorError};
1424
1419
  }
1425
1420
 
1426
1421
  .ft-text-field--icon {
1427
1422
  align-self: center;
1428
1423
  margin-left: 8px;
1429
- color: ${tr.iconColor};
1424
+ color: ${L.iconColor};
1430
1425
  }
1431
1426
 
1432
1427
  .ft-text-field--container {
@@ -1437,13 +1432,13 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1437
1432
  display: none;
1438
1433
  flex-direction: column;
1439
1434
  position: absolute;
1440
- z-index: ${tr.floatingZIndex};
1441
- background: ${tr.colorSurface};
1442
- border: 1px solid ${tr.colorOutline};
1443
- border-radius: 0 0 ${tr.borderRadiusS} ${tr.borderRadiusS};
1444
- box-shadow: ${tr.elevation02};
1435
+ z-index: ${L.floatingZIndex};
1436
+ background: ${L.colorSurface};
1437
+ border: 1px solid ${L.colorOutline};
1438
+ border-radius: 0 0 ${L.borderRadiusS} ${L.borderRadiusS};
1439
+ box-shadow: ${L.elevation02};
1445
1440
  outline: none;
1446
- max-height: ${tr.suggestSize};
1441
+ max-height: ${L.suggestSize};
1447
1442
  overflow-y: auto;
1448
1443
  }
1449
1444
 
@@ -1456,33 +1451,33 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1456
1451
  }
1457
1452
 
1458
1453
  .ft-text-field--with-icon {
1459
- ${e.setVariable(ci.labelMaxWidth,`calc(100% - ${$t.size} - ${ci.horizontalSpacing})`)};
1454
+ ${(0,E.setVariable)(w.labelMaxWidth,`calc(100% - ${bt.size} - ${w.horizontalSpacing})`)};
1460
1455
  }
1461
1456
 
1462
1457
  .ft-text-field--with-password ft-icon:hover {
1463
1458
  cursor: pointer;
1464
1459
  }
1465
- `;var or=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ir extends(e.toFtFormComponent(e.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=Bo.EYE_SLASH,this.passwordRevealedIcon=Bo.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(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"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":0===this.visibleSuggestions.length||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 o.html`
1466
- <div class="${r.classMap(t)}">
1460
+ `;var j=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},$=class extends(0,wr.toFtFormComponent)(wr.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=Ze.EYE_SLASH,this.passwordRevealedIcon=Ze.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(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let r=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}render(){let t={"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 te.html`
1461
+ <div class="${(0,Ps.classMap)(t)}">
1467
1462
  <div class="ft-text-field--main-panel"
1468
1463
  @keydown=${this.handleKeyboardNavigation}
1469
1464
  @focusout=${this.onMainPanelBlur}>
1470
1465
  <ft-input-label text="${this.label}"
1471
1466
  ?disabled=${this.disabled}
1472
1467
  ?outlined=${this.outlined}
1473
- ?raised=${this.focused||""!=this.value}
1468
+ ?raised=${this.focused||this.value!=""}
1474
1469
  ?error=${this.error}></ft-input-label>
1475
1470
  <div class="ft-text-field--input-panel">
1476
- ${this.outlined?o.nothing:o.html`
1471
+ ${this.outlined?te.nothing:te.html`
1477
1472
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1478
1473
  `}
1479
- ${this.prefix?o.html`
1474
+ ${this.prefix?te.html`
1480
1475
  <ft-typography class="ft-text-field--prefix" variant="body1">
1481
1476
  ${this.prefix}
1482
1477
  </ft-typography>
1483
- `:o.nothing}
1478
+ `:te.nothing}
1484
1479
  <input type=${this.password&&this.hidePassword?"password":"text"}
1485
- maxlength=${(t=>t??ae)(this.maxLength||void 0)}
1480
+ maxlength=${Ls(this.maxLength||void 0)}
1486
1481
  aria-label="${this.label}"
1487
1482
  class="ft-typography--body1 ft-text-field--input"
1488
1483
  part="input"
@@ -1498,23 +1493,23 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1498
1493
  <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1499
1494
  </div>
1500
1495
  </div>
1501
- ${this.helper?o.html`
1496
+ ${this.helper?te.html`
1502
1497
  <ft-typography class="ft-text-field--helper-text" variant="caption">
1503
1498
  ${this.helper}
1504
1499
  </ft-typography>
1505
- `:o.nothing}
1500
+ `:te.nothing}
1506
1501
  </div>
1507
- `}renderPasswordIcon(){return o.html`
1502
+ `}renderPasswordIcon(){return te.html`
1508
1503
  <ft-icon class="ft-text-field--icon"
1509
1504
  .variant=${this.iconVariant}
1510
1505
  .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
1511
1506
  @click=${()=>this.togglePasswordVisibility()}></ft-icon>
1512
- `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?o.html`
1507
+ `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?te.html`
1513
1508
  <ft-icon class="ft-text-field--icon"
1514
1509
  .variant=${this.iconVariant}
1515
1510
  .value=${this.icon}
1516
- @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
1517
- `:o.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){super.contentAvailableCallback(t),t.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:t,y:e})=>{this.suggestionsContainer.style.left=`${t}px`,this.suggestionsContainer.style.top=`${e}px`})))}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const o=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(o,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const o=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let i;i="ArrowDown"===t.key?o<this.visibleSuggestions.length-1?o+1:0:o>0?o-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[i])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}ir.elementDefinitions={"ft-input-label":pi,"ft-ripple":Re,"ft-typography":ke,"ft-icon":Go},ir.styles=[gt,er],or([i.property()],ir.prototype,"label",void 0),or([i.property({noAccessor:!0})],ir.prototype,"value",null),or([i.state()],ir.prototype,"dispatchedValue",void 0),or([i.property()],ir.prototype,"helper",void 0),or([i.property({type:Boolean})],ir.prototype,"outlined",void 0),or([i.property({type:Boolean})],ir.prototype,"disabled",void 0),or([i.property({type:Boolean})],ir.prototype,"error",void 0),or([i.property({type:Boolean})],ir.prototype,"fixedMenuPosition",void 0),or([i.property()],ir.prototype,"prefix",void 0),or([i.property()],ir.prototype,"icon",void 0),or([i.property()],ir.prototype,"passwordHiddenIcon",void 0),or([i.property()],ir.prototype,"passwordRevealedIcon",void 0),or([i.property()],ir.prototype,"iconVariant",void 0),or([i.property({type:Boolean})],ir.prototype,"filterSuggestions",void 0),or([i.property({type:Number})],ir.prototype,"maxLength",void 0),or([i.property({type:Boolean})],ir.prototype,"password",void 0),or([i.state()],ir.prototype,"focused",void 0),or([i.state()],ir.prototype,"hidePassword",void 0),or([i.state()],ir.prototype,"hideSuggestions",void 0),or([i.state()],ir.prototype,"visibleSuggestions",void 0),or([i.query(".ft-text-field--main-panel")],ir.prototype,"mainPanel",void 0),or([i.query(".ft-text-field--input")],ir.prototype,"input",void 0),or([i.query(".ft-text-field--suggestions")],ir.prototype,"suggestionsContainer",void 0),or([i.queryAssignedElements({selector:"ft-text-field-suggestion"})],ir.prototype,"suggestions",void 0);const rr=o.css`
1511
+ @click=${()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()}}></ft-icon>
1512
+ `:te.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",nr(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`}))}setValue(t,r=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),r&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var r;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.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()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var r;this.setValue(t.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 t,r;!((t=this.mainPanel)===null||t===void 0)&&t.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}};$.elementDefinitions={"ft-input-label":Lt,"ft-ripple":B,"ft-typography":it,"ft-icon":dt};$.styles=[no,$s];j([(0,M.property)()],$.prototype,"label",void 0);j([(0,M.property)({noAccessor:!0})],$.prototype,"value",null);j([(0,M.state)()],$.prototype,"dispatchedValue",void 0);j([(0,M.property)()],$.prototype,"helper",void 0);j([(0,M.property)({type:Boolean})],$.prototype,"outlined",void 0);j([(0,M.property)({type:Boolean})],$.prototype,"disabled",void 0);j([(0,M.property)({type:Boolean})],$.prototype,"error",void 0);j([(0,M.property)({type:Boolean})],$.prototype,"fixedMenuPosition",void 0);j([(0,M.property)()],$.prototype,"prefix",void 0);j([(0,M.property)()],$.prototype,"icon",void 0);j([(0,M.property)()],$.prototype,"passwordHiddenIcon",void 0);j([(0,M.property)()],$.prototype,"passwordRevealedIcon",void 0);j([(0,M.property)()],$.prototype,"iconVariant",void 0);j([(0,M.property)({type:Boolean})],$.prototype,"filterSuggestions",void 0);j([(0,M.property)({type:Number})],$.prototype,"maxLength",void 0);j([(0,M.property)({type:Boolean})],$.prototype,"password",void 0);j([(0,M.state)()],$.prototype,"focused",void 0);j([(0,M.state)()],$.prototype,"hidePassword",void 0);j([(0,M.state)()],$.prototype,"hideSuggestions",void 0);j([(0,M.state)()],$.prototype,"visibleSuggestions",void 0);j([(0,M.query)(".ft-text-field--main-panel")],$.prototype,"mainPanel",void 0);j([(0,M.query)(".ft-text-field--input")],$.prototype,"input",void 0);j([(0,M.query)(".ft-text-field--suggestions")],$.prototype,"suggestionsContainer",void 0);j([(0,M.queryAssignedElements)({selector:"ft-text-field-suggestion"})],$.prototype,"suggestions",void 0);var Us=u(S()),Ms=u(_()),So=u(K());var Ds=u(_()),Bs=Ds.css`
1518
1513
  .ft-text-field-suggestion {
1519
1514
  position: relative;
1520
1515
  padding: 8px 16px;
@@ -1539,7 +1534,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1539
1534
  slot {
1540
1535
  pointer-events: none;
1541
1536
  }
1542
- `;var nr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ar extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class sr extends e.FtLitElement{render(){return o.html`
1537
+ `;var Ii=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Ai=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},Ce=class extends Us.FtLitElement{render(){return Ms.html`
1543
1538
  <div class="ft-text-field-suggestion"
1544
1539
  tabindex="-1"
1545
1540
  @keydown=${this.onKeyDown}
@@ -1551,17 +1546,17 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1551
1546
  <slot></slot>
1552
1547
  </ft-typography>
1553
1548
  </div>
1554
- `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new ar(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}sr.elementDefinitions={"ft-ripple":Re,"ft-typography":ke,"ft-icon":Go},sr.styles=rr,nr([i.property()],sr.prototype,"value",void 0),nr([i.query(".ft-text-field-suggestion")],sr.prototype,"container",void 0),nr([i.queryAssignedNodes()],sr.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(ir),e.customElement("ft-text-field-suggestion")(sr);class lr{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,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,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,o){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,o)),null==t.tocId?this.extractPagesToc(t.children,e,o):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,o){return t.flatMap((t=>{var i,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(i=t.pageToc)&&void 0!==i?i:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:o,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,o){return t.flatMap((t=>{var i;let r=null===(i=t.prettyUrl)||void 0===i?void 0:i.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:o,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var o,i,r,n,a,s;const l={number:this.pages.length+1,title:null!==(o=t.title)&&void 0!==o?o:"",rootTocId:null!==(i=t.tocId)&&void 0!==i?i:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),d=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,d[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class cr{convertPaginatedToc(t){return new lr(t).build()}}var dr,fr,pr,hr,ur,gr,br,yr,mr,vr,xr,wr,Or,Sr,Nr,$r,Ir,Cr,kr;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function f(t){var e=new FileReader,o=d(e);return e.readAsArrayBuffer(t),o}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;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(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t,e,o,i=c(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,o=d(e),e.readAsText(t),o;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,i,r=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),u.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function y(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},h.call(g.prototype),h.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];y.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new y(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var a=new g(t,i);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new y(i,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=g,t.Response=y),e.Headers=l,e.Request=g,e.Response=y,e.fetch=v,Object.defineProperty(e,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(dr||(dr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(fr||(fr={})),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"}(pr||(pr={})),function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"}(hr||(hr={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(ur||(ur={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(gr||(gr={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(br||(br={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(yr||(yr={})),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"}(mr||(mr={})),function(t){t.ASC="ASC",t.DESC="DESC"}(vr||(vr={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(xr||(xr={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(wr||(wr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Or||(Or={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Sr||(Sr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Nr||(Nr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}($r||($r={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Ir||(Ir={})),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"}(Cr||(Cr={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(kr||(kr={}));const Er={[Cr.PERSONAL_BOOK_SHARE_USER]:[Cr.PERSONAL_BOOK_USER],[Cr.HTML_EXPORT_USER]:[Cr.PERSONAL_BOOK_USER],[Cr.PDF_EXPORT_USER]:[Cr.PERSONAL_BOOK_USER],[Cr.KHUB_ADMIN]:[Cr.CONTENT_PUBLISHER],[Cr.ADMIN]:[Cr.KHUB_ADMIN,Cr.USERS_ADMIN,Cr.PORTAL_ADMIN],[Cr.DEVELOPER]:[Cr.BETA_USER,Cr.DEBUG_USER]};function Rr(t,e){return t===e||(Er[t]??[]).some((t=>Rr(t,e)))}function Ur(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Rr(t,e)))}class Lr extends Ei{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o){super(!1,e),this.converter=t,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return Ur(null!==(e=null===(t=Ci.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):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(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),(()=>this.fetchRelativesForDocument(t,e)))}getRelativesForTopicInMap(t,e,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,o)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){const i=this.getNavigationData(t,e,o),r=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=i.page&&n.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&n.searchParams.set("tocId",i.tocId),null!=i.section&&n.searchParams.set("section",i.section),n.href}getNavigationData(t,e,o){var i,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(i=null==s?void 0:s.title)&&void 0!==i?i:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var o;return e?{type:e.topics.type,rating:null===(o=e.topics)||void 0===o?void 0:o.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,o){return this.makeRateTopicRequest(t,e,o).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Ci.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),o=[{tocId:e.tocId,title:e.title}],i=this.getTocNodeNow(e.parentTocId);for(;i;)o.unshift({tocId:i.tocId,title:i.title}),i=this.getTocNodeNow(i.parentTocId);return o}isFeatureAccessible(t,{session:e,ratingType:o}){var i;if(!this.isFeatureAvailable(t))return!1;switch(t){case s.FEEDBACK:return Ur(null!=e?e:[],Cr.FEEDBACK_USER);case s.RATING:return Ur(null!=e?e:[],Cr.RATING_USER)&&null!=o&&o!==yr.NO_RATING;case s.PRINT:return Ur(null!=e?e:[],Cr.PRINT_USER);case s.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case s.COLLECTIONS:return Ur(null!=e?e:[],Cr.COLLECTION_USER);case s.PERSONAL_BOOKS:return Ur(null!=e?e:[],Cr.PERSONAL_BOOK_USER)&&!(null===(i=this.getMapNow())||void 0===i?void 0:i.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Wr extends Lr{static async build(t){return new Wr(new cr,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class zr{static build(t,o){return new zr((t=>e.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}}))(t.trim()||"context"),null!=o?o:Wr.build)}constructor(t,o,i){this.store=t,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new e.Debouncer(10),this.initService(o)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return e.waitFor((()=>this.service))}async navigateToTopic(t,e,o){const i=await this.awaitService(),r=await(null!=o?i.getPage(o):i.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var o,i,r;let n=null!==(o="root"===t?void 0:t)&&void 0!==o?o:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(i=e.topics[0])&&void 0!==i?i:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let o=await e.getPage(t);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;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),null===(t=this.service)||void 0===t||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,o,i,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(o=this.service)||void 0===o?void 0:o.getMap().then((t=>this.store.actions.map(t))),null===(i=this.service)||void 0===i?void 0:i.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof e.CanceledPromiseError||this.errorHandler(t)}}fetchRelatives(){var t,e,o;const i=null===(t=this.store.getState().map)||void 0===t?void 0:t.metadata.filter((t=>{var e;return t.key==(null===(e=this.store.getState().configuration)||void 0===e?void 0:e.relativePivotMetadata)})).flatMap((t=>t.values));void 0!==i&&i.length>0?null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(o=this.store.getState().configuration)||void 0===o?void 0:o.relativePivotMetadata,i).then((t=>{const e=t.results.flatMap((t=>t.entries));this.store.actions.relatives(e),this.updateClusteringHelper()})):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,o;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let r=i.find((t=>{var e;return(null===(e=t.map)||void 0===e?void 0:e.mapId)==this.store.getState().mapId})),n=null!==(o=null===(t=Ci.getState().metadataConfiguration)||void 0===t?void 0:t.descriptors)&&void 0!==o?o:[];return new e.ClusteringHelper(i,r,this.metadataForSwitchToRelatives,n)}}async navigateToRelativeTopicIfFound(t){var o,i,r;const n=await e.waitFor((()=>{var t;return null===(t=this.store.getState().configuration)||void 0===t?void 0:t.relativeTopicPivotMetadata})),a=this.store.getState().mapId,s=await this.awaitService(),l=await s.getRelativesForTopicInMap(a,n,[t]);if(null===(r=null===(i=null===(o=null==l?void 0:l.results)||void 0===o?void 0:o[0])||void 0===i?void 0:i.entries)||void 0===r?void 0:r[0]){const t=l.results[0].entries[0].topic.tocId;return await this.navigateToTopic(t),!0}return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),null==this.store.getState().relatives?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}}const Tr=o.css`
1555
- `;class Dr extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Ar extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class _r extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Zr extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Fr extends Event{constructor(){super("ft-reader-map-not-found")}}class Br extends Event{constructor(){super("ft-reader-map-unauthorized")}}class Kr extends Event{constructor(){super("ft-reader-map-forbidden")}}class Mr extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}}var Pr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Hr extends e.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new e.Debouncer(5),this.navigationDebouncer=new e.Debouncer(10),this.mapLoadedEventDebouncer=new e.Debouncer(50),this.addStore(Ci)}render(){return o.html`
1549
+ `}focus(t){var r;(r=this.container)===null||r===void 0||r.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new Ai(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};Ce.elementDefinitions={"ft-ripple":B,"ft-typography":it,"ft-icon":dt};Ce.styles=Bs;Ii([(0,So.property)()],Ce.prototype,"value",void 0);Ii([(0,So.query)(".ft-text-field-suggestion")],Ce.prototype,"container",void 0);Ii([(0,So.queryAssignedNodes)()],Ce.prototype,"assignedNodes",void 0);(0,Ni.customElement)("ft-text-field")($);(0,Ni.customElement)("ft-text-field-suggestion")(Ce);var dl=u(S());var Vo=u(_()),Ue=u(K()),Kt=u(S());var we=u(S());var Fs=u(S()),zs=o=>Fs.FtReduxStore.get({name:"ft-reader-"+o,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 Ti=class{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,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,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,r,i){return t.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(t,r,i){return t.flatMap(n=>{var a,s,c;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],r,n.tocId),...this.convertNodes(n.children,r,n.tocId)];let p=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),h={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:p,depth:r,parentTocId:i,children:[]};this.register(h);let g=this.convertSectionNodes((c=n.pageToc)!==null&&c!==void 0?c:[],r+1,n.tocId),x=this.convertNodes(n.children,r+1,h.tocId);return h.children=[...g,...x],[h]})}convertSectionNodes(t,r,i){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={...n,prettyUrl:s,depth:r,parentTocId:i,children:[]};return this.register(c),c.children=this.convertSectionNodes(n.children,r+1,n.tocId),[c]})}buildPage(t,r){var i,n,a,s,c,p;let h={number:this.pages.length+1,title:(i=t.title)!==null&&i!==void 0?i:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(A=>this.nodeByTocId[A.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},g=(A,R)=>(R?h.topics:h.hiddenTopics).push(A),x=(c=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&c!==void 0?c:[];return h.breadcrumb.forEach((A,R)=>{g(A,x[R])}),t.tocId&&g(t.tocId,t.pageConfiguration.isVisible),h.topics.push(...this.tocIds((p=t.pageToc)!==null&&p!==void 0?p:[])),h}registerPage(t){for(let r of[...t.topics,...t.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=t);this.pages.push(t)}tocIds(t){return t.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(t){let r=[t.tocId];for(;t?.parentTocId;)r.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return r}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}},Er=class{convertPaginatedToc(t){return new Ti(t).build()}};var Yy=u(Hs(),1);var Vs;(function(o){o.black="black",o.green="green",o.blue="blue",o.purple="purple",o.red="red",o.orange="orange",o.yellow="yellow"})(Vs||(Vs={}));var Gs;(function(o){o.OFFICIAL="OFFICIAL",o.PERSONAL="PERSONAL",o.SHARED="SHARED"})(Gs||(Gs={}));var Ks;(function(o){o.THIRD_PARTY="THIRD_PARTY",o.OFF_THE_GRID="OFF_THE_GRID",o.CONTENT_PACKAGER="CONTENT_PACKAGER",o.PAGES="PAGES",o.DESIGNED_READER="DESIGNED_READER"})(Ks||(Ks={}));var Zs;(function(o){o.HOMEPAGE="HOMEPAGE",o.CUSTOM="CUSTOM",o.READER="READER",o.TOPIC_TEMPLATE="TOPIC_TEMPLATE",o.SEARCH="SEARCH",o.SEARCH_RESULT="SEARCH_RESULT"})(Zs||(Zs={}));var js;(function(o){o.CLASSIC="CLASSIC",o.CUSTOM="CUSTOM",o.DESIGNER="DESIGNER"})(js||(js={}));var Ys;(function(o){o.AND="AND",o.OR="OR",o.MONOVALUED="MONOVALUED"})(Ys||(Ys={}));var qs;(function(o){o.NONE="NONE",o.ALPHABET="ALPHABET",o.VERSION="VERSION"})(qs||(qs={}));var Oe;(function(o){o.STARS="STARS",o.LIKE="LIKE",o.DICHOTOMOUS="DICHOTOMOUS",o.NO_RATING="NO_RATING"})(Oe||(Oe={}));var Xs;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR",o.CUSTOM="CUSTOM"})(Xs||(Xs={}));var Qs;(function(o){o.ASC="ASC",o.DESC="DESC"})(Qs||(Qs={}));var Js;(function(o){o.ALPHA="ALPHA",o.NATURAL="NATURAL"})(Js||(Js={}));var tl;(function(o){o.EVERYWHERE="EVERYWHERE",o.TITLE_ONLY="TITLE_ONLY",o.NONE="NONE"})(tl||(tl={}));var el;(function(o){o.ARTICLE="ARTICLE",o.BOOK="BOOK",o.SHARED_BOOK="SHARED_BOOK"})(el||(el={}));var ol;(function(o){o.FLUIDTOPICS="FLUIDTOPICS",o.EXTERNAL="EXTERNAL"})(ol||(ol={}));var rl;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.PERSONAL_BOOK="PERSONAL_BOOK",o.SHARED_BOOK="SHARED_BOOK"})(rl||(rl={}));var il;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC"})(il||(il={}));var nl;(function(o){o.DEFAULT="DEFAULT",o.DOCUMENTS="DOCUMENTS",o.ALL_TOPICS="ALL_TOPICS"})(nl||(nl={}));var Y;(function(o){o.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",o.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",o.HTML_EXPORT_USER="HTML_EXPORT_USER",o.PDF_EXPORT_USER="PDF_EXPORT_USER",o.SAVED_SEARCH_USER="SAVED_SEARCH_USER",o.COLLECTION_USER="COLLECTION_USER",o.OFFLINE_USER="OFFLINE_USER",o.ANALYTICS_USER="ANALYTICS_USER",o.BETA_USER="BETA_USER",o.DEBUG_USER="DEBUG_USER",o.PRINT_USER="PRINT_USER",o.RATING_USER="RATING_USER",o.FEEDBACK_USER="FEEDBACK_USER",o.GENERATIVE_AI_USER="GENERATIVE_AI_USER",o.CONTENT_PUBLISHER="CONTENT_PUBLISHER",o.KHUB_ADMIN="KHUB_ADMIN",o.USERS_ADMIN="USERS_ADMIN",o.PORTAL_ADMIN="PORTAL_ADMIN",o.ADMIN="ADMIN",o.DEVELOPER="DEVELOPER"})(Y||(Y={}));var al;(function(o){o.VALID="VALID",o.INVALID="INVALID"})(al||(al={}));var Ql={[Y.PERSONAL_BOOK_SHARE_USER]:[Y.PERSONAL_BOOK_USER],[Y.HTML_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.PDF_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.KHUB_ADMIN]:[Y.CONTENT_PUBLISHER],[Y.ADMIN]:[Y.KHUB_ADMIN,Y.USERS_ADMIN,Y.PORTAL_ADMIN],[Y.DEVELOPER]:[Y.BETA_USER,Y.DEBUG_USER]};function sl(o,t){return o===t||(Ql[o]??[]).some(r=>sl(r,t))}function Qe(o,t){return o==null?!1:(Array.isArray(o)?o:Array.isArray(o.roles)?o.roles:Array.isArray(o.profile?.roles)?o.profile.roles:[]).some(i=>sl(i,t))}var Rr=class extends fe{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,r,i){super(!1,r),this.converter=t,this._mapId=i,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(r=>this.converter.convertPaginatedToc(r)))),this.cache.register("ratingSummary",()=>{var t,r;return Qe((r=(t=O.getState().session)===null||t===void 0?void 0:t.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(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var r;return(r=this.enrichedToc)===null||r===void 0?void 0:r.nodeByTocId[t]}async getPage(t){let r=await this.getEnrichedToc();return r.pages[t-1]||r.pages[0]}async getPageByTocId(t){let r=await this.getEnrichedToc();return r.pageByTocId[t]||r.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,r){return this.cache.get("document-relatives-"+t+"-"+r.join("-"),()=>this.fetchRelativesForDocument(t,r))}getRelativesForTopicInMap(t,r,i){return this.cache.get("topic-relatives-"+[t,r,...i].join("-"),()=>this.fetchRelativesForTopicInMap(t,r,i))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,r,i){let n=this.getNavigationData(t,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(t,r,i){var n,a;t=t||"root";let s=this.enrichedToc,c=s?.pageByTocId[t],p=s?.nodeByTocId[t],h=p?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(n=p?.title)!==null&&n!==void 0?n:"",page:r&&c&&c.number!==r?r:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(h??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(t,r,i){return await this.getEnrichedToc(),this.getNavigationData(t,r,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){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===t)}:void 0})}rateMap(t,r){return this.makeRateMapRequest(t,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,r){return this.makeMapFeedbackRequest(t,r)}rateTopic(t,r,i){return this.makeRateTopicRequest(t,r,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=O.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,r,i){return this.makeTopicFeedbackRequest(t,r,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let r=this.getTocNodeNow(t),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(t,{session:r,ratingType:i}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case jt.FEEDBACK:return Qe(r??[],Y.FEEDBACK_USER);case jt.RATING:return Qe(r??[],Y.RATING_USER)&&i!=null&&i!==Oe.NO_RATING;case jt.PRINT:return Qe(r??[],Y.PRINT_USER);case jt.BOOKMARK:return!!r?.sessionAuthenticated;case jt.COLLECTIONS:return Qe(r??[],Y.COLLECTION_USER);case jt.PERSONAL_BOOKS:return Qe(r??[],Y.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Ar=class o extends Rr{static async build(t){return new o(new Er,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let r=await this.api.getMap(t);return this.fingerprint=r.fingerprint,r}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,r){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:r,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,r,i){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:i,key:r},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,r){return this.api.sendMapFeedback(this.mapId,t,r)}makeRateMapRequest(t,r){return this.api.rateMap(this.mapId,t,r)}makeRateTopicRequest(t,r,i){return this.api.rateTopic(this.mapId,t,r,i)}makeTopicFeedbackRequest(t,r,i){return this.api.sendTopicFeedback(this.mapId,t,r,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var Ir=class o{static build(t,r){return new o(zs(t.trim()||"context"),r??Ar.build)}constructor(t,r,i){this.store=t,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new we.Debouncer(10),this.initService(r)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return(0,we.waitFor)(()=>this.service)}async navigateToTopic(t,r,i){let n=await this.awaitService(),a=await(i!=null?n.getPage(i):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:r})}resolveValidNonRootTocId(t,r){var i,n,a;let s=(i=t==="root"?void 0:t)!==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(t){let i=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var t;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),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,r,i,n,a;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.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))]).then(()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()})}catch(s){this.errorHandler&&!(s instanceof we.CanceledPromiseError)&&this.errorHandler(s)}}fetchRelatives(){var t,r,i;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.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(c=>c.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 t,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var c;return((c=s.map)===null||c===void 0?void 0:c.mapId)==this.store.getState().mapId}),a=(r=(t=O.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&r!==void 0?r:[];return new we.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var r,i,n;let a=await(0,we.waitFor)(()=>{var h;return(h=this.store.getState().configuration)===null||h===void 0?void 0:h.relativeTopicPivotMetadata}),s=this.store.getState().mapId,p=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(i=(r=p?.results)===null||r===void 0?void 0:r[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let h=p.results[0].entries[0].topic.tocId;return await this.navigateToTopic(h),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}};var ll=u(_());var cl=ll.css`
1550
+ `;var Nr=class extends CustomEvent{constructor(t,r){super("ft-reader-map-loaded",{detail:{map:t,toc:r}})}},Tr=class extends CustomEvent{constructor(t,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},_r=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},Lr=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},kr=class extends Event{constructor(){super("ft-reader-map-not-found")}},$r=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Pr=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Dr=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Zt=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Jl=o=>t=>+(t??"NaN")>0?+t:o,xt=class extends Kt.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new Kt.Debouncer(5),this.navigationDebouncer=new Kt.Debouncer(10),this.mapLoadedEventDebouncer=new Kt.Debouncer(50),this.addStore(O)}render(){return Vo.html`
1556
1551
  ${this.importStyleIfNeeded()}
1557
1552
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1558
- `}importStyleIfNeeded(){var t,e;const i=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!i||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?o.nothing:o.html`
1553
+ `}importStyleIfNeeded(){var t,r;let i=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!i||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?Vo.nothing:Vo.html`
1559
1554
  <style>
1560
1555
  @import "${i}"
1561
1556
  </style>
1562
- `}get stateManager(){return null==this._stateManager&&(this._stateManager=zr.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new _r(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new Ar(this.map,e))}))}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run((async()=>{if(null!=this.topicPivot){await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)||this.lastNotifiedNotFoundRelative===this.mapId+this.topicPivot?this.lastNotifiedNotFoundRelative=void 0:(this.dispatchEvent(new Mr),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot)}else null!=this.tocId?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&await this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;401===e.status?this.dispatchEvent(new Br):403===e.status?this.dispatchEvent(new Kr):404===e.status?this.dispatchEvent(new Fr):this.dispatchEvent(new Zr(t))}reloadBookmarks(){Fi.reloadBookmarks()}async reloadRating(){var t,e;await(null===(t=this.stateManager.service)||void 0===t?void 0:t.reloadRating()),null===(e=this.stateManager.store)||void 0===e||e.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run((()=>{this.map&&this.toc&&this.dispatchEvent(new Dr(this.map,this.toc))}))}}var jr;Hr.styles=Tr,Pr([e.redux({store:Ci.name})],Hr.prototype,"baseUrl",void 0),Pr([i.property()],Hr.prototype,"mapId",void 0),Pr([i.property()],Hr.prototype,"tocId",void 0),Pr([i.property()],Hr.prototype,"section",void 0),Pr([i.property()],Hr.prototype,"topicPivot",void 0),Pr([i.property()],Hr.prototype,"searchInDocumentQuery",void 0),Pr([i.property({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:jr}})],Hr.prototype,"page",void 0),Pr([e.redux({store:"reader"})],Hr.prototype,"map",void 0),Pr([e.redux({store:"reader"})],Hr.prototype,"toc",void 0),Pr([e.redux({store:"reader"})],Hr.prototype,"visibleTopics",void 0),Pr([e.redux({store:"reader"})],Hr.prototype,"currentPage",void 0),Pr([e.redux({store:"reader"})],Hr.prototype,"scrollTarget",void 0),Pr([i.property({attribute:!1})],Hr.prototype,"readerServiceProvider",void 0),e.customElement("ft-reader-context")(Hr);class Gr extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}}class Vr extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}}class Yr extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}}class qr extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}}class Xr extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}}var Qr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Jr extends(Hi(f)){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(Qi,Ji)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==o?o:"NO_RATING"}get ratingValue(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==o?o:-1}get ratingDate(){var t,o;const i=null===(o=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===o?void 0:o.date;return"string"==typeof i?e.parseDate(i):i}render(){return this.canAccessFeedback||this.canAccessRating?o.html`
1557
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=Ir.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let r=t.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(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>t.has(r))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var r;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let i=t.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 _r(a)))})}t.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 Tr(this.map,n))})}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Dr),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(t){t.stopPropagation();let r=t.composedPath()[0];this.register(r)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let r=t;r.status===401?this.dispatchEvent(new $r):r.status===403?this.dispatchEvent(new Pr):r.status===404?this.dispatchEvent(new kr):this.dispatchEvent(new Lr(t))}reloadBookmarks(){Es.reloadBookmarks()}async reloadRating(){var t,r;await((t=this.stateManager.service)===null||t===void 0?void 0:t.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 Nr(this.map,this.toc))})}};xt.styles=cl;Zt([(0,Kt.redux)({store:O.name})],xt.prototype,"baseUrl",void 0);Zt([(0,Ue.property)()],xt.prototype,"mapId",void 0);Zt([(0,Ue.property)()],xt.prototype,"tocId",void 0);Zt([(0,Ue.property)()],xt.prototype,"section",void 0);Zt([(0,Ue.property)()],xt.prototype,"topicPivot",void 0);Zt([(0,Ue.property)()],xt.prototype,"searchInDocumentQuery",void 0);Zt([(0,Ue.property)({type:Number,converter:{fromAttribute:Jl()}})],xt.prototype,"page",void 0);Zt([(0,Kt.redux)({store:"reader"})],xt.prototype,"map",void 0);Zt([(0,Kt.redux)({store:"reader"})],xt.prototype,"toc",void 0);Zt([(0,Kt.redux)({store:"reader"})],xt.prototype,"visibleTopics",void 0);Zt([(0,Kt.redux)({store:"reader"})],xt.prototype,"currentPage",void 0);Zt([(0,Kt.redux)({store:"reader"})],xt.prototype,"scrollTarget",void 0);Zt([(0,Ue.property)({attribute:!1})],xt.prototype,"readerServiceProvider",void 0);(0,dl.customElement)("ft-reader-context")(xt);var Br=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},Ur=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},Mr=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},Fr=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},zr=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var mt=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},W=class extends De(Ee){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(k,_s)}get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(jt.FEEDBACK,{session:this.session})}get canAccessRating(){var t,r;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(jt.RATING,{session:this.session,ratingType:(r=this.ratingSummary)===null||r===void 0?void 0:r.type})}get configuredRatingType(){var t,r;return(r=this.ratingAllowed?(t=this.ratingSummary)===null||t===void 0?void 0:t.type:"NO_RATING")!==null&&r!==void 0?r:"NO_RATING"}get ratingType(){var t,r,i;return(i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:"NO_RATING"}get ratingValue(){var t,r,i;return(i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var t,r;let i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?(0,Wr.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canAccessRating?at.nothing:at.html`
1563
1558
  <div class="ft-reader-feedback">
1564
- ${this.hideTitle?o.nothing:o.html`
1559
+ ${this.hideTitle?at.nothing:at.html`
1565
1560
  <ft-typography variant="title" part="main-title">
1566
1561
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1567
1562
  </ft-typography>
@@ -1569,105 +1564,113 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1569
1564
  ${this.renderRatingSection()}
1570
1565
  ${this.renderFeedbackSection()}
1571
1566
  </div>
1572
- `:o.nothing}renderRatingSection(){return this.canAccessRating?o.html`
1567
+ `}renderRatingSection(){return this.canAccessRating?at.html`
1573
1568
  <div class="ft-reader-feedback--rating" part="rating-container">
1574
1569
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1575
- ${this.i18n("DICHOTOMOUS"===this.ratingSummary.type?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
1570
+ ${this.i18n(this.ratingSummary.type==="DICHOTOMOUS"?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
1576
1571
  </ft-typography>
1577
1572
  ${this.renderRating()}
1578
1573
  <ft-typography variant="caption" class="ft-reader-feedback--rating-date" part="rating-date">
1579
1574
  ${this.renderRatingDate()}
1580
1575
  </ft-typography>
1581
1576
  </div>
1582
- `:o.nothing}renderRatingDate(){const t=this.ratingDate;if(null==t)return Qi.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Qi.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Qi.messages.ratedToday():Qi.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return o.html`
1577
+ `:at.nothing}renderRatingDate(){let t=this.ratingDate;if(t==null)return k.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return k.messages.ratedNow();let r=new Date().toLocaleDateString(),i=t.toLocaleDateString();return r===i?k.messages.ratedToday():k.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return at.html`
1583
1578
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1584
- ${a.repeat(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const r=e+1;return o.html`
1585
- <ft-button round part="rating-stars-${r}"
1586
- label="${Qi.messages.starsRating(r)}"
1579
+ ${(0,pl.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let c=this.ratingType==="STARS"&&this.ratingValue>s,p=s+1;return at.html`
1580
+ <ft-button round part="rating-stars-${p}"
1581
+ label="${k.messages.starsRating(p)}"
1587
1582
  tooltipPosition="top"
1588
1583
  .iconVariant=${this.iconVariant}
1589
- icon="${i?this.filledStarIcon:this.emptyStarIcon}"
1590
- class="ft-reader-feedback--${i?"active":"inactive"}"
1591
- @click=${()=>this.rate(this.ratingValue===r?void 0:r)}
1584
+ icon="${c?this.filledStarIcon:this.emptyStarIcon}"
1585
+ class="ft-reader-feedback--${c?"active":"inactive"}"
1586
+ @click=${()=>this.rate(this.ratingValue===p?void 0:p)}
1592
1587
  ></ft-button>
1593
- `}))}
1588
+ `})}
1594
1589
  </div>
1595
- `;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return o.html`
1590
+ `;case"LIKE":let t=this.ratingType==="LIKE"&&this.ratingValue===0,r=this.ratingType==="LIKE"&&this.ratingValue===1;return at.html`
1596
1591
  <ft-switch unselectable
1597
- @change=${t=>this.rate(t.detail)}
1592
+ @change=${a=>this.rate(a.detail)}
1598
1593
  part="rating rating-like">
1599
1594
  <ft-switch-option .value=${1}
1600
- ?selected=${e}
1595
+ ?selected=${r}
1601
1596
  .iconVariant=${this.iconVariant}
1602
- icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
1603
- ${Qi.messages.like()}
1597
+ icon="${r?this.filledLikeIcon:this.emptyLikeIcon}">
1598
+ ${k.messages.like()}
1604
1599
  </ft-switch-option>
1605
1600
  <ft-switch-option .value=${0}
1606
1601
  ?selected=${t}
1607
1602
  .iconVariant=${this.iconVariant}
1608
1603
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1609
- ${Qi.messages.dislike()}
1604
+ ${k.messages.dislike()}
1610
1605
  </ft-switch-option>
1611
1606
  </ft-switch>
1612
- `;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,r="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return o.html`
1607
+ `;case"DICHOTOMOUS":let i=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return at.html`
1613
1608
  <ft-switch unselectable
1614
- @change=${t=>this.rate(t.detail)}
1609
+ @change=${a=>this.rate(a.detail)}
1615
1610
  part="rating rating-dichotomous">
1616
1611
  <ft-switch-option .value=${1}
1617
- ?selected=${r}>
1618
- ${Qi.messages.dichotomousYes()}
1612
+ ?selected=${n}>
1613
+ ${k.messages.dichotomousYes()}
1619
1614
  </ft-switch-option>
1620
1615
  <ft-switch-option .value=${0}
1621
1616
  ?selected=${i}>
1622
- ${Qi.messages.dichotomousNo()}
1617
+ ${k.messages.dichotomousNo()}
1623
1618
  </ft-switch-option>
1624
1619
  </ft-switch>
1625
- `}return o.nothing}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i,r,n;if(this.canAccessFeedback){const a=this.feedbackMailLinkBuilder(this.feedbackMessage);let s=o.html`
1620
+ `}return at.nothing}rate(t){(t??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,r,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),c=at.html`
1626
1621
  <ft-button primary
1627
1622
  type="submit" name="submit"
1628
1623
  class="ft-reader-feedback--send-feedback"
1629
1624
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1630
1625
  part="send-feedback">
1631
- ${Qi.messages.okButton()}
1626
+ ${k.messages.okButton()}
1632
1627
  </ft-button>
1633
- `;a&&(s=o.html`
1634
- <a class="ft-reader-feedback--feedback-link" href="${a}">
1635
- ${s}
1628
+ `;s&&(c=at.html`
1629
+ <a class="ft-reader-feedback--feedback-link" href="${s}">
1630
+ ${c}
1636
1631
  </a>
1637
- `);let l=this.withMoreOptionsButton&&((null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopics)||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers))?o.html`
1632
+ `);let p=this.withMoreOptionsButton&&(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?at.html`
1638
1633
  <ft-button outlined
1639
1634
  type="button" name="more-options"
1640
1635
  class="ft-reader-feedback--more-options"
1641
1636
  @click="${this.onOpenMoreDetails}"
1642
1637
  part="more-options">
1643
- ${Qi.messages.moreOptionsButton()}
1638
+ ${k.messages.moreOptionsButton()}
1644
1639
  </ft-button>
1645
- `:o.nothing;return o.html`
1640
+ `:at.nothing;return at.html`
1646
1641
  <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
1647
- @submit="${t=>this.onFormSubmitEvent(t,!!a)}">
1642
+ @submit="${h=>this.onFormSubmitEvent(h,!!s)}">
1648
1643
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1649
1644
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1650
1645
  </ft-typography>
1651
- ${null==(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId)&&(null===(n=this.configuration)||void 0===n?void 0:n.mailsSentByFluidTopicsForUnauthenticatedUsers)?o.html`
1646
+ ${((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)?at.html`
1652
1647
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1653
1648
  class="ft-reader-feedback--from-input"
1654
- label=${Qi.messages.feedbackfromEmail()}
1655
- @change=${t=>this.from=t.detail.trim()}
1649
+ label=${k.messages.feedbackfromEmail()}
1650
+ @change=${h=>this.from=h.detail.trim()}
1656
1651
  ?error=${this.from&&!this.validFromEmail()}
1657
- helper=${this.from&&!this.validFromEmail()?Qi.messages.feedbackfromEmailInvalid():""}
1652
+ helper=${this.from&&!this.validFromEmail()?k.messages.feedbackfromEmailInvalid():""}
1658
1653
  />
1659
- `:o.nothing}
1654
+ `:at.nothing}
1660
1655
  <ft-text-area outlined
1661
1656
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1662
- label="${Qi.messages.feedbackInputLabel()}"
1663
- @live-change=${t=>this.feedbackMessage=t.detail.trim()}
1657
+ label="${k.messages.feedbackInputLabel()}"
1658
+ @live-change=${h=>this.feedbackMessage=h.detail.trim()}
1664
1659
  ></ft-text-area>
1665
1660
  <div part="buttons-container">
1666
- ${l}
1667
- ${s}
1661
+ ${p}
1662
+ ${c}
1668
1663
  </div>
1669
1664
  </form>
1670
- `}return o.nothing}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,o;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(o=this.configuration)||void 0===o?void 0:o.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new Gr({message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.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)}}Jr.elementDefinitions={"ft-button":wi,"ft-typography":ke,"ft-switch":oi,"ft-switch-option":Jo,"ft-text-area":bi,"ft-text-field":ir},Jr.styles=_t,Qr([i.property({type:Boolean})],Jr.prototype,"editorMode",void 0),Qr([i.property({type:Boolean})],Jr.prototype,"hideTitle",void 0),Qr([i.property({type:Boolean})],Jr.prototype,"withMoreOptionsButton",void 0),Qr([i.property({type:Boolean})],Jr.prototype,"ratingAllowed",void 0),Qr([i.property({attribute:!1})],Jr.prototype,"i18nProperties",void 0),Qr([i.property({attribute:!1})],Jr.prototype,"ratingSummary",void 0),Qr([i.property({attribute:!1})],Jr.prototype,"session",void 0),Qr([i.query(".ft-reader-feedback--feedback-input")],Jr.prototype,"feedbackInput",void 0),Qr([i.state()],Jr.prototype,"from",void 0),Qr([i.state()],Jr.prototype,"feedbackMessage",void 0),Qr([i.property()],Jr.prototype,"iconVariant",void 0),Qr([i.property()],Jr.prototype,"emptyStarIcon",void 0),Qr([i.property()],Jr.prototype,"filledStarIcon",void 0),Qr([i.property()],Jr.prototype,"emptyLikeIcon",void 0),Qr([i.property()],Jr.prototype,"filledLikeIcon",void 0),Qr([i.property()],Jr.prototype,"emptyDislikeIcon",void 0),Qr([i.property()],Jr.prototype,"filledDislikeIcon",void 0),Qr([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Jr.prototype,"configuration",void 0),Qr([i.property()],Jr.prototype,"feedbackMailLinkBuilder",void 0);const tn=qi.fromGwt("server");class en{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,o,i,r){var n;this.subject=t,this.url=e,this.configuration=i,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(o,i.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(o,null!==(n=i.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}shouldUseMailer(){var t,e;const o=this.isAuthenticated&&!(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopics),i=!this.isAuthenticated&&!(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||i}build(t){var e;if(null!=t&&0===t.length||!this.shouldUseMailer())return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),i=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${null!=t?t:""}\n\n_________________________________________________________________\n${tn.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(e=this.configuration)||void 0===e?void 0:e.recipients.join(",")}?subject=${o}&body=${i}`}}const on=qi.build("inDesignerFeedbackComponent"),rn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var nn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class an extends(Hi(f)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Mo.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 en,this.i18nProperties={feedbackMainTitle:Qi.properties.mapFeedbackMainTitle(),ratingSectionTitle:Qi.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Qi.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Qi.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(Ci)}render(){return o.html`
1665
+ `}return at.nothing}onFormSubmitEvent(t,r){t.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(t=this.session)===null||t===void 0?void 0:t.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 t;this.dispatchEvent(new Br({message:this.feedbackInput.value,...((t=this.configuration)===null||t===void 0?void 0:t.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)}};W.elementDefinitions={"ft-button":ie,"ft-typography":it,"ft-switch":Vt,"ft-switch-option":pt,"ft-text-area":Ot,"ft-text-field":$};W.styles=Wn;mt([(0,st.property)({type:Boolean})],W.prototype,"editorMode",void 0);mt([(0,st.property)({type:Boolean})],W.prototype,"hideTitle",void 0);mt([(0,st.property)({type:Boolean})],W.prototype,"withMoreOptionsButton",void 0);mt([(0,st.property)({type:Boolean})],W.prototype,"ratingAllowed",void 0);mt([(0,st.property)({attribute:!1})],W.prototype,"i18nProperties",void 0);mt([(0,st.property)({attribute:!1})],W.prototype,"ratingSummary",void 0);mt([(0,st.property)({attribute:!1})],W.prototype,"session",void 0);mt([(0,st.query)(".ft-reader-feedback--feedback-input")],W.prototype,"feedbackInput",void 0);mt([(0,st.state)()],W.prototype,"from",void 0);mt([(0,st.state)()],W.prototype,"feedbackMessage",void 0);mt([(0,st.property)()],W.prototype,"iconVariant",void 0);mt([(0,st.property)()],W.prototype,"emptyStarIcon",void 0);mt([(0,st.property)()],W.prototype,"filledStarIcon",void 0);mt([(0,st.property)()],W.prototype,"emptyLikeIcon",void 0);mt([(0,st.property)()],W.prototype,"filledLikeIcon",void 0);mt([(0,st.property)()],W.prototype,"emptyDislikeIcon",void 0);mt([(0,st.property)()],W.prototype,"filledDislikeIcon",void 0);mt([(0,Wr.redux)({store:"reader",selector:o=>{var t;return(t=o.configuration)===null||t===void 0?void 0:t.feedback}})],W.prototype,"configuration",void 0);mt([(0,st.property)()],W.prototype,"feedbackMailLinkBuilder",void 0);var Co=Be.fromGwt("server");var Oo=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,r,i,n,a){var s;this.subject=t,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(c=>"["+c.values[c.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(c=>"["+c.values.join(", ")+"]").join(" ")}filterMetadata(t,r){return r.map(i=>t.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var t,r;let i=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(t){var r;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1666
+ ${this.bodyMetadata}
1667
+ ${this.url}
1668
+ _________________________________________________________________
1669
+
1670
+ ${t??""}
1671
+
1672
+ _________________________________________________________________
1673
+ ${Co.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var Me=Be.build("inDesignerFeedbackComponent"),Hr={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var wt=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},tt=class extends De(Ee){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Mt.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Oo,this.i18nProperties={feedbackMainTitle:k.properties.mapFeedbackMainTitle(),ratingSectionTitle:k.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:k.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:k.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new It.Debouncer(100),this.sendRatingDebouncer=new It.Debouncer(500),this.addStore(O)}render(){return fl.html`
1671
1674
  <ft-reader-feedback
1672
1675
  ratingAllowed
1673
1676
  .i18nProperties=${this.i18nProperties}
@@ -1689,10 +1692,10 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1689
1692
  @mailer-feedback=${this.onMailerFeedbackSent}
1690
1693
  @open-more-options=${this.openMoreOptions}
1691
1694
  ></ft-reader-feedback>
1692
- `}update(t){var e,o,i,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(on,rn),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var o,i,r;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(o=this.service)||void 0===o?void 0:o.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Qi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:on.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:on.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(o=this.service)||void 0===o?void 0:o.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Qi.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Qi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Xr)}openMoreOptions(){var t,e,o;this.dispatchEvent(new Yr({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:(null===(t=this.map)||void 0===t?void 0:t.metadata)||[],ratingType:(null===(e=this.ratingSummary)||void 0===e?void 0:e.type)||yr.NO_RATING,ratingValue:null===(o=this.ratingSummary)||void 0===o?void 0:o.rating}))}}an.elementDefinitions={"ft-reader-feedback":Jr},nn([e.redux({store:Ci.name})],an.prototype,"session",void 0),nn([e.redux({store:"reader"})],an.prototype,"map",void 0),nn([e.redux({store:Ci.name})],an.prototype,"editorMode",void 0),nn([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],an.prototype,"configuration",void 0),nn([i.state()],an.prototype,"ratingSummary",void 0),nn([i.property({type:Boolean})],an.prototype,"hideTitle",void 0),nn([i.property({type:Boolean})],an.prototype,"withMoreOptionsButton",void 0),nn([i.property()],an.prototype,"iconVariant",void 0),nn([i.property()],an.prototype,"emptyStarIcon",void 0),nn([i.property()],an.prototype,"filledStarIcon",void 0),nn([i.property()],an.prototype,"emptyLikeIcon",void 0),nn([i.property()],an.prototype,"filledLikeIcon",void 0),nn([i.property()],an.prototype,"emptyDislikeIcon",void 0),nn([i.property()],an.prototype,"filledDislikeIcon",void 0),nn([i.query("ft-reader-feedback")],an.prototype,"readerFeedback",void 0),nn([Xi(tn.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],an.prototype,"mailSubject",void 0),nn([e.reduxEventListener({eventName:"rating-changed"})],an.prototype,"fetchRatingSummary",null);var sn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ln extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const cn=Symbol("registerInterval");class dn extends(function(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[cn]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[cn]):this.dispatchEvent(new ln)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=cn,sn([i.state()],o.prototype,"tocNode",void 0),sn([i.state()],o.prototype,"disableContextInteractions",void 0),o}(f)){}var fn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class pn extends(Hi(dn)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Mo.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 en,this.i18nProperties={feedbackMainTitle:Qi.properties.topicFeedbackMainTitle(),ratingSectionTitle:Qi.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Qi.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Qi.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(Ci)}render(){var t;return o.html`
1695
+ `}update(t){var r,i,n,a;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(Me,Hr),["map","configuration","user","mailSubject"].some(s=>t.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(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,r;this.map&&(!((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0)&&r.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var r,i,n;if(!this.editorMode&&this.ratingSummary){try{t==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,t))}catch{this.dispatchEvent(new It.FtNotificationEvent({type:"error",message:k.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new It.FtNotificationEvent({type:"info",message:Me.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{this.editorMode?this.dispatchEvent(new It.FtNotificationEvent({type:"info",message:Me.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new It.FtNotificationEvent({type:"info",message:k.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new It.FtNotificationEvent({type:"error",message:k.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new zr)}openMoreOptions(){var t,r,i;this.dispatchEvent(new Mr({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||Oe.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};tt.elementDefinitions={"ft-reader-feedback":W};wt([(0,It.redux)({store:O.name})],tt.prototype,"session",void 0);wt([(0,It.redux)({store:"reader"})],tt.prototype,"map",void 0);wt([(0,It.redux)({store:O.name})],tt.prototype,"editorMode",void 0);wt([(0,It.redux)({store:"reader",selector:o=>{var t;return(t=o.configuration)===null||t===void 0?void 0:t.feedback}})],tt.prototype,"configuration",void 0);wt([(0,Ft.state)()],tt.prototype,"ratingSummary",void 0);wt([(0,Ft.property)({type:Boolean})],tt.prototype,"hideTitle",void 0);wt([(0,Ft.property)({type:Boolean})],tt.prototype,"withMoreOptionsButton",void 0);wt([(0,Ft.property)()],tt.prototype,"iconVariant",void 0);wt([(0,Ft.property)()],tt.prototype,"emptyStarIcon",void 0);wt([(0,Ft.property)()],tt.prototype,"filledStarIcon",void 0);wt([(0,Ft.property)()],tt.prototype,"emptyLikeIcon",void 0);wt([(0,Ft.property)()],tt.prototype,"filledLikeIcon",void 0);wt([(0,Ft.property)()],tt.prototype,"emptyDislikeIcon",void 0);wt([(0,Ft.property)()],tt.prototype,"filledDislikeIcon",void 0);wt([(0,Ft.query)("ft-reader-feedback")],tt.prototype,"readerFeedback",void 0);wt([Or(Co.properties["mail.map_feedback.subject"](o=>{var t;return[(t=o.map)===null||t===void 0?void 0:t.title]}))],tt.prototype,"mailSubject",void 0);wt([(0,It.reduxEventListener)({eventName:"rating-changed"})],tt.prototype,"fetchRatingSummary",null);var hl=u(_()),zt=u(K()),Nt=u(S());var Li=u(K());var ul=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ki=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},_i=Symbol("registerInterval");function tc(o){var t;class r extends o{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[_i]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[_i]):this.dispatchEvent(new ki)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=_i,ul([(0,Li.state)()],r.prototype,"tocNode",void 0),ul([(0,Li.state)()],r.prototype,"disableContextInteractions",void 0),r}var Vr=class extends tc(Ee){};var Et=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},et=class extends De(Vr){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Mt.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Oo,this.i18nProperties={feedbackMainTitle:k.properties.topicFeedbackMainTitle(),ratingSectionTitle:k.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:k.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:k.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new Nt.Debouncer(100),this.sendRatingDebouncer=new Nt.Debouncer(500),this.addStore(O)}render(){var t;return hl.html`
1693
1696
  <ft-reader-feedback
1694
1697
  .i18nProperties=${this.i18nProperties}
1695
- ?ratingAllowed=${null===(t=this.tocNode)||void 0===t?void 0:t.hasRating}
1698
+ ?ratingAllowed=${(t=this.tocNode)===null||t===void 0?void 0:t.hasRating}
1696
1699
  .editorMode=${this.editorMode}
1697
1700
  ?hideTitle=${this.hideTitle}
1698
1701
  ?withMoreOptionsButton=${this.withMoreOptionsButton}
@@ -1705,10 +1708,33 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1705
1708
  .filledLikeIcon=${this.filledLikeIcon}
1706
1709
  .emptyDislikeIcon=${this.emptyDislikeIcon}
1707
1710
  .filledDislikeIcon=${this.filledDislikeIcon}
1708
- .feedbackMailLinkBuilder=${t=>this.feedbackLinkBuilder.build(t)}
1711
+ .feedbackMailLinkBuilder=${r=>this.feedbackLinkBuilder.build(r)}
1709
1712
  @rate=${this.rate}
1710
1713
  @send-feedback=${this.sendFeedback}
1711
1714
  @mailer-feedback=${this.onMailerFeedbackSent}
1712
1715
  @open-more-options=${this.openMoreOptions}
1713
1716
  ></ft-reader-feedback>
1714
- `}update(t){var e,o,i,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(on,rn),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var o,i,r;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(o=this.service)||void 0===o?void 0:o.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Qi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:on.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{!this.editorMode&&this.tocNode?(await(null===(o=this.service)||void 0===o?void 0:o.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Qi.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:on.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Qi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new qr(t))}openMoreOptions(){var t,e,o,i,r,n,a,s;this.dispatchEvent(new Vr({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:null!==(e=null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocNode.tocId))&&void 0!==e?e:"",mapMetadata:(null===(o=this.map)||void 0===o?void 0:o.metadata)||[],breadcrumb:(null===(r=null===(i=this.stateManager)||void 0===i?void 0:i.service)||void 0===r?void 0:r.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:((null===(n=this.tocNode)||void 0===n?void 0:n.hasRating)?null===(a=this.ratingSummary)||void 0===a?void 0:a.type:yr.NO_RATING)||yr.NO_RATING,ratingValue:null===(s=this.ratingSummary)||void 0===s?void 0:s.rating}))}}pn.elementDefinitions={"ft-reader-feedback":Jr},fn([e.redux({store:Ci.name})],pn.prototype,"session",void 0),fn([e.redux({store:"reader"})],pn.prototype,"map",void 0),fn([e.redux({store:Ci.name})],pn.prototype,"editorMode",void 0),fn([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],pn.prototype,"configuration",void 0),fn([i.state()],pn.prototype,"ratingSummary",void 0),fn([i.property({type:Boolean})],pn.prototype,"hideTitle",void 0),fn([i.property({type:Boolean})],pn.prototype,"withMoreOptionsButton",void 0),fn([i.property()],pn.prototype,"iconVariant",void 0),fn([i.property()],pn.prototype,"emptyStarIcon",void 0),fn([i.property()],pn.prototype,"filledStarIcon",void 0),fn([i.property()],pn.prototype,"emptyLikeIcon",void 0),fn([i.property()],pn.prototype,"filledLikeIcon",void 0),fn([i.property()],pn.prototype,"emptyDislikeIcon",void 0),fn([i.property()],pn.prototype,"filledDislikeIcon",void 0),fn([i.query("ft-reader-feedback")],pn.prototype,"readerFeedback",void 0),fn([Xi(tn.properties["mail.feedback.subject"]((t=>{var e,o;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(o=t.map)||void 0===o?void 0:o.title]})))],pn.prototype,"mailSubject",void 0),fn([e.reduxEventListener({eventName:"rating-changed"})],pn.prototype,"fetchRatingSummary",null),e.customElement("ft-reader-map-feedback")(an),e.customElement("ft-reader-topic-feedback")(pn),t.FtReaderFeedbackCssVariables=At,t.FtReaderMapFeedback=an,t.FtReaderTopicFeedback=pn,t.styles=_t}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML,ftGlobals.litRepeat);
1717
+ `}update(t){var r,i,n,a;super.update(t),["tocNode","user"].some(s=>t.has(s))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(Me,Hr),["map","tocNode","configuration","user","mailSubject"].some(s=>t.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 t,r;this.tocNode&&(!((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0)&&r.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var r,i,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==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,t))}catch{this.dispatchEvent(new Nt.FtNotificationEvent({type:"error",message:k.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Nt.FtNotificationEvent({type:"info",message:Me.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new Nt.FtNotificationEvent({type:"info",message:k.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Nt.FtNotificationEvent({type:"info",message:Me.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Nt.FtNotificationEvent({type:"error",message:k.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new Fr(t))}openMoreOptions(){var t,r,i,n,a,s,c,p;this.dispatchEvent(new Ur({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(c=this.ratingSummary)===null||c===void 0?void 0:c.type:Oe.NO_RATING)||Oe.NO_RATING,ratingValue:(p=this.ratingSummary)===null||p===void 0?void 0:p.rating}))}};et.elementDefinitions={"ft-reader-feedback":W};Et([(0,Nt.redux)({store:O.name})],et.prototype,"session",void 0);Et([(0,Nt.redux)({store:"reader"})],et.prototype,"map",void 0);Et([(0,Nt.redux)({store:O.name})],et.prototype,"editorMode",void 0);Et([(0,Nt.redux)({store:"reader",selector:o=>{var t;return(t=o.configuration)===null||t===void 0?void 0:t.feedback}})],et.prototype,"configuration",void 0);Et([(0,zt.state)()],et.prototype,"ratingSummary",void 0);Et([(0,zt.property)({type:Boolean})],et.prototype,"hideTitle",void 0);Et([(0,zt.property)({type:Boolean})],et.prototype,"withMoreOptionsButton",void 0);Et([(0,zt.property)()],et.prototype,"iconVariant",void 0);Et([(0,zt.property)()],et.prototype,"emptyStarIcon",void 0);Et([(0,zt.property)()],et.prototype,"filledStarIcon",void 0);Et([(0,zt.property)()],et.prototype,"emptyLikeIcon",void 0);Et([(0,zt.property)()],et.prototype,"filledLikeIcon",void 0);Et([(0,zt.property)()],et.prototype,"emptyDislikeIcon",void 0);Et([(0,zt.property)()],et.prototype,"filledDislikeIcon",void 0);Et([(0,zt.query)("ft-reader-feedback")],et.prototype,"readerFeedback",void 0);Et([Or(Co.properties["mail.feedback.subject"](o=>{var t,r;return[(t=o.tocNode)===null||t===void 0?void 0:t.title,(r=o.map)===null||r===void 0?void 0:r.title]}))],et.prototype,"mailSubject",void 0);Et([(0,Nt.reduxEventListener)({eventName:"rating-changed"})],et.prototype,"fetchRatingSummary",null);(0,$i.customElement)("ft-reader-map-feedback")(tt);(0,$i.customElement)("ft-reader-topic-feedback")(et);})();
1718
+ /*! Bundled license information:
1719
+
1720
+ lit-html/lit-html.js:
1721
+ (**
1722
+ * @license
1723
+ * Copyright 2017 Google LLC
1724
+ * SPDX-License-Identifier: BSD-3-Clause
1725
+ *)
1726
+
1727
+ lit-html/static.js:
1728
+ (**
1729
+ * @license
1730
+ * Copyright 2020 Google LLC
1731
+ * SPDX-License-Identifier: BSD-3-Clause
1732
+ *)
1733
+
1734
+ lit-html/directives/if-defined.js:
1735
+ (**
1736
+ * @license
1737
+ * Copyright 2018 Google LLC
1738
+ * SPDX-License-Identifier: BSD-3-Clause
1739
+ *)
1740
+ */