@fluid-topics/ft-reader-content 2.0.14 → 2.0.16
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,7 +1,7 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
`)===0?
|
|
1
|
+
"use strict";(()=>{var hs=Object.create;var Zo=Object.defineProperty;var ys=Object.getOwnPropertyDescriptor;var gs=Object.getOwnPropertyNames;var ms=Object.getPrototypeOf,bs=Object.prototype.hasOwnProperty;var Je=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var vs=(o,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of gs(e))!bs.call(o,a)&&a!==r&&Zo(o,a,{get:()=>e[a],enumerable:!(n=ys(e,a))||n.enumerable});return o};var S=(o,e,r)=>(r=o!=null?hs(ms(o)):{},vs(e||!o||!o.__esModule?Zo(r,"default",{value:o,enumerable:!0}):r,o));var _=Je((Ic,qo)=>{qo.exports=ftGlobals.wcUtils});var j=Je((Tc,Yo)=>{Yo.exports=ftGlobals.lit});var J=Je((Rc,Qo)=>{Qo.exports=ftGlobals.litDecorators});var Wr=Je((Pc,tn)=>{tn.exports=ftGlobals.litRepeat});var on=Je((Dc,rn)=>{rn.exports=ftGlobals.litUnsafeHTML});var vn=Je((Oe,bn)=>{var Kt=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Zt=function(){function o(){this.fetch=!1,this.DOMException=Kt.DOMException}return o.prototype=Kt,new o}();(function(o){var e=function(r){var n=typeof o<"u"&&o||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function s(f){return f&&DataView.prototype.isPrototypeOf(f)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(f){return f&&c.indexOf(Object.prototype.toString.call(f))>-1};function u(f){if(typeof f!="string"&&(f=String(f)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(f)||f==="")throw new TypeError('Invalid character in header field name: "'+f+'"');return f.toLowerCase()}function p(f){return typeof f!="string"&&(f=String(f)),f}function h(f){var g={next:function(){var E=f.shift();return{done:E===void 0,value:E}}};return a.iterable&&(g[Symbol.iterator]=function(){return g}),g}function y(f){this.map={},f instanceof y?f.forEach(function(g,E){this.append(E,g)},this):Array.isArray(f)?f.forEach(function(g){if(g.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+g.length);this.append(g[0],g[1])},this):f&&Object.getOwnPropertyNames(f).forEach(function(g){this.append(g,f[g])},this)}y.prototype.append=function(f,g){f=u(f),g=p(g);var E=this.map[f];this.map[f]=E?E+", "+g:g},y.prototype.delete=function(f){delete this.map[u(f)]},y.prototype.get=function(f){return f=u(f),this.has(f)?this.map[f]:null},y.prototype.has=function(f){return this.map.hasOwnProperty(u(f))},y.prototype.set=function(f,g){this.map[u(f)]=p(g)},y.prototype.forEach=function(f,g){for(var E in this.map)this.map.hasOwnProperty(E)&&f.call(g,this.map[E],E,this)},y.prototype.keys=function(){var f=[];return this.forEach(function(g,E){f.push(E)}),h(f)},y.prototype.values=function(){var f=[];return this.forEach(function(g){f.push(g)}),h(f)},y.prototype.entries=function(){var f=[];return this.forEach(function(g,E){f.push([E,g])}),h(f)},a.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function m(f){if(!f._noBody){if(f.bodyUsed)return Promise.reject(new TypeError("Already read"));f.bodyUsed=!0}}function v(f){return new Promise(function(g,E){f.onload=function(){g(f.result)},f.onerror=function(){E(f.error)}})}function b(f){var g=new FileReader,E=v(g);return g.readAsArrayBuffer(f),E}function C(f){var g=new FileReader,E=v(g),k=/charset=([A-Za-z0-9_-]+)/.exec(f.type),F=k?k[1]:"utf-8";return g.readAsText(f,F),E}function w(f){for(var g=new Uint8Array(f),E=new Array(g.length),k=0;k<g.length;k++)E[k]=String.fromCharCode(g[k]);return E.join("")}function I(f){if(f.slice)return f.slice(0);var g=new Uint8Array(f.byteLength);return g.set(new Uint8Array(f)),g.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(f){this.bodyUsed=this.bodyUsed,this._bodyInit=f,f?typeof f=="string"?this._bodyText=f:a.blob&&Blob.prototype.isPrototypeOf(f)?this._bodyBlob=f:a.formData&&FormData.prototype.isPrototypeOf(f)?this._bodyFormData=f:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)?this._bodyText=f.toString():a.arrayBuffer&&a.blob&&s(f)?(this._bodyArrayBuffer=I(f.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(f)||d(f))?this._bodyArrayBuffer=I(f):this._bodyText=f=Object.prototype.toString.call(f):(this._noBody=!0,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):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var f=m(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(){if(this._bodyArrayBuffer){var f=m(this);return f||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(b);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var f=m(this);if(f)return f;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(ue)}),this.json=function(){return this.text().then(JSON.parse)},this}var D=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function L(f){var g=f.toUpperCase();return D.indexOf(g)>-1?g:f}function $(f,g){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');g=g||{};var E=g.body;if(f instanceof $){if(f.bodyUsed)throw new TypeError("Already read");this.url=f.url,this.credentials=f.credentials,g.headers||(this.headers=new y(f.headers)),this.method=f.method,this.mode=f.mode,this.signal=f.signal,!E&&f._bodyInit!=null&&(E=f._bodyInit,f.bodyUsed=!0)}else this.url=String(f);if(this.credentials=g.credentials||this.credentials||"same-origin",(g.headers||!this.headers)&&(this.headers=new y(g.headers)),this.method=L(g.method||this.method||"GET"),this.mode=g.mode||this.mode||null,this.signal=g.signal||this.signal||function(){if("AbortController"in n){var R=new AbortController;return R.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&E)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(E),(this.method==="GET"||this.method==="HEAD")&&(g.cache==="no-store"||g.cache==="no-cache")){var k=/([?&])_=[^&]*/;if(k.test(this.url))this.url=this.url.replace(k,"$1_="+new Date().getTime());else{var F=/\?/;this.url+=(F.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}$.prototype.clone=function(){return new $(this,{body:this._bodyInit})};function ue(f){var g=new FormData;return f.trim().split("&").forEach(function(E){if(E){var k=E.split("="),F=k.shift().replace(/\+/g," "),R=k.join("=").replace(/\+/g," ");g.append(decodeURIComponent(F),decodeURIComponent(R))}}),g}function ke(f){var g=new y,E=f.replace(/\r?\n[\t ]+/g," ");return E.split("\r").map(function(k){return k.indexOf(`
|
|
2
|
+
`)===0?k.substr(1,k.length):k}).forEach(function(k){var F=k.split(":"),R=F.shift().trim();if(R){var Gt=F.join(":").trim();try{g.append(R,Gt)}catch(Hr){console.warn("Response "+Hr.message)}}}),g}T.call($.prototype);function X(f,g){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(g||(g={}),this.type="default",this.status=g.status===void 0?200:g.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=g.statusText===void 0?"":""+g.statusText,this.headers=new y(g.headers),this.url=g.url||"",this._initBody(f)}T.call(X.prototype),X.prototype.clone=function(){return new X(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},X.error=function(){var f=new X(null,{status:200,statusText:""});return f.ok=!1,f.status=0,f.type="error",f};var Ne=[301,302,303,307,308];X.redirect=function(f,g){if(Ne.indexOf(g)===-1)throw new RangeError("Invalid status code");return new X(null,{status:g,headers:{location:f}})},r.DOMException=n.DOMException;try{new r.DOMException}catch{r.DOMException=function(g,E){this.message=g,this.name=E;var k=Error(g);this.stack=k.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Xe(f,g){return new Promise(function(E,k){var F=new $(f,g);if(F.signal&&F.signal.aborted)return k(new r.DOMException("Aborted","AbortError"));var R=new XMLHttpRequest;function Gt(){R.abort()}R.onload=function(){var W={statusText:R.statusText,headers:ke(R.getAllResponseHeaders()||"")};F.url.indexOf("file://")===0&&(R.status<200||R.status>599)?W.status=200:W.status=R.status,W.url="responseURL"in R?R.responseURL:W.headers.get("X-Request-URL");var Pe="response"in R?R.response:R.responseText;setTimeout(function(){E(new X(Pe,W))},0)},R.onerror=function(){setTimeout(function(){k(new TypeError("Network request failed"))},0)},R.ontimeout=function(){setTimeout(function(){k(new TypeError("Network request timed out"))},0)},R.onabort=function(){setTimeout(function(){k(new r.DOMException("Aborted","AbortError"))},0)};function Hr(W){try{return W===""&&n.location.href?n.location.href:W}catch{return W}}if(R.open(F.method,Hr(F.url),!0),F.credentials==="include"?R.withCredentials=!0:F.credentials==="omit"&&(R.withCredentials=!1),"responseType"in R&&(a.blob?R.responseType="blob":a.arrayBuffer&&(R.responseType="arraybuffer")),g&&typeof g.headers=="object"&&!(g.headers instanceof y||n.Headers&&g.headers instanceof n.Headers)){var Ko=[];Object.getOwnPropertyNames(g.headers).forEach(function(W){Ko.push(u(W)),R.setRequestHeader(W,p(g.headers[W]))}),F.headers.forEach(function(W,Pe){Ko.indexOf(Pe)===-1&&R.setRequestHeader(Pe,W)})}else F.headers.forEach(function(W,Pe){R.setRequestHeader(Pe,W)});F.signal&&(F.signal.addEventListener("abort",Gt),R.onreadystatechange=function(){R.readyState===4&&F.signal.removeEventListener("abort",Gt)}),R.send(typeof F._bodyInit>"u"?null:F._bodyInit)})}return Xe.polyfill=!0,n.fetch||(n.fetch=Xe,n.Headers=y,n.Request=$,n.Response=X),r.Headers=y,r.Request=$,r.Response=X,r.fetch=Xe,r}({})})(Zt);Zt.fetch.ponyfill=!0;delete Zt.fetch.polyfill;var ot=Kt.fetch?Kt:Zt;Oe=ot.fetch;Oe.default=ot.fetch;Oe.fetch=ot.fetch;Oe.Headers=ot.Headers;Oe.Request=ot.Request;Oe.Response=ot.Response;bn.exports=Oe});var fs=S(_());var Br=S(j()),zt=S(J()),ae=S(_());var $t=S(_()),Xo=S(J());var De;(function(o){o.clusteringHelperCreated="clustering-helper-created",o.mapAttachmentsUpdate="map-attachments-update",o.visibleTopicChange="visible-topic-change"})(De||(De={}));var me;(function(o){o.FEEDBACK="FEEDBACK",o.RATING="RATING",o.PRINT="PRINT",o.BOOKMARK="BOOKMARK",o.COLLECTIONS="COLLECTIONS",o.PERSONAL_BOOKS="PERSONAL_BOOKS"})(me||(me={}));var xs=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Gr=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},zr=Symbol("registerInterval"),Ss=(0,$t.applyMixinOnce)(Symbol("toFtReaderComponent"),function(o){var e;class r extends o{constructor(){super(...arguments),this[e]=0}setReaderStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var a;return(a=this.stateManager)===null||a===void 0?void 0:a.service}connectedCallback(){super.connectedCallback(),this[zr]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[zr]):this.dispatchEvent(new Gr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=zr,xs([(0,Xo.state)()],r.prototype,"stateManager",void 0),r}),et=class extends Ss($t.FtLitElementRedux){};var Jo=S(j()),Wt=S(_()),$r={padding:Wt.FtCssVariableFactory.create("--ft-infinite-scroll-padding","","SIZE","0"),itemsGap:Wt.FtCssVariableFactory.create("--ft-infinite-scroll-items-gap","","SIZE","4px"),itemContainerMinHeight:Wt.FtCssVariableFactory.create("--ft-infinite-scroll-item-container-min-height","","SIZE",".1px")},en=Jo.css`
|
|
3
3
|
.items-container {
|
|
4
|
-
padding: ${
|
|
4
|
+
padding: ${$r.padding};
|
|
5
5
|
outline: none;
|
|
6
6
|
}
|
|
7
7
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
By adding this gap we ensure that the previous item will be fully hidden
|
|
19
19
|
and even if its size changes, it will not impact the scroll offset
|
|
20
20
|
*/
|
|
21
|
-
margin-top: ${
|
|
21
|
+
margin-top: ${$r.itemsGap};
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.item-container:not(.rendered) {
|
|
@@ -27,36 +27,36 @@
|
|
|
27
27
|
|
|
28
28
|
.item-container.rendered {
|
|
29
29
|
display: flow-root;
|
|
30
|
-
min-height: ${
|
|
30
|
+
min-height: ${$r.itemContainerMinHeight};
|
|
31
31
|
}
|
|
32
|
-
`;var
|
|
32
|
+
`;var tt=S(j()),Q=S(J()),nn=S(Wr()),N=S(_()),an=S(on());var Y=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},jr=class extends CustomEvent{constructor(e,r){super("visible-items-change",{detail:{indexes:e,items:r,visibleIndexes:e,visibleItems:r}})}},Vr=class extends CustomEvent{constructor(e,r){super("rendered-items-change",{detail:{indexes:e,items:r}})}},Kr=class extends Event{constructor(){super("scrolled-to-target")}},Cs=o=>(o??[])[(o??[]).length-1],U=class extends N.FtLitElement{constructor(){super(...arguments),this.items=[],this.renderItem=()=>tt.html``,this.getItemKey=(e,r)=>`${r} - ${JSON.stringify(e)}`,this.internalScroll=!1,this.renderBeforeFirst=1,this.renderAfterLast=1,this.ensureScrollToTarget=!1,this.disableScrollManagement=!1,this.visibleItems=[],this.scrolledToTarget=!1,this.scrolling=!1,this.renderApprovalTimeouts=[],this.renderedIndexes=new Set,this.scrollDebouncer=new N.Debouncer(5),this.scrollDoneDebouncer=new N.Debouncer(10),this.onVisibilityChange=e=>{let r=new Set(this.visibleItems),n=new Set;for(let a of e){let s=+a.target.getAttribute("data-item-index");a.intersectionRect.height>0?(r.add(s),n.add(s)):n.has(s)||r.delete(s)}this.visibleItems=[...r].sort((a,s)=>a-s)},this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange),this.scrollingDebouncer=new N.Debouncer(50),this.ignoreNextScrollEvent=!1,this.scrollListener=()=>{var e;if(this.disableScrollManagement)return;let r=this.ignoreNextScrollEvent;this.ignoreNextScrollEvent=!1,r||(this.scrolling=!0,this.scrollingDebouncer.run(()=>this.scrolling=!1));let n=this.scrollable.scrollTop,a=n-((e=this.lastScrollTop)!==null&&e!==void 0?e:0);if(this.lastScrollTop=n,this.scrolledToTarget&&(this.restoreScrollIfNeeded(r?0:a),!r||this.scrollRestorationItem==null)){let s=this.searchFirstVisibleItem(n,this.itemsContainer.children);this.scrollRestorationItem=s?+s.getAttribute("data-item-index"):void 0,this.scrollRestorationOffset=n-this.getOffset(s)}},this.restoreScrollIfNeeded=(e=0)=>{var r;let n=this.scrollable.scrollHeight,a=n-((r=this.lastScrollHeight)!==null&&r!==void 0?r:n);if(this.lastScrollHeight=n,a!==0&&this.scrolledToTarget&&this.scrollRestorationItem!=null&&this.scrollRestorationOffset!=null&&!(this.scrollRestorationItem===0&&this.scrollRestorationOffset<0)){let s=this.getItem(this.scrollRestorationItem),c=this.getOffset(s),d=(0,N.minmax)(this.scrollRestorationItem===0?-c:1,this.scrollRestorationOffset,s.clientHeight-1),u=c+d+e-this.scrollable.scrollTop;(Math.abs(a-u)<4||Math.abs(u)>5)&&(this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop+=u)}},this._shouldRestoreScroll=!1,this.scrollAdjustment=()=>{this.restoreScrollIfNeeded(),this.shouldRestoreScroll&&requestAnimationFrame(this.scrollAdjustment)},this.onMutation=()=>{for(let e of this.itemsContainer.children)this.intersectionObserver.observe(e)},this.mutationObserver=new MutationObserver(this.onMutation),this.lastRenderedItemsLength=0,this.resetVisibleItemsAttempted=!1,this.resetVisibleItemsDebouncer=new N.Debouncer(10)}get scrollable(){var e;return(e=this._scrollable)!==null&&e!==void 0?e:document.body}set scrollable(e){var r,n,a;this._scrollable!==e&&(this._scrollable&&(this._scrollable.removeEventListener("scroll",this.scrollListener),this.initialOverflowAnchorValue&&(this._scrollable.style.overflowAnchor=this.initialOverflowAnchorValue),N.scrollHelper.release(this,this._scrollable)),this._scrollable=N.scrollHelper.lock(this,e),e&&!this._scrollable&&console.error("Scrollable parent is already locked",this,e),(r=this._scrollable)===null||r===void 0||r.addEventListener("scroll",this.scrollListener),this.lastScrollTop=(n=this._scrollable)===null||n===void 0?void 0:n.scrollTop,this.lastScrollHeight=(a=this._scrollable)===null||a===void 0?void 0:a.scrollHeight,this._scrollable&&(this.initialOverflowAnchorValue=getComputedStyle(this._scrollable).overflowAnchor,this._scrollable.style.overflowAnchor="none"))}render(){return tt.html`
|
|
33
33
|
<div @scroll-into-view=${this.onScrollIntoView} class="items-container ${this.internalScroll?"scrollable":""}" tabindex="-1">
|
|
34
|
-
${(0,
|
|
34
|
+
${(0,nn.repeat)(this.items,(e,r)=>this.getItemKey(e,r),(e,r)=>this.renderItemContainer(e,r))}
|
|
35
35
|
</div>
|
|
36
|
-
`}renderItemContainer(e,r){this.prepareRenderIfNeeded(r);let n=this.scrolledToTarget&&this.visibleItems.includes(r),a=this.renderedIndexes.has(r);return
|
|
36
|
+
`}renderItemContainer(e,r){this.prepareRenderIfNeeded(r);let n=this.scrolledToTarget&&this.visibleItems.includes(r),a=this.renderedIndexes.has(r);return tt.html`
|
|
37
37
|
<div id="item-${r}"
|
|
38
38
|
class="item-container ${a?"rendered":""} ${n?"visible":""}"
|
|
39
39
|
data-item-index="${r}">
|
|
40
|
-
${a?(()=>{let c=this.renderItem(e,r);return typeof c=="string"?(0,
|
|
40
|
+
${a?(()=>{let c=this.renderItem(e,r);return typeof c=="string"?(0,an.unsafeHTML)(c):c})():tt.nothing}
|
|
41
41
|
</div>
|
|
42
|
-
`}prepareRenderIfNeeded(e){let r=this.renderApprovalTimeouts[e]!=null;this.inRenderRange(e)&&!r&&(this.renderApprovalTimeouts[e]=setTimeout(()=>{this.inRenderRange(e)?(this.addRenderedIndex(e),this.requestUpdate()):this.renderApprovalTimeouts[e]=void 0},300))}addRenderedIndex(e){e>=0&&!this.renderedIndexes.has(e)&&this.renderedIndexes.add(e)}inRenderRange(e){return e>=this.visibleItems[0]-this.renderBeforeFirst&&e<=
|
|
43
|
-
`;var
|
|
44
|
-
`;var
|
|
42
|
+
`}prepareRenderIfNeeded(e){let r=this.renderApprovalTimeouts[e]!=null;this.inRenderRange(e)&&!r&&(this.renderApprovalTimeouts[e]=setTimeout(()=>{this.inRenderRange(e)?(this.addRenderedIndex(e),this.requestUpdate()):this.renderApprovalTimeouts[e]=void 0},300))}addRenderedIndex(e){e>=0&&!this.renderedIndexes.has(e)&&this.renderedIndexes.add(e)}inRenderRange(e){return e>=this.visibleItems[0]-this.renderBeforeFirst&&e<=Cs(this.visibleItems)+this.renderAfterLast}isRendered(e){return this.renderedIndexes.has(this.items.indexOf(e))}resetScroll(e=!0){if(this.disableScrollManagement)return;this.shouldRestoreScroll=!1,this.intersectionObserver.disconnect(),this.visibleItems=[],this.scrolledToTarget=!1,this.updateScrollableParent(e);let r=this.resolveScrollToIndex();this.addRenderedIndex(r),this.scrollToTarget(r),this.scrollDoneDebouncer.run(()=>{this.scrollToTarget(r),this.scrolledToTarget=!0,this.shouldRestoreScroll=!0,this.resetIntersectionObserver(),this.ensureScrollPosition(r)})}updateScrollableParent(e){this.internalScroll&&this.scrollable!==this.internalScrollable?this.scrollable=this.internalScrollable:!this.internalScroll&&e&&(this.scrollable=N.scrollHelper.findFirstScrollableParent(this.itemsContainer))}ensureScrollPosition(e){!this.ensureScrollToTarget||e<0||this.scrollDebouncer.run(()=>{Math.abs(this.scrollable.scrollTop-this.getOffset(e))>5&&this.scrollToTarget(e)},500)}resolveScrollToIndex(){var e;let r=(e=this.scrollToIndex)!==null&&e!==void 0?e:this.scrollToItem?this.items.indexOf(this.scrollToItem):-1;return r>=this.items.length?-1:r}getItem(e){var r,n;return(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelector(`#item-${e}`))!==null&&n!==void 0?n:this.shadowRoot.querySelector("#item-0")}scrollToTarget(e){e<=0?(this.scrollable.scrollTop=0,this.scrollRestorationOffset=-this.getOffset(e)):(this.scrollable.scrollTop=this.getOffset(e),this.scrollRestorationOffset=0),this.scrollRestorationItem=e>=0?e:void 0}onScrollIntoView(e){var r;if(this.disableScrollManagement)return;this.scrollDebouncer.cancel();let n=e.composedPath()[0],a=this.getOffset(n),s=(r=e.composedPath().find(c=>typeof c.matches=="function"&&c.matches(".item-container")))===null||r===void 0?void 0:r.getAttribute("data-item-index");this.scrollRestorationItem=s==null?this.scrollRestorationItem:+s,this.scrollRestorationOffset=a-this.getOffset(this.scrollRestorationItem),this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop=a}getOffset(e){let r=typeof e=="number"?this.getItem(e):e;return r?N.scrollHelper.getAbsoluteScrollOffset(this.scrollable,r):0}appendItems(...e){this.items=[...this.items,...e]}prependItems(...e){this.items=[...e,...this.items]}connectedCallback(){super.connectedCallback(),setTimeout(()=>{this.mutationObserver.disconnect(),this.mutationObserver.observe(this.itemsContainer,{childList:!0}),this.resetScroll()},0)}disconnectedCallback(){super.disconnectedCallback(),this.scrollable=void 0,this.intersectionObserver.disconnect(),this.mutationObserver.disconnect(),this.shouldRestoreScroll=!1}resetIntersectionObserver(){this.intersectionObserver.disconnect(),this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange,{root:this.scrollable,rootMargin:"-8px",threshold:[0,.01,.1,1]}),this.onMutation()}searchFirstVisibleItem(e,r,n,a){if(n=n??0,a=a??r.length-1,a<=n)return r[n];let s=Math.floor((a-n)/2)+n,c=r[s],d=this.getOffset(c);return d>e?this.searchFirstVisibleItem(e,r,n,s-1):d+c.clientHeight<e?this.searchFirstVisibleItem(e,r,s+1,a):c}get shouldRestoreScroll(){return this._shouldRestoreScroll}set shouldRestoreScroll(e){let r=e&&!this._shouldRestoreScroll;this._shouldRestoreScroll=e,r&&requestAnimationFrame(this.scrollAdjustment)}willUpdate(e){super.willUpdate(e),e.has("items")&&(this.renderApprovalTimeouts.forEach(n=>clearTimeout(n)),this.renderApprovalTimeouts=[],this.renderedIndexes=new Set,this.lastRenderedItemsLength=0),((e.has("scrollToItem")||e.has("scrollToIndex"))&&(this.scrollToItem!=null||this.scrollToIndex!=null)||e.has("internalScroll"))&&(0,N.waitFor)(()=>this.itemsContainer).then(()=>this.resetScroll())}updated(e){super.updated(e),(e.has("visibleItems")||e.has("items"))&&this.onVisibleItemsChange(),e.has("scrolledToTarget")&&this.scrolledToTarget&&(this.scrollToItem!=null||this.scrollToIndex!=null)&&this.dispatchEvent(new Kr)}contentAvailableCallback(e){var r,n;super.contentAvailableCallback(e);let a=[...(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".item-container.rendered"))!==null&&n!==void 0?n:[]].map(s=>+s.getAttribute("data-item-index"));this.lastRenderedItemsLength!==a.length&&(this.dispatchRenderedItemsChangeEvent(a),this.lastRenderedItemsLength=a.length)}dispatchRenderedItemsChangeEvent(e){let r=e??[...this.renderedIndexes].sort((n,a)=>n-a);this.dispatchEvent(new Vr(r,r.map(n=>this.items[n])))}onVisibleItemsChange(){this.visibleItems.every((r,n)=>this.visibleItems[n+1]==null||r+1===this.visibleItems[n+1])||this.resetVisibleItemsAttempted?(this.resetVisibleItemsAttempted=!1,this.resetVisibleItemsDebouncer.cancel(),this.dispatchVisibleItemsEvent()):this.resetVisibleItemsDebouncer.run(()=>{this.resetVisibleItemsAttempted=!0,this.visibleItems=[],this.resetIntersectionObserver()})}dispatchVisibleItemsEvent(){var e;(e=this.cancelableDispatchEvent)===null||e===void 0||e.cancel(),this.cancelableDispatchEvent=(0,N.cancelable)((0,N.waitUntil)(()=>this.scrolledToTarget&&!this.scrolling)),this.cancelableDispatchEvent.then(()=>this.dispatchEvent(new jr(this.visibleItems,this.visibleItems.map(r=>this.items[r])))).catch(()=>null)}};U.styles=en;Y([(0,Q.property)({attribute:!1,hasChanged:N.hasChanged})],U.prototype,"items",void 0);Y([(0,Q.property)({attribute:!1})],U.prototype,"renderItem",void 0);Y([(0,Q.property)({attribute:!1})],U.prototype,"getItemKey",void 0);Y([(0,Q.property)({type:Object})],U.prototype,"scrollToItem",void 0);Y([(0,N.numberProperty)()],U.prototype,"scrollToIndex",void 0);Y([(0,Q.property)({type:Boolean})],U.prototype,"internalScroll",void 0);Y([(0,N.numberProperty)()],U.prototype,"renderBeforeFirst",void 0);Y([(0,N.numberProperty)()],U.prototype,"renderAfterLast",void 0);Y([(0,Q.property)({type:Boolean})],U.prototype,"ensureScrollToTarget",void 0);Y([(0,Q.property)({type:Boolean})],U.prototype,"disableScrollManagement",void 0);Y([(0,Q.state)({hasChanged(o,e){return o!=null&&e==null||o.length!==e.length||o[0]!==e[0]}})],U.prototype,"visibleItems",void 0);Y([(0,Q.query)(".scrollable")],U.prototype,"internalScrollable",void 0);Y([(0,Q.query)(".items-container")],U.prototype,"itemsContainer",void 0);Y([(0,Q.state)()],U.prototype,"scrolledToTarget",void 0);Y([(0,Q.state)()],U.prototype,"scrolling",void 0);var sn=S(_());(0,sn.customElement)("ft-infinite-scroll")(U);var cn=S(j());var ln=cn.css`
|
|
43
|
+
`;var dn=S(j());var un=dn.css`
|
|
44
|
+
`;var pn=S(j()),rt=S(J());var jt=S(_()),Me=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},ie=class extends et{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this.registeredComponents=[]}render(){return pn.html`
|
|
45
45
|
<article id=${this.tocId}>
|
|
46
46
|
<slot @register-ft-reader-topic-component=${this.registerComponent}></slot>
|
|
47
47
|
</article>
|
|
48
|
-
`}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){this.registeredComponents.push(e),e.tocNode=this.tocNode,e.disableContextInteractions=this.disableContextInteractions,e.headingLevelsShift=this.headingLevelsShift}update(e){super.update(e),["mapId","tocId","stateManager","translationDestinationLanguage","translationProfileId"].some(r=>e.has(r))&&this.setTocNode(),e.has("tocNode")&&this.registeredComponents.forEach(r=>r.tocNode=this.tocNode)}async setTocNode(){var e;this.tocNode=void 0,this.tocNode=this.mapId&&this.tocId?await((e=this.stateManager)===null||e===void 0?void 0:e.getTocNode(this.tocId)):void 0}disconnectedCallback(){super.disconnectedCallback(),this.registeredComponents=[]}};
|
|
49
|
-
`;var Nt=C(V()),We=C(ee()),G=C(_());var fe=C(_());var pn=C(_()),ms={setTranslationDestinationLanguage:(o,e)=>{o.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(o,e)=>{o.translation.sourceLanguage=e.payload},setTranslationProfileId:(o,e)=>{o.translation.profileId=e.payload},setTranslationLoading:(o,e)=>{o.translation.isLoading=e.payload},setTranslationError:(o,e)=>{o.translation.isError=e.payload},setTopicsRating:(o,e)=>{for(let r in e.payload)o.topicsRating[r]=e.payload[r]}},fn=o=>pn.FtReduxStore.get({name:"ft-reader-"+o,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1},linkPreviewDialogId:void 0},reducers:ms});var jr=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(e,r,n){return e.flatMap(a=>{var s;return a.pageConfiguration&&this.registerPage(this.buildPage(a,n)),a.tocId==null?this.extractPagesToc(a.children,r,n):[{tocId:a.tocId,title:(s=a.title)!==null&&s!==void 0?s:"",untranslatedTitle:a.untranslatedTitle,depth:r,children:this.extractPagesToc(a.children,r+1,a.tocId)}]})}convertNodes(e,r,n){return e.flatMap(a=>{var s,c,d;if(a.tocId==null)return[...this.convertSectionNodes((s=a.pageToc)!==null&&s!==void 0?s:[],r,a.tocId),...this.convertNodes(a.children,r,a.tocId)];let u=(c=a.prettyUrl)===null||c===void 0?void 0:c.replace(/^\//,""),p={tocId:a.tocId,contentId:a.contentId,title:a.title,untranslatedTitle:a.untranslatedTitle,hasRating:a.hasRating,origin:a.origin,prettyUrl:u,depth:r,parentTocId:n,children:[]};this.register(p);let h=this.convertSectionNodes((d=a.pageToc)!==null&&d!==void 0?d:[],r+1,a.tocId),y=this.convertNodes(a.children,r+1,p.tocId);return p.children=[...h,...y],[p]})}convertSectionNodes(e,r,n){return e.flatMap(a=>{var s;let c=(s=a.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),d={...a,prettyUrl:c,depth:r,parentTocId:n,children:[]};return this.register(d),d.children=this.convertSectionNodes(a.children,r+1,a.tocId),[d]})}buildPage(e,r){var n,a,s,c,d,u;let p={number:this.pages.length+1,title:(n=e.title)!==null&&n!==void 0?n:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(a=e.tocId)!==null&&a!==void 0?a:"root",toc:((s=e.pageToc)!==null&&s!==void 0?s:[]).map(m=>this.nodeByTocId[m.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(m,v)=>(v?p.topics:p.hiddenTopics).push(m),y=(d=(c=e.pageConfiguration)===null||c===void 0?void 0:c.parentsVisibility)!==null&&d!==void 0?d:[];return p.breadcrumb.forEach((m,v)=>{h(m,y[v])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),p.topics.push(...this.tocIds((u=e.pageToc)!==null&&u!==void 0?u:[])),p}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},$t=class{convertPaginatedToc(e,r){return new jr(e,r).build()}};var vs=C(yn(),1);var gn;(function(o){o.black="black",o.green="green",o.blue="blue",o.purple="purple",o.red="red",o.orange="orange",o.yellow="yellow"})(gn||(gn={}));var mn;(function(o){o.OFFICIAL="OFFICIAL",o.PERSONAL="PERSONAL",o.SHARED="SHARED"})(mn||(mn={}));var bn;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.ATTACHMENT="ATTACHMENT",o.RESOURCE="RESOURCE",o.HTML_PACKAGE="HTML_PACKAGE"})(bn||(bn={}));var vn;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.ATTACHMENT="ATTACHMENT",o.RESOURCE="RESOURCE",o.HTML_PACKAGE="HTML_PACKAGE"})(vn||(vn={}));var xn;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(xn||(xn={}));var Sn;(function(o){o.VALUE="VALUE",o.DATE="DATE",o.RANGE="RANGE"})(Sn||(Sn={}));var Vt;(function(o){o.OFFICIAL="OFFICIAL",o.AI="AI"})(Vt||(Vt={}));var Cn;(function(o){o.BOOKMARK__CREATE="BOOKMARK__CREATE",o.BOOKMARK__DELETE="BOOKMARK__DELETE",o.CASE_DEFLECTION__START="CASE_DEFLECTION__START",o.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",o.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",o.CHATBOT__RATE="CHATBOT__RATE",o.COLLECTION__CREATE="COLLECTION__CREATE",o.COLLECTION__UPDATE="COLLECTION__UPDATE",o.COLLECTION__DELETE="COLLECTION__DELETE",o.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",o.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",o.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",o.DOCUMENT__PRINT="DOCUMENT__PRINT",o.DOCUMENT__PROCESS="DOCUMENT__PROCESS",o.DOCUMENT__RATE="DOCUMENT__RATE",o.DOCUMENT__SEARCH="DOCUMENT__SEARCH",o.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",o.DOCUMENT__UNRATE="DOCUMENT__UNRATE",o.FEEDBACK__SEND="FEEDBACK__SEND",o.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",o.AI__RATE="AI__RATE",o.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",o.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",o.KHUB__PROCESS="KHUB__PROCESS",o.KHUB__SEARCH="KHUB__SEARCH",o.LABELS__DOWNLOAD="LABELS__DOWNLOAD",o.LINK__SHARE="LINK__SHARE",o.PAGE__DISPLAY="PAGE__DISPLAY",o.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",o.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",o.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",o.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",o.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",o.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",o.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",o.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",o.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",o.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",o.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",o.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",o.TOPIC__RATE="TOPIC__RATE",o.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",o.TOPIC__UNRATE="TOPIC__UNRATE",o.USER__LOGIN="USER__LOGIN",o.USER__LOGOUT="USER__LOGOUT",o.HEARTBEAT="HEARTBEAT"})(Cn||(Cn={}));var On;(function(o){o.STANDARD="STANDARD",o.STRUCTURAL="STRUCTURAL"})(On||(On={}));var An;(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"})(An||(An={}));var En;(function(o){o.HOMEPAGE="HOMEPAGE",o.CUSTOM="CUSTOM",o.HEADER="HEADER",o.READER="READER",o.TOPIC_TEMPLATE="TOPIC_TEMPLATE",o.SEARCH="SEARCH",o.SEARCH_RESULT="SEARCH_RESULT",o.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",o.LINK_PREVIEW="LINK_PREVIEW",o.UD_VIEWER="UD_VIEWER",o.ASSET_VIEWER="ASSET_VIEWER"})(En||(En={}));var wn;(function(o){o.CLASSIC="CLASSIC",o.CUSTOM="CUSTOM",o.DESIGNER="DESIGNER"})(wn||(wn={}));var In;(function(o){o.AND="AND",o.OR="OR",o.MONOVALUED="MONOVALUED"})(In||(In={}));var Tn;(function(o){o.NONE="NONE",o.ALPHABET="ALPHABET",o.VERSION="VERSION"})(Tn||(Tn={}));var Rn;(function(o){o.STARS="STARS",o.LIKE="LIKE",o.DICHOTOMOUS="DICHOTOMOUS",o.NO_RATING="NO_RATING"})(Rn||(Rn={}));var _n;(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"})(_n||(_n={}));var kn;(function(o){o.OPTIONAL="OPTIONAL",o.MANDATORY="MANDATORY"})(kn||(kn={}));var Ln;(function(o){o.ASC="ASC",o.DESC="DESC"})(Ln||(Ln={}));var Nn;(function(o){o.ALPHA="ALPHA",o.NATURAL="NATURAL"})(Nn||(Nn={}));var Pn;(function(o){o.EVERYWHERE="EVERYWHERE",o.TITLE_ONLY="TITLE_ONLY",o.NONE="NONE"})(Pn||(Pn={}));var Dn;(function(o){o.ARTICLE="ARTICLE",o.BOOK="BOOK",o.SHARED_BOOK="SHARED_BOOK",o.HTML_PACKAGE="HTML_PACKAGE"})(Dn||(Dn={}));var Fn;(function(o){o.FLUIDTOPICS="FLUIDTOPICS",o.EXTERNAL="EXTERNAL"})(Fn||(Fn={}));var Mn;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.PERSONAL_BOOK="PERSONAL_BOOK",o.SHARED_BOOK="SHARED_BOOK",o.HTML_PACKAGE="HTML_PACKAGE"})(Mn||(Mn={}));var Un;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(Un||(Un={}));var Bn;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.HTML_PACKAGE="HTML_PACKAGE",o.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Bn||(Bn={}));var Hn;(function(o){o.DEFAULT="DEFAULT",o.DOCUMENTS="DOCUMENTS",o.ALL_TOPICS="ALL_TOPICS",o.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Hn||(Hn={}));var zn;(function(o){o.PLAIN_TEXT="PLAIN_TEXT",o.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",o.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(zn||(zn={}));var P;(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.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",o.CONTENT_PUBLISHER="CONTENT_PUBLISHER",o.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",o.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",o.KHUB_ADMIN="KHUB_ADMIN",o.USERS_ADMIN="USERS_ADMIN",o.PORTAL_ADMIN="PORTAL_ADMIN",o.ADMIN="ADMIN"})(P||(P={}));var ie;(function(o){o.SEARCHES="SEARCHES",o.BOOKMARKS="BOOKMARKS",o.BOOKS="BOOKS",o.COLLECTIONS="COLLECTIONS"})(ie||(ie={}));var Gn;(function(o){o.UNAUTHENTICATED="UNAUTHENTICATED",o.USER_INCOMPLETE="USER_INCOMPLETE",o.MFA_REQUIRED="MFA_REQUIRED",o.AUTHENTICATED="AUTHENTICATED"})(Gn||(Gn={}));var $n;(function(o){o.VALID="VALID",o.INVALID="INVALID"})($n||($n={}));var Wn;(function(o){o.INACCURATE="INACCURATE",o.INCOMPLETE="INCOMPLETE",o.OFF_TOPIC="OFF_TOPIC",o.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",o.SUMMARY="SUMMARY",o.SEMANTIC_SEARCH="SEMANTIC_SEARCH",o.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",o.OTHER="OTHER"})(Wn||(Wn={}));var jn;(function(o){o.INACCURATE="INACCURATE",o.INCOMPLETE="INCOMPLETE",o.OFF_TOPIC="OFF_TOPIC",o.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",o.SLOW="SLOW",o.OTHER="OTHER"})(jn||(jn={}));var Vn;(function(o){o.JSON="JSON",o.TEXT="TEXT"})(Vn||(Vn={}));var Kn;(function(o){o.USER="USER",o.ASSISTANT="ASSISTANT"})(Kn||(Kn={}));var Zn;(function(o){o.TEXT="TEXT",o.HTML="HTML"})(Zn||(Zn={}));var qn;(function(o){o.HTML="HTML",o.MARKDOWN="MARKDOWN"})(qn||(qn={}));var Yn;(function(o){o.MAP="MAP",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Yn||(Yn={}));var bs={[P.PERSONAL_BOOK_SHARE_USER]:[P.PERSONAL_BOOK_USER],[P.HTML_EXPORT_USER]:[P.PERSONAL_BOOK_USER],[P.PDF_EXPORT_USER]:[P.PERSONAL_BOOK_USER],[P.KHUB_ADMIN]:[P.CONTENT_PUBLISHER],[P.ADMIN]:[P.KHUB_ADMIN,P.USERS_ADMIN,P.PORTAL_ADMIN,P.BEHAVIOR_DATA_USER],[P.GENERATIVE_AI_EXPORT_USER]:[P.GENERATIVE_AI_USER]};function Qn(o,e){return o===e||(bs[o]??[]).some(r=>Qn(r,e))}function xe(o,e){return o==null?!1:(Array.isArray(o)?o:Array.isArray(o.roles)?o.roles:Array.isArray(o.profile?.roles)?o.profile.roles:[]).some(n=>Qn(n,e))}var mo=C(ee());function xs(o,e){if(o===e)return!0;if(o&&e&&typeof o=="object"&&typeof e=="object"){if(o.constructor!==e.constructor)return!1;let r,n,a;if(Array.isArray(o)){if(r=o.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Kt(o[n],e[n]))return!1;return!0}if(o instanceof Map&&e instanceof Map){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;for(n of o.entries())if(!Kt(n[1],e.get(n[0])))return!1;return!0}if(o instanceof Set&&e instanceof Set){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;return!0}if(o.constructor===RegExp)return o.source===e.source&&o.flags===e.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===e.valueOf();let s=c=>Object.keys(c).filter(d=>c[d]!=null);if(a=s(o),r=a.length,r!==s(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=r;n--!==0;){let c=a[n];if(!Kt(o[c],e[c]))return!1}return!0}return o!==o&&e!==e||o==null&&e==null}function Kt(o,e){try{return xs(o,e)}catch{return!1}}function It(o,e){return!Kt(o,e)}function Xn(o){return typeof window.structuredClone=="function"?structuredClone(o):o!=null?JSON.parse(JSON.stringify(o)):o}function Zt(o,e){let r=n=>n[o]===!0;return n=>{if(r(n))return n;let a=e(n);return a[o]=!0,a}}var Jn=C(ee(),1);var Vr=o=>{let e=o??{};return(r,n)=>{var a;let s={hasChanged:It,attribute:!1,...e};(0,Jn.property)(s)(r,n);let c=r.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:d=>d[n],store:e.store})}};var qt=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Ue=C(ee(),1);var ea=C(ee(),1);function ta(o,e){let r=()=>JSON.parse(JSON.stringify(o));return(0,ea.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:It,...e??{}})}var Yt=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,s=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var oa=C(V(),1);var Qt=globalThis,Ss=Qt.ShadowRoot&&(Qt.ShadyCSS===void 0||Qt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Sl=Symbol();var ra=(o,e)=>{if(Ss)o.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),a=Qt.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,o.appendChild(n)}};var Xt=class extends oa.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,s])=>e.registry.define(a,s)));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return ra(n,e.elementStyles),n}};function na(o,e,...r){var n;let a=o.querySelector(e);for(let s of r)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return a}var nt=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},ca,aa=Symbol("constructorPrototype"),ia=Symbol("constructorName"),la=Symbol("exportpartsDebouncer"),sa=Symbol("dynamicDependenciesLoaded"),ot=class o extends CustomEvent{constructor(){super(o.eventName,{bubbles:!0})}};ot.eventName="exportparts-updated";var ge=class extends Xt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ca]=new Yt(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[la].run(()=>{var a,s;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ia]=this.constructor.name,this[aa]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ia]&&Object.setPrototypeOf(this,this[aa])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[sa]||(r[sa]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ot.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ot.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new ot)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let s=[...a??[],n];r=na(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,n,a,s,c,d;let u=m=>m!=null&&m.trim().length>0,p=e.filter(u).map(m=>m.trim());if(p.length===0){this.exportparts=void 0;return}let h=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(s=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&s!==void 0?s:[],b=(d=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(w=>w.split(":")[1]))!==null&&d!==void 0?d:[],O=[...v,...b].filter(u).map(w=>w.trim());for(let w of O)h.add(w)}if(h.size===0){this.exportparts=void 0;return}let y=[...h.values()].flatMap(m=>p.map(v=>`${m}:${v}--${m}`));this.exportparts=[...this.part,...y].join(", ")}};ca=la;nt([(0,Ue.property)()],ge.prototype,"exportpartsPrefix",void 0);nt([ta([])],ge.prototype,"exportpartsPrefixes",void 0);nt([(0,Ue.property)({reflect:!0})],ge.prototype,"exportparts",void 0);nt([(0,Ue.property)()],ge.prototype,"customStylesheet",void 0);nt([(0,Ue.property)()],ge.prototype,"elementToFocus",void 0);nt([(0,Ue.state)()],ge.prototype,"useAdoptedStyleSheets",void 0);function Jt(o){var e;return(e=o?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Tt=Symbol("internalReduxEventsUnsubscribers"),Ee=Symbol("internalStoresUnsubscribers"),Be=Symbol("internalStores"),Cs=Zt(Symbol("withRedux"),function(o){var e,r,n;class a extends o{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(d=>c.has(d))&&this.updateFromStores()}getUnnamedStore(){if(this[Be].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Be].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[Be].get(c)}addStore(c,d){var u;d=(u=d??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(d),this[Be].set(d,c),this.subscribeToStore(d,c),this.updateFromStores()}removeStore(c){let d=typeof c=="string"?c:c.name;this.unsubscribeFromStore(d),this[Be].delete(d)}setupStores(){this.unsubscribeFromStores(),this[Be].forEach((c,d)=>this.subscribeToStore(d,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,d)=>{let u=this.constructor.getPropertyOptions(d);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:d)){let p=this.getStore(c.store);p&&(c.store?this[Ee].has(c.store):this[Ee].size>0)&&(this[d]=c.selector(p.getState(),this))}})}subscribeToStore(c,d){var u;this[Ee].set(c,d.subscribe(()=>this.updateFromStores())),this[Tt].set(c,[]),Jt(d)&&d.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||d.name===p.store)){let y=m=>this[h](m);d.addEventListener(p.eventName,y),this[Tt].get(c).push(()=>d.removeEventListener(p.eventName,y))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[Ee].forEach((c,d)=>this.unsubscribeFromStore(d))}unsubscribeFromStore(c){var d;this[Ee].has(c)&&this[Ee].get(c)(),this[Ee].delete(c),(d=this[Tt].get(c))===null||d===void 0||d.forEach(u=>u()),this[Tt].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Ee,r=Be,n=Tt,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),da=class extends Cs(ge){};function se(o){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var a,s;throw Error("[Immer] minified error nr: "+o+(r.length?" "+r.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Se(o){return!!o&&!!o[M]}function ue(o){var e;return!!o&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===_s}(o)||Array.isArray(o)||!!o[ma]||!!(!((e=o.constructor)===null||e===void 0)&&e[ma])||to(o)||ro(o))}function He(o,e,r){r===void 0&&(r=!1),st(o)===0?(r?Object.keys:it)(o).forEach(function(n){r&&typeof n=="symbol"||e(n,o[n],o)}):o.forEach(function(n,a){return e(a,n,o)})}function st(o){var e=o[M];return e?e.i>3?e.i-4:e.i:Array.isArray(o)?1:to(o)?2:ro(o)?3:0}function at(o,e){return st(o)===2?o.has(e):Object.prototype.hasOwnProperty.call(o,e)}function Os(o,e){return st(o)===2?o.get(e):o[e]}function ba(o,e,r){var n=st(o);n===2?o.set(e,r):n===3?o.add(r):o[e]=r}function va(o,e){return o===e?o!==0||1/o==1/e:o!=o&&e!=e}function to(o){return Ts&&o instanceof Map}function ro(o){return Rs&&o instanceof Set}function we(o){return o.o||o.t}function oo(o){if(Array.isArray(o))return Array.prototype.slice.call(o);var e=Ca(o);delete e[M];for(var r=it(e),n=0;n<r.length;n++){var a=r[n],s=e[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(e[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:o[a]})}return Object.create(Object.getPrototypeOf(o),e)}function no(o,e){return e===void 0&&(e=!1),ao(o)||Se(o)||!ue(o)||(st(o)>1&&(o.set=o.add=o.clear=o.delete=As),Object.freeze(o),e&&He(o,function(r,n){return no(n,!0)},!0)),o}function As(){se(2)}function ao(o){return o==null||typeof o!="object"||Object.isFrozen(o)}function me(o){var e=eo[o];return e||se(18,o),e}function Es(o,e){eo[o]||(eo[o]=e)}function Qr(){return _t}function Kr(o,e){e&&(me("Patches"),o.u=[],o.s=[],o.v=e)}function er(o){Xr(o),o.p.forEach(ws),o.p=null}function Xr(o){o===_t&&(_t=o.l)}function ua(o){return _t={p:[],l:_t,h:o,m:!0,_:0}}function ws(o){var e=o[M];e.i===0||e.i===1?e.j():e.g=!0}function Zr(o,e){e._=e.p.length;var r=e.p[0],n=o!==void 0&&o!==r;return e.h.O||me("ES5").S(e,o,n),n?(r[M].P&&(er(e),se(4)),ue(o)&&(o=tr(e,o),e.l||rr(e,o)),e.u&&me("Patches").M(r[M].t,o,e.u,e.s)):o=tr(e,r,[]),er(e),e.u&&e.v(e.u,e.s),o!==Sa?o:void 0}function tr(o,e,r){if(ao(e))return e;var n=e[M];if(!n)return He(e,function(d,u){return pa(o,n,e,d,u,r)},!0),e;if(n.A!==o)return e;if(!n.P)return rr(o,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=oo(n.k):n.o,s=a,c=!1;n.i===3&&(s=new Set(a),a.clear(),c=!0),He(s,function(d,u){return pa(o,n,a,d,u,r,c)}),rr(o,a,!1),r&&o.u&&me("Patches").N(n,r,o.u,o.s)}return n.o}function pa(o,e,r,n,a,s,c){if(Se(a)){var d=tr(o,a,s&&e&&e.i!==3&&!at(e.R,n)?s.concat(n):void 0);if(ba(r,n,d),!Se(d))return;o.m=!1}else c&&r.add(a);if(ue(a)&&!ao(a)){if(!o.h.D&&o._<1)return;tr(o,a),e&&e.A.l||rr(o,a)}}function rr(o,e,r){r===void 0&&(r=!1),!o.l&&o.h.D&&o.m&&no(e,r)}function qr(o,e){var r=o[M];return(r?we(r):o)[e]}function fa(o,e){if(e in o)for(var r=Object.getPrototypeOf(o);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Ie(o){o.P||(o.P=!0,o.l&&Ie(o.l))}function Yr(o){o.o||(o.o=oo(o.t))}function Jr(o,e,r){var n=to(e)?me("MapSet").F(e,r):ro(e)?me("MapSet").T(e,r):o.O?function(a,s){var c=Array.isArray(a),d={i:c?1:0,A:s?s.A:Qr(),P:!1,I:!1,R:{},l:s,t:a,k:null,o:null,j:null,C:!1},u=d,p=kt;c&&(u=[d],p=Rt);var h=Proxy.revocable(u,p),y=h.revoke,m=h.proxy;return d.k=m,d.j=y,m}(e,r):me("ES5").J(e,r);return(r?r.A:Qr()).p.push(n),n}function Is(o){return Se(o)||se(22,o),function e(r){if(!ue(r))return r;var n,a=r[M],s=st(r);if(a){if(!a.P&&(a.i<4||!me("ES5").K(a)))return a.t;a.I=!0,n=ha(r,s),a.I=!1}else n=ha(r,s);return He(n,function(c,d){a&&Os(a.t,c)===d||ba(n,c,e(d))}),s===3?new Set(n):n}(o)}function ha(o,e){switch(e){case 2:return new Map(o);case 3:return Array.from(o)}return oo(o)}function xa(){function o(c,d){var u=s[c];return u?u.enumerable=d:s[c]=u={configurable:!0,enumerable:d,get:function(){var p=this[M];return kt.get(p,c)},set:function(p){var h=this[M];kt.set(h,c,p)}},u}function e(c){for(var d=c.length-1;d>=0;d--){var u=c[d][M];if(!u.P)switch(u.i){case 5:n(u)&&Ie(u);break;case 4:r(u)&&Ie(u)}}}function r(c){for(var d=c.t,u=c.k,p=it(u),h=p.length-1;h>=0;h--){var y=p[h];if(y!==M){var m=d[y];if(m===void 0&&!at(d,y))return!0;var v=u[y],b=v&&v[M];if(b?b.t!==m:!va(v,m))return!0}}var O=!!d[M];return p.length!==it(d).length+(O?0:1)}function n(c){var d=c.k;if(d.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(d,d.length-1);if(u&&!u.get)return!0;for(var p=0;p<d.length;p++)if(!d.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&se(3,JSON.stringify(we(c)))}var s={};Es("ES5",{J:function(c,d){var u=Array.isArray(c),p=function(y,m){if(y){for(var v=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(v,""+b,o(b,!0));return v}var O=Ca(m);delete O[M];for(var w=it(O),I=0;I<w.length;I++){var T=w[I];O[T]=o(T,y||!!O[T].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(u,c),h={i:u?5:4,A:d?d.A:Qr(),P:!1,I:!1,R:{},l:d,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,M,{value:h,writable:!0}),p},S:function(c,d,u){u?Se(d)&&d[M].A===c&&e(c.p):(c.u&&function p(h){if(h&&typeof h=="object"){var y=h[M];if(y){var m=y.t,v=y.k,b=y.R,O=y.i;if(O===4)He(v,function(k){k!==M&&(m[k]!==void 0||at(m,k)?b[k]||p(v[k]):(b[k]=!0,Ie(y)))}),He(m,function(k){v[k]!==void 0||at(v,k)||(b[k]=!1,Ie(y))});else if(O===5){if(n(y)&&(Ie(y),b.length=!0),v.length<m.length)for(var w=v.length;w<m.length;w++)b[w]=!1;else for(var I=m.length;I<v.length;I++)b[I]=!0;for(var T=Math.min(v.length,m.length),D=0;D<T;D++)v.hasOwnProperty(D)||(b[D]=!0),b[D]===void 0&&p(v[D])}}}}(c.p[0]),e(c.p))},K:function(c){return c.i===4?r(c):n(c)}})}var ya,_t,io=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ts=typeof Map<"u",Rs=typeof Set<"u",ga=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Sa=io?Symbol.for("immer-nothing"):((ya={})["immer-nothing"]=!0,ya),ma=io?Symbol.for("immer-draftable"):"__$immer_draftable",M=io?Symbol.for("immer-state"):"__$immer_state";var _s=""+Object.prototype.constructor,it=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:Object.getOwnPropertyNames,Ca=Object.getOwnPropertyDescriptors||function(o){var e={};return it(o).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(o,r)}),e},eo={},kt={get:function(o,e){if(e===M)return o;var r=we(o);if(!at(r,e))return function(a,s,c){var d,u=fa(s,c);return u?"value"in u?u.value:(d=u.get)===null||d===void 0?void 0:d.call(a.k):void 0}(o,r,e);var n=r[e];return o.I||!ue(n)?n:n===qr(o.t,e)?(Yr(o),o.o[e]=Jr(o.A.h,n,o)):n},has:function(o,e){return e in we(o)},ownKeys:function(o){return Reflect.ownKeys(we(o))},set:function(o,e,r){var n=fa(we(o),e);if(n?.set)return n.set.call(o.k,r),!0;if(!o.P){var a=qr(we(o),e),s=a?.[M];if(s&&s.t===r)return o.o[e]=r,o.R[e]=!1,!0;if(va(r,a)&&(r!==void 0||at(o.t,e)))return!0;Yr(o),Ie(o)}return o.o[e]===r&&(r!==void 0||e in o.o)||Number.isNaN(r)&&Number.isNaN(o.o[e])||(o.o[e]=r,o.R[e]=!0),!0},deleteProperty:function(o,e){return qr(o.t,e)!==void 0||e in o.t?(o.R[e]=!1,Yr(o),Ie(o)):delete o.R[e],o.o&&delete o.o[e],!0},getOwnPropertyDescriptor:function(o,e){var r=we(o),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:o.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){se(11)},getPrototypeOf:function(o){return Object.getPrototypeOf(o.t)},setPrototypeOf:function(){se(12)}},Rt={};He(kt,function(o,e){Rt[o]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Rt.deleteProperty=function(o,e){return Rt.set.call(this,o,e,void 0)},Rt.set=function(o,e,r){return kt.set.call(this,o[0],e,r,o[0])};var ks=function(){function o(r){var n=this;this.O=ga,this.D=!0,this.produce=function(a,s,c){if(typeof a=="function"&&typeof s!="function"){var d=s;s=a;var u=n;return function(O){var w=this;O===void 0&&(O=d);for(var I=arguments.length,T=Array(I>1?I-1:0),D=1;D<I;D++)T[D-1]=arguments[D];return u.produce(O,function(k){var W;return(W=s).call.apply(W,[w,k].concat(T))})}}var p;if(typeof s!="function"&&se(6),c!==void 0&&typeof c!="function"&&se(7),ue(a)){var h=ua(n),y=Jr(n,a,void 0),m=!0;try{p=s(y),m=!1}finally{m?er(h):Xr(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Kr(h,c),Zr(O,h)},function(O){throw er(h),O}):(Kr(h,c),Zr(p,h))}if(!a||typeof a!="object"){if((p=s(a))===void 0&&(p=a),p===Sa&&(p=void 0),n.D&&no(p,!0),c){var v=[],b=[];me("Patches").M(a,p,v,b),c(v,b)}return p}se(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="function")return function(p){for(var h=arguments.length,y=Array(h>1?h-1:0),m=1;m<h;m++)y[m-1]=arguments[m];return n.produceWithPatches(p,function(v){return a.apply(void 0,[v].concat(y))})};var c,d,u=n.produce(a,s,function(p,h){c=p,d=h});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,d]}):[u,c,d]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=o.prototype;return e.createDraft=function(r){ue(r)||se(8),Se(r)&&(r=Is(r));var n=ua(this),a=Jr(this,r,void 0);return a[M].C=!0,Xr(n),a},e.finishDraft=function(r,n){var a=r&&r[M],s=a.A;return Kr(s,n),Zr(void 0,s)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ga&&se(20),this.O=r},e.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var s=n[a];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}a>-1&&(n=n.slice(a+1));var c=me("Patches").$;return Se(r)?c(r,n):this.produce(r,function(d){return c(d,n)})},o}(),re=new ks,Ls=re.produce,Fl=re.produceWithPatches.bind(re),Ml=re.setAutoFreeze.bind(re),Ul=re.setUseProxies.bind(re),Bl=re.applyPatches.bind(re),Hl=re.createDraft.bind(re),zl=re.finishDraft.bind(re),or=Ls;function ze(o){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(o)}function Oa(o,e){if(ze(o)!="object"||!o)return o;var r=o[Symbol.toPrimitive];if(r!==void 0){var n=r.call(o,e||"default");if(ze(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function Aa(o){var e=Oa(o,"string");return ze(e)=="symbol"?e:e+""}function Ea(o,e,r){return(e=Aa(e))in o?Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[e]=r,o}function wa(o,e){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),r.push.apply(r,n)}return r}function so(o){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?wa(Object(r),!0).forEach(function(n){Ea(o,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):wa(Object(r)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(r,n))})}return o}function q(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var Ia=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),co=function(){return Math.random().toString(36).substring(7).split("").join(".")},nr={INIT:"@@redux/INIT"+co(),REPLACE:"@@redux/REPLACE"+co(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+co()}};function Ns(o){if(typeof o!="object"||o===null)return!1;for(var e=o;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(o)===e}function lo(o,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(q(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(q(1));return r(lo)(o,e)}if(typeof o!="function")throw new Error(q(2));var a=o,s=e,c=[],d=c,u=!1;function p(){d===c&&(d=c.slice())}function h(){if(u)throw new Error(q(3));return s}function y(O){if(typeof O!="function")throw new Error(q(4));if(u)throw new Error(q(5));var w=!0;return p(),d.push(O),function(){if(w){if(u)throw new Error(q(6));w=!1,p();var T=d.indexOf(O);d.splice(T,1),c=null}}}function m(O){if(!Ns(O))throw new Error(q(7));if(typeof O.type>"u")throw new Error(q(8));if(u)throw new Error(q(9));try{u=!0,s=a(s,O)}finally{u=!1}for(var w=c=d,I=0;I<w.length;I++){var T=w[I];T()}return O}function v(O){if(typeof O!="function")throw new Error(q(10));a=O,m({type:nr.REPLACE})}function b(){var O,w=y;return O={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(q(11));function D(){T.next&&T.next(h())}D();var k=w(D);return{unsubscribe:k}}},O[Ia]=function(){return this},O}return m({type:nr.INIT}),n={dispatch:m,subscribe:y,getState:h,replaceReducer:v},n[Ia]=b,n}function Ps(o){Object.keys(o).forEach(function(e){var r=o[e],n=r(void 0,{type:nr.INIT});if(typeof n>"u")throw new Error(q(12));if(typeof r(void 0,{type:nr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(q(13))})}function Ta(o){for(var e=Object.keys(o),r={},n=0;n<e.length;n++){var a=e[n];typeof o[a]=="function"&&(r[a]=o[a])}var s=Object.keys(r),c,d;try{Ps(r)}catch(u){d=u}return function(p,h){if(p===void 0&&(p={}),d)throw d;if(0)var y;for(var m=!1,v={},b=0;b<s.length;b++){var O=s[b],w=r[O],I=p[O],T=w(I,h);if(typeof T>"u"){var D=h&&h.type;throw new Error(q(14))}v[O]=T,m=m||T!==I}return m=m||s.length!==Object.keys(p).length,m?v:p}}function ct(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Ra(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),s=function(){throw new Error(q(15))},c={getState:a.getState,dispatch:function(){return s.apply(void 0,arguments)}},d=e.map(function(u){return u(c)});return s=ct.apply(void 0,d)(a.dispatch),so(so({},a),{},{dispatch:s})}}}function _a(o){var e=function(n){var a=n.dispatch,s=n.getState;return function(c){return function(d){return typeof d=="function"?d(a,s,o):c(d)}}};return e}var ka=_a();ka.withExtraArgument=_a;var uo=ka;var Fa=function(){var o=function(e,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])},o(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ds=function(o,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(p){return function(h){return u([p,h])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,a=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){r.label=p[1];break}if(p[0]===6&&r.label<s[1]){r.label=s[1],s=p;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(p);break}s[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(o,r)}catch(h){p=[6,h],a=0}finally{n=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},lt=function(o,e){for(var r=0,n=e.length,a=o.length;r<n;r++,a++)o[a]=e[r];return o},Fs=Object.defineProperty,Ms=Object.defineProperties,Us=Object.getOwnPropertyDescriptors,La=Object.getOwnPropertySymbols,Bs=Object.prototype.hasOwnProperty,Hs=Object.prototype.propertyIsEnumerable,Na=function(o,e,r){return e in o?Fs(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r},Te=function(o,e){for(var r in e||(e={}))Bs.call(e,r)&&Na(o,r,e[r]);if(La)for(var n=0,a=La(e);n<a.length;n++){var r=a[n];Hs.call(e,r)&&Na(o,r,e[r])}return o},po=function(o,e){return Ms(o,Us(e))},zs=function(o,e,r){return new Promise(function(n,a){var s=function(u){try{d(r.next(u))}catch(p){a(p)}},c=function(u){try{d(r.throw(u))}catch(p){a(p)}},d=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,c)};d((r=r.apply(o,e)).next())})};var Gs=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ct:ct.apply(null,arguments)},ad=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}};function $s(o){if(typeof o!="object"||o===null)return!1;var e=Object.getPrototypeOf(o);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Ws=function(o){Fa(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,lt([void 0],r[0].concat(this)))):new(e.bind.apply(e,lt([void 0],r.concat(this))))},e}(Array),js=function(o){Fa(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,lt([void 0],r[0].concat(this)))):new(e.bind.apply(e,lt([void 0],r.concat(this))))},e}(Array);function yo(o){return ue(o)?or(o,function(){}):o}function Vs(o){return typeof o=="boolean"}function Ks(){return function(e){return Zs(e)}}function Zs(o){o===void 0&&(o={});var e=o.thunk,r=e===void 0?!0:e,n=o.immutableCheck,a=n===void 0?!0:n,s=o.serializableCheck,c=s===void 0?!0:s,d=new Ws;if(r&&(Vs(r)?d.push(uo):d.push(uo.withExtraArgument(r.extraArgument))),0){if(a)var u;if(c)var p}return d}var fo=!0;function Ma(o){var e=Ks(),r=o||{},n=r.reducer,a=n===void 0?void 0:n,s=r.middleware,c=s===void 0?e():s,d=r.devTools,u=d===void 0?!0:d,p=r.preloadedState,h=p===void 0?void 0:p,y=r.enhancers,m=y===void 0?void 0:y,v;if(typeof a=="function")v=a;else if($s(a))v=Ta(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=c;if(typeof b=="function"&&(b=b(e),!fo&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!fo&&b.some(function(k){return typeof k!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Ra.apply(void 0,b),w=ct;u&&(w=Gs(Te({trace:!fo},typeof u=="object"&&u)));var I=new js(O),T=I;Array.isArray(m)?T=lt([O],m):typeof m=="function"&&(T=m(I));var D=w.apply(void 0,T);return lo(v,h,D)}function Re(o,e){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var s=e.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return Te(Te({type:o,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:o,payload:n[0]}}return r.toString=function(){return""+o},r.type=o,r.match=function(n){return n.type===o},r}function Ua(o){var e={},r=[],n,a={addCase:function(s,c){var d=typeof s=="string"?s:s.type;if(d in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[d]=c,a},addMatcher:function(s,c){return r.push({matcher:s,reducer:c}),a},addDefaultCase:function(s){return n=s,a}};return o(a),[e,r,n]}function qs(o){return typeof o=="function"}function Ys(o,e,r,n){r===void 0&&(r=[]);var a=typeof e=="function"?Ua(e):[e,r,n],s=a[0],c=a[1],d=a[2],u;if(qs(o))u=function(){return yo(o())};else{var p=yo(o);u=function(){return p}}function h(y,m){y===void 0&&(y=u());var v=lt([s[m.type]],c.filter(function(b){var O=b.matcher;return O(m)}).map(function(b){var O=b.reducer;return O}));return v.filter(function(b){return!!b}).length===0&&(v=[d]),v.reduce(function(b,O){if(O)if(Se(b)){var w=b,I=O(w,m);return I===void 0?b:I}else{if(ue(b))return or(b,function(T){return O(T,m)});var I=O(b,m);if(I===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return b},y)}return h.getInitialState=u,h}function Qs(o,e){return o+"/"+e}function Ba(o){var e=o.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof o.initialState=="function"?o.initialState:yo(o.initialState),n=o.reducers||{},a=Object.keys(n),s={},c={},d={};a.forEach(function(h){var y=n[h],m=Qs(e,h),v,b;"reducer"in y?(v=y.reducer,b=y.prepare):v=y,s[h]=v,c[m]=v,d[h]=b?Re(m,b):Re(m)});function u(){var h=typeof o.extraReducers=="function"?Ua(o.extraReducers):[o.extraReducers],y=h[0],m=y===void 0?{}:y,v=h[1],b=v===void 0?[]:v,O=h[2],w=O===void 0?void 0:O,I=Te(Te({},m),c);return Ys(r,function(T){for(var D in I)T.addCase(D,I[D]);for(var k=0,W=b;k<W.length;k++){var de=W[k];T.addMatcher(de.matcher,de.reducer)}w&&T.addDefaultCase(w)})}var p;return{name:e,reducer:function(h,y){return p||(p=u()),p(h,y)},actions:d,caseReducers:s,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Xs="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Js=function(o){o===void 0&&(o=21);for(var e="",r=o;r--;)e+=Xs[Math.random()*64|0];return e},ec=["name","message","stack","code"],ho=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),Pa=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),tc=function(o){if(typeof o=="object"&&o!==null){for(var e={},r=0,n=ec;r<n.length;r++){var a=n[r];typeof o[a]=="string"&&(e[a]=o[a])}return e}return{message:String(o)}},ld=function(){function o(e,r,n){var a=Re(e+"/fulfilled",function(h,y,m,v){return{payload:h,meta:po(Te({},v||{}),{arg:m,requestId:y,requestStatus:"fulfilled"})}}),s=Re(e+"/pending",function(h,y,m){return{payload:void 0,meta:po(Te({},m||{}),{arg:y,requestId:h,requestStatus:"pending"})}}),c=Re(e+"/rejected",function(h,y,m,v,b){return{payload:v,error:(n&&n.serializeError||tc)(h||"Rejected"),meta:po(Te({},b||{}),{arg:m,requestId:y,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),d=!1,u=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(y,m,v){var b=n?.idGenerator?n.idGenerator(h):Js(),O=new u,w,I=!1;function T(k){w=k,O.abort()}var D=function(){return zs(this,null,function(){var k,W,de,Ne,J,Pe,Qe;return Ds(this,function(f){switch(f.label){case 0:return f.trys.push([0,4,,5]),Ne=(k=n?.condition)==null?void 0:k.call(n,h,{getState:m,extra:v}),oc(Ne)?[4,Ne]:[3,2];case 1:Ne=f.sent(),f.label=2;case 2:if(Ne===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,J=new Promise(function(g,E){return O.signal.addEventListener("abort",function(){return E({name:"AbortError",message:w||"Aborted"})})}),y(s(b,h,(W=n?.getPendingMeta)==null?void 0:W.call(n,{requestId:b,arg:h},{getState:m,extra:v}))),[4,Promise.race([J,Promise.resolve(r(h,{dispatch:y,getState:m,extra:v,requestId:b,signal:O.signal,abort:T,rejectWithValue:function(g,E){return new ho(g,E)},fulfillWithValue:function(g,E){return new Pa(g,E)}})).then(function(g){if(g instanceof ho)throw g;return g instanceof Pa?a(g.payload,b,h,g.meta):a(g,b,h)})])];case 3:return de=f.sent(),[3,5];case 4:return Pe=f.sent(),de=Pe instanceof ho?c(null,b,h,Pe.payload,Pe.meta):c(Pe,b,h),[3,5];case 5:return Qe=n&&!n.dispatchConditionRejection&&c.match(de)&&de.meta.condition,Qe||y(de),[2,de]}})})}();return Object.assign(D,{abort:T,requestId:b,arg:h,unwrap:function(){return D.then(rc)}})}}return Object.assign(p,{pending:s,rejected:c,fulfilled:a,typePrefix:e})}return o.withTypes=function(){return o},o}();function rc(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function oc(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var Ha="listener",za="completed",Ga="cancelled",dd="task-"+Ga,ud="task-"+za,pd=Ha+"-"+Ga,fd=Ha+"-"+za;var go="listenerMiddleware";var hd=Re(go+"/add"),yd=Re(go+"/removeAll"),gd=Re(go+"/remove");var Da,md=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(o){return(Da||(Da=Promise.resolve())).then(o).catch(function(e){return setTimeout(function(){throw e},0)})},nc=function(o){return function(e){setTimeout(e,o)}},bd=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:nc(10);xa();var ac=Zt(Symbol("withEventBus"),function(o,e){return class extends o{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}),ar=class extends ac(Object){};window.ftReduxStores||(window.ftReduxStores={});var $a=class o extends ar{static get(e){var r;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,s=window.ftReduxStores[n];if(Jt(s))return s;if(a==null)return;let c=Ba({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=Ma({reducer:(u,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let h=Xn(c.getInitialState());for(let y of p.keeping)h[y]=(u??h)[y];return h}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...p.overwrites};return c.reducer(u,p)}});return window.ftReduxStores[a.name]=new o(c,d,a.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new qt;let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,c,d)=>{let u=c,p=s[u];return p?(...h)=>{let y=p(...h.map(a));return this.reduxStore.dispatch(y),y}:h=>{this.setState({[u]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var ir=class{static format(e,r,n,a,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,a,!!s)):this.getIntlDateTime(e,r,n,a,!!s)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,a,s){let c=typeof e=="string"?new Date(e):e,d=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(c),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(c);return s?u:a?`${d} ${u}`:d}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var sr=C(_()),ic="ft-app-info",be=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:e})}};be.eventName="authentication-change";var sc={session:(o,e)=>{(0,sr.deepEqual)(o.session,e.payload)||(o.session=e.payload,setTimeout(()=>S.dispatchEvent(new be(e.payload)),0))}},S=sr.FtReduxStore.get({name:ic,reducers:sc,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Wa=C(_()),cr=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Vd=(0,Wa.applyMixinOnce)(Symbol("withDateFormat"),function(o){class e extends o{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(S)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,s;return((s=(a=this.metadataDescriptors.find(d=>d.key===n))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1)?d=>ir.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return cr([(0,mo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),cr([(0,mo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),cr([Vr({store:S.name,selector:r=>{var n,a;return(a=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),cr([Vr({store:S.name})],e.prototype,"uiLocale",void 0),e});var hr=C(_());var bo=C(_());var Ge=class o{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=S.getState(),a=e??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(e){return new Promise(r=>{let n=o.get(e);if(n)r(n);else{let a=S.subscribe(()=>{n=o.get(e),n&&(a(),r(n))})}})}};var lr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ge.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ge.await()}};var Y=class extends lr{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(s,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([d],[u])=>d.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new bo.CacheRegistry,this.cache=e?a.commonCache:new bo.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var dr=class extends Y{async listMySearches(){let{session:e}=S.getState();return xe(e,P.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var ur=class extends Y{async listMyBookmarks(){let e=S.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var pr=class extends Y{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}};var fr=class extends Y{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}};var cc="ft-user-assets",lc={setAssetCount:(o,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;o.assetCounts.allAsset[r]=n},clearAssetCount:o=>{Object.values(ie).forEach(e=>{o.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(o,e)=>{let r=e.payload.mapId;o.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:o=>{o.assetCounts.bookmarkByMap={}},addAsset:(o,e)=>{let{assetType:r,mapId:n,asset:a}=e.payload;xo(o,r,[...vo(o,r),a]),ja(o,r,1,n),Va(o,a)},editAsset:(o,e)=>{let{assetType:r,asset:n}=e.payload;xo(o,r,vo(o,r).map(a=>a.id===n.id?n:a)),Va(o,n)},removeAsset:(o,e)=>{let{assetType:r,mapId:n,assetId:a}=e.payload;xo(o,r,vo(o,r).filter(s=>s.id!==a)),ja(o,r,-1,n)}},Ka={[ie.SEARCHES]:"savedSearches",[ie.BOOKMARKS]:"bookmarks",[ie.BOOKS]:void 0,[ie.COLLECTIONS]:void 0},vo=(o,e)=>{var r;let n=Ka[e];return n?(r=o[n])!==null&&r!==void 0?r:[]:[]},xo=(o,e,r)=>{let n=Ka[e];n&&(o[n]=r)},ja=(o,e,r,n)=>{let a=o.assetCounts.allAsset[e];if(a!==void 0&&(o.assetCounts.allAsset[e]=Math.max(0,a+r),e===ie.BOOKMARKS&&n)){let s=o.assetCounts.bookmarkByMap[n];o.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},Va=(o,e)=>{let r=o.assetLabels.map(a=>a.title),n=e.labels.filter(a=>!r.includes(a)).map(a=>({title:a}));o.assetLabels.push(...n)},oe=hr.FtReduxStore.get({name:cc,reducers:lc,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ie).map(o=>[o,void 0])),bookmarkByMap:{}},assetLabels:[]}}),So=class{constructor(e=new pr,r=new fr){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ur,this.savedSearchesService=new dr,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.getState();(0,hr.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),oe.actions.clearAssetCount(),oe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),oe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),oe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();oe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();oe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&oe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&oe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(oe.getState().assetCounts.bookmarkByMap).length!==0;e===ie.BOOKMARKS&&r&&oe.actions.clearBookmarkCountByMap(),oe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;oe.actions.bookmarks(r)}}},Co=new So;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Co);var Oo=class{addCommand(e,r=!1){S.commands.add(e,r)}consumeCommand(e){return S.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Oo;var ce=C(_());var Za,dt=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},dc=Symbol("clearAfterUnitTest"),yr=class extends(0,ce.withEventBus)(Y){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Za]=()=>{this.defaultMessages={},this.cache=new ce.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=S.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,ce.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var a;let s=e.toLowerCase(),c=this.resolveContext(s);return new ce.ParametrizedLabelResolver((a=this.defaultMessages[s])!==null&&a!==void 0?a:{},c).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(a){!(a instanceof ce.CanceledPromiseError)&&r&&console.error(a)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new dt({loadedContexts:e})),this.dispatchEvent(new dt({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new dt({loadedContexts:[e]})),this.dispatchEvent(new dt({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,ce.delay)(0).then(()=>n()).catch(()=>null)))}};Za=dc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends yr{constructor(){super(async(o,e)=>(await this.awaitApi).getFluidTopicsMessageContext(o,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends yr{constructor(){super(async(o,e)=>(await this.awaitApi).getCustomMessageContext(o,e))}});var qa=window.FluidTopicsI18nService,Iu=window.FluidTopicsCustomI18nService;var Ya=C(_()),Ao=class{highlightHtml(e,r,n){(0,Ya.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Ao;var Qa=C(_());var Eo=class{isDate(e){var r,n,a,s;return(s=(a=((n=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===e))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1}format(e,r){var n,a,s,c;if(e==null)return"";try{return Qa.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:S.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(c=r?.onlyTime)!==null&&c!==void 0?c:!1)}catch(d){throw console.error(`Date ${JSON.stringify(e)} is not valid`,d),d}}};window.FluidTopicsDateService=new Eo;var Xa=C(_());var Lt=class{static get(e,r){var n,a;let s=S.getState(),{lang:c,region:d}=(a=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Xa.SearchPlaceConverter(s.baseUrl,e??20,s.searchInAllLanguagesAllowed,r??`${c}-${d}`)}};var gr=class extends Y{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on-demand_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([n,a])=>Array.isArray(a)?[n,a.map(s=>typeof s=="object"&&s!=null&&!Array.isArray(s)?this.sortEventArrays(s):s).sort((s,c)=>typeof s=="object"&&s!==null&&"key"in s?s.key.localeCompare(c.key):typeof s=="string"&&typeof c=="string"?s.localeCompare(c):String(s).localeCompare(String(c)))]:typeof a=="object"&&a!==null?[n,this.sortEventArrays(a)]:[n,a]);return Object.fromEntries(r)}sendEvents(e,r){let n="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>n).catch(a=>(console.info(r),console.debug(a),n)),1e3)}};var wo=class{urlToSearchRequest(e){return Lt.get().parse(e)}searchRequestToUrl(e){return Lt.get().serialize(e)}};window.FluidTopicsUrlService=new wo;var _e=C(_());var $e=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:{currentItem:e}})}};$e.eventName="change";var Io=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Ja=new Io;var mr=class o extends _e.WithEventBus{static build(){return new o(window.history,Ja,()=>window.location,!1)}constructor(e,r,n,a){var s,c;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(c=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&c!==void 0?c:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,_e.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new $e(this.currentItem())),0)}installProxies(){let e=r=>(n,a,[s,c,d])=>{let u=r(),p={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:typeof d=="string"?d:(d??this.windowLocation()).href};n.apply(a,[p,c,d]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener($e.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener($e.eventName,e)}currentItem(){return(0,_e.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,_e.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,_e.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let a=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(a=s),s++;return a}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let a=r??this.currentState.majorStateId,s=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=mr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(o),removeHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(o)});var ei=C(V());var ti=ei.css`
|
|
50
|
-
`;var
|
|
48
|
+
`}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){this.registeredComponents.push(e),e.tocNode=this.tocNode,e.disableContextInteractions=this.disableContextInteractions,e.headingLevelsShift=this.headingLevelsShift}update(e){super.update(e),["mapId","tocId","stateManager","translationDestinationLanguage","translationProfileId"].some(r=>e.has(r))&&this.setTocNode(),e.has("tocNode")&&this.registeredComponents.forEach(r=>r.tocNode=this.tocNode)}async setTocNode(){var e;this.tocNode=void 0,this.tocNode=this.mapId&&this.tocId?await((e=this.stateManager)===null||e===void 0?void 0:e.getTocNode(this.tocId)):void 0}disconnectedCallback(){super.disconnectedCallback(),this.registeredComponents=[]}};ie.styles=un;Me([(0,jt.redux)({selector:o=>{var e;return(e=o.map)===null||e===void 0?void 0:e.id}})],ie.prototype,"mapId",void 0);Me([(0,jt.redux)({selector:o=>o.translation.profileId})],ie.prototype,"translationProfileId",void 0);Me([(0,jt.redux)({selector:o=>o.translation.destinationLanguage})],ie.prototype,"translationDestinationLanguage",void 0);Me([(0,rt.property)()],ie.prototype,"tocId",void 0);Me([(0,rt.property)({type:Boolean})],ie.prototype,"disableContextInteractions",void 0);Me([(0,rt.property)({type:Number})],ie.prototype,"headingLevelsShift",void 0);Me([(0,rt.state)()],ie.prototype,"tocNode",void 0);var fn=S(_());(0,fn.customElement)("ft-reader-topic-context")(ie);var hn=S(j());var yn=hn.css`
|
|
49
|
+
`;var Mt=S(j()),je=S(J()),z=S(_());var ee=S(_());var gn=S(_()),Os={setTranslationDestinationLanguage:(o,e)=>{o.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(o,e)=>{o.translation.sourceLanguage=e.payload},setTranslationProfileId:(o,e)=>{o.translation.profileId=e.payload},setTranslationLoading:(o,e)=>{o.translation.isLoading=e.payload},setTranslationError:(o,e)=>{o.translation.isError=e.payload},setTopicsRating:(o,e)=>{for(let r in e.payload)o.topicsRating[r]=e.payload[r]}},mn=o=>gn.FtReduxStore.get({name:"ft-reader-"+o,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1},linkPreviewDialogId:void 0},reducers:Os});var Zr=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(e,r,n){return e.flatMap(a=>{var s;return a.pageConfiguration&&this.registerPage(this.buildPage(a,n)),a.tocId==null?this.extractPagesToc(a.children,r,n):[{tocId:a.tocId,title:(s=a.title)!==null&&s!==void 0?s:"",untranslatedTitle:a.untranslatedTitle,depth:r,children:this.extractPagesToc(a.children,r+1,a.tocId)}]})}convertNodes(e,r,n){return e.flatMap(a=>{var s,c,d;if(a.tocId==null)return[...this.convertSectionNodes((s=a.pageToc)!==null&&s!==void 0?s:[],r,a.tocId),...this.convertNodes(a.children,r,a.tocId)];let u=(c=a.prettyUrl)===null||c===void 0?void 0:c.replace(/^\//,""),p={tocId:a.tocId,contentId:a.contentId,title:a.title,untranslatedTitle:a.untranslatedTitle,hasRating:a.hasRating,origin:a.origin,prettyUrl:u,depth:r,parentTocId:n,children:[]};this.register(p);let h=this.convertSectionNodes((d=a.pageToc)!==null&&d!==void 0?d:[],r+1,a.tocId),y=this.convertNodes(a.children,r+1,p.tocId);return p.children=[...h,...y],[p]})}convertSectionNodes(e,r,n){return e.flatMap(a=>{var s;let c=(s=a.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),d={...a,prettyUrl:c,depth:r,parentTocId:n,children:[]};return this.register(d),d.children=this.convertSectionNodes(a.children,r+1,a.tocId),[d]})}buildPage(e,r){var n,a,s,c,d,u;let p={number:this.pages.length+1,title:(n=e.title)!==null&&n!==void 0?n:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(a=e.tocId)!==null&&a!==void 0?a:"root",toc:((s=e.pageToc)!==null&&s!==void 0?s:[]).map(m=>this.nodeByTocId[m.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(m,v)=>(v?p.topics:p.hiddenTopics).push(m),y=(d=(c=e.pageConfiguration)===null||c===void 0?void 0:c.parentsVisibility)!==null&&d!==void 0?d:[];return p.breadcrumb.forEach((m,v)=>{h(m,y[v])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),p.topics.push(...this.tocIds((u=e.pageToc)!==null&&u!==void 0?u:[])),p}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Vt=class{convertPaginatedToc(e,r){return new Zr(e,r).build()}};var Es=S(vn(),1);var xn;(function(o){o.black="black",o.green="green",o.blue="blue",o.purple="purple",o.red="red",o.orange="orange",o.yellow="yellow"})(xn||(xn={}));var Sn;(function(o){o.OFFICIAL="OFFICIAL",o.PERSONAL="PERSONAL",o.SHARED="SHARED"})(Sn||(Sn={}));var Cn;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.ATTACHMENT="ATTACHMENT",o.RESOURCE="RESOURCE",o.HTML_PACKAGE="HTML_PACKAGE"})(Cn||(Cn={}));var On;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.ATTACHMENT="ATTACHMENT",o.RESOURCE="RESOURCE",o.HTML_PACKAGE="HTML_PACKAGE"})(On||(On={}));var An;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(An||(An={}));var En;(function(o){o.VALUE="VALUE",o.DATE="DATE",o.RANGE="RANGE"})(En||(En={}));var qt;(function(o){o.OFFICIAL="OFFICIAL",o.AI="AI"})(qt||(qt={}));var wn;(function(o){o.BOOKMARK__CREATE="BOOKMARK__CREATE",o.BOOKMARK__DELETE="BOOKMARK__DELETE",o.CASE_DEFLECTION__START="CASE_DEFLECTION__START",o.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",o.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",o.CHATBOT__RATE="CHATBOT__RATE",o.COLLECTION__CREATE="COLLECTION__CREATE",o.COLLECTION__UPDATE="COLLECTION__UPDATE",o.COLLECTION__DELETE="COLLECTION__DELETE",o.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",o.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",o.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",o.DOCUMENT__PRINT="DOCUMENT__PRINT",o.DOCUMENT__PROCESS="DOCUMENT__PROCESS",o.DOCUMENT__RATE="DOCUMENT__RATE",o.DOCUMENT__SEARCH="DOCUMENT__SEARCH",o.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",o.DOCUMENT__UNRATE="DOCUMENT__UNRATE",o.FEEDBACK__SEND="FEEDBACK__SEND",o.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",o.AI__RATE="AI__RATE",o.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",o.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",o.KHUB__PROCESS="KHUB__PROCESS",o.KHUB__SEARCH="KHUB__SEARCH",o.LABELS__DOWNLOAD="LABELS__DOWNLOAD",o.LINK__SHARE="LINK__SHARE",o.PAGE__DISPLAY="PAGE__DISPLAY",o.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",o.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",o.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",o.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",o.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",o.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",o.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",o.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",o.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",o.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",o.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",o.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",o.TOPIC__RATE="TOPIC__RATE",o.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",o.TOPIC__UNRATE="TOPIC__UNRATE",o.USER__LOGIN="USER__LOGIN",o.USER__LOGOUT="USER__LOGOUT",o.HEARTBEAT="HEARTBEAT"})(wn||(wn={}));var In;(function(o){o.STANDARD="STANDARD",o.STRUCTURAL="STRUCTURAL"})(In||(In={}));var Tn;(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"})(Tn||(Tn={}));var Rn;(function(o){o.HOMEPAGE="HOMEPAGE",o.CUSTOM="CUSTOM",o.HEADER="HEADER",o.READER="READER",o.TOPIC_TEMPLATE="TOPIC_TEMPLATE",o.SEARCH="SEARCH",o.SEARCH_RESULT="SEARCH_RESULT",o.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",o.LINK_PREVIEW="LINK_PREVIEW",o.UD_VIEWER="UD_VIEWER",o.ASSET_VIEWER="ASSET_VIEWER"})(Rn||(Rn={}));var _n;(function(o){o.CLASSIC="CLASSIC",o.CUSTOM="CUSTOM",o.DESIGNER="DESIGNER"})(_n||(_n={}));var Ln;(function(o){o.AND="AND",o.OR="OR",o.MONOVALUED="MONOVALUED"})(Ln||(Ln={}));var kn;(function(o){o.NONE="NONE",o.ALPHABET="ALPHABET",o.VERSION="VERSION"})(kn||(kn={}));var Nn;(function(o){o.STARS="STARS",o.LIKE="LIKE",o.DICHOTOMOUS="DICHOTOMOUS",o.NO_RATING="NO_RATING"})(Nn||(Nn={}));var Pn;(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"})(Pn||(Pn={}));var Dn;(function(o){o.OPTIONAL="OPTIONAL",o.MANDATORY="MANDATORY"})(Dn||(Dn={}));var Mn;(function(o){o.ASC="ASC",o.DESC="DESC"})(Mn||(Mn={}));var Fn;(function(o){o.ALPHA="ALPHA",o.NATURAL="NATURAL"})(Fn||(Fn={}));var Un;(function(o){o.EVERYWHERE="EVERYWHERE",o.TITLE_ONLY="TITLE_ONLY",o.NONE="NONE"})(Un||(Un={}));var Bn;(function(o){o.ARTICLE="ARTICLE",o.BOOK="BOOK",o.SHARED_BOOK="SHARED_BOOK",o.HTML_PACKAGE="HTML_PACKAGE"})(Bn||(Bn={}));var Hn;(function(o){o.FLUIDTOPICS="FLUIDTOPICS",o.EXTERNAL="EXTERNAL"})(Hn||(Hn={}));var zn;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.PERSONAL_BOOK="PERSONAL_BOOK",o.SHARED_BOOK="SHARED_BOOK",o.HTML_PACKAGE="HTML_PACKAGE"})(zn||(zn={}));var Gn;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(Gn||(Gn={}));var $n;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.HTML_PACKAGE="HTML_PACKAGE",o.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})($n||($n={}));var Wn;(function(o){o.DEFAULT="DEFAULT",o.DOCUMENTS="DOCUMENTS",o.ALL_TOPICS="ALL_TOPICS",o.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Wn||(Wn={}));var jn;(function(o){o.PLAIN_TEXT="PLAIN_TEXT",o.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",o.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(jn||(jn={}));var P;(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.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",o.CONTENT_PUBLISHER="CONTENT_PUBLISHER",o.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",o.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",o.KHUB_ADMIN="KHUB_ADMIN",o.USERS_ADMIN="USERS_ADMIN",o.PORTAL_ADMIN="PORTAL_ADMIN",o.ADMIN="ADMIN"})(P||(P={}));var se;(function(o){o.SEARCHES="SEARCHES",o.BOOKMARKS="BOOKMARKS",o.BOOKS="BOOKS",o.COLLECTIONS="COLLECTIONS"})(se||(se={}));var Vn;(function(o){o.UNAUTHENTICATED="UNAUTHENTICATED",o.USER_INCOMPLETE="USER_INCOMPLETE",o.MFA_REQUIRED="MFA_REQUIRED",o.AUTHENTICATED="AUTHENTICATED"})(Vn||(Vn={}));var Kn;(function(o){o.VALID="VALID",o.INVALID="INVALID"})(Kn||(Kn={}));var Zn;(function(o){o.INACCURATE="INACCURATE",o.INCOMPLETE="INCOMPLETE",o.OFF_TOPIC="OFF_TOPIC",o.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",o.SUMMARY="SUMMARY",o.SEMANTIC_SEARCH="SEMANTIC_SEARCH",o.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",o.OTHER="OTHER"})(Zn||(Zn={}));var qn;(function(o){o.INACCURATE="INACCURATE",o.INCOMPLETE="INCOMPLETE",o.OFF_TOPIC="OFF_TOPIC",o.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",o.SLOW="SLOW",o.OTHER="OTHER"})(qn||(qn={}));var Yn;(function(o){o.JSON="JSON",o.TEXT="TEXT"})(Yn||(Yn={}));var Qn;(function(o){o.USER="USER",o.ASSISTANT="ASSISTANT"})(Qn||(Qn={}));var Xn;(function(o){o.TEXT="TEXT",o.HTML="HTML"})(Xn||(Xn={}));var Jn;(function(o){o.HTML="HTML",o.MARKDOWN="MARKDOWN"})(Jn||(Jn={}));var ea;(function(o){o.MAP="MAP",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(ea||(ea={}));var As={[P.PERSONAL_BOOK_SHARE_USER]:[P.PERSONAL_BOOK_USER],[P.HTML_EXPORT_USER]:[P.PERSONAL_BOOK_USER],[P.PDF_EXPORT_USER]:[P.PERSONAL_BOOK_USER],[P.KHUB_ADMIN]:[P.CONTENT_PUBLISHER],[P.ADMIN]:[P.KHUB_ADMIN,P.USERS_ADMIN,P.PORTAL_ADMIN,P.BEHAVIOR_DATA_USER],[P.GENERATIVE_AI_EXPORT_USER]:[P.GENERATIVE_AI_USER]};function ta(o,e){return o===e||(As[o]??[]).some(r=>ta(r,e))}function be(o,e){return o==null?!1:(Array.isArray(o)?o:Array.isArray(o.roles)?o.roles:Array.isArray(o.profile?.roles)?o.profile.roles:[]).some(n=>ta(n,e))}var xo=S(J());function ws(o,e){if(o===e)return!0;if(o&&e&&typeof o=="object"&&typeof e=="object"){if(o.constructor!==e.constructor)return!1;let r,n,a;if(Array.isArray(o)){if(r=o.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Yt(o[n],e[n]))return!1;return!0}if(o instanceof Map&&e instanceof Map){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;for(n of o.entries())if(!Yt(n[1],e.get(n[0])))return!1;return!0}if(o instanceof Set&&e instanceof Set){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;return!0}if(o.constructor===RegExp)return o.source===e.source&&o.flags===e.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===e.valueOf();let s=c=>Object.keys(c).filter(d=>c[d]!=null);if(a=s(o),r=a.length,r!==s(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=r;n--!==0;){let c=a[n];if(!Yt(o[c],e[c]))return!1}return!0}return o!==o&&e!==e||o==null&&e==null}function Yt(o,e){try{return ws(o,e)}catch{return!1}}function Rt(o,e){return!Yt(o,e)}function ra(o){return typeof window.structuredClone=="function"?structuredClone(o):o!=null?JSON.parse(JSON.stringify(o)):o}function Qt(o,e){let r=n=>n[o]===!0;return n=>{if(r(n))return n;let a=e(n);return a[o]=!0,a}}var oa=S(J(),1);var qr=o=>{let e=o??{};return(r,n)=>{var a;let s={hasChanged:Rt,attribute:!1,...e};(0,oa.property)(s)(r,n);let c=r.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:d=>d[n],store:e.store})}};var Xt=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Fe=S(J(),1);var na=S(J(),1);function aa(o,e){let r=()=>JSON.parse(JSON.stringify(o));return(0,na.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Rt,...e??{}})}var Jt=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,s=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var sa=S(j(),1);var er=globalThis,Is=er.ShadowRoot&&(er.ShadyCSS===void 0||er.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Tl=Symbol();var ia=(o,e)=>{if(Is)o.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),a=er.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,o.appendChild(n)}};var tr=class extends sa.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,s])=>e.registry.define(a,s)));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return ia(n,e.elementStyles),n}};function ca(o,e,...r){var n;let a=o.querySelector(e);for(let s of r)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return a}var at=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},pa,la=Symbol("constructorPrototype"),da=Symbol("constructorName"),fa=Symbol("exportpartsDebouncer"),ua=Symbol("dynamicDependenciesLoaded"),nt=class o extends CustomEvent{constructor(){super(o.eventName,{bubbles:!0})}};nt.eventName="exportparts-updated";var ye=class extends tr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[pa]=new Jt(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[fa].run(()=>{var a,s;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[da]=this.constructor.name,this[la]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[da]&&Object.setPrototypeOf(this,this[la])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[ua]||(r[ua]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(nt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(nt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new nt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let s=[...a??[],n];r=ca(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,n,a,s,c,d;let u=m=>m!=null&&m.trim().length>0,p=e.filter(u).map(m=>m.trim());if(p.length===0){this.exportparts=void 0;return}let h=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(s=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&s!==void 0?s:[],b=(d=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(w=>w.split(":")[1]))!==null&&d!==void 0?d:[],C=[...v,...b].filter(u).map(w=>w.trim());for(let w of C)h.add(w)}if(h.size===0){this.exportparts=void 0;return}let y=[...h.values()].flatMap(m=>p.map(v=>`${m}:${v}--${m}`));this.exportparts=[...this.part,...y].join(", ")}};pa=fa;at([(0,Fe.property)()],ye.prototype,"exportpartsPrefix",void 0);at([aa([])],ye.prototype,"exportpartsPrefixes",void 0);at([(0,Fe.property)({reflect:!0})],ye.prototype,"exportparts",void 0);at([(0,Fe.property)()],ye.prototype,"customStylesheet",void 0);at([(0,Fe.property)()],ye.prototype,"elementToFocus",void 0);at([(0,Fe.state)()],ye.prototype,"useAdoptedStyleSheets",void 0);function rr(o){var e;return(e=o?.isFtReduxStore)!==null&&e!==void 0?e:!1}var _t=Symbol("internalReduxEventsUnsubscribers"),Ae=Symbol("internalStoresUnsubscribers"),Ue=Symbol("internalStores"),Ts=Qt(Symbol("withRedux"),function(o){var e,r,n;class a extends o{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(d=>c.has(d))&&this.updateFromStores()}getUnnamedStore(){if(this[Ue].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ue].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[Ue].get(c)}addStore(c,d){var u;d=(u=d??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(d),this[Ue].set(d,c),this.subscribeToStore(d,c),this.updateFromStores()}removeStore(c){let d=typeof c=="string"?c:c.name;this.unsubscribeFromStore(d),this[Ue].delete(d)}setupStores(){this.unsubscribeFromStores(),this[Ue].forEach((c,d)=>this.subscribeToStore(d,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,d)=>{let u=this.constructor.getPropertyOptions(d);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:d)){let p=this.getStore(c.store);p&&(c.store?this[Ae].has(c.store):this[Ae].size>0)&&(this[d]=c.selector(p.getState(),this))}})}subscribeToStore(c,d){var u;this[Ae].set(c,d.subscribe(()=>this.updateFromStores())),this[_t].set(c,[]),rr(d)&&d.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||d.name===p.store)){let y=m=>this[h](m);d.addEventListener(p.eventName,y),this[_t].get(c).push(()=>d.removeEventListener(p.eventName,y))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[Ae].forEach((c,d)=>this.unsubscribeFromStore(d))}unsubscribeFromStore(c){var d;this[Ae].has(c)&&this[Ae].get(c)(),this[Ae].delete(c),(d=this[_t].get(c))===null||d===void 0||d.forEach(u=>u()),this[_t].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Ae,r=Ue,n=_t,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),ha=class extends Ts(ye){};function ce(o){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var a,s;throw Error("[Immer] minified error nr: "+o+(r.length?" "+r.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ve(o){return!!o&&!!o[M]}function pe(o){var e;return!!o&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Ms}(o)||Array.isArray(o)||!!o[Sa]||!!(!((e=o.constructor)===null||e===void 0)&&e[Sa])||no(o)||ao(o))}function Be(o,e,r){r===void 0&&(r=!1),ct(o)===0?(r?Object.keys:st)(o).forEach(function(n){r&&typeof n=="symbol"||e(n,o[n],o)}):o.forEach(function(n,a){return e(a,n,o)})}function ct(o){var e=o[M];return e?e.i>3?e.i-4:e.i:Array.isArray(o)?1:no(o)?2:ao(o)?3:0}function it(o,e){return ct(o)===2?o.has(e):Object.prototype.hasOwnProperty.call(o,e)}function Rs(o,e){return ct(o)===2?o.get(e):o[e]}function Ca(o,e,r){var n=ct(o);n===2?o.set(e,r):n===3?o.add(r):o[e]=r}function Oa(o,e){return o===e?o!==0||1/o==1/e:o!=o&&e!=e}function no(o){return Ps&&o instanceof Map}function ao(o){return Ds&&o instanceof Set}function Ee(o){return o.o||o.t}function io(o){if(Array.isArray(o))return Array.prototype.slice.call(o);var e=wa(o);delete e[M];for(var r=st(e),n=0;n<r.length;n++){var a=r[n],s=e[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(e[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:o[a]})}return Object.create(Object.getPrototypeOf(o),e)}function so(o,e){return e===void 0&&(e=!1),co(o)||ve(o)||!pe(o)||(ct(o)>1&&(o.set=o.add=o.clear=o.delete=_s),Object.freeze(o),e&&Be(o,function(r,n){return so(n,!0)},!0)),o}function _s(){ce(2)}function co(o){return o==null||typeof o!="object"||Object.isFrozen(o)}function ge(o){var e=oo[o];return e||ce(18,o),e}function Ls(o,e){oo[o]||(oo[o]=e)}function eo(){return kt}function Yr(o,e){e&&(ge("Patches"),o.u=[],o.s=[],o.v=e)}function or(o){to(o),o.p.forEach(ks),o.p=null}function to(o){o===kt&&(kt=o.l)}function ya(o){return kt={p:[],l:kt,h:o,m:!0,_:0}}function ks(o){var e=o[M];e.i===0||e.i===1?e.j():e.g=!0}function Qr(o,e){e._=e.p.length;var r=e.p[0],n=o!==void 0&&o!==r;return e.h.O||ge("ES5").S(e,o,n),n?(r[M].P&&(or(e),ce(4)),pe(o)&&(o=nr(e,o),e.l||ar(e,o)),e.u&&ge("Patches").M(r[M].t,o,e.u,e.s)):o=nr(e,r,[]),or(e),e.u&&e.v(e.u,e.s),o!==Ea?o:void 0}function nr(o,e,r){if(co(e))return e;var n=e[M];if(!n)return Be(e,function(d,u){return ga(o,n,e,d,u,r)},!0),e;if(n.A!==o)return e;if(!n.P)return ar(o,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=io(n.k):n.o,s=a,c=!1;n.i===3&&(s=new Set(a),a.clear(),c=!0),Be(s,function(d,u){return ga(o,n,a,d,u,r,c)}),ar(o,a,!1),r&&o.u&&ge("Patches").N(n,r,o.u,o.s)}return n.o}function ga(o,e,r,n,a,s,c){if(ve(a)){var d=nr(o,a,s&&e&&e.i!==3&&!it(e.R,n)?s.concat(n):void 0);if(Ca(r,n,d),!ve(d))return;o.m=!1}else c&&r.add(a);if(pe(a)&&!co(a)){if(!o.h.D&&o._<1)return;nr(o,a),e&&e.A.l||ar(o,a)}}function ar(o,e,r){r===void 0&&(r=!1),!o.l&&o.h.D&&o.m&&so(e,r)}function Xr(o,e){var r=o[M];return(r?Ee(r):o)[e]}function ma(o,e){if(e in o)for(var r=Object.getPrototypeOf(o);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function we(o){o.P||(o.P=!0,o.l&&we(o.l))}function Jr(o){o.o||(o.o=io(o.t))}function ro(o,e,r){var n=no(e)?ge("MapSet").F(e,r):ao(e)?ge("MapSet").T(e,r):o.O?function(a,s){var c=Array.isArray(a),d={i:c?1:0,A:s?s.A:eo(),P:!1,I:!1,R:{},l:s,t:a,k:null,o:null,j:null,C:!1},u=d,p=Nt;c&&(u=[d],p=Lt);var h=Proxy.revocable(u,p),y=h.revoke,m=h.proxy;return d.k=m,d.j=y,m}(e,r):ge("ES5").J(e,r);return(r?r.A:eo()).p.push(n),n}function Ns(o){return ve(o)||ce(22,o),function e(r){if(!pe(r))return r;var n,a=r[M],s=ct(r);if(a){if(!a.P&&(a.i<4||!ge("ES5").K(a)))return a.t;a.I=!0,n=ba(r,s),a.I=!1}else n=ba(r,s);return Be(n,function(c,d){a&&Rs(a.t,c)===d||Ca(n,c,e(d))}),s===3?new Set(n):n}(o)}function ba(o,e){switch(e){case 2:return new Map(o);case 3:return Array.from(o)}return io(o)}function Aa(){function o(c,d){var u=s[c];return u?u.enumerable=d:s[c]=u={configurable:!0,enumerable:d,get:function(){var p=this[M];return Nt.get(p,c)},set:function(p){var h=this[M];Nt.set(h,c,p)}},u}function e(c){for(var d=c.length-1;d>=0;d--){var u=c[d][M];if(!u.P)switch(u.i){case 5:n(u)&&we(u);break;case 4:r(u)&&we(u)}}}function r(c){for(var d=c.t,u=c.k,p=st(u),h=p.length-1;h>=0;h--){var y=p[h];if(y!==M){var m=d[y];if(m===void 0&&!it(d,y))return!0;var v=u[y],b=v&&v[M];if(b?b.t!==m:!Oa(v,m))return!0}}var C=!!d[M];return p.length!==st(d).length+(C?0:1)}function n(c){var d=c.k;if(d.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(d,d.length-1);if(u&&!u.get)return!0;for(var p=0;p<d.length;p++)if(!d.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&ce(3,JSON.stringify(Ee(c)))}var s={};Ls("ES5",{J:function(c,d){var u=Array.isArray(c),p=function(y,m){if(y){for(var v=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(v,""+b,o(b,!0));return v}var C=wa(m);delete C[M];for(var w=st(C),I=0;I<w.length;I++){var T=w[I];C[T]=o(T,y||!!C[T].enumerable)}return Object.create(Object.getPrototypeOf(m),C)}(u,c),h={i:u?5:4,A:d?d.A:eo(),P:!1,I:!1,R:{},l:d,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,M,{value:h,writable:!0}),p},S:function(c,d,u){u?ve(d)&&d[M].A===c&&e(c.p):(c.u&&function p(h){if(h&&typeof h=="object"){var y=h[M];if(y){var m=y.t,v=y.k,b=y.R,C=y.i;if(C===4)Be(v,function(L){L!==M&&(m[L]!==void 0||it(m,L)?b[L]||p(v[L]):(b[L]=!0,we(y)))}),Be(m,function(L){v[L]!==void 0||it(v,L)||(b[L]=!1,we(y))});else if(C===5){if(n(y)&&(we(y),b.length=!0),v.length<m.length)for(var w=v.length;w<m.length;w++)b[w]=!1;else for(var I=m.length;I<v.length;I++)b[I]=!0;for(var T=Math.min(v.length,m.length),D=0;D<T;D++)v.hasOwnProperty(D)||(b[D]=!0),b[D]===void 0&&p(v[D])}}}}(c.p[0]),e(c.p))},K:function(c){return c.i===4?r(c):n(c)}})}var va,kt,lo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ps=typeof Map<"u",Ds=typeof Set<"u",xa=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ea=lo?Symbol.for("immer-nothing"):((va={})["immer-nothing"]=!0,va),Sa=lo?Symbol.for("immer-draftable"):"__$immer_draftable",M=lo?Symbol.for("immer-state"):"__$immer_state";var Ms=""+Object.prototype.constructor,st=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:Object.getOwnPropertyNames,wa=Object.getOwnPropertyDescriptors||function(o){var e={};return st(o).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(o,r)}),e},oo={},Nt={get:function(o,e){if(e===M)return o;var r=Ee(o);if(!it(r,e))return function(a,s,c){var d,u=ma(s,c);return u?"value"in u?u.value:(d=u.get)===null||d===void 0?void 0:d.call(a.k):void 0}(o,r,e);var n=r[e];return o.I||!pe(n)?n:n===Xr(o.t,e)?(Jr(o),o.o[e]=ro(o.A.h,n,o)):n},has:function(o,e){return e in Ee(o)},ownKeys:function(o){return Reflect.ownKeys(Ee(o))},set:function(o,e,r){var n=ma(Ee(o),e);if(n?.set)return n.set.call(o.k,r),!0;if(!o.P){var a=Xr(Ee(o),e),s=a?.[M];if(s&&s.t===r)return o.o[e]=r,o.R[e]=!1,!0;if(Oa(r,a)&&(r!==void 0||it(o.t,e)))return!0;Jr(o),we(o)}return o.o[e]===r&&(r!==void 0||e in o.o)||Number.isNaN(r)&&Number.isNaN(o.o[e])||(o.o[e]=r,o.R[e]=!0),!0},deleteProperty:function(o,e){return Xr(o.t,e)!==void 0||e in o.t?(o.R[e]=!1,Jr(o),we(o)):delete o.R[e],o.o&&delete o.o[e],!0},getOwnPropertyDescriptor:function(o,e){var r=Ee(o),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:o.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){ce(11)},getPrototypeOf:function(o){return Object.getPrototypeOf(o.t)},setPrototypeOf:function(){ce(12)}},Lt={};Be(Nt,function(o,e){Lt[o]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Lt.deleteProperty=function(o,e){return Lt.set.call(this,o,e,void 0)},Lt.set=function(o,e,r){return Nt.set.call(this,o[0],e,r,o[0])};var Fs=function(){function o(r){var n=this;this.O=xa,this.D=!0,this.produce=function(a,s,c){if(typeof a=="function"&&typeof s!="function"){var d=s;s=a;var u=n;return function(C){var w=this;C===void 0&&(C=d);for(var I=arguments.length,T=Array(I>1?I-1:0),D=1;D<I;D++)T[D-1]=arguments[D];return u.produce(C,function(L){var $;return($=s).call.apply($,[w,L].concat(T))})}}var p;if(typeof s!="function"&&ce(6),c!==void 0&&typeof c!="function"&&ce(7),pe(a)){var h=ya(n),y=ro(n,a,void 0),m=!0;try{p=s(y),m=!1}finally{m?or(h):to(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return Yr(h,c),Qr(C,h)},function(C){throw or(h),C}):(Yr(h,c),Qr(p,h))}if(!a||typeof a!="object"){if((p=s(a))===void 0&&(p=a),p===Ea&&(p=void 0),n.D&&so(p,!0),c){var v=[],b=[];ge("Patches").M(a,p,v,b),c(v,b)}return p}ce(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="function")return function(p){for(var h=arguments.length,y=Array(h>1?h-1:0),m=1;m<h;m++)y[m-1]=arguments[m];return n.produceWithPatches(p,function(v){return a.apply(void 0,[v].concat(y))})};var c,d,u=n.produce(a,s,function(p,h){c=p,d=h});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,d]}):[u,c,d]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=o.prototype;return e.createDraft=function(r){pe(r)||ce(8),ve(r)&&(r=Ns(r));var n=ya(this),a=ro(this,r,void 0);return a[M].C=!0,to(n),a},e.finishDraft=function(r,n){var a=r&&r[M],s=a.A;return Yr(s,n),Qr(void 0,s)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!xa&&ce(20),this.O=r},e.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var s=n[a];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}a>-1&&(n=n.slice(a+1));var c=ge("Patches").$;return ve(r)?c(r,n):this.produce(r,function(d){return c(d,n)})},o}(),re=new Fs,Us=re.produce,$l=re.produceWithPatches.bind(re),Wl=re.setAutoFreeze.bind(re),jl=re.setUseProxies.bind(re),Vl=re.applyPatches.bind(re),Kl=re.createDraft.bind(re),Zl=re.finishDraft.bind(re),ir=Us;function He(o){"@babel/helpers - typeof";return He=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},He(o)}function Ia(o,e){if(He(o)!="object"||!o)return o;var r=o[Symbol.toPrimitive];if(r!==void 0){var n=r.call(o,e||"default");if(He(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function Ta(o){var e=Ia(o,"string");return He(e)=="symbol"?e:e+""}function Ra(o,e,r){return(e=Ta(e))in o?Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[e]=r,o}function _a(o,e){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),r.push.apply(r,n)}return r}function uo(o){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?_a(Object(r),!0).forEach(function(n){Ra(o,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):_a(Object(r)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(r,n))})}return o}function K(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var La=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),po=function(){return Math.random().toString(36).substring(7).split("").join(".")},sr={INIT:"@@redux/INIT"+po(),REPLACE:"@@redux/REPLACE"+po(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+po()}};function Bs(o){if(typeof o!="object"||o===null)return!1;for(var e=o;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(o)===e}function fo(o,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(K(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(K(1));return r(fo)(o,e)}if(typeof o!="function")throw new Error(K(2));var a=o,s=e,c=[],d=c,u=!1;function p(){d===c&&(d=c.slice())}function h(){if(u)throw new Error(K(3));return s}function y(C){if(typeof C!="function")throw new Error(K(4));if(u)throw new Error(K(5));var w=!0;return p(),d.push(C),function(){if(w){if(u)throw new Error(K(6));w=!1,p();var T=d.indexOf(C);d.splice(T,1),c=null}}}function m(C){if(!Bs(C))throw new Error(K(7));if(typeof C.type>"u")throw new Error(K(8));if(u)throw new Error(K(9));try{u=!0,s=a(s,C)}finally{u=!1}for(var w=c=d,I=0;I<w.length;I++){var T=w[I];T()}return C}function v(C){if(typeof C!="function")throw new Error(K(10));a=C,m({type:sr.REPLACE})}function b(){var C,w=y;return C={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(K(11));function D(){T.next&&T.next(h())}D();var L=w(D);return{unsubscribe:L}}},C[La]=function(){return this},C}return m({type:sr.INIT}),n={dispatch:m,subscribe:y,getState:h,replaceReducer:v},n[La]=b,n}function Hs(o){Object.keys(o).forEach(function(e){var r=o[e],n=r(void 0,{type:sr.INIT});if(typeof n>"u")throw new Error(K(12));if(typeof r(void 0,{type:sr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(K(13))})}function ka(o){for(var e=Object.keys(o),r={},n=0;n<e.length;n++){var a=e[n];typeof o[a]=="function"&&(r[a]=o[a])}var s=Object.keys(r),c,d;try{Hs(r)}catch(u){d=u}return function(p,h){if(p===void 0&&(p={}),d)throw d;if(0)var y;for(var m=!1,v={},b=0;b<s.length;b++){var C=s[b],w=r[C],I=p[C],T=w(I,h);if(typeof T>"u"){var D=h&&h.type;throw new Error(K(14))}v[C]=T,m=m||T!==I}return m=m||s.length!==Object.keys(p).length,m?v:p}}function lt(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Na(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),s=function(){throw new Error(K(15))},c={getState:a.getState,dispatch:function(){return s.apply(void 0,arguments)}},d=e.map(function(u){return u(c)});return s=lt.apply(void 0,d)(a.dispatch),uo(uo({},a),{},{dispatch:s})}}}function Pa(o){var e=function(n){var a=n.dispatch,s=n.getState;return function(c){return function(d){return typeof d=="function"?d(a,s,o):c(d)}}};return e}var Da=Pa();Da.withExtraArgument=Pa;var ho=Da;var Ha=function(){var o=function(e,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])},o(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),zs=function(o,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(p){return function(h){return u([p,h])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,a=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){r.label=p[1];break}if(p[0]===6&&r.label<s[1]){r.label=s[1],s=p;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(p);break}s[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(o,r)}catch(h){p=[6,h],a=0}finally{n=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},dt=function(o,e){for(var r=0,n=e.length,a=o.length;r<n;r++,a++)o[a]=e[r];return o},Gs=Object.defineProperty,$s=Object.defineProperties,Ws=Object.getOwnPropertyDescriptors,Ma=Object.getOwnPropertySymbols,js=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable,Fa=function(o,e,r){return e in o?Gs(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r},Ie=function(o,e){for(var r in e||(e={}))js.call(e,r)&&Fa(o,r,e[r]);if(Ma)for(var n=0,a=Ma(e);n<a.length;n++){var r=a[n];Vs.call(e,r)&&Fa(o,r,e[r])}return o},yo=function(o,e){return $s(o,Ws(e))},Ks=function(o,e,r){return new Promise(function(n,a){var s=function(u){try{d(r.next(u))}catch(p){a(p)}},c=function(u){try{d(r.throw(u))}catch(p){a(p)}},d=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,c)};d((r=r.apply(o,e)).next())})};var Zs=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?lt:lt.apply(null,arguments)},pd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}};function qs(o){if(typeof o!="object"||o===null)return!1;var e=Object.getPrototypeOf(o);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Ys=function(o){Ha(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,dt([void 0],r[0].concat(this)))):new(e.bind.apply(e,dt([void 0],r.concat(this))))},e}(Array),Qs=function(o){Ha(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,dt([void 0],r[0].concat(this)))):new(e.bind.apply(e,dt([void 0],r.concat(this))))},e}(Array);function bo(o){return pe(o)?ir(o,function(){}):o}function Xs(o){return typeof o=="boolean"}function Js(){return function(e){return ec(e)}}function ec(o){o===void 0&&(o={});var e=o.thunk,r=e===void 0?!0:e,n=o.immutableCheck,a=n===void 0?!0:n,s=o.serializableCheck,c=s===void 0?!0:s,d=new Ys;if(r&&(Xs(r)?d.push(ho):d.push(ho.withExtraArgument(r.extraArgument))),0){if(a)var u;if(c)var p}return d}var go=!0;function za(o){var e=Js(),r=o||{},n=r.reducer,a=n===void 0?void 0:n,s=r.middleware,c=s===void 0?e():s,d=r.devTools,u=d===void 0?!0:d,p=r.preloadedState,h=p===void 0?void 0:p,y=r.enhancers,m=y===void 0?void 0:y,v;if(typeof a=="function")v=a;else if(qs(a))v=ka(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=c;if(typeof b=="function"&&(b=b(e),!go&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!go&&b.some(function(L){return typeof L!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=Na.apply(void 0,b),w=lt;u&&(w=Zs(Ie({trace:!go},typeof u=="object"&&u)));var I=new Qs(C),T=I;Array.isArray(m)?T=dt([C],m):typeof m=="function"&&(T=m(I));var D=w.apply(void 0,T);return fo(v,h,D)}function Te(o,e){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var s=e.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return Ie(Ie({type:o,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:o,payload:n[0]}}return r.toString=function(){return""+o},r.type=o,r.match=function(n){return n.type===o},r}function Ga(o){var e={},r=[],n,a={addCase:function(s,c){var d=typeof s=="string"?s:s.type;if(d in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[d]=c,a},addMatcher:function(s,c){return r.push({matcher:s,reducer:c}),a},addDefaultCase:function(s){return n=s,a}};return o(a),[e,r,n]}function tc(o){return typeof o=="function"}function rc(o,e,r,n){r===void 0&&(r=[]);var a=typeof e=="function"?Ga(e):[e,r,n],s=a[0],c=a[1],d=a[2],u;if(tc(o))u=function(){return bo(o())};else{var p=bo(o);u=function(){return p}}function h(y,m){y===void 0&&(y=u());var v=dt([s[m.type]],c.filter(function(b){var C=b.matcher;return C(m)}).map(function(b){var C=b.reducer;return C}));return v.filter(function(b){return!!b}).length===0&&(v=[d]),v.reduce(function(b,C){if(C)if(ve(b)){var w=b,I=C(w,m);return I===void 0?b:I}else{if(pe(b))return ir(b,function(T){return C(T,m)});var I=C(b,m);if(I===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return b},y)}return h.getInitialState=u,h}function oc(o,e){return o+"/"+e}function $a(o){var e=o.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof o.initialState=="function"?o.initialState:bo(o.initialState),n=o.reducers||{},a=Object.keys(n),s={},c={},d={};a.forEach(function(h){var y=n[h],m=oc(e,h),v,b;"reducer"in y?(v=y.reducer,b=y.prepare):v=y,s[h]=v,c[m]=v,d[h]=b?Te(m,b):Te(m)});function u(){var h=typeof o.extraReducers=="function"?Ga(o.extraReducers):[o.extraReducers],y=h[0],m=y===void 0?{}:y,v=h[1],b=v===void 0?[]:v,C=h[2],w=C===void 0?void 0:C,I=Ie(Ie({},m),c);return rc(r,function(T){for(var D in I)T.addCase(D,I[D]);for(var L=0,$=b;L<$.length;L++){var ue=$[L];T.addMatcher(ue.matcher,ue.reducer)}w&&T.addDefaultCase(w)})}var p;return{name:e,reducer:function(h,y){return p||(p=u()),p(h,y)},actions:d,caseReducers:s,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var nc="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ac=function(o){o===void 0&&(o=21);for(var e="",r=o;r--;)e+=nc[Math.random()*64|0];return e},ic=["name","message","stack","code"],mo=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),Ua=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),sc=function(o){if(typeof o=="object"&&o!==null){for(var e={},r=0,n=ic;r<n.length;r++){var a=n[r];typeof o[a]=="string"&&(e[a]=o[a])}return e}return{message:String(o)}},gd=function(){function o(e,r,n){var a=Te(e+"/fulfilled",function(h,y,m,v){return{payload:h,meta:yo(Ie({},v||{}),{arg:m,requestId:y,requestStatus:"fulfilled"})}}),s=Te(e+"/pending",function(h,y,m){return{payload:void 0,meta:yo(Ie({},m||{}),{arg:y,requestId:h,requestStatus:"pending"})}}),c=Te(e+"/rejected",function(h,y,m,v,b){return{payload:v,error:(n&&n.serializeError||sc)(h||"Rejected"),meta:yo(Ie({},b||{}),{arg:m,requestId:y,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),d=!1,u=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(y,m,v){var b=n?.idGenerator?n.idGenerator(h):ac(),C=new u,w,I=!1;function T(L){w=L,C.abort()}var D=function(){return Ks(this,null,function(){var L,$,ue,ke,X,Ne,Xe;return zs(this,function(f){switch(f.label){case 0:return f.trys.push([0,4,,5]),ke=(L=n?.condition)==null?void 0:L.call(n,h,{getState:m,extra:v}),lc(ke)?[4,ke]:[3,2];case 1:ke=f.sent(),f.label=2;case 2:if(ke===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,X=new Promise(function(g,E){return C.signal.addEventListener("abort",function(){return E({name:"AbortError",message:w||"Aborted"})})}),y(s(b,h,($=n?.getPendingMeta)==null?void 0:$.call(n,{requestId:b,arg:h},{getState:m,extra:v}))),[4,Promise.race([X,Promise.resolve(r(h,{dispatch:y,getState:m,extra:v,requestId:b,signal:C.signal,abort:T,rejectWithValue:function(g,E){return new mo(g,E)},fulfillWithValue:function(g,E){return new Ua(g,E)}})).then(function(g){if(g instanceof mo)throw g;return g instanceof Ua?a(g.payload,b,h,g.meta):a(g,b,h)})])];case 3:return ue=f.sent(),[3,5];case 4:return Ne=f.sent(),ue=Ne instanceof mo?c(null,b,h,Ne.payload,Ne.meta):c(Ne,b,h),[3,5];case 5:return Xe=n&&!n.dispatchConditionRejection&&c.match(ue)&&ue.meta.condition,Xe||y(ue),[2,ue]}})})}();return Object.assign(D,{abort:T,requestId:b,arg:h,unwrap:function(){return D.then(cc)}})}}return Object.assign(p,{pending:s,rejected:c,fulfilled:a,typePrefix:e})}return o.withTypes=function(){return o},o}();function cc(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function lc(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var Wa="listener",ja="completed",Va="cancelled",md="task-"+Va,bd="task-"+ja,vd=Wa+"-"+Va,xd=Wa+"-"+ja;var vo="listenerMiddleware";var Sd=Te(vo+"/add"),Cd=Te(vo+"/removeAll"),Od=Te(vo+"/remove");var Ba,Ad=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(o){return(Ba||(Ba=Promise.resolve())).then(o).catch(function(e){return setTimeout(function(){throw e},0)})},dc=function(o){return function(e){setTimeout(e,o)}},Ed=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:dc(10);Aa();var uc=Qt(Symbol("withEventBus"),function(o,e){return class extends o{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}),cr=class extends uc(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ka=class o extends cr{static get(e){var r;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,s=window.ftReduxStores[n];if(rr(s))return s;if(a==null)return;let c=$a({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=za({reducer:(u,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let h=ra(c.getInitialState());for(let y of p.keeping)h[y]=(u??h)[y];return h}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...p.overwrites};return c.reducer(u,p)}});return window.ftReduxStores[a.name]=new o(c,d,a.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Xt;let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,c,d)=>{let u=c,p=s[u];return p?(...h)=>{let y=p(...h.map(a));return this.reduxStore.dispatch(y),y}:h=>{this.setState({[u]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var lr=class{static format(e,r,n,a,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,a,!!s)):this.getIntlDateTime(e,r,n,a,!!s)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,a,s){let c=typeof e=="string"?new Date(e):e,d=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(c),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(c);return s?u:a?`${d} ${u}`:d}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var dr=S(_()),pc="ft-app-info",xe=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:e})}};xe.eventName="authentication-change";var Pt=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:e})}};Pt.eventName="ui-locale-changed";var fc={session:(o,e)=>{(0,dr.deepEqual)(o.session,e.payload)||(o.session=e.payload,setTimeout(()=>A.dispatchEvent(new xe(e.payload)),0))}},A=dr.FtReduxStore.get({name:pc,reducers:fc,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Za=S(_()),ur=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Jd=(0,Za.applyMixinOnce)(Symbol("withDateFormat"),function(o){class e extends o{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(A)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,s;return((s=(a=this.metadataDescriptors.find(d=>d.key===n))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1)?d=>lr.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return ur([(0,xo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),ur([(0,xo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),ur([qr({store:A.name,selector:r=>{var n,a;return(a=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),ur([qr({store:A.name})],e.prototype,"uiLocale",void 0),e});var gr=S(_());var So=S(_());var ze=class o{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=A.getState(),a=e??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(e){return new Promise(r=>{let n=o.get(e);if(n)r(n);else{let a=A.subscribe(()=>{n=o.get(e),n&&(a(),r(n))})}})}};var ut=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:ze.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ze.await()}};var Z=class extends ut{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(s,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([d],[u])=>d.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new So.CacheRegistry,this.cache=e?a.commonCache:new So.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var pr=class extends Z{async listMySearches(){let{session:e}=A.getState();return be(e,P.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var fr=class extends Z{async listMyBookmarks(){let e=A.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var hr=class extends Z{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=A.getState().session;return!!e?.sessionAuthenticated}};var yr=class extends Z{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=A.getState().session;return!!e?.sessionAuthenticated}};var hc="ft-user-assets",yc={setAssetCount:(o,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;o.assetCounts.allAsset[r]=n},clearAssetCount:o=>{Object.values(se).forEach(e=>{o.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(o,e)=>{let r=e.payload.mapId;o.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:o=>{o.assetCounts.bookmarkByMap={}},addAsset:(o,e)=>{let{assetType:r,mapId:n,asset:a}=e.payload;Oo(o,r,[...Co(o,r),a]),qa(o,r,1,n),Ya(o,a)},editAsset:(o,e)=>{let{assetType:r,asset:n}=e.payload;Oo(o,r,Co(o,r).map(a=>a.id===n.id?n:a)),Ya(o,n)},removeAsset:(o,e)=>{let{assetType:r,mapId:n,assetId:a}=e.payload;Oo(o,r,Co(o,r).filter(s=>s.id!==a)),qa(o,r,-1,n)}},Qa={[se.SEARCHES]:"savedSearches",[se.BOOKMARKS]:"bookmarks",[se.BOOKS]:void 0,[se.COLLECTIONS]:void 0},Co=(o,e)=>{var r;let n=Qa[e];return n?(r=o[n])!==null&&r!==void 0?r:[]:[]},Oo=(o,e,r)=>{let n=Qa[e];n&&(o[n]=r)},qa=(o,e,r,n)=>{let a=o.assetCounts.allAsset[e];if(a!==void 0&&(o.assetCounts.allAsset[e]=Math.max(0,a+r),e===se.BOOKMARKS&&n)){let s=o.assetCounts.bookmarkByMap[n];o.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},Ya=(o,e)=>{let r=o.assetLabels.map(a=>a.title),n=e.labels.filter(a=>!r.includes(a)).map(a=>({title:a}));o.assetLabels.push(...n)},oe=gr.FtReduxStore.get({name:hc,reducers:yc,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(se).map(o=>[o,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ao=class{constructor(e=new hr,r=new yr){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=A.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new fr,this.savedSearchesService=new pr,A.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=A.getState();(0,gr.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),oe.actions.clearAssetCount(),oe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),oe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),oe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();oe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();oe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&oe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&oe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(oe.getState().assetCounts.bookmarkByMap).length!==0;e===se.BOOKMARKS&&r&&oe.actions.clearBookmarkCountByMap(),oe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;oe.actions.bookmarks(r)}}},Eo=new Ao;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Eo);var wo=class{addCommand(e,r=!1){A.commands.add(e,r)}consumeCommand(e){return A.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new wo;var le=S(_());var Xa,pt=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},gc=Symbol("clearAfterUnitTest"),mr=class extends(0,le.withEventBus)(Z){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Xa]=()=>{this.defaultMessages={},this.cache=new le.CacheRegistry,this.listeners={}},this.currentUiLocale=A.getState().uiLocale,A.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=A.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,le.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var a;let s=e.toLowerCase(),c=this.resolveContext(s);return new le.ParametrizedLabelResolver((a=this.defaultMessages[s])!==null&&a!==void 0?a:{},c).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(a){!(a instanceof le.CanceledPromiseError)&&r&&console.error(a)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new pt({loadedContexts:e})),this.dispatchEvent(new pt({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new pt({loadedContexts:[e]})),this.dispatchEvent(new pt({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,le.delay)(0).then(()=>n()).catch(()=>null)))}};Xa=gc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends mr{constructor(){super(async(o,e)=>(await this.awaitApi).getFluidTopicsMessageContext(o,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends mr{constructor(){super(async(o,e)=>(await this.awaitApi).getCustomMessageContext(o,e))}});var Ja=window.FluidTopicsI18nService,Pu=window.FluidTopicsCustomI18nService;var ei=S(_()),Io=class{highlightHtml(e,r,n){(0,ei.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Io;var ti=S(_());var To=class{isDate(e){var r,n,a,s;return(s=(a=((n=(r=A.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===e))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1}format(e,r){var n,a,s,c;if(e==null)return"";try{return ti.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:A.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(c=r?.onlyTime)!==null&&c!==void 0?c:!1)}catch(d){throw console.error(`Date ${JSON.stringify(e)} is not valid`,d),d}}};window.FluidTopicsDateService=new To;var ri=S(_());var Dt=class{static get(e,r){var n,a;let s=A.getState(),{lang:c,region:d}=(a=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new ri.SearchPlaceConverter(s.baseUrl,e??20,s.searchInAllLanguagesAllowed,r??`${c}-${d}`)}};var br=class extends Z{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on-demand_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([n,a])=>Array.isArray(a)?[n,a.map(s=>typeof s=="object"&&s!=null&&!Array.isArray(s)?this.sortEventArrays(s):s).sort((s,c)=>typeof s=="object"&&s!==null&&"key"in s?s.key.localeCompare(c.key):typeof s=="string"&&typeof c=="string"?s.localeCompare(c):String(s).localeCompare(String(c)))]:typeof a=="object"&&a!==null?[n,this.sortEventArrays(a)]:[n,a]);return Object.fromEntries(r)}sendEvents(e,r){let n="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>n).catch(a=>(console.info(r),console.debug(a),n)),1e3)}};var Ro=class{urlToSearchRequest(e){return Dt.get().parse(e)}searchRequestToUrl(e){return Dt.get().serialize(e)}};window.FluidTopicsUrlService=new Ro;var Re=S(_());var Ge=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:{currentItem:e}})}};Ge.eventName="change";var _o=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},oi=new _o;var vr=class o extends Re.WithEventBus{static build(){return new o(window.history,oi,()=>window.location,!1)}constructor(e,r,n,a){var s,c;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(c=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&c!==void 0?c:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Re.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Ge(this.currentItem())),0)}installProxies(){let e=r=>(n,a,[s,c,d])=>{let u=r(),p={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:typeof d=="string"?d:(d??this.windowLocation()).href};n.apply(a,[p,c,d]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Ge.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Ge.eventName,e)}currentItem(){return(0,Re.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Re.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Re.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let a=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(a=s),s++;return a}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let a=r??this.currentState.majorStateId,s=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=vr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(o),removeHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(o)});var ni=S(j());var ai=ni.css`
|
|
50
|
+
`;var ci=S(j()),ne=S(J()),We=S(_());var $e=S(_());function ii(o,e){let{authenticationRequired:r,session:n}=A.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):o()}var xr=class extends ut{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Lo=class o extends $e.FtStateManager{static build(e){return new o(A,e)}constructor(e,r){super(),this.store=e,this.cache=new $e.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new xr,this.cleanSessionDebouncer=new $e.Debouncer,this.reloadDebouncer=new $e.Debouncer(500),this.apiProvider=r??(()=>ze.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(xe.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>ii(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){var r,n,a,s,c;this.localesConfiguration=e,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((r=this.localesConfiguration.availableUiLocales)!==null&&r!==void 0?r:[]),this.store.actions.searchInAllLanguagesAllowed((n=this.localesConfiguration.allLanguagesAllowed)!==null&&n!==void 0?n:!1),this.store.actions.searchLanguageSetsUiLanguage((a=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&a!==void 0?a:!1),this.store.actions.uiLanguageSetsSearchLanguage((s=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&s!==void 0?s:!1),this.store.actions.uiLanguageSetsReaderLanguage((c=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&c!==void 0?c:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Pt(r)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},si=Lo.build();var q=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},B=class extends We.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=si}render(){return ci.html`
|
|
51
51
|
<slot></slot>
|
|
52
|
-
`}connectedCallback(){super.connectedCallback(),S.addEventListener(be.eventName,this.reloadConfiguration)}disconnectedCallback(){S.addEventListener(be.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,n,a,s,c,d,u;super.update(e),e.has("baseUrl")&&(S.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&S.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&S.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&S.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&S.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&S.actions.noCustom(this.noCustom),e.has("editorMode")&&S.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&S.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&S.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>qa.addContext(p)),e.has("openExternalDocumentInNewTab")&&S.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&S.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&S.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(S.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),S.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),S.actions.searchInAllLanguagesAllowed((c=(s=this.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),e.has("authenticationRequired")&&S.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&S.actions.availableContentLocales((u=(d=this.availableContentLocales)===null||d===void 0?void 0:d.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>ri(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};F.elementDefinitions={};F.styles=ti;H([(0,K.property)()],F.prototype,"baseUrl",void 0);H([(0,K.property)()],F.prototype,"apiIntegrationIdentifier",void 0);H([(0,K.property)()],F.prototype,"apiIntegrationAppVersion",void 0);H([(0,K.property)()],F.prototype,"uiLocale",void 0);H([(0,pe.jsonProperty)(null)],F.prototype,"availableUiLocales",void 0);H([(0,pe.jsonProperty)(null)],F.prototype,"metadataConfiguration",void 0);H([(0,K.property)({type:Boolean})],F.prototype,"editorMode",void 0);H([(0,K.property)({type:Boolean})],F.prototype,"noCustom",void 0);H([(0,K.property)({type:Boolean})],F.prototype,"openExternalDocumentInNewTab",void 0);H([(0,K.property)({converter:{fromAttribute(o){return o==="false"?!1:o==="true"||(o??!1)}}})],F.prototype,"noCustomComponent",void 0);H([(0,K.property)({type:Boolean})],F.prototype,"withManualResources",void 0);H([(0,K.property)({type:Boolean})],F.prototype,"navigatorOnline",void 0);H([(0,K.property)({type:Boolean})],F.prototype,"forcedOffline",void 0);H([(0,K.property)({type:Object})],F.prototype,"apiProvider",void 0);H([(0,K.property)({type:Boolean})],F.prototype,"authenticationRequired",void 0);H([(0,pe.jsonProperty)([])],F.prototype,"messageContexts",void 0);H([(0,pe.jsonProperty)(void 0)],F.prototype,"session",void 0);H([(0,K.state)()],F.prototype,"localesConfiguration",void 0);H([(0,K.state)()],F.prototype,"availableContentLocales",void 0);var ni=C(_());(0,ni.customElement)("ft-app-context")(F);var br=class extends Y{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,n){super(!1,r),this.converter=e,this._mapId=n,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return xe((r=(e=S.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(a=>this.fetchMapRating(a)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,r){return e+(r?"-destinationLanguage-"+r?.destinationLanguage:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e),()=>this.fetchPages(this.mapId,e).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getTocNode(e,r){return(await this.getEnrichedToc(r)).nodeByTocId[e]}getTocNodeNow(e,r){var n;return(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByTocId[e]}getTocNodeNowByUrl(e,r){var n,a;let s=this.getMapNow(r);return s?.prettyUrl==e||`${s?.id}/root`===e?(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.toc[0]:(a=this.getEnrichedTocNow(r))===null||a===void 0?void 0:a.nodeByUrl[e]}async getPage(e,r){let n=await this.getEnrichedToc(r);return n.pages[e-1]||n.pages[0]}async getPageByTocId(e,r){let n=await this.getEnrichedToc(r);return n.pageByTocId[e]||n.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(e,r))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,n){return this.cache.get("topic-relatives-"+[e,r,...n].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,n))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,r,n){let a=this.getNavigationData(e,r,n),s=this.getReaderLinkPrefix()+(a.prettyUrl?a.prettyUrl:`${a.mapId}/${a.tocId}`),c=new URL(s,this.api.tenantBaseUrl);return a.page!=null&&c.searchParams.set("page",`${a.page}`),a.prettyUrlDuplicated&&c.searchParams.set("tocId",a.tocId),a.section!=null&&c.searchParams.set("section",a.section),c.href}getNavigationData(e,r,n,a){var s,c;e=e||"root";let d=this.getEnrichedTocNow(a),u=d?.pageByTocId[e],p=d?.nodeByTocId[e],h=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(s=p?.title)!==null&&s!==void 0?s:"",untranslatedTopicTitle:p?.untranslatedTitle,page:r&&u&&u.number!==r?r:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(c=d?.duplicatedPrettyUrls.has(h??""))!==null&&c!==void 0?c:!1,section:n}}async getAccurateNavigationData(e,r,n,a){return await this.getEnrichedToc(a),this.getNavigationData(e,r,n,a)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var n;return r?{type:r.topics.type,rating:(n=r.topics)===null||n===void 0?void 0:n.ratings.find(a=>a.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,n){return this.makeRateTopicRequest(e,r,n).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=S.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,n){return this.makeTopicFeedbackRequest(e,r,n)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,r){let n=this.getTocNodeNow(e,r),a=[{tocId:n.tocId,title:n.title,untranslatedTitle:n.untranslatedTitle}],s=this.getTocNodeNow(n.parentTocId,r);for(;s;)a.unshift({tocId:s.tocId,title:s.title,untranslatedTitle:s.untranslatedTitle}),s=this.getTocNodeNow(s.parentTocId,r);return a}isFeatureAccessible(e,{session:r}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case ve.FEEDBACK:return xe(r??[],P.FEEDBACK_USER);case ve.RATING:return xe(r??[],P.RATING_USER);case ve.PRINT:return xe(r??[],P.PRINT_USER);case ve.BOOKMARK:return!!r?.sessionAuthenticated;case ve.COLLECTIONS:return xe(r??[],P.COLLECTION_USER);case ve.PERSONAL_BOOKS:return xe(r??[],P.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var vr=class o extends br{static async build(e){return new o(new $t,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,r){let n=await this.api.getMap(e,r);return this.fingerprint=n.fingerprint,n}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,r){return await this.getMap(r),this.api.getPages(e,this.fingerprint,r)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let n={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(n)}fetchRelativesForTopicInMap(e,r,n){let a={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:n}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(a)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,n){return this.api.rateTopic(this.mapId,e,r,n)}makeTopicFeedbackRequest(e,r,n){return this.api.sendTopicFeedback(this.mapId,e,r,n)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var xr=class o{static build(e,r){return new o(fn(e.trim()||"context"),r??vr.build)}loaded(){return(0,fe.waitUntil)(()=>this._loaded)}constructor(e,r,n,a){this.store=e,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new fe.Debouncer(10),this.analyticsEventsService=a??new gr,this.initService(r)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return(0,fe.waitFor)(()=>this.service)}async navigateToTopic(e,r,n){await this.loaded();let a=await this.awaitService(),s=await(n!=null?a.getPage(n,this.getTranslationSettings()):a.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(s);let c=this.resolveValidNonRootTocId(e,s);this.store.actions.scrollTarget({tocId:c,section:r}),this.store.getState().visibleTopics[0]!==c&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,r){var n,a,s;let c=(n=e==="root"?void 0:e)!==null&&n!==void 0?n:r.rootTocId;return r.topics.includes(c)?c:(s=(a=r.topics[0])!==null&&a!==void 0?a:r.hiddenTopics[0])!==null&&s!==void 0?s:"root"}async navigateToPage(e){await this.loaded();let n=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(n)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(e){var r,n,a,s,c;try{e&&this.setTranslationLoading(!0);let d=u=>{throw e&&this.setTranslationError(!0),u};await Promise.all([this.loadConfiguration(),(r=this.service)===null||r===void 0?void 0:r.getMap(e).then(u=>this.store.actions.map(u)).catch(d),(n=this.service)===null||n===void 0?void 0:n.getToc(e).then(u=>this.store.actions.toc(u)).catch(d),(a=this.service)===null||a===void 0?void 0:a.getPagesToc(e).then(u=>this.store.actions.pagesToc(u)).catch(d),(s=this.service)===null||s===void 0?void 0:s.getPaginationConfiguration().then(u=>this.store.actions.paginationConfiguration(u)).catch(d),(c=this.service)===null||c===void 0?void 0:c.getTranslationError(e).then(u=>this.setTranslationError(u))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(d){this.errorHandler&&!(d instanceof fe.CanceledPromiseError)&&this.errorHandler(d)}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}fetchRelatives(){var e,r;let n=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument(this.store.getState().configuration.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.dispatchEvent(new Event(Fe.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let n=this.store.getState().relatives;if(n){let a=n.find(c=>{var d;return((d=c.map)===null||d===void 0?void 0:d.mapId)==this.store.getState().mapId}),s=(r=(e=S.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new fe.ClusteringHelper(n,a,this.metadataForSwitchToRelatives,s)}}async navigateToRelativeTopicIfFound(e){var r,n,a;await this.loaded();let s=await(0,fe.waitFor)(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),c=this.store.getState().mapId,u=await(await this.awaitService()).getRelativesForTopicInMap(c,s,[e]);if(!((a=(n=(r=u?.results)===null||r===void 0?void 0:r[0])===null||n===void 0?void 0:n.entries)===null||a===void 0)&&a[0]){let p=u.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),e&&this.sendDocumentOnDemandTranslateEvent(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(e=r.map)===null||e===void 0?void 0:e.lang}:void 0}setLinkPreviewDialogId(e){this.store.actions.linkPreviewDialogId(e)}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var r;let n=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(e));n&&this.store.actions.setTopicsRating({[e]:n})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}getAccurateNavigationData(e,r,n){return this.service.getAccurateNavigationData(e,r?.number,n?.section,this.getTranslationSettings())}buildBreadcrumb(e){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var r,n;let a=this.getTranslationSettings();return a?(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(e,a).then(s=>(s.isTranslationError&&this.setTranslationError(!0),s.content)):(n=this.service)===null||n===void 0?void 0:n.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(Fe.mapAttachmentsUpdate))}sendDocumentOnDemandTranslateEvent(e){let{editorMode:r,apiIntegrationIdentifier:n,apiIntegrationAppVersion:a}=S.getState(),s=this.store.getState(),c=s.map,d=s.translation.profileId;if(!(r||!c||!n||!a||!d))try{let u=this.analyticsEventsService.convertMapToAnalyticsDocument(c);this.analyticsEventsService.sendDocumentOnDemandTranslateEvent({name:"DOCUMENT__ON_DEMAND_TRANSLATE",offline:!1,appName:n,appVersion:a,sourceLanguage:this.parseLanguageToAnalyticsFormat(c.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e.code),profileId:d,document:u,translationOrigin:Vt.AI})}catch(u){console.warn("Failed to send on-demand document translate event:",u)}}parseLanguageToAnalyticsFormat(e){if(!e)return;let r=e.split("-");return r.length===2?{languageCode:r[0],countryCode:r[1]}:{languageCode:r[0],countryCode:""}}};var Sr=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},Cr=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},Or=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Ar=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Er=class extends Event{constructor(){super("ft-reader-map-not-found")}},wr=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Ir=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Tr=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var te=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},To=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}},z=class extends G.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new G.Debouncer(5),this.navigationDebouncer=new G.Debouncer(10),this.mapLoadedEventDebouncer=new G.Debouncer(50),this.addStore(S)}render(){return Nt.html`
|
|
52
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService()}disconnectedCallback(){super.disconnectedCallback()}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Ja.addContext(n)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};B.elementDefinitions={};B.styles=ai;q([(0,ne.property)()],B.prototype,"baseUrl",void 0);q([(0,ne.property)()],B.prototype,"apiIntegrationIdentifier",void 0);q([(0,ne.property)()],B.prototype,"apiIntegrationAppVersion",void 0);q([(0,ne.property)()],B.prototype,"uiLocale",void 0);q([(0,We.jsonProperty)(null)],B.prototype,"availableUiLocales",void 0);q([(0,We.jsonProperty)(null)],B.prototype,"metadataConfiguration",void 0);q([(0,ne.property)({type:Boolean})],B.prototype,"editorMode",void 0);q([(0,ne.property)({type:Boolean})],B.prototype,"noCustom",void 0);q([(0,ne.property)({type:Boolean})],B.prototype,"openExternalDocumentInNewTab",void 0);q([(0,ne.property)({converter:{fromAttribute(o){return o==="false"?!1:o==="true"||(o??!1)}}})],B.prototype,"noCustomComponent",void 0);q([(0,ne.property)({type:Boolean})],B.prototype,"withManualResources",void 0);q([(0,ne.property)({type:Boolean})],B.prototype,"navigatorOnline",void 0);q([(0,ne.property)({type:Boolean})],B.prototype,"forcedOffline",void 0);q([(0,ne.property)({type:Boolean})],B.prototype,"authenticationRequired",void 0);q([(0,We.jsonProperty)([])],B.prototype,"messageContexts",void 0);q([(0,We.jsonProperty)(void 0)],B.prototype,"session",void 0);var li=S(_());(0,li.customElement)("ft-app-context")(B);var Sr=class extends Z{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,n){super(!1,r),this.converter=e,this._mapId=n,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return be((r=(e=A.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(a=>this.fetchMapRating(a)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,r){return e+(r?"-destinationLanguage-"+r?.destinationLanguage:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e),()=>this.fetchPages(this.mapId,e).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getTocNode(e,r){return(await this.getEnrichedToc(r)).nodeByTocId[e]}getTocNodeNow(e,r){var n;return(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByTocId[e]}getTocNodeNowByUrl(e,r){var n,a;let s=this.getMapNow(r);return s?.prettyUrl==e||`${s?.id}/root`===e?(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.toc[0]:(a=this.getEnrichedTocNow(r))===null||a===void 0?void 0:a.nodeByUrl[e]}async getPage(e,r){let n=await this.getEnrichedToc(r);return n.pages[e-1]||n.pages[0]}async getPageByTocId(e,r){let n=await this.getEnrichedToc(r);return n.pageByTocId[e]||n.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(e,r))}async getTopicMetadataValue(e,r){let n=this.getTocNodeNow(e);if(!n)return;let a=await this.getTopicInfo(n);return a?.metadata.find(s=>s.key==r)}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,n){return this.cache.get("topic-relatives-"+[e,r,...n].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,n))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,r,n){let a=this.getNavigationData(e,r,n),s=this.getReaderLinkPrefix()+(a.prettyUrl?a.prettyUrl:`${a.mapId}/${a.tocId}`),c=new URL(s,this.api.tenantBaseUrl);return a.page!=null&&c.searchParams.set("page",`${a.page}`),a.prettyUrlDuplicated&&c.searchParams.set("tocId",a.tocId),a.section!=null&&c.searchParams.set("section",a.section),c.href}getNavigationData(e,r,n,a){var s,c;e=e||"root";let d=this.getEnrichedTocNow(a),u=d?.pageByTocId[e],p=d?.nodeByTocId[e],h=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(s=p?.title)!==null&&s!==void 0?s:"",untranslatedTopicTitle:p?.untranslatedTitle,page:r&&u&&u.number!==r?r:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(c=d?.duplicatedPrettyUrls.has(h??""))!==null&&c!==void 0?c:!1,section:n}}async getAccurateNavigationData(e,r,n,a){return await this.getEnrichedToc(a),this.getNavigationData(e,r,n,a)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var n;return r?{type:r.topics.type,rating:(n=r.topics)===null||n===void 0?void 0:n.ratings.find(a=>a.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,n){return this.makeRateTopicRequest(e,r,n).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=A.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,n){return this.makeTopicFeedbackRequest(e,r,n)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,r){let n=this.getTocNodeNow(e,r),a=[{tocId:n.tocId,title:n.title,untranslatedTitle:n.untranslatedTitle}],s=this.getTocNodeNow(n.parentTocId,r);for(;s;)a.unshift({tocId:s.tocId,title:s.title,untranslatedTitle:s.untranslatedTitle}),s=this.getTocNodeNow(s.parentTocId,r);return a}isFeatureAccessible(e,{session:r}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case me.FEEDBACK:return be(r??[],P.FEEDBACK_USER);case me.RATING:return be(r??[],P.RATING_USER);case me.PRINT:return be(r??[],P.PRINT_USER);case me.BOOKMARK:return!!r?.sessionAuthenticated;case me.COLLECTIONS:return be(r??[],P.COLLECTION_USER);case me.PERSONAL_BOOKS:return be(r??[],P.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Cr=class o extends Sr{static async build(e){return new o(new Vt,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,r){let n=await this.api.getMap(e,r);return this.fingerprint=n.fingerprint,n}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,r){return await this.getMap(r),this.api.getPages(e,this.fingerprint,r)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let n={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(n)}fetchRelativesForTopicInMap(e,r,n){let a={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:n}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(a)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,n){return this.api.rateTopic(this.mapId,e,r,n)}makeTopicFeedbackRequest(e,r,n){return this.api.sendTopicFeedback(this.mapId,e,r,n)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var mc="topicPivot";function di(o,e){let r=new URL(o);return e?.values.forEach(n=>{r.searchParams.append(mc,n)}),r.href}var Or=class o{static build(e,r){return new o(mn(e.trim()||"context"),r??Cr.build)}loaded(){return(0,ee.waitUntil)(()=>this._loaded)}constructor(e,r,n,a){this.store=e,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new ee.Debouncer(10),this.analyticsEventsService=a??new br,this.initService(r)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return(0,ee.waitFor)(()=>this.service)}async navigateToTopic(e,r,n){await this.loaded();let a=await this.awaitService(),s=await(n!=null?a.getPage(n,this.getTranslationSettings()):a.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(s);let c=this.resolveValidNonRootTocId(e,s);this.store.actions.scrollTarget({tocId:c,section:r}),this.store.getState().visibleTopics[0]!==c&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,r){var n,a,s;let c=(n=e==="root"?void 0:e)!==null&&n!==void 0?n:r.rootTocId;return r.topics.includes(c)?c:(s=(a=r.topics[0])!==null&&a!==void 0?a:r.hiddenTopics[0])!==null&&s!==void 0?s:"root"}async navigateToPage(e){await this.loaded();let n=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(n)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(e){var r,n,a,s,c;try{e&&this.setTranslationLoading(!0);let d=u=>{throw e&&this.setTranslationError(!0),u};await Promise.all([this.loadConfiguration(),(r=this.service)===null||r===void 0?void 0:r.getMap(e).then(u=>this.store.actions.map(u)).catch(d),(n=this.service)===null||n===void 0?void 0:n.getToc(e).then(u=>this.store.actions.toc(u)).catch(d),(a=this.service)===null||a===void 0?void 0:a.getPagesToc(e).then(u=>this.store.actions.pagesToc(u)).catch(d),(s=this.service)===null||s===void 0?void 0:s.getPaginationConfiguration().then(u=>this.store.actions.paginationConfiguration(u)).catch(d),(c=this.service)===null||c===void 0?void 0:c.getTranslationError(e).then(u=>this.setTranslationError(u))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(d){this.errorHandler&&!(d instanceof ee.CanceledPromiseError)&&this.errorHandler(d)}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}async fetchRelatives(){var e,r;let n=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);if(n!==void 0&&n.length>0){let a=await((r=this.service)===null||r===void 0?void 0:r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,n)),s=a?.results.flatMap(c=>c.entries);this.store.actions.relatives(s)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(De.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let n=this.store.getState().relatives;if(n){let a=n.find(c=>{var d;return((d=c.map)===null||d===void 0?void 0:d.mapId)==this.store.getState().mapId}),s=(r=(e=A.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new ee.ClusteringHelper(n,a,this.metadataForSwitchToRelatives,s)}}async navigateToRelativeTopicIfFound(e){var r,n,a;await this.loaded();let s=await(0,ee.waitFor)(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),c=this.store.getState().mapId,u=await(await this.awaitService()).getRelativesForTopicInMap(c,s,[e]);if(!((a=(n=(r=u?.results)===null||r===void 0?void 0:r[0])===null||n===void 0?void 0:n.entries)===null||a===void 0)&&a[0]){let p=u.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),e&&this.sendDocumentOnDemandTranslateEvent(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(e=r.map)===null||e===void 0?void 0:e.lang}:void 0}setLinkPreviewDialogId(e){this.store.actions.linkPreviewDialogId(e)}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var r;let n=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(e));n&&this.store.actions.setTopicsRating({[e]:n})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}getAccurateNavigationData(e,r,n){return this.service.getAccurateNavigationData(e,r?.number,n?.section,this.getTranslationSettings())}buildBreadcrumb(e){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var r,n;let a=this.getTranslationSettings();return a?(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(e,a).then(s=>(s.isTranslationError&&this.setTranslationError(!0),s.content)):(n=this.service)===null||n===void 0?void 0:n.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(De.mapAttachmentsUpdate))}async getRelativeDocumentUrlForLocale(e){var r,n,a;this.store.getState().relatives==null&&await this.fetchRelatives();let s=ee.ClusteringHelper.findResultWithMetadataValue((r=this.store.getState().relatives)!==null&&r!==void 0?r:[],"ft:locale",e),c=(0,ee.accessResultUrl)(s);if(c){let d=this.store.getState().visibleTopics[0],u=(n=this.store.getState().configuration)===null||n===void 0?void 0:n.relativeTopicPivotMetadata;if(u&&d){let p=await((a=this.service)===null||a===void 0?void 0:a.getTopicMetadataValue(d,u));c=di(c,p)}}return c}sendDocumentOnDemandTranslateEvent(e){let{editorMode:r,apiIntegrationIdentifier:n,apiIntegrationAppVersion:a}=A.getState(),s=this.store.getState(),c=s.map,d=s.translation.profileId;if(!(r||!c||!n||!a||!d))try{let u=this.analyticsEventsService.convertMapToAnalyticsDocument(c);this.analyticsEventsService.sendDocumentOnDemandTranslateEvent({name:"DOCUMENT__ON_DEMAND_TRANSLATE",offline:!1,appName:n,appVersion:a,sourceLanguage:this.parseLanguageToAnalyticsFormat(c.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e.code),profileId:d,document:u,translationOrigin:qt.AI})}catch(u){console.warn("Failed to send on-demand document translate event:",u)}}parseLanguageToAnalyticsFormat(e){if(!e)return;let r=e.split("-");return r.length===2?{languageCode:r[0],countryCode:r[1]}:{languageCode:r[0],countryCode:""}}};var Ar=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},Er=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},wr=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Ir=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Tr=class extends Event{constructor(){super("ft-reader-map-not-found")}},Rr=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},_r=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Lr=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var te=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},ko=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}},H=class extends z.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new z.Debouncer(5),this.navigationDebouncer=new z.Debouncer(10),this.mapLoadedEventDebouncer=new z.Debouncer(50),this.addStore(A)}render(){return Mt.html`
|
|
53
53
|
${this.importStyleIfNeeded()}
|
|
54
54
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
55
|
-
`}importStyleIfNeeded(){var e,r;let n=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!n||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?
|
|
55
|
+
`}importStyleIfNeeded(){var e,r;let n=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!n||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?Mt.nothing:Mt.html`
|
|
56
56
|
<style>
|
|
57
57
|
@import "${n}"
|
|
58
58
|
</style>
|
|
59
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=
|
|
59
|
+
`}get stateManager(){return this._stateManager==null&&(this._stateManager=Or.build(this.id||(0,z.randomId)(6),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let r=e.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("href",r),document.head.append(n)}window.FluidTopicsReaderService=new ko(this.stateManager)}),A.addEventListener(xe.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),A.addEventListener(xe.eventName,this.updateConfiguration)}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>e.has(r))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var r,n;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let a=e.get("scrollTarget");a?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(a.tocId,this.currentPage,a).then(s=>this.dispatchEvent(new wr(s))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((n=this.scrollTarget)===null||n===void 0?void 0:n.tocId)==null&&Promise.all(this.visibleTopics.map(a=>this.stateManager.getAccurateNavigationData(a,this.currentPage))).then(a=>{let s=a.filter(c=>c!=null&&c.topicTitle!=="").map(c=>({tocId:c.tocId,title:c.topicTitle,page:c.page,prettyUrl:c.prettyUrl,prettyUrlDuplicated:c.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(c.tocId)}));this.dispatchEvent(new Er(this.map,s))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Lr),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)}),this.tocId&&!this.section&&(this.stateManager.store.commands.clear(/^focus-topic-/),this.stateManager.store.commands.add({type:`focus-topic-${this.tocId}`}))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let r=e;r.status===401?this.dispatchEvent(new Rr):r.status===403?this.dispatchEvent(new _r):r.status===404?this.dispatchEvent(new Tr):this.dispatchEvent(new Ir(e))}reloadBookmarks(){Eo.reloadBookmarks()}async reloadRating(){var e,r;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Ar(this.map,this.toc))})}};H.styles=yn;te([(0,z.redux)({store:A.name})],H.prototype,"baseUrl",void 0);te([(0,z.redux)({store:A.name})],H.prototype,"session",void 0);te([(0,je.property)()],H.prototype,"mapId",void 0);te([(0,je.property)()],H.prototype,"tocId",void 0);te([(0,je.property)()],H.prototype,"section",void 0);te([(0,je.property)()],H.prototype,"topicPivot",void 0);te([(0,je.property)()],H.prototype,"searchInDocumentQuery",void 0);te([(0,z.numberProperty)({min:1})],H.prototype,"page",void 0);te([(0,z.redux)({store:"reader"})],H.prototype,"map",void 0);te([(0,z.redux)({store:"reader"})],H.prototype,"toc",void 0);te([(0,z.redux)({store:"reader"})],H.prototype,"visibleTopics",void 0);te([(0,z.redux)({store:"reader"})],H.prototype,"currentPage",void 0);te([(0,z.redux)({store:"reader"})],H.prototype,"scrollTarget",void 0);te([(0,je.property)({attribute:!1})],H.prototype,"readerServiceProvider",void 0);var ui=S(_());(0,ui.customElement)("ft-reader-context")(H);var pi=S(j()),fi=S(_()),bc={position:fi.FtCssVariableFactory.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},hi=pi.css`
|
|
60
60
|
:host {
|
|
61
61
|
position: absolute;
|
|
62
62
|
top: 0;
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.ft-watermark-container {
|
|
70
|
-
position: ${
|
|
70
|
+
position: ${bc.position};
|
|
71
71
|
top: 0;
|
|
72
72
|
text-align: center;
|
|
73
73
|
}
|
|
@@ -75,28 +75,10 @@
|
|
|
75
75
|
.ft-watermark {
|
|
76
76
|
z-index: 79;
|
|
77
77
|
}
|
|
78
|
-
`;var
|
|
79
|
-
\f\r]`,
|
|
80
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),pi=/'/g,fi=/"/g,mi=/^(?:script|style|textarea|title)$/i,Mo=o=>(e,...r)=>({_$litType$:o,strings:e,values:r}),bi=Mo(1),vi=Mo(2),xi=Mo(3),Ft=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),hi=new WeakMap,Ve=Ke.createTreeWalker(Ke,129);function Si(o,e){if(!Fo(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return li!==void 0?li.createHTML(e):e}var hc=(o,e)=>{let r=o.length-1,n=[],a,s=e===2?"<svg>":e===3?"<math>":"",c=Pt;for(let d=0;d<r;d++){let u=o[d],p,h,y=-1,m=0;for(;m<u.length&&(c.lastIndex=m,h=c.exec(u),h!==null);)m=c.lastIndex,c===Pt?h[1]==="!--"?c=di:h[1]!==void 0?c=ui:h[2]!==void 0?(mi.test(h[2])&&(a=RegExp("</"+h[2],"g")),c=je):h[3]!==void 0&&(c=je):c===je?h[0]===">"?(c=a??Pt,y=-1):h[1]===void 0?y=-2:(y=c.lastIndex-h[2].length,p=h[1],c=h[3]===void 0?je:h[3]==='"'?fi:pi):c===fi||c===pi?c=je:c===di||c===ui?c=Pt:(c=je,a=void 0);let v=c===je&&o[d+1].startsWith("/>")?" ":"";s+=c===Pt?u+pc:y>=0?(n.push(p),u.slice(0,y)+yi+u.slice(y)+ke+v):u+ke+(y===-2?d:v)}return[Si(o,s+(o[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},Mt=class o{constructor({strings:e,_$litType$:r},n){let a;this.parts=[];let s=0,c=0,d=e.length-1,u=this.parts,[p,h]=hc(e,r);if(this.el=o.createElement(p,n),Ve.currentNode=this.el.content,r===2||r===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(a=Ve.nextNode())!==null&&u.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let y of a.getAttributeNames())if(y.endsWith(yi)){let m=h[c++],v=a.getAttribute(y).split(ke),b=/([.?@])?(.*)/.exec(m);u.push({type:1,index:s,name:b[2],strings:v,ctor:b[1]==="."?ko:b[1]==="?"?Lo:b[1]==="@"?No:pt}),a.removeAttribute(y)}else y.startsWith(ke)&&(u.push({type:6,index:s}),a.removeAttribute(y));if(mi.test(a.tagName)){let y=a.textContent.split(ke),m=y.length-1;if(m>0){a.textContent=Rr?Rr.emptyScript:"";for(let v=0;v<m;v++)a.append(y[v],_r()),Ve.nextNode(),u.push({type:2,index:++s});a.append(y[m],_r())}}}else if(a.nodeType===8)if(a.data===gi)u.push({type:2,index:s});else{let y=-1;for(;(y=a.data.indexOf(ke,y+1))!==-1;)u.push({type:7,index:s}),y+=ke.length-1}s++}}static createElement(e,r){let n=Ke.createElement("template");return n.innerHTML=e,n}};function ut(o,e,r=o,n){if(e===Ft)return e;let a=n!==void 0?r._$Co?.[n]:r._$Cl,s=Dt(e)?void 0:e._$litDirective$;return a?.constructor!==s&&(a?._$AO?.(!1),s===void 0?a=void 0:(a=new s(o),a._$AT(o,r,n)),n!==void 0?(r._$Co??=[])[n]=a:r._$Cl=a),a!==void 0&&(e=ut(o,a._$AS(o,e.values),a,n)),e}var _o=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,a=(e?.creationScope??Ke).importNode(r,!0);Ve.currentNode=a;let s=Ve.nextNode(),c=0,d=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new kr(s,s.nextSibling,this,e):u.type===1?p=new u.ctor(s,u.name,u.strings,this,e):u.type===6&&(p=new Po(s,this,e)),this._$AV.push(p),u=n[++d]}c!==u?.index&&(s=Ve.nextNode(),c++)}return Ve.currentNode=Ke,a}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},kr=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,a){this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=ut(this,e,r),Dt(e)?e===$||e==null||e===""?(this._$AH!==$&&this._$AR(),this._$AH=$):e!==this._$AH&&e!==Ft&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):fc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==$&&Dt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ke.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Mt.createElement(Si(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(r);else{let s=new _o(a,this),c=s.u(this.options);s.p(r),this.T(c),this._$AH=s}}_$AC(e){let r=hi.get(e.strings);return r===void 0&&hi.set(e.strings,r=new Mt(e)),r}k(e){Fo(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,a=0;for(let s of e)a===r.length?r.push(n=new o(this.O(_r()),this.O(_r()),this,this.options)):n=r[a],n._$AI(s),a++;a<r.length&&(this._$AR(n&&n._$AB.nextSibling,a),r.length=a)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,a,s){this.type=1,this._$AH=$,this._$AN=void 0,this.element=e,this.name=r,this._$AM=a,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=$}_$AI(e,r=this,n,a){let s=this.strings,c=!1;if(s===void 0)e=ut(this,e,r,0),c=!Dt(e)||e!==this._$AH&&e!==Ft,c&&(this._$AH=e);else{let d=e,u,p;for(e=s[0],u=0;u<s.length-1;u++)p=ut(this,d[n+u],r,u),p===Ft&&(p=this._$AH[u]),c||=!Dt(p)||p!==this._$AH[u],p===$?e=$:e!==$&&(e+=(p??"")+s[u+1]),this._$AH[u]=p}c&&!a&&this.j(e)}j(e){e===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ko=class extends pt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===$?void 0:e}},Lo=class extends pt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==$)}},No=class extends pt{constructor(e,r,n,a,s){super(e,r,n,a,s),this.type=5}_$AI(e,r=this){if((e=ut(this,e,r,0)??$)===Ft)return;let n=this._$AH,a=e===$&&n!==$||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==$&&(n===$||a);a&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Po=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ut(this,e)}};var yc=Do.litHtmlPolyfillSupport;yc?.(Mt,kr),(Do.litHtmlVersions??=[]).push("3.3.0");var Oi=Symbol.for(""),gc=o=>{if(o?.r===Oi)return o?._$litStatic$},ft=o=>({_$litStatic$:o,r:Oi});var Ci=new Map,Uo=o=>(e,...r)=>{let n=r.length,a,s,c=[],d=[],u,p=0,h=!1;for(;p<n;){for(u=e[p];p<n&&(s=r[p],(a=gc(s))!==void 0);)u+=a+e[++p],h=!0;p!==n&&d.push(s),c.push(u),p++}if(p===n&&c.push(e[n]),h){let y=c.join("$$lit$$");(e=Ci.get(y))===void 0&&(c.raw=c,Ci.set(y,e=c)),r=d}return o(e,...r)},ht=Uo(bi),sf=Uo(vi),cf=Uo(xi);var Bo=C(ee()),Fi=C(_());var Lr;(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"})(Lr||(Lr={}));var le=C(V()),x=C(_()),Ai=x.FtCssVariableFactory.extend("--ft-typography-font-family","",x.designSystemVariables.titleFont),Ce=x.FtCssVariableFactory.extend("--ft-typography-font-family","",x.designSystemVariables.contentFont),A={fontFamily:Ce,fontSize:x.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:x.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:x.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:x.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:x.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},yt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ai),fontSize:x.FtCssVariableFactory.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit")},gt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ai),fontSize:x.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit")},mt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit")},bt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit")},vt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit")},xt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit")},St={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit")},Ct={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit")},Ot={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase")},At={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase")},Ei=le.css`
|
|
78
|
+
`;var Tt=S(j()),Qe=S(J());var ds=S(Wr()),us=S(_());var Bo=globalThis,kr=Bo.trustedTypes,yi=kr?kr.createPolicy("lit-html",{createHTML:o=>o}):void 0,Si="$lit$",_e=`lit$${Math.random().toFixed(9).slice(2)}$`,Ci="?"+_e,vc=`<${Ci}>`,Ze=document,Nr=()=>Ze.createComment(""),Ut=o=>o===null||typeof o!="object"&&typeof o!="function",Ho=Array.isArray,xc=o=>Ho(o)||typeof o?.[Symbol.iterator]=="function",No=`[
|
|
79
|
+
\f\r]`,Ft=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gi=/-->/g,mi=/>/g,Ve=RegExp(`>|${No}(?:([^\\s"'>=/]+)(${No}*=${No}*(?:[^
|
|
80
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),bi=/'/g,vi=/"/g,Oi=/^(?:script|style|textarea|title)$/i,zo=o=>(e,...r)=>({_$litType$:o,strings:e,values:r}),Ai=zo(1),Ei=zo(2),wi=zo(3),Bt=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),xi=new WeakMap,Ke=Ze.createTreeWalker(Ze,129);function Ii(o,e){if(!Ho(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return yi!==void 0?yi.createHTML(e):e}var Sc=(o,e)=>{let r=o.length-1,n=[],a,s=e===2?"<svg>":e===3?"<math>":"",c=Ft;for(let d=0;d<r;d++){let u=o[d],p,h,y=-1,m=0;for(;m<u.length&&(c.lastIndex=m,h=c.exec(u),h!==null);)m=c.lastIndex,c===Ft?h[1]==="!--"?c=gi:h[1]!==void 0?c=mi:h[2]!==void 0?(Oi.test(h[2])&&(a=RegExp("</"+h[2],"g")),c=Ve):h[3]!==void 0&&(c=Ve):c===Ve?h[0]===">"?(c=a??Ft,y=-1):h[1]===void 0?y=-2:(y=c.lastIndex-h[2].length,p=h[1],c=h[3]===void 0?Ve:h[3]==='"'?vi:bi):c===vi||c===bi?c=Ve:c===gi||c===mi?c=Ft:(c=Ve,a=void 0);let v=c===Ve&&o[d+1].startsWith("/>")?" ":"";s+=c===Ft?u+vc:y>=0?(n.push(p),u.slice(0,y)+Si+u.slice(y)+_e+v):u+_e+(y===-2?d:v)}return[Ii(o,s+(o[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},Ht=class o{constructor({strings:e,_$litType$:r},n){let a;this.parts=[];let s=0,c=0,d=e.length-1,u=this.parts,[p,h]=Sc(e,r);if(this.el=o.createElement(p,n),Ke.currentNode=this.el.content,r===2||r===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(a=Ke.nextNode())!==null&&u.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let y of a.getAttributeNames())if(y.endsWith(Si)){let m=h[c++],v=a.getAttribute(y).split(_e),b=/([.?@])?(.*)/.exec(m);u.push({type:1,index:s,name:b[2],strings:v,ctor:b[1]==="."?Do:b[1]==="?"?Mo:b[1]==="@"?Fo:ht}),a.removeAttribute(y)}else y.startsWith(_e)&&(u.push({type:6,index:s}),a.removeAttribute(y));if(Oi.test(a.tagName)){let y=a.textContent.split(_e),m=y.length-1;if(m>0){a.textContent=kr?kr.emptyScript:"";for(let v=0;v<m;v++)a.append(y[v],Nr()),Ke.nextNode(),u.push({type:2,index:++s});a.append(y[m],Nr())}}}else if(a.nodeType===8)if(a.data===Ci)u.push({type:2,index:s});else{let y=-1;for(;(y=a.data.indexOf(_e,y+1))!==-1;)u.push({type:7,index:s}),y+=_e.length-1}s++}}static createElement(e,r){let n=Ze.createElement("template");return n.innerHTML=e,n}};function ft(o,e,r=o,n){if(e===Bt)return e;let a=n!==void 0?r._$Co?.[n]:r._$Cl,s=Ut(e)?void 0:e._$litDirective$;return a?.constructor!==s&&(a?._$AO?.(!1),s===void 0?a=void 0:(a=new s(o),a._$AT(o,r,n)),n!==void 0?(r._$Co??=[])[n]=a:r._$Cl=a),a!==void 0&&(e=ft(o,a._$AS(o,e.values),a,n)),e}var Po=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,a=(e?.creationScope??Ze).importNode(r,!0);Ke.currentNode=a;let s=Ke.nextNode(),c=0,d=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new Pr(s,s.nextSibling,this,e):u.type===1?p=new u.ctor(s,u.name,u.strings,this,e):u.type===6&&(p=new Uo(s,this,e)),this._$AV.push(p),u=n[++d]}c!==u?.index&&(s=Ke.nextNode(),c++)}return Ke.currentNode=Ze,a}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Pr=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,a){this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=ft(this,e,r),Ut(e)?e===G||e==null||e===""?(this._$AH!==G&&this._$AR(),this._$AH=G):e!==this._$AH&&e!==Bt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):xc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==G&&Ut(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ze.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Ht.createElement(Ii(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(r);else{let s=new Po(a,this),c=s.u(this.options);s.p(r),this.T(c),this._$AH=s}}_$AC(e){let r=xi.get(e.strings);return r===void 0&&xi.set(e.strings,r=new Ht(e)),r}k(e){Ho(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,a=0;for(let s of e)a===r.length?r.push(n=new o(this.O(Nr()),this.O(Nr()),this,this.options)):n=r[a],n._$AI(s),a++;a<r.length&&(this._$AR(n&&n._$AB.nextSibling,a),r.length=a)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ht=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,a,s){this.type=1,this._$AH=G,this._$AN=void 0,this.element=e,this.name=r,this._$AM=a,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=G}_$AI(e,r=this,n,a){let s=this.strings,c=!1;if(s===void 0)e=ft(this,e,r,0),c=!Ut(e)||e!==this._$AH&&e!==Bt,c&&(this._$AH=e);else{let d=e,u,p;for(e=s[0],u=0;u<s.length-1;u++)p=ft(this,d[n+u],r,u),p===Bt&&(p=this._$AH[u]),c||=!Ut(p)||p!==this._$AH[u],p===G?e=G:e!==G&&(e+=(p??"")+s[u+1]),this._$AH[u]=p}c&&!a&&this.j(e)}j(e){e===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Do=class extends ht{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===G?void 0:e}},Mo=class extends ht{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==G)}},Fo=class extends ht{constructor(e,r,n,a,s){super(e,r,n,a,s),this.type=5}_$AI(e,r=this){if((e=ft(this,e,r,0)??G)===Bt)return;let n=this._$AH,a=e===G&&n!==G||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==G&&(n===G||a);a&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Uo=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ft(this,e)}};var Cc=Bo.litHtmlPolyfillSupport;Cc?.(Ht,Pr),(Bo.litHtmlVersions??=[]).push("3.3.0");var Ri=Symbol.for(""),Oc=o=>{if(o?.r===Ri)return o?._$litStatic$},yt=o=>({_$litStatic$:o,r:Ri});var Ti=new Map,Go=o=>(e,...r)=>{let n=r.length,a,s,c=[],d=[],u,p=0,h=!1;for(;p<n;){for(u=e[p];p<n&&(s=r[p],(a=Oc(s))!==void 0);)u+=a+e[++p],h=!0;p!==n&&d.push(s),c.push(u),p++}if(p===n&&c.push(e[n]),h){let y=c.join("$$lit$$");(e=Ti.get(y))===void 0&&(c.raw=c,Ti.set(y,e=c)),r=d}return o(e,...r)},gt=Go(Ai),Af=Go(Ei),Ef=Go(wi);var $o=S(J()),Gi=S(_());var Dr;(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"})(Dr||(Dr={}));var de=S(j()),x=S(_()),_i=x.FtCssVariableFactory.extend("--ft-typography-font-family","",x.designSystemVariables.titleFont),Se=x.FtCssVariableFactory.extend("--ft-typography-font-family","",x.designSystemVariables.contentFont),O={fontFamily:Se,fontSize:x.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:x.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:x.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:x.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:x.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},mt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-title-font-family","",_i),fontSize:x.FtCssVariableFactory.extend("--ft-typography-title-font-size","",O.fontSize,"20px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",O.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",O.letterSpacing,"0.15px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-title-line-height","",O.lineHeight,"1.2"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",O.textTransform,"inherit")},bt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",_i),fontSize:x.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",O.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",O.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",O.letterSpacing,"0.105px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",O.lineHeight,"1.7"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",O.textTransform,"inherit")},vt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Se),fontSize:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",O.fontSize,"16px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",O.fontWeight,"600"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",O.letterSpacing,"0.144px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",O.lineHeight,"1.5"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",O.textTransform,"inherit")},xt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Se),fontSize:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",O.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",O.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",O.letterSpacing,"0.098px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",O.lineHeight,"1.7"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",O.textTransform,"inherit")},St={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Se),fontSize:x.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",O.fontSize,"16px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",O.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",O.letterSpacing,"0.496px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",O.lineHeight,"1.5"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",O.textTransform,"inherit")},Ct={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Se),fontSize:x.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",O.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",O.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",O.letterSpacing,"0.252px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",O.lineHeight,"1.4"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",O.textTransform,"inherit")},Ot={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Se),fontSize:x.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",O.fontSize,"12px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",O.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",O.letterSpacing,"0.396px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",O.lineHeight,"1.33"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",O.textTransform,"inherit")},At={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Se),fontSize:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",O.fontSize,"10px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",O.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",O.letterSpacing,"0.33px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",O.lineHeight,"1.6"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",O.textTransform,"inherit")},Et={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Se),fontSize:x.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",O.fontSize,"10px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",O.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",O.letterSpacing,"1.5px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",O.lineHeight,"1.6"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",O.textTransform,"uppercase")},wt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Se),fontSize:x.FtCssVariableFactory.extend("--ft-typography-button-font-size","",O.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",O.fontWeight,"600"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",O.letterSpacing,"1.246px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-button-line-height","",O.lineHeight,"1.15"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",O.textTransform,"uppercase")},Li=de.css`
|
|
81
81
|
.ft-typography--title {
|
|
82
|
-
font-family: ${yt.fontFamily};
|
|
83
|
-
font-size: ${yt.fontSize};
|
|
84
|
-
font-weight: ${yt.fontWeight};
|
|
85
|
-
letter-spacing: ${yt.letterSpacing};
|
|
86
|
-
line-height: ${yt.lineHeight};
|
|
87
|
-
text-transform: ${yt.textTransform};
|
|
88
|
-
}
|
|
89
|
-
`,wi=le.css`
|
|
90
|
-
.ft-typography--title-dense {
|
|
91
|
-
font-family: ${gt.fontFamily};
|
|
92
|
-
font-size: ${gt.fontSize};
|
|
93
|
-
font-weight: ${gt.fontWeight};
|
|
94
|
-
letter-spacing: ${gt.letterSpacing};
|
|
95
|
-
line-height: ${gt.lineHeight};
|
|
96
|
-
text-transform: ${gt.textTransform};
|
|
97
|
-
}
|
|
98
|
-
`,Ii=le.css`
|
|
99
|
-
.ft-typography--subtitle1 {
|
|
100
82
|
font-family: ${mt.fontFamily};
|
|
101
83
|
font-size: ${mt.fontSize};
|
|
102
84
|
font-weight: ${mt.fontWeight};
|
|
@@ -104,8 +86,8 @@
|
|
|
104
86
|
line-height: ${mt.lineHeight};
|
|
105
87
|
text-transform: ${mt.textTransform};
|
|
106
88
|
}
|
|
107
|
-
`,
|
|
108
|
-
.ft-typography--
|
|
89
|
+
`,ki=de.css`
|
|
90
|
+
.ft-typography--title-dense {
|
|
109
91
|
font-family: ${bt.fontFamily};
|
|
110
92
|
font-size: ${bt.fontSize};
|
|
111
93
|
font-weight: ${bt.fontWeight};
|
|
@@ -113,9 +95,8 @@
|
|
|
113
95
|
line-height: ${bt.lineHeight};
|
|
114
96
|
text-transform: ${bt.textTransform};
|
|
115
97
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
.ft-typography--body1 {
|
|
98
|
+
`,Ni=de.css`
|
|
99
|
+
.ft-typography--subtitle1 {
|
|
119
100
|
font-family: ${vt.fontFamily};
|
|
120
101
|
font-size: ${vt.fontSize};
|
|
121
102
|
font-weight: ${vt.fontWeight};
|
|
@@ -123,8 +104,8 @@
|
|
|
123
104
|
line-height: ${vt.lineHeight};
|
|
124
105
|
text-transform: ${vt.textTransform};
|
|
125
106
|
}
|
|
126
|
-
`,
|
|
127
|
-
.ft-typography--
|
|
107
|
+
`,Pi=de.css`
|
|
108
|
+
.ft-typography--subtitle2 {
|
|
128
109
|
font-family: ${xt.fontFamily};
|
|
129
110
|
font-size: ${xt.fontSize};
|
|
130
111
|
font-weight: ${xt.fontWeight};
|
|
@@ -132,8 +113,9 @@
|
|
|
132
113
|
line-height: ${xt.lineHeight};
|
|
133
114
|
text-transform: ${xt.textTransform};
|
|
134
115
|
}
|
|
135
|
-
|
|
136
|
-
|
|
116
|
+
|
|
117
|
+
`,Mr=de.css`
|
|
118
|
+
.ft-typography--body1 {
|
|
137
119
|
font-family: ${St.fontFamily};
|
|
138
120
|
font-size: ${St.fontSize};
|
|
139
121
|
font-weight: ${St.fontWeight};
|
|
@@ -141,8 +123,8 @@
|
|
|
141
123
|
line-height: ${St.lineHeight};
|
|
142
124
|
text-transform: ${St.textTransform};
|
|
143
125
|
}
|
|
144
|
-
`,
|
|
145
|
-
.ft-typography--
|
|
126
|
+
`,Di=de.css`
|
|
127
|
+
.ft-typography--body2 {
|
|
146
128
|
font-family: ${Ct.fontFamily};
|
|
147
129
|
font-size: ${Ct.fontSize};
|
|
148
130
|
font-weight: ${Ct.fontWeight};
|
|
@@ -150,8 +132,8 @@
|
|
|
150
132
|
line-height: ${Ct.lineHeight};
|
|
151
133
|
text-transform: ${Ct.textTransform};
|
|
152
134
|
}
|
|
153
|
-
`,
|
|
154
|
-
.ft-typography--
|
|
135
|
+
`,Mi=de.css`
|
|
136
|
+
.ft-typography--caption {
|
|
155
137
|
font-family: ${Ot.fontFamily};
|
|
156
138
|
font-size: ${Ot.fontSize};
|
|
157
139
|
font-weight: ${Ot.fontWeight};
|
|
@@ -159,8 +141,8 @@
|
|
|
159
141
|
line-height: ${Ot.lineHeight};
|
|
160
142
|
text-transform: ${Ot.textTransform};
|
|
161
143
|
}
|
|
162
|
-
`,
|
|
163
|
-
.ft-typography--
|
|
144
|
+
`,Fi=de.css`
|
|
145
|
+
.ft-typography--breadcrumb {
|
|
164
146
|
font-family: ${At.fontFamily};
|
|
165
147
|
font-size: ${At.fontSize};
|
|
166
148
|
font-weight: ${At.fontWeight};
|
|
@@ -168,21 +150,39 @@
|
|
|
168
150
|
line-height: ${At.lineHeight};
|
|
169
151
|
text-transform: ${At.textTransform};
|
|
170
152
|
}
|
|
171
|
-
`,
|
|
153
|
+
`,Ui=de.css`
|
|
154
|
+
.ft-typography--overline {
|
|
155
|
+
font-family: ${Et.fontFamily};
|
|
156
|
+
font-size: ${Et.fontSize};
|
|
157
|
+
font-weight: ${Et.fontWeight};
|
|
158
|
+
letter-spacing: ${Et.letterSpacing};
|
|
159
|
+
line-height: ${Et.lineHeight};
|
|
160
|
+
text-transform: ${Et.textTransform};
|
|
161
|
+
}
|
|
162
|
+
`,Bi=de.css`
|
|
163
|
+
.ft-typography--button {
|
|
164
|
+
font-family: ${wt.fontFamily};
|
|
165
|
+
font-size: ${wt.fontSize};
|
|
166
|
+
font-weight: ${wt.fontWeight};
|
|
167
|
+
letter-spacing: ${wt.letterSpacing};
|
|
168
|
+
line-height: ${wt.lineHeight};
|
|
169
|
+
text-transform: ${wt.textTransform};
|
|
170
|
+
}
|
|
171
|
+
`,Hi=de.css`
|
|
172
172
|
.ft-typography {
|
|
173
173
|
vertical-align: inherit;
|
|
174
174
|
}
|
|
175
|
-
`;var
|
|
176
|
-
<${
|
|
175
|
+
`;var zi=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},qe=class extends Gi.FtLitElement{constructor(){super(...arguments),this.variant=Dr.body1}render(){return this.element?gt`
|
|
176
|
+
<${yt(this.element)}
|
|
177
177
|
part="text"
|
|
178
178
|
class="ft-typography ft-typography--${this.variant}">
|
|
179
179
|
<slot></slot>
|
|
180
|
-
</${
|
|
181
|
-
`:
|
|
180
|
+
</${yt(this.element)}>
|
|
181
|
+
`:gt`
|
|
182
182
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
183
|
-
`}};Ze.styles=[Ei,wi,Ii,Ti,Nr,Ri,_i,ki,Li,Ni,Pi];Di([(0,Bo.property)()],Ze.prototype,"element",void 0);Di([(0,Bo.property)()],Ze.prototype,"variant",void 0);var zo=C(ee()),os=C(_());var Pr;(function(o){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.caption1medium="caption-1-medium",o.caption1semibold="caption-1-semibold",o.caption2medium="caption-2-medium",o.caption2semibold="caption-2-semibold",o.caption2bold="caption-2-bold"})(Pr||(Pr={}));var Oe=C(V(),1),Le=o=>typeof o=="string"?(0,Oe.unsafeCSS)(o):o,t=class{static create(e,r,n,a){let s=d=>Le(d??a),c=Oe.css`var(${Le(e)}, ${s(a)})`;return c.name=e,c.description=r,c.category=n,c.defaultValue=a,c.defaultCssValue=s,c.set=d=>Mi(c,d??s(a)),c.get=d=>Oe.css`var(${Le(e)}, ${s(d)})`,c.breadcrumb=()=>[],c.lastResortDefaultValue=()=>a,c}static extend(e,r,n,a){let s=d=>n.get(d??a),c=Oe.css`var(${Le(e)}, ${s(a)})`;return c.name=e,c.description=r,c.category=n.category,c.fallbackVariable=n,c.defaultValue=a,c.defaultCssValue=s,c.set=d=>Mi(c,d??s(a)),c.get=d=>Oe.css`var(${Le(e)}, ${s(d)})`,c.breadcrumb=()=>[n.name,...n.breadcrumb()],c.lastResortDefaultValue=()=>a??n.lastResortDefaultValue(),c}static external(e,r){let n=s=>e.defaultCssValue(s),a=Oe.css`var(${Le(e.name)}, ${n(e.defaultValue)})`;return a.name=e.name,a.category=e.category,a.fallbackVariable=e.fallbackVariable,a.defaultValue=e.defaultValue,a.context=r,a.defaultCssValue=n,a.set=s=>e.set(s),a.get=s=>Oe.css`var(${Le(e.name)}, ${n(s)})`,a.breadcrumb=()=>e.breadcrumb(),a.lastResortDefaultValue=()=>e.lastResortDefaultValue(),a}};function Mi(o,e){return Le(`${o.name}: ${e}`)}var i={colorWhite:t.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:t.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:t.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:t.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:t.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:t.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:t.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:t.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:t.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:t.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:t.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:t.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:t.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:t.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:t.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:t.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:t.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:t.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:t.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:t.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:t.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:t.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:t.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:t.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:t.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:t.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:t.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:t.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:t.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:t.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:t.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:t.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:t.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:t.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:t.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:t.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:t.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:t.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:t.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:t.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:t.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:t.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:t.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:t.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:t.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:t.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:t.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:t.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:t.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:t.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:t.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:t.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:t.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:t.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:t.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:t.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:t.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:t.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:t.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:t.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:t.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:t.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:t.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:t.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:t.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:t.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:t.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:t.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:t.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:t.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:t.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:t.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:t.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:t.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:t.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:t.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:t.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:t.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:t.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:t.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:t.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:t.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:t.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:t.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:t.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:t.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:t.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:t.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:t.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:t.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:t.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:t.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:t.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:t.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:t.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:t.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:t.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:t.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:t.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:t.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:t.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:t.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:t.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:t.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:t.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:t.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:t.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:t.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:t.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:t.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:t.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:t.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:t.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:t.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:t.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:t.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:t.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:t.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:t.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:t.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:t.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:t.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:t.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:t.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:t.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:t.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:t.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:t.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:t.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:t.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:t.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:t.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:t.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:t.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:t.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:t.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:t.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:t.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:t.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:t.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:t.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:t.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:t.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:t.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:t.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:t.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:t.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:t.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:t.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:t.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:t.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:t.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:t.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:t.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:t.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:t.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:t.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:t.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:t.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:t.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:t.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:t.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:t.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:t.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:t.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:t.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:t.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:t.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:t.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:t.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:t.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:t.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:t.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:t.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:t.create("--ftds-icon-size-1","","SIZE","0.75rem"),iconSize2:t.create("--ftds-icon-size-2","","SIZE","1rem"),iconSize3:t.create("--ftds-icon-size-3","","SIZE","1.25rem"),iconSize4:t.create("--ftds-icon-size-4","","SIZE","1.5rem"),iconSize5:t.create("--ftds-icon-size-5","","SIZE","2rem"),iconSize6:t.create("--ftds-icon-size-6","","SIZE","3rem"),opacity0:t.create("--ftds-opacity-0","","NUMBER","0"),opacity8:t.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:t.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:t.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:t.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:t.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:t.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:t.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:t.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:t.create("--ftds-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:t.create("--ftds-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:t.create("--ftds-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:t.create("--ftds-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:t.create("--ftds-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:t.create("--ftds-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:t.create("--ftds-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:t.create("--ftds-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:t.create("--ftds-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Ui={fontFamily:t.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:t.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Bi={fontFamily:t.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:t.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Hi={fontFamily:t.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:t.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},zi={fontFamily:t.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:t.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:t.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Gi={fontFamily:t.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:t.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},$i={fontFamily:t.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Wi={fontFamily:t.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},ji={fontFamily:t.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:t.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Vi={fontFamily:t.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},mc={fontFamily:t.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:t.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:t.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Ki={fontFamily:t.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Zi={fontFamily:t.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:t.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},qi={fontFamily:t.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:t.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Yi={fontFamily:t.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Qi={fontFamily:t.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Xi={fontFamily:t.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:t.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Ho={display:Ui,"title-1":Bi,"title-2":Hi,"title-3":zi,"body-1-regular":Gi,"body-1-medium":$i,"body-1-semibold":Wi,"body-2-regular":ji,"body-2-medium":Vi,"body-2-medium-underline":mc,"body-2-semibold":Ki,"caption-1-medium":Zi,"caption-1-semibold":qi,"caption-2-medium":Yi,"caption-2-semibold":Qi,"caption-2-bold":Xi};var l={backgroundActionPrimary:t.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",i.colorBrand0),backgroundErrorSubtle:t.extend("--ftds-background-error-subtle","Used as background of subtle error components.",i.colorRed10),backgroundInfoSubtle:t.extend("--ftds-background-info-subtle","Used as background of subtle information components.",i.colorCyan10),backgroundWarningSubtle:t.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",i.colorOrange10),backgroundSuccessSubtle:t.extend("--ftds-background-success-subtle","Used as background of subtle success components.",i.colorGreen10),backgroundGlobalSurface:t.extend("--ftds-background-global-surface","Used as app background.",i.colorWhite),backgroundGlobalOnSurface:t.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",i.colorGray10),backgroundGlobalOnSurfaceDark:t.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",i.colorGray30),contentActionPrimary:t.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",i.colorBrand0),contentWarningPrimary:t.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",i.colorOrange200),contentWarningIconOnly:t.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",i.colorOrange0),contentErrorPrimary:t.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",i.colorRed0),contentErrorIconOnly:t.extend("--ftds-content-error-icon-only","Used on error status icons alone",i.colorRed70),contentInfoPrimary:t.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",i.colorCyan200),contentInfoIconOnly:t.extend("--ftds-content-info-icon-only","Used on info status icons alone",i.colorCyan0),contentSuccessPrimary:t.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",i.colorGreen200),contentSuccessIconOnly:t.extend("--ftds-content-success-icon-only","Used on success status icons alone",i.colorGreen0),contentGlobalPrimary:t.extend("--ftds-content-global-primary","Used for main content on the page.",i.colorGray500),contentGlobalSecondary:t.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
184
|
-
Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",i.colorGray0),contentGlobalOnColor:t.extend("--ftds-content-global-on-color","Used for content on a dominant color.",i.colorWhite),borderActionPrimary:t.extend("--ftds-border-action-primary","Used as border for primary action components.",i.colorBrand0),borderActionFocusRing:t.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",i.colorCyan0),borderWarningPrimary:t.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",i.colorOrange200),borderWarningSubtle:t.extend("--ftds-border-warning-subtle","Used as border for warning components.",i.colorOrange30),borderSuccessPrimary:t.extend("--ftds-border-success-primary","Used as border for success buttons.",i.colorGreen200),borderSuccessSubtle:t.extend("--ftds-border-success-subtle","Used as border for success components.",i.colorGreen30),borderErrorPrimary:t.extend("--ftds-border-error-primary","Used as border for text fields in error states.",i.colorRed0),borderErrorSubtle:t.extend("--ftds-border-error-subtle","Used as border for error components.",i.colorRed30),borderInfoPrimary:t.extend("--ftds-border-info-primary","Used as border for buttons in info color.",i.colorCyan200),borderInfoSubtle:t.extend("--ftds-border-info-subtle","Used as border for information components.",i.colorCyan30),borderGlobalPrimary:t.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",i.colorGray50),borderGlobalSecondary:t.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",i.colorGray40),borderGlobalSubtle:t.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",i.colorGray30),borderInputPrimary:t.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",i.colorGray80),borderNeutralPrimary:t.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",i.colorGray200)};var Tf={largeHeight:t.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:t.extend("--ftds-button-large-horizontal-padding","",i.spacing4),largeGap:t.extend("--ftds-button-large-gap","",i.spacing2),largeBorderRadius:t.extend("--ftds-button-large-border-radius","",i.borderRadiusS),largeIconSize:t.extend("--ftds-button-large-icon-size","",i.iconSize3),largeBorderWidth:t.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:t.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:t.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:t.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:t.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:t.extend("--ftds-button-medium-horizontal-padding","",i.spacing3),mediumGap:t.extend("--ftds-button-medium-gap","",i.spacing2),mediumBorderRadius:t.extend("--ftds-button-medium-border-radius","",i.borderRadiusS),mediumIconSize:t.extend("--ftds-button-medium-icon-size","",i.iconSize2),mediumBorderWidth:t.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:t.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:t.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:t.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:t.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:t.extend("--ftds-button-small-horizontal-padding","",i.spacing2),smallGap:t.extend("--ftds-button-small-gap","",i.spacing1),smallBorderRadius:t.extend("--ftds-button-small-border-radius","",i.borderRadiusS),smallIconSize:t.extend("--ftds-button-small-icon-size","",i.iconSize1),smallBorderWidth:t.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:t.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:t.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:t.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:t.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:t.extend("--ftds-button-x-small-icon-size","",i.iconSize1),xSmallFocusOutlineOffset:t.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:t.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:t.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:t.extend("--ftds-button-round-border-radius","",i.borderRadiusPill),primaryBrandBackgroundColor:t.extend("--ftds-button-primary-brand-background-color","",l.backgroundActionPrimary),primaryBrandColor:t.extend("--ftds-button-primary-brand-color","",l.contentGlobalOnColor),primaryBrandIconColor:t.extend("--ftds-button-primary-brand-icon-color","",l.contentGlobalOnColor),primaryBrandStateLayerColor:t.extend("--ftds-button-primary-brand-state-layer-color","",l.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",i.opacity16),primaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",i.opacity16),primaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-primary-brand-active-state-layer-opacity","",i.opacity24),primaryBrandDisabledComponentOpacity:t.extend("--ftds-button-primary-brand-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-button-focus-focus-ring-color","",l.borderActionFocusRing),tertiaryBrandBackgroundColor:t.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:t.extend("--ftds-button-tertiary-brand-color","",l.contentActionPrimary),tertiaryBrandIconColor:t.extend("--ftds-button-tertiary-brand-icon-color","",l.contentActionPrimary),tertiaryBrandStateLayerColor:t.extend("--ftds-button-tertiary-brand-state-layer-color","",l.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",i.opacity8),tertiaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",i.opacity8),tertiaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",i.opacity16),tertiaryBrandDisabledComponentOpacity:t.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",i.opacity40),tertiaryInfoBackgroundColor:t.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:t.extend("--ftds-button-tertiary-info-color","",l.contentInfoPrimary),tertiaryInfoIconColor:t.extend("--ftds-button-tertiary-info-icon-color","",l.contentInfoPrimary),tertiaryInfoStateLayerColor:t.extend("--ftds-button-tertiary-info-state-layer-color","",l.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",i.opacity8),tertiaryInfoHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",i.opacity8),tertiaryInfoActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",i.opacity16),tertiaryInfoDisabledComponentOpacity:t.extend("--ftds-button-tertiary-info-disabled-component-opacity","",i.opacity40),tertiarySuccessBackgroundColor:t.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:t.extend("--ftds-button-tertiary-success-color","",l.contentSuccessPrimary),tertiarySuccessIconColor:t.extend("--ftds-button-tertiary-success-icon-color","",l.contentSuccessPrimary),tertiarySuccessStateLayerColor:t.extend("--ftds-button-tertiary-success-state-layer-color","",l.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",i.opacity8),tertiarySuccessFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",i.opacity8),tertiarySuccessActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",i.opacity16),tertiarySuccessDisabledComponentOpacity:t.extend("--ftds-button-tertiary-success-disabled-component-opacity","",i.opacity40),tertiaryWarningBackgroundColor:t.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:t.extend("--ftds-button-tertiary-warning-color","",l.contentWarningPrimary),tertiaryWarningIconColor:t.extend("--ftds-button-tertiary-warning-icon-color","",l.contentWarningPrimary),tertiaryWarningStateLayerColor:t.extend("--ftds-button-tertiary-warning-state-layer-color","",l.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",i.opacity8),tertiaryWarningFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",i.opacity8),tertiaryWarningActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",i.opacity16),tertiaryWarningDisabledComponentOpacity:t.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",i.opacity40),tertiaryErrorBackgroundColor:t.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:t.extend("--ftds-button-tertiary-error-color","",l.contentErrorPrimary),tertiaryErrorIconColor:t.extend("--ftds-button-tertiary-error-icon-color","",l.contentErrorPrimary),tertiaryErrorStateLayerColor:t.extend("--ftds-button-tertiary-error-state-layer-color","",l.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",i.opacity8),tertiaryErrorFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",i.opacity8),tertiaryErrorActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",i.opacity16),tertiaryErrorDisabledComponentOpacity:t.extend("--ftds-button-tertiary-error-disabled-component-opacity","",i.opacity40),tertiaryNeutralBackgroundColor:t.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:t.extend("--ftds-button-tertiary-neutral-icon-color","",l.contentGlobalSecondary),tertiaryNeutralColor:t.extend("--ftds-button-tertiary-neutral-color","",l.contentGlobalSecondary),tertiaryNeutralStateLayerColor:t.extend("--ftds-button-tertiary-neutral-state-layer-color","",l.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",i.opacity8),tertiaryNeutralFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",i.opacity8),tertiaryNeutralActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",i.opacity16),tertiaryNeutralDisabledComponentOpacity:t.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",i.opacity40),secondaryBrandBackgroundColor:t.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:t.extend("--ftds-button-secondary-brand-color","",l.contentActionPrimary),secondaryBrandIconColor:t.extend("--ftds-button-secondary-brand-icon-color","",l.contentActionPrimary),secondaryBrandStateLayerColor:t.extend("--ftds-button-secondary-brand-state-layer-color","",l.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",i.opacity8),secondaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",i.opacity8),secondaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",i.opacity16),secondaryBrandDisabledComponentOpacity:t.extend("--ftds-button-secondary-brand-disabled-component-opacity","",i.opacity40),secondaryBrandBorderColor:t.extend("--ftds-button-secondary-brand-border-color","",l.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",i.opacity8),secondaryNeutralFocusStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",i.opacity8),secondaryNeutralActiveStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",i.opacity16),secondaryNeutralDisabledComponentOpacity:t.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",i.opacity40),secondaryNeutralBackgroundColor:t.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:t.extend("--ftds-button-secondary-neutral-color","",l.contentGlobalSecondary),secondaryNeutralIconColor:t.extend("--ftds-button-secondary-neutral-icon-color","",l.contentGlobalSecondary),secondaryNeutralStateLayerColor:t.extend("--ftds-button-secondary-neutral-state-layer-color","",l.contentGlobalSecondary),secondaryNeutralBorderColor:t.extend("--ftds-button-secondary-neutral-border-color","",l.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:t.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",i.opacity8),secondaryInfoFocusStateLayerOpacity:t.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",i.opacity8),secondaryInfoActiveStateLayerOpacity:t.extend("--ftds-button-secondary-info-active-state-layer-opacity","",i.opacity16),secondaryInfoDisabledComponentOpacity:t.extend("--ftds-button-secondary-info-disabled-component-opacity","",i.opacity40),secondaryInfoBackgroundColor:t.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:t.extend("--ftds-button-secondary-info-border-color","",l.borderInfoPrimary),secondaryInfoColor:t.extend("--ftds-button-secondary-info-color","",l.contentInfoPrimary),secondaryInfoIconColor:t.extend("--ftds-button-secondary-info-icon-color","",l.contentInfoPrimary),secondaryInfoStateLayerColor:t.extend("--ftds-button-secondary-info-state-layer-color","",l.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:t.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",i.opacity8),secondarySuccessFocusStateLayerOpacity:t.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",i.opacity8),secondarySuccessActiveStateLayerOpacity:t.extend("--ftds-button-secondary-success-active-state-layer-opacity","",i.opacity16),secondarySuccessDisabledComponentOpacity:t.extend("--ftds-button-secondary-success-disabled-component-opacity","",i.opacity40),secondarySuccessBackgroundColor:t.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:t.extend("--ftds-button-secondary-success-border-color","",l.borderSuccessPrimary),secondarySuccessColor:t.extend("--ftds-button-secondary-success-color","",l.contentSuccessPrimary),secondarySuccessIconColor:t.extend("--ftds-button-secondary-success-icon-color","",l.contentSuccessPrimary),secondarySuccessStateLayerColor:t.extend("--ftds-button-secondary-success-state-layer-color","",l.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:t.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",i.opacity8),secondaryWarningFocusStateLayerOpacity:t.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",i.opacity8),secondaryWarningActiveStateLayerOpacity:t.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",i.opacity16),secondaryWarningDisabledComponentOpacity:t.extend("--ftds-button-secondary-warning-disabled-component-opacity","",i.opacity40),secondaryWarningBackgroundColor:t.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:t.extend("--ftds-button-secondary-warning-border-color","",l.borderWarningPrimary),secondaryWarningColor:t.extend("--ftds-button-secondary-warning-color","",l.contentWarningPrimary),secondaryWarningIconColor:t.extend("--ftds-button-secondary-warning-icon-color","",l.contentWarningPrimary),secondaryWarningStateLayerColor:t.extend("--ftds-button-secondary-warning-state-layer-color","",l.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:t.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",i.opacity8),secondaryErrorFocusStateLayerOpacity:t.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",i.opacity8),secondaryErrorActiveStateLayerOpacity:t.extend("--ftds-button-secondary-error-active-state-layer-opacity","",i.opacity16),secondaryErrorDisabledComponentOpacity:t.extend("--ftds-button-secondary-error-disabled-component-opacity","",i.opacity40),secondaryErrorBackgroundColor:t.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:t.extend("--ftds-button-secondary-error-border-color","",l.contentErrorPrimary),secondaryErrorColor:t.extend("--ftds-button-secondary-error-color","",l.contentErrorPrimary),secondaryErrorIconColor:t.extend("--ftds-button-secondary-error-icon-color","",l.contentErrorPrimary),secondaryErrorStateLayerColor:t.extend("--ftds-button-secondary-error-state-layer-color","",l.contentErrorPrimary)};var Nf={loadMoreIconSize:t.extend("--ftds-tree-list-load-more-icon-size","",i.iconSize2),loadMorePaddingLeft:t.extend("--ftds-tree-list-load-more-padding-left","",i.spacing6),loadMoreUnselectedDefaultBorderColor:t.extend("--ftds-tree-list-load-more-unselected-default-border-color","",l.borderGlobalSubtle),loadMoreIconColor:t.extend("--ftds-tree-list-load-more-icon-color","",l.contentActionPrimary),loadMoreLabelColor:t.extend("--ftds-tree-list-load-more-label-color","",l.contentActionPrimary),loadMoreHoverBorderColor:t.extend("--ftds-tree-list-load-more-hover-border-color","",i.colorBrand20),loadMoreHoverBackgroundColor:t.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:t.extend("--ftds-tree-list-load-more-active-border-color","",i.colorBrand20),loadMoreActiveBackgroundColor:t.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:t.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:t.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:t.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",l.borderGlobalPrimary),loadMoreLabelMarginLeft:t.extend("--ftds-tree-list-load-more-label-margin-left","",i.spacing1),nodeIconSize:t.extend("--ftds-tree-list-node-icon-size","",i.iconSize2),nodeHeight:t.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:t.extend("--ftds-tree-list-node-parent-label-margin-left","",i.spacing2),nodeParentLabelMarginRight:t.extend("--ftds-tree-list-node-parent-label-margin-right","",i.spacing2),nodeRootPaddingLeft:t.extend("--ftds-tree-list-node-root-padding-left","",i.spacing6),nodeChildPaddingLeft:t.extend("--ftds-tree-list-node-child-padding-left","",i.spacing5),nodeLeafPaddingLeft:t.extend("--ftds-tree-list-node-leaf-padding-left","",i.spacing6),nodeUnselectedDefaultBorderColor:t.extend("--ftds-tree-list-node-unselected-default-border-color","",l.borderGlobalSubtle),nodeUnselectedIconColor:t.extend("--ftds-tree-list-node-unselected-icon-color","",l.contentGlobalSecondary),nodeUnselectedLabelColor:t.extend("--ftds-tree-list-node-unselected-label-color","",l.contentGlobalSecondary),nodeUnselectedCounterColor:t.extend("--ftds-tree-list-node-unselected-counter-color","",l.contentGlobalSecondary),nodeHoverBorderColor:t.extend("--ftds-tree-list-node-hover-border-color","",l.borderActionPrimary),nodeFocusFocusRingColor:t.extend("--ftds-tree-list-node-focus-focus-ring-color","",l.borderActionFocusRing),nodeFocusOutlineWidth:t.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:t.extend("--ftds-tree-list-node-selected-default-border-color","",l.borderGlobalPrimary),nodeSelectedIconColor:t.extend("--ftds-tree-list-node-selected-icon-color","",l.contentGlobalSecondary),nodeSelectedLabelColor:t.extend("--ftds-tree-list-node-selected-label-color","",l.contentGlobalPrimary),nodeSelectedCounterColor:t.extend("--ftds-tree-list-node-selected-counter-color","",l.contentGlobalSecondary),nodeSelectedBackgroundColor:t.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:t.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",l.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:t.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:t.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:t.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:t.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:t.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:t.extend("--ftds-tree-list-header-section-padding-left","",i.spacing6),headerSectionPaddingRight:t.extend("--ftds-tree-list-header-section-padding-right","",i.spacing3),headerSectionHorizontalGap:t.extend("--ftds-tree-list-header-section-horizontal-gap","",i.spacing2),headerSectionMarginBottom:t.extend("--ftds-tree-list-header-section-margin-bottom","",i.spacing2),headerSectionColor:t.extend("--ftds-tree-list-header-section-color","",l.contentGlobalPrimary),headerSectionCounterColor:t.extend("--ftds-tree-list-header-section-counter-color","",l.contentGlobalSecondary),listContainerBorderWidth:t.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:t.extend("--ftds-tree-list-list-container-background-color","",l.backgroundGlobalSurface),listContainerBorderColor:t.extend("--ftds-tree-list-list-container-border-color","",l.borderGlobalSubtle),emptyStateIllustrationWidth:t.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:t.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:t.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",i.spacing10),emptyStateContainerPaddingTop:t.extend("--ftds-tree-list-empty-state-container-padding-top","",i.spacing10),emptyStateContainerPaddingBottom:t.extend("--ftds-tree-list-empty-state-container-padding-bottom","",i.spacing10),emptyStateTitleMarginBottom:t.extend("--ftds-tree-list-empty-state-title-margin-bottom","",i.spacing2),emptyStateTitleLabelColor:t.extend("--ftds-tree-list-empty-state-title-label-color","",l.contentGlobalSecondary),emptyStateDescriptionLabelColor:t.extend("--ftds-tree-list-empty-state-description-label-color","",l.contentGlobalSecondary)};var Uf={borderColor:t.extend("--ftds-card-border-color","",l.borderGlobalSecondary),headerTitleHorizontalPadding:t.extend("--ftds-card-header-title-horizontal-padding","",i.spacing4),headerTitleVerticalPadding:t.extend("--ftds-card-header-title-vertical-padding","",i.spacing3),headerActionHorizontalPadding:t.extend("--ftds-card-header-action-horizontal-padding","",i.spacing2),headerActionVerticalPadding:t.extend("--ftds-card-header-action-vertical-padding","",i.spacing2),headerActionGap:t.extend("--ftds-card-header-action-gap","",i.spacing1),borderRadius:t.extend("--ftds-card-border-radius","",i.borderRadiusS),backgroundColor:t.extend("--ftds-card-background-color","",l.backgroundGlobalOnSurface),bodyHorizontalPadding:t.extend("--ftds-card-body-horizontal-padding","",i.spacing4),bodyVerticalPadding:t.extend("--ftds-card-body-vertical-padding","",i.spacing4),footerActionHorizontalPadding:t.extend("--ftds-card-footer-action-horizontal-padding","",i.spacing2),footerActionVerticalPadding:t.extend("--ftds-card-footer-action-vertical-padding","",i.spacing2),footerActionGap:t.extend("--ftds-card-footer-action-gap","",i.spacing1),footerContentHorizontalPadding:t.extend("--ftds-card-footer-content-horizontal-padding","",i.spacing4),footerContentVerticalPadding:t.extend("--ftds-card-footer-content-vertical-padding","",i.spacing3),sideBarHorizontalPadding:t.extend("--ftds-card-side-bar-horizontal-padding","",i.spacing1),sideBarVerticalPadding:t.extend("--ftds-card-side-bar-vertical-padding","",i.spacing1),sideBarGap:t.extend("--ftds-card-side-bar-gap","",i.spacing1)};var $f={iconSize:t.extend("--ftds-checkbox-icon-size","",i.iconSize2),boxSize:t.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:t.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:t.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:t.extend("--ftds-checkbox-label-horizontal-gap","",i.spacing1),color:t.extend("--ftds-checkbox-color","",l.contentGlobalPrimary),checkedBackgroundColor:t.extend("--ftds-checkbox-checked-background-color","",l.contentActionPrimary),checkedStateLayerColor:t.extend("--ftds-checkbox-checked-state-layer-color","",l.contentActionPrimary),checkedIconColor:t.extend("--ftds-checkbox-checked-icon-color","",l.contentGlobalOnColor),checkedHoverStateLayerOpacity:t.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",i.opacity16),checkedFocusStateLayerOpacity:t.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",i.opacity16),checkedActiveStateLayerOpacity:t.extend("--ftds-checkbox-checked-active-state-layer-opacity","",i.opacity24),checkedDisabledComponentOpacity:t.extend("--ftds-checkbox-checked-disabled-component-opacity","",i.opacity40),uncheckedBorderColor:t.extend("--ftds-checkbox-unchecked-border-color","",i.colorGray80),uncheckedStateLayerColor:t.extend("--ftds-checkbox-unchecked-state-layer-color","",i.colorGray80),uncheckedHoverStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",i.opacity16),uncheckedFocusStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",i.opacity16),uncheckedActiveStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",i.opacity24),uncheckedDisabledComponentOpacity:t.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-checkbox-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:t.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:t.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:t.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:t.extend("--ftds-checkbox-horizontal-gap","",i.spacing3),helperPaddingTop:t.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:t.extend("--ftds-checkbox-helper-icon-size","",i.iconSize2),helperHorizontalGap:t.extend("--ftds-checkbox-helper-horizontal-gap","",i.spacing1),errorUncheckedBorderColor:t.extend("--ftds-checkbox-error-unchecked-border-color","",l.borderErrorPrimary),errorStateLayerColor:t.extend("--ftds-checkbox-error-state-layer-color","",l.contentErrorPrimary),errorHelperTextColor:t.extend("--ftds-checkbox-error-helper-text-color","",l.borderErrorPrimary),errorCheckedBackgroundColor:t.extend("--ftds-checkbox-error-checked-background-color","",l.contentErrorPrimary),helperTextColor:t.extend("--ftds-checkbox-helper-text-color","",l.contentGlobalSubtle),groupVerticalGap:t.extend("--ftds-checkbox-group-vertical-gap","",i.spacing3)};var Zf={circleSize:t.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:t.create("--ftds-radio-border-width","","SIZE","2px"),color:t.extend("--ftds-radio-color","",l.contentGlobalPrimary),selectedRadioColor:t.extend("--ftds-radio-selected-radio-color","",l.contentActionPrimary),selectedStateLayerColor:t.extend("--ftds-radio-selected-state-layer-color","",l.contentActionPrimary),selectedHoverStateLayerOpacity:t.extend("--ftds-radio-selected-hover-state-layer-opacity","",i.opacity16),selectedFocusStateLayerOpacity:t.extend("--ftds-radio-selected-focus-state-layer-opacity","",i.opacity16),selectedActiveStateLayerOpacity:t.extend("--ftds-radio-selected-active-state-layer-opacity","",i.opacity24),selectedDisabledComponentOpacity:t.extend("--ftds-radio-selected-disabled-component-opacity","",i.opacity40),unselectedStateLayerColor:t.extend("--ftds-radio-unselected-state-layer-color","",l.borderInputPrimary),unselectedBorderColor:t.extend("--ftds-radio-unselected-border-color","",l.borderInputPrimary),unselectedHoverStateLayerOpacity:t.extend("--ftds-radio-unselected-hover-state-layer-opacity","",i.opacity16),unselectedFocusStateLayerOpacity:t.extend("--ftds-radio-unselected-focus-state-layer-opacity","",i.opacity16),unselectedActiveStateLayerOpacity:t.extend("--ftds-radio-unselected-active-state-layer-opacity","",i.opacity24),unselectedDisabledComponentOpacity:t.extend("--ftds-radio-unselected-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-radio-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:t.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:t.extend("--ftds-radio-vertical-gap","",i.spacing3),horizontalGap:t.extend("--ftds-radio-horizontal-gap","",i.spacing3)};var Jf={headerRowBorderWidth:t.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:t.extend("--ftds-table-header-row-background-color","",l.backgroundGlobalOnSurfaceDark),headerRowBorderColor:t.extend("--ftds-table-header-row-border-color","",l.borderGlobalPrimary),headerRowColor:t.extend("--ftds-table-header-row-color","",l.contentGlobalPrimary),dataRowBorderWidth:t.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:t.extend("--ftds-table-data-row-background-color","",l.backgroundGlobalOnSurface),dataRowBorderColor:t.extend("--ftds-table-data-row-border-color","",l.borderGlobalSubtle),dataRowColor:t.extend("--ftds-table-data-row-color","",l.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:t.extend("--ftds-table-data-row-default-hover-background-color","",i.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:t.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",i.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:t.extend("--ftds-table-data-row-selectable-selected-default-background-color","",i.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:t.extend("--ftds-table-data-row-selectable-selected-default-border-color","",i.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:t.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",i.colorBrand20),dataRowSelectableSelectedHoverBorderColor:t.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",i.colorBrand30),dataRowSelectableSelectedColor:t.extend("--ftds-table-data-row-selectable-selected-color","",l.contentActionPrimary),dataRowClickableHoverBackgroundColor:t.extend("--ftds-table-data-row-clickable-hover-background-color","",i.colorGray30),dataRowClickableFocusBorderColor:t.extend("--ftds-table-data-row-clickable-focus-border-color","",l.borderActionFocusRing),dataRowClickableFocusBackgroundColor:t.extend("--ftds-table-data-row-clickable-focus-background-color","",i.colorGray30),dataRowClickableActiveBackgroundColor:t.extend("--ftds-table-data-row-clickable-active-background-color","",i.colorGray40),headerCellHorizontalGap:t.extend("--ftds-table-header-cell-horizontal-gap","",i.spacing1),headerCellVerticalPadding:t.extend("--ftds-table-header-cell-vertical-padding","",i.spacing2),headerCellHorizontalPadding:t.extend("--ftds-table-header-cell-horizontal-padding","",i.spacing3),dataCellVerticalPadding:t.extend("--ftds-table-data-cell-vertical-padding","",i.spacing2),dataCellHorizontalPadding:t.extend("--ftds-table-data-cell-horizontal-padding","",i.spacing3),dataCellVerticalGap:t.extend("--ftds-table-data-cell-vertical-gap","",i.spacing1)};var nh={neutralOffHoverStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",i.opacity8),neutralOffFocusStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",i.opacity8),neutralOffFocusFocusRingColor:t.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",l.borderActionFocusRing),neutralOffActiveStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",i.opacity16),neutralOffBackgroundColor:t.extend("--ftds-chip-choice-neutral-off-background-color","",l.backgroundGlobalOnSurface),neutralOffBorderColor:t.extend("--ftds-chip-choice-neutral-off-border-color","",l.borderGlobalPrimary),neutralOffColor:t.extend("--ftds-chip-choice-neutral-off-color","",l.contentGlobalSecondary),neutralOffStateLayerColor:t.extend("--ftds-chip-choice-neutral-off-state-layer-color","",l.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",i.opacity16),neutralOnHoverStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",i.opacity24),neutralOnFocusStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",i.opacity24),neutralOnFocusFocusRingColor:t.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",l.borderActionFocusRing),neutralOnActiveStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",i.opacity32),neutralOnBackgroundColor:t.extend("--ftds-chip-choice-neutral-on-background-color","",l.backgroundGlobalOnSurface),neutralOnBorderColor:t.extend("--ftds-chip-choice-neutral-on-border-color","",l.borderGlobalPrimary),neutralOnColor:t.extend("--ftds-chip-choice-neutral-on-color","",l.contentGlobalPrimary),neutralOnIconColor:t.extend("--ftds-chip-choice-neutral-on-icon-color","",l.contentGlobalPrimary),neutralOnStateLayerColor:t.extend("--ftds-chip-choice-neutral-on-state-layer-color","",l.contentGlobalPrimary),largeMinHeight:t.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:t.extend("--ftds-chip-choice-large-horizontal-padding","",i.spacing3),largeGap:t.extend("--ftds-chip-choice-large-gap","",i.spacing1),largeBorderRadius:t.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:t.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:t.extend("--ftds-chip-choice-large-icon-size","",i.iconSize3),mediumMinHeight:t.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:t.extend("--ftds-chip-choice-medium-horizontal-padding","",i.spacing2),mediumGap:t.extend("--ftds-chip-choice-medium-gap","",i.spacing1),mediumBorderRadius:t.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:t.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:t.extend("--ftds-chip-choice-medium-icon-size","",i.iconSize2)};var lh={largeMinHeight:t.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:t.extend("--ftds-chip-large-horizontal-padding","",i.spacing3),largeButtonRightPadding:t.extend("--ftds-chip-large-button-right-padding","",i.spacing1),largeGap:t.extend("--ftds-chip-large-gap","",i.spacing1),largeFocusOutlineOffset:t.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:t.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:t.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:t.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:t.extend("--ftds-chip-large-icon-size","",i.iconSize3),mediumMinHeight:t.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:t.extend("--ftds-chip-medium-horizontal-padding","",i.spacing2),mediumButtonRightPadding:t.extend("--ftds-chip-medium-button-right-padding","",i.spacing05),mediumGap:t.extend("--ftds-chip-medium-gap","",i.spacing1),mediumFocusOutlineOffset:t.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:t.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:t.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:t.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:t.extend("--ftds-chip-medium-icon-size","",i.iconSize2),smallMinHeight:t.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:t.extend("--ftds-chip-small-horizontal-padding","",i.spacing1),smallButtonRightPadding:t.extend("--ftds-chip-small-button-right-padding","",i.spacing05),smallGap:t.extend("--ftds-chip-small-gap","",i.spacing1),smallFocusOutlineOffset:t.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:t.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:t.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:t.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:t.extend("--ftds-chip-small-icon-size","",i.iconSize1),neutralBackgroundColor:t.extend("--ftds-chip-neutral-background-color","",l.backgroundGlobalOnSurface),neutralColor:t.extend("--ftds-chip-neutral-color","",l.contentGlobalSecondary),neutralIconColor:t.extend("--ftds-chip-neutral-icon-color","",l.contentGlobalSecondary),neutralBorderColor:t.extend("--ftds-chip-neutral-border-color","",l.borderGlobalSecondary),infoBackgroundColor:t.extend("--ftds-chip-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-chip-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-chip-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-chip-info-border-color","",l.borderInfoSubtle),successBackgroundColor:t.extend("--ftds-chip-success-background-color","",l.backgroundSuccessSubtle),successColor:t.extend("--ftds-chip-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-chip-success-icon-color","",l.contentSuccessIconOnly),successBorderColor:t.extend("--ftds-chip-success-border-color","",l.borderSuccessSubtle),warningBackgroundColor:t.extend("--ftds-chip-warning-background-color","",l.backgroundWarningSubtle),warningColor:t.extend("--ftds-chip-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-chip-warning-icon-color","",l.contentWarningIconOnly),warningBorderColor:t.extend("--ftds-chip-warning-border-color","",l.borderWarningSubtle),errorBackgroundColor:t.extend("--ftds-chip-error-background-color","",l.backgroundErrorSubtle),errorColor:t.extend("--ftds-chip-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-chip-error-icon-color","",l.contentErrorIconOnly),errorBorderColor:t.extend("--ftds-chip-error-border-color","",l.borderErrorSubtle)};var hh={brandHoverOpacity:t.extend("--ftds-link-brand-hover-opacity","",i.opacity80),brandHoverColor:t.extend("--ftds-link-brand-hover-color","",l.contentActionPrimary),brandFocusFocusRingColor:t.extend("--ftds-link-brand-focus-focus-ring-color","",l.borderActionFocusRing),brandFocusColor:t.extend("--ftds-link-brand-focus-color","",l.contentActionPrimary),brandDefaultColor:t.extend("--ftds-link-brand-default-color","",l.contentActionPrimary),brandActiveColor:t.extend("--ftds-link-brand-active-color","",l.contentActionPrimary),infoHoverOpacity:t.extend("--ftds-link-info-hover-opacity","",i.opacity80),infoHoverColor:t.extend("--ftds-link-info-hover-color","",l.contentInfoPrimary),infoFocusFocusRingColor:t.extend("--ftds-link-info-focus-focus-ring-color","",l.borderActionFocusRing),infoFocusColor:t.extend("--ftds-link-info-focus-color","",l.contentInfoPrimary),infoDefaultColor:t.extend("--ftds-link-info-default-color","",l.contentInfoPrimary),infoActiveColor:t.extend("--ftds-link-info-active-color","",l.contentInfoPrimary),neutralFocusFocusRingColor:t.extend("--ftds-link-neutral-focus-focus-ring-color","",l.borderActionFocusRing),neutralFocusColor:t.extend("--ftds-link-neutral-focus-color","",l.contentActionPrimary),neutralDefaultColor:t.extend("--ftds-link-neutral-default-color","",l.contentGlobalPrimary),neutralHoverColor:t.extend("--ftds-link-neutral-hover-color","",l.contentActionPrimary),neutralActiveColor:t.extend("--ftds-link-neutral-active-color","",l.contentActionPrimary),neutralVisitedColor:t.extend("--ftds-link-neutral-visited-color","",i.colorBrand100)};var vh={iconSize:t.extend("--ftds-banner-icon-size","",i.iconSize5),borderWidth:t.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:t.extend("--ftds-banner-left-padding","",i.spacing6),rightPadding:t.extend("--ftds-banner-right-padding","",i.spacing6),verticalPadding:t.extend("--ftds-banner-vertical-padding","",i.spacing6),horizontalSideGap:t.extend("--ftds-banner-horizontal-side-gap","",i.spacing6),horizontalMobileGap:t.extend("--ftds-banner-horizontal-mobile-gap","",i.spacing4),verticalMobileGap:t.extend("--ftds-banner-vertical-mobile-gap","",i.spacing6),horizontalMiddleGap:t.extend("--ftds-banner-horizontal-middle-gap","",i.spacing20),infoBackgroundColor:t.extend("--ftds-banner-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-banner-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-banner-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-banner-info-border-color","",l.borderInfoSubtle)};var Ah={horizontalPadding:t.extend("--ftds-badge-horizontal-padding","",i.spacing1),verticalPadding:t.extend("--ftds-badge-vertical-padding","",i.spacing1),borderRadius:t.extend("--ftds-badge-border-radius","",i.borderRadiusPill),color:t.extend("--ftds-badge-color","",l.contentGlobalOnColor),backgroundColor:t.extend("--ftds-badge-background-color","",l.contentActionPrimary)};var Rh={horizontalGap:t.extend("--ftds-title-breadcrumb-horizontal-gap","",i.spacing1),currentColor:t.extend("--ftds-title-breadcrumb-current-color","",l.contentGlobalPrimary),previousNonClickableColor:t.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",l.contentGlobalSecondary),iconColor:t.extend("--ftds-title-breadcrumb-icon-color","",l.contentGlobalSubtle)};var Ph={parentHorizontalPadding:t.extend("--ftds-page-header-parent-horizontal-padding","",i.spacing6),parentTopPadding:t.extend("--ftds-page-header-parent-top-padding","",i.spacing4),parentBottomPadding:t.extend("--ftds-page-header-parent-bottom-padding","",i.spacing6),parentHelpLeftMargin:t.extend("--ftds-page-header-parent-help-left-margin","",i.spacing1),parentTitleColor:t.extend("--ftds-page-header-parent-title-color","",l.contentGlobalPrimary),parentSubtitleColor:t.extend("--ftds-page-header-parent-subtitle-color","",l.contentGlobalSecondary),parentChipLeftMargin:t.extend("--ftds-page-header-parent-chip-left-margin","",i.spacing4),parentVerticalGap:t.extend("--ftds-page-header-parent-vertical-gap","",i.spacing2),parentButtonsGroupHorizontalGap:t.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",i.spacing4),parentButtonsGroupVerticalGap:t.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",i.spacing4),parentChipsGroupHorizontalGap:t.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",i.spacing2),parentChipsGroupVerticalGap:t.extend("--ftds-page-header-parent-chips-group-vertical-gap","",i.spacing2),childHorizontalPadding:t.extend("--ftds-page-header-child-horizontal-padding","",i.spacing6),childTopPadding:t.extend("--ftds-page-header-child-top-padding","",i.spacing2),childBottomPadding:t.extend("--ftds-page-header-child-bottom-padding","",i.spacing2),childHelpLeftMargin:t.extend("--ftds-page-header-child-help-left-margin","",i.spacing1),childChipLeftMargin:t.extend("--ftds-page-header-child-chip-left-margin","",i.spacing4),childVerticalGap:t.extend("--ftds-page-header-child-vertical-gap","",i.spacing2),childMinHeight:t.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:t.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",i.spacing4),childButtonsGroupVerticalGap:t.extend("--ftds-page-header-child-buttons-group-vertical-gap","",i.spacing4),childChipsGroupHorizontalGap:t.extend("--ftds-page-header-child-chips-group-horizontal-gap","",i.spacing2),childChipsGroupVerticalGap:t.extend("--ftds-page-header-child-chips-group-vertical-gap","",i.spacing2),backgroundColor:t.extend("--ftds-page-header-background-color","",i.colorWhite),bottomBorderColor:t.extend("--ftds-page-header-bottom-border-color","",l.borderGlobalSubtle),bottomBorderWidth:t.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var Bh={horizontalPadding:t.extend("--ftds-page-footer-horizontal-padding","",i.spacing6),verticalPadding:t.extend("--ftds-page-footer-vertical-padding","",i.spacing2),verticalGap:t.extend("--ftds-page-footer-vertical-gap","",i.spacing2),minHeight:t.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:t.extend("--ftds-page-footer-background-color","",i.colorWhite),topBorderColor:t.extend("--ftds-page-footer-top-border-color","",l.borderGlobalSubtle),topBorderWidth:t.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:t.extend("--ftds-page-footer-buttons-group-gap","",i.spacing4)};var $h={contentHorizontalPadding:t.extend("--ftds-page-layout-content-horizontal-padding","",i.spacing6),contentVerticalPadding:t.extend("--ftds-page-layout-content-vertical-padding","",i.spacing6)};var Zh={smallContainerTargetWidth:t.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:t.extend("--ftds-modal-small-container-margin","",i.spacing6),mediumContainerTargetWidth:t.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:t.extend("--ftds-modal-medium-container-margin","",i.spacing6),largeContainerTargetWidth:t.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:t.extend("--ftds-modal-large-container-margin","",i.spacing6),overlayBackgroundColor:t.extend("--ftds-modal-overlay-background-color","",i.colorGray700),overlayOpacity:t.extend("--ftds-modal-overlay-opacity","",i.opacity40),shadow:t.extend("--ftds-modal-shadow","",i.shadowElevation03),bodyBackgroundColor:t.extend("--ftds-modal-body-background-color","",i.colorWhite),bodyColor:t.extend("--ftds-modal-body-color","",l.contentGlobalPrimary),bodyHorizontalPadding:t.extend("--ftds-modal-body-horizontal-padding","",i.spacing6),bodyVerticalPadding:t.extend("--ftds-modal-body-vertical-padding","",i.spacing6),bodyVerticalGap:t.extend("--ftds-modal-body-vertical-gap","",i.spacing6),headerBackgroundColor:t.extend("--ftds-modal-header-background-color","",l.backgroundGlobalOnSurface),headerBorderColor:t.extend("--ftds-modal-header-border-color","",l.borderGlobalSubtle),headerColor:t.extend("--ftds-modal-header-color","",l.contentGlobalPrimary),headerLeadingIconColor:t.extend("--ftds-modal-header-leading-icon-color","",l.contentGlobalPrimary),headerVerticalPadding:t.extend("--ftds-modal-header-vertical-padding","",i.spacing1),headerRightPadding:t.extend("--ftds-modal-header-right-padding","",i.spacing1),headerLeftPadding:t.extend("--ftds-modal-header-left-padding","",i.spacing6),headerGap:t.extend("--ftds-modal-header-gap","",i.spacing2),headerBorderBottomWidth:t.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:t.extend("--ftds-modal-border-radius","",i.borderRadiusM)};var Jh={overlayOpacity:t.extend("--ftds-drawer-overlay-opacity","",i.opacity40),shadow:t.extend("--ftds-drawer-shadow","",i.shadowElevation03),bodyColor:t.extend("--ftds-drawer-body-color","",l.contentGlobalPrimary),bodyHorizontalPadding:t.extend("--ftds-drawer-body-horizontal-padding","",i.spacing6),bodyVerticalPadding:t.extend("--ftds-drawer-body-vertical-padding","",i.spacing6),bodyGap:t.extend("--ftds-drawer-body-gap","",i.spacing6),bodyBackgroundColor:t.extend("--ftds-drawer-body-background-color","",i.colorWhite),headerBackgroundColor:t.extend("--ftds-drawer-header-background-color","",l.backgroundGlobalOnSurface),headerBorderColor:t.extend("--ftds-drawer-header-border-color","",l.borderGlobalSubtle),headerColor:t.extend("--ftds-drawer-header-color","",l.contentGlobalPrimary),headerTrailingIconColor:t.extend("--ftds-drawer-header-trailing-icon-color","",l.contentGlobalSecondary),headerHeight:t.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:t.extend("--ftds-drawer-header-horizontal-padding","",i.spacing2),headerBorderWidth:t.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:t.extend("--ftds-drawer-header-gap","",i.spacing3),buttonsBarBackgroundColor:t.extend("--ftds-drawer-buttons-bar-background-color","",l.backgroundGlobalOnSurface),buttonsBarBorderColor:t.extend("--ftds-drawer-buttons-bar-border-color","",l.borderGlobalSubtle),buttonsBarColor:t.extend("--ftds-drawer-buttons-bar-color","",l.contentGlobalPrimary),buttonsBarHorizontalPadding:t.extend("--ftds-drawer-buttons-bar-horizontal-padding","",i.spacing6),buttonsBarVerticalPadding:t.extend("--ftds-drawer-buttons-bar-vertical-padding","",i.spacing4),buttonsBarGap:t.extend("--ftds-drawer-buttons-bar-gap","",i.spacing3),buttonsBarBorderWidth:t.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:t.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:t.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:t.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:t.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:t.extend("--ftds-drawer-overlay-background-color","",i.colorGray700)};var ny={offBorderBottomWidth:t.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:t.extend("--ftds-tabs-off-hover-state-layer-opacity","",i.opacity8),offDefaultStateLayerOpacity:t.extend("--ftds-tabs-off-default-state-layer-opacity","",i.opacity0),offFocusStateLayerOpacity:t.extend("--ftds-tabs-off-focus-state-layer-opacity","",i.opacity8),offDisabledComponentOpacity:t.extend("--ftds-tabs-off-disabled-component-opacity","",i.opacity40),offColor:t.extend("--ftds-tabs-off-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-tabs-off-state-layer-color","",l.contentGlobalSubtle),offBorderBottomColor:t.extend("--ftds-tabs-off-border-bottom-color","",l.borderGlobalSubtle),activeTabIndicatorHeight:t.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:t.extend("--ftds-tabs-top-left-border-radius","",i.borderRadiusS),topRightBorderRadius:t.extend("--ftds-tabs-top-right-border-radius","",i.borderRadiusS),withLabelHorizontalPadding:t.extend("--ftds-tabs-with-label-horizontal-padding","",i.spacing4),withLabelVerticalPadding:t.extend("--ftds-tabs-with-label-vertical-padding","",i.spacing3),horizontalGap:t.extend("--ftds-tabs-horizontal-gap","",i.spacing1),verticalGap:t.extend("--ftds-tabs-vertical-gap","",i.spacing1),onHoverStateLayerOpacity:t.extend("--ftds-tabs-on-hover-state-layer-opacity","",i.opacity16),onDefaultStateLayerOpacity:t.extend("--ftds-tabs-on-default-state-layer-opacity","",i.opacity8),onFocusStateLayerOpacity:t.extend("--ftds-tabs-on-focus-state-layer-opacity","",i.opacity16),onActiveStateLayerOpacity:t.extend("--ftds-tabs-on-active-state-layer-opacity","",i.opacity24),onColor:t.extend("--ftds-tabs-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-tabs-on-state-layer-color","",l.contentActionPrimary),onActiveTabIndicatorColor:t.extend("--ftds-tabs-on-active-tab-indicator-color","",l.contentActionPrimary),iconOnlyHorizontalPadding:t.extend("--ftds-tabs-icon-only-horizontal-padding","",i.spacing4),iconOnlyVerticalPadding:t.extend("--ftds-tabs-icon-only-vertical-padding","",i.spacing4),alertTopPadding:t.extend("--ftds-tabs-alert-top-padding","",i.spacing1),alertRightPadding:t.extend("--ftds-tabs-alert-right-padding","",i.spacing05),focusOutlineWidth:t.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-tabs-focus-focus-ring-color","",l.borderActionFocusRing)};var ly={largeFieldHorizontalPadding:t.extend("--ftds-text-input-large-field-horizontal-padding","",i.spacing4),largeFieldHorizontalGap:t.extend("--ftds-text-input-large-field-horizontal-gap","",i.spacing3),largeFieldVerticalGap:t.extend("--ftds-text-input-large-field-vertical-gap","",i.spacing05),largeFieldHeight:t.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:t.extend("--ftds-text-input-large-field-icon-size","",i.iconSize3),mediumFieldHorizontalPadding:t.extend("--ftds-text-input-medium-field-horizontal-padding","",i.spacing4),mediumFieldHorizontalGap:t.extend("--ftds-text-input-medium-field-horizontal-gap","",i.spacing3),mediumFieldVerticalGap:t.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:t.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:t.extend("--ftds-text-input-medium-field-icon-size","",i.iconSize3),helperHorizontalPadding:t.extend("--ftds-text-input-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-text-input-helper-horizontal-gap","",i.spacing1),helperIconSize:t.extend("--ftds-text-input-helper-icon-size","",i.iconSize2),borderRadius:t.extend("--ftds-text-input-border-radius","",i.borderRadiusS),backgroundColor:t.extend("--ftds-text-input-background-color","",i.colorWhite),contentValueColor:t.extend("--ftds-text-input-content-value-color","",l.contentGlobalPrimary),trailingIconColor:t.extend("--ftds-text-input-trailing-icon-color","",l.contentGlobalSubtle),labelColor:t.extend("--ftds-text-input-label-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-text-input-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-text-input-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ftds-text-input-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-text-input-error-helper-text-color","",l.contentErrorPrimary),errorHelperIconColor:t.extend("--ftds-text-input-error-helper-icon-color","",l.contentErrorIconOnly),warningBorderColor:t.extend("--ftds-text-input-warning-border-color","",l.borderWarningPrimary),warningHelperTextColor:t.extend("--ftds-text-input-warning-helper-text-color","",l.contentWarningPrimary),warningHelperIconColor:t.extend("--ftds-text-input-warning-helper-icon-color","",l.contentWarningIconOnly),warningBorderWidth:t.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:t.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-text-input-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-text-input-disabled-component-opacity","",i.opacity40)};var hy={backgroundColor:t.extend("--ftds-text-area-background-color","",i.colorWhite),contentValueColor:t.extend("--ftds-text-area-content-value-color","",l.contentGlobalPrimary),labelColor:t.extend("--ftds-text-area-label-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-text-area-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-text-area-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ftds-text-area-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-text-area-error-helper-text-color","",l.contentErrorPrimary),errorHelperIconColor:t.extend("--ftds-text-area-error-helper-icon-color","",l.contentErrorIconOnly),focusFocusRingColor:t.extend("--ftds-text-area-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:t.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-text-area-disabled-component-opacity","",i.opacity40),fieldHorizontalLeftPadding:t.extend("--ftds-text-area-field-horizontal-left-padding","",i.spacing4),fieldHorizontalGap:t.extend("--ftds-text-area-field-horizontal-gap","",i.spacing3),fieldVerticalGap:t.extend("--ftds-text-area-field-vertical-gap","",i.spacing05),fieldMinHeight:t.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:t.extend("--ftds-text-area-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-text-area-helper-horizontal-gap","",i.spacing1),helperIconSize:t.extend("--ftds-text-area-helper-icon-size","",i.iconSize2),borderRadius:t.extend("--ftds-text-area-border-radius","",i.borderRadiusS)};var vy={height:t.create("--ftds-floating-menu-height","","SIZE","50px"),horizontalPadding:t.extend("--ftds-floating-menu-horizontal-padding","",i.spacing4),offIconColor:t.extend("--ftds-floating-menu-off-icon-color","",l.contentGlobalPrimary),offColor:t.extend("--ftds-floating-menu-off-color","",l.contentGlobalPrimary),onColor:t.extend("--ftds-floating-menu-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-floating-menu-on-state-layer-color","",l.contentActionPrimary),gap:t.extend("--ftds-floating-menu-gap","",i.spacing3),focusFocusRingColor:t.extend("--ftds-floating-menu-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:t.extend("--ftds-floating-menu-focus-state-layer-opacity","",i.opacity24),hoverStateLayerOpacity:t.extend("--ftds-floating-menu-hover-state-layer-opacity","",i.opacity8),activeStateLayerOpacity:t.extend("--ftds-floating-menu-active-state-layer-opacity","",i.opacity16),disabledComponentOpacity:t.extend("--ftds-floating-menu-disabled-component-opacity","",i.opacity40),iconSize:t.extend("--ftds-floating-menu-icon-size","",i.iconSize3),backgroundColor:t.extend("--ftds-floating-menu-background-color","",l.backgroundGlobalOnSurface),shadow:t.extend("--ftds-floating-menu-shadow","",i.shadowElevation02)};var Ay={multiselectCheckedStateLayerColor:t.extend("--ftds-menu-item-multiselect-checked-state-layer-color","",l.contentActionPrimary),multiselectCheckedColor:t.extend("--ftds-menu-item-multiselect-checked-color","",l.contentGlobalPrimary),multiselectCheckedIconColor:t.extend("--ftds-menu-item-multiselect-checked-icon-color","",l.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-checked-default-state-layer-opacity","",i.opacity8),multiselectCheckedHoverStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-checked-hover-state-layer-opacity","",i.opacity16),multiselectCheckedFocusStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-checked-focus-state-layer-opacity","",i.opacity24),multiselectIndeterminatedStateLayerColor:t.extend("--ftds-menu-item-multiselect-indeterminated-state-layer-color","",l.contentActionPrimary),multiselectIndeterminatedColor:t.extend("--ftds-menu-item-multiselect-indeterminated-color","",l.contentGlobalPrimary),multiselectIndeterminatedIconColor:t.extend("--ftds-menu-item-multiselect-indeterminated-icon-color","",l.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-indeterminated-default-state-layer-opacity","",i.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-indeterminated-hover-state-layer-opacity","",i.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-indeterminated-focus-state-layer-opacity","",i.opacity24),multiselectUncheckedStateLayerColor:t.extend("--ftds-menu-item-multiselect-unchecked-state-layer-color","",l.contentGlobalPrimary),multiselectUncheckedColor:t.extend("--ftds-menu-item-multiselect-unchecked-color","",l.contentGlobalPrimary),multiselectUncheckedIconColor:t.extend("--ftds-menu-item-multiselect-unchecked-icon-color","",l.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-unchecked-default-state-layer-opacity","",i.opacity0),multiselectUncheckedHoverStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-unchecked-hover-state-layer-opacity","",i.opacity8),multiselectUncheckedFocusStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-unchecked-focus-state-layer-opacity","",i.opacity16),selectAllCheckedStateLayerColor:t.extend("--ftds-menu-item-select-all-checked-state-layer-color","",l.contentActionPrimary),selectAllCheckedColor:t.extend("--ftds-menu-item-select-all-checked-color","",l.contentGlobalPrimary),selectAllCheckedIconColor:t.extend("--ftds-menu-item-select-all-checked-icon-color","",l.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:t.extend("--ftds-menu-item-select-all-checked-default-state-layer-opacity","",i.opacity0),selectAllCheckedHoverStateLayerOpacity:t.extend("--ftds-menu-item-select-all-checked-hover-state-layer-opacity","",i.opacity16),selectAllCheckedFocusStateLayerOpacity:t.extend("--ftds-menu-item-select-all-checked-focus-state-layer-opacity","",i.opacity24),selectAllIndeterminatedStateLayerColor:t.extend("--ftds-menu-item-select-all-indeterminated-state-layer-color","",l.contentGlobalPrimary),selectAllIndeterminatedColor:t.extend("--ftds-menu-item-select-all-indeterminated-color","",l.contentGlobalPrimary),selectAllIndeterminatedIconColor:t.extend("--ftds-menu-item-select-all-indeterminated-icon-color","",l.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:t.extend("--ftds-menu-item-select-all-indeterminated-default-state-layer-opacity","",i.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:t.extend("--ftds-menu-item-select-all-indeterminated-hover-state-layer-opacity","",i.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:t.extend("--ftds-menu-item-select-all-indeterminated-focus-state-layer-opacity","",i.opacity16),selectAllUncheckedStateLayerColor:t.extend("--ftds-menu-item-select-all-unchecked-state-layer-color","",l.contentGlobalPrimary),selectAllUncheckedColor:t.extend("--ftds-menu-item-select-all-unchecked-color","",l.contentGlobalPrimary),selectAllUncheckedIconColor:t.extend("--ftds-menu-item-select-all-unchecked-icon-color","",l.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:t.extend("--ftds-menu-item-select-all-unchecked-default-state-layer-opacity","",i.opacity0),selectAllUncheckedHoverStateLayerOpacity:t.extend("--ftds-menu-item-select-all-unchecked-hover-state-layer-opacity","",i.opacity8),selectAllUncheckedFocusStateLayerOpacity:t.extend("--ftds-menu-item-select-all-unchecked-focus-state-layer-opacity","",i.opacity16),defaultUncheckedDefaultStateLayerOpacity:t.extend("--ftds-menu-item-default-unchecked-default-state-layer-opacity","",i.opacity0),defaultUncheckedHoverStateLayerOpacity:t.extend("--ftds-menu-item-default-unchecked-hover-state-layer-opacity","",i.opacity8),defaultUncheckedFocusStateLayerOpacity:t.extend("--ftds-menu-item-default-unchecked-focus-state-layer-opacity","",i.opacity16),defaultUncheckedStateLayerColor:t.extend("--ftds-menu-item-default-unchecked-state-layer-color","",l.contentGlobalPrimary),defaultUncheckedColor:t.extend("--ftds-menu-item-default-unchecked-color","",l.contentGlobalPrimary),defaultUncheckedIconColor:t.extend("--ftds-menu-item-default-unchecked-icon-color","",l.contentGlobalSubtle),defaultCheckedDefaultStateLayerOpacity:t.extend("--ftds-menu-item-default-checked-default-state-layer-opacity","",i.opacity8),defaultCheckedHoverStateLayerOpacity:t.extend("--ftds-menu-item-default-checked-hover-state-layer-opacity","",i.opacity16),defaultCheckedFocusStateLayerOpacity:t.extend("--ftds-menu-item-default-checked-focus-state-layer-opacity","",i.opacity24),defaultCheckedStateLayerColor:t.extend("--ftds-menu-item-default-checked-state-layer-color","",l.contentActionPrimary),defaultCheckedColor:t.extend("--ftds-menu-item-default-checked-color","",l.contentActionPrimary),defaultCheckedIconColor:t.extend("--ftds-menu-item-default-checked-icon-color","",l.contentActionPrimary)};var Ty={menuVerticalGap:t.extend("--ftds-combobox-menu-vertical-gap","",i.spacing2),valuesHorizontalGap:t.extend("--ftds-combobox-values-horizontal-gap","",i.spacing2),valuesVerticalGap:t.extend("--ftds-combobox-values-vertical-gap","",i.spacing2)};var Ny={backgroundColor:t.extend("--ftds-popover-background-color","",l.backgroundGlobalOnSurface),horizontalPadding:t.extend("--ftds-popover-horizontal-padding","",i.spacing6),verticalPadding:t.extend("--ftds-popover-vertical-padding","",i.spacing6),titleColor:t.extend("--ftds-popover-title-color","",l.contentGlobalPrimary),bodyColor:t.extend("--ftds-popover-body-color","",l.contentGlobalSecondary),gap:t.extend("--ftds-popover-gap","",i.spacing2),borderRadius:t.extend("--ftds-popover-border-radius","",i.borderRadiusM),shadow:t.extend("--ftds-popover-shadow","",i.shadowElevation02),maxWidth:t.create("--ftds-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:t.extend("--ftds-popover-content-section-vertical-gap","",i.spacing2),multiSectionVerticalGap:t.extend("--ftds-popover-multi-section-vertical-gap","",i.spacing6)};var Uy={hoverStateLayerOpacity:t.extend("--ftds-collapsible-hover-state-layer-opacity","",i.opacity8),focusStateLayerOpacity:t.extend("--ftds-collapsible-focus-state-layer-opacity","",i.opacity8),focusOutlineWidth:t.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:t.extend("--ftds-collapsible-focus-focus-ring-color","",l.borderActionFocusRing),activeStateLayerOpacity:t.extend("--ftds-collapsible-active-state-layer-opacity","",i.opacity16),disabledComponentOpacity:t.extend("--ftds-collapsible-disabled-component-opacity","",i.opacity40),horizontalPadding:t.extend("--ftds-collapsible-horizontal-padding","",i.spacing4),verticalPadding:t.extend("--ftds-collapsible-vertical-padding","",i.spacing3),color:t.extend("--ftds-collapsible-color","",l.contentGlobalPrimary),stateLayerColor:t.extend("--ftds-collapsible-state-layer-color","",l.contentGlobalPrimary),backgroundColor:t.extend("--ftds-collapsible-background-color","",l.backgroundGlobalOnSurface),borderColor:t.extend("--ftds-collapsible-border-color","",l.borderGlobalSubtle),iconSize:t.extend("--ftds-collapsible-icon-size","",i.iconSize3)};var $y={groupHorizontalPadding:t.extend("--ftds-switch-group-horizontal-padding","",i.spacing1),groupVerticalPadding:t.extend("--ftds-switch-group-vertical-padding","",i.spacing1),groupGap:t.extend("--ftds-switch-group-gap","",i.spacing1),groupBackgroundColor:t.extend("--ftds-switch-group-background-color","",l.backgroundGlobalSurface),groupBorderColor:t.extend("--ftds-switch-group-border-color","",l.borderGlobalSubtle),groupBorderRadius:t.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:t.extend("--ftds-switch-label-horizontal-padding","",i.spacing2),labelVerticalPadding:t.extend("--ftds-switch-label-vertical-padding","",i.spacing1),offHoverStateLayerOpacity:t.extend("--ftds-switch-off-hover-state-layer-opacity","",i.opacity8),offFocusStateLayerOpacity:t.extend("--ftds-switch-off-focus-state-layer-opacity","",i.opacity8),offActiveStateLayerOpacity:t.extend("--ftds-switch-off-active-state-layer-opacity","",i.opacity16),offDisabledComponentOpacity:t.extend("--ftds-switch-off-disabled-component-opacity","",i.opacity40),offColor:t.extend("--ftds-switch-off-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-switch-off-state-layer-color","",l.contentGlobalSubtle),onHoverStateLayerOpacity:t.extend("--ftds-switch-on-hover-state-layer-opacity","",i.opacity8),onFocusStateLayerOpacity:t.extend("--ftds-switch-on-focus-state-layer-opacity","",i.opacity8),onActiveStateLayerOpacity:t.extend("--ftds-switch-on-active-state-layer-opacity","",i.opacity16),onDisabledComponentOpacity:t.extend("--ftds-switch-on-disabled-component-opacity","",i.opacity40),onColor:t.extend("--ftds-switch-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-switch-on-state-layer-color","",l.contentActionPrimary),iconHorizontalPadding:t.extend("--ftds-switch-icon-horizontal-padding","",i.spacing1),iconVerticalPadding:t.extend("--ftds-switch-icon-vertical-padding","",i.spacing1),focusOutlineWidth:t.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-switch-focus-focus-ring-color","",l.borderActionFocusRing),optionBorderRadius:t.extend("--ftds-switch-option-border-radius","",i.borderRadiusS)};var Ky={color1Light:t.extend("--ftds-chart-1-light","for area color charts",i.colorBrand40),color1Base:t.extend("--ftds-chart-1-base","for line charts",i.colorBrand0),color2Light:t.extend("--ftds-chart-2-light","for area color charts",i.colorYellow60),color2Base:t.extend("--ftds-chart-2-base","for line charts",i.colorYellow100),color3Light:t.extend("--ftds-chart-3-light","",i.colorUltramarine40),color3Base:t.extend("--ftds-chart-3-base","",i.colorUltramarine70),color4Light:t.extend("--ftds-chart-4-light","",i.colorCyan50),color4Base:t.extend("--ftds-chart-4-base","",i.colorCyan100),color5Light:t.extend("--ftds-chart-5-light","",i.colorRed40),color5Base:t.extend("--ftds-chart-5-base","",i.colorRed60),color6Light:t.extend("--ftds-chart-6-light","",i.colorGreen40),color6Base:t.extend("--ftds-chart-6-base","",i.colorGreen70),color7Light:t.extend("--ftds-chart-7-light","",i.colorOrange70),color7Base:t.extend("--ftds-chart-7-base","",i.colorOrange100),color8Light:t.extend("--ftds-chart-8-light","",i.colorAvocado70),color8Base:t.extend("--ftds-chart-8-base","",i.colorAvocado200),color9Light:t.extend("--ftds-chart-9-light","",i.colorBrown50),color9Base:t.extend("--ftds-chart-9-base","",i.colorBrown200),color10Light:t.extend("--ftds-chart-10-light","",i.colorGray50),color10Base:t.extend("--ftds-chart-10-base","",i.colorGray80),monochrome10:t.extend("--ftds-chart-monochrome-10","",i.colorBrand10),monochrome20:t.extend("--ftds-chart-monochrome-20","",i.colorBrand20),monochrome30:t.extend("--ftds-chart-monochrome-30","",i.colorBrand40),monochrome40:t.extend("--ftds-chart-monochrome-40","",i.colorBrand60),monochrome50:t.extend("--ftds-chart-monochrome-50","",i.colorBrand0),monochrome60:t.extend("--ftds-chart-monochrome-60","",i.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",i.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",i.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",i.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",i.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",i.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:t.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",i.opacity48),scatterplotDatapointInitialHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",i.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",i.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",i.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",i.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:t.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",i.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",i.colorGray70),scatterplotDatapointHoverHoverRingColor:t.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",i.colorCyan200)};var Qy={color1IconColor:t.extend("--ftds-page-designer-1-icon-color","for area color charts",i.colorCyan0),color1ToolbarColor:t.extend("--ftds-page-designer-1-toolbar-color","for area color charts",i.colorCyan0),color2IconColor:t.extend("--ftds-page-designer-2-icon-color","for area color charts",i.colorBrand0),color2ToolbarColor:t.extend("--ftds-page-designer-2-toolbar-color","for area color charts",i.colorBrand0),color3IconColor:t.extend("--ftds-page-designer-3-icon-color","for area color charts",i.colorYellow200),color3ToolbarColor:t.extend("--ftds-page-designer-3-toolbar-color","for area color charts",i.colorYellow200),color4IconColor:t.extend("--ftds-page-designer-4-icon-color","for area color charts",i.colorUltramarine50),color4ToolbarColor:t.extend("--ftds-page-designer-4-toolbar-color","for area color charts",i.colorUltramarine50),color5IconColor:t.extend("--ftds-page-designer-5-icon-color","for area color charts",i.colorGreen0),color5ToolbarColor:t.extend("--ftds-page-designer-5-toolbar-color","for area color charts",i.colorGreen0),color6IconColor:t.extend("--ftds-page-designer-6-icon-color","for area color charts",i.colorOrange0),color6ToolbarColor:t.extend("--ftds-page-designer-6-toolbar-color","for area color charts",i.colorOrange0),color7IconColor:t.extend("--ftds-page-designer-7-icon-color","for area color charts",i.colorAvocado200),color7ToolbarColor:t.extend("--ftds-page-designer-7-toolbar-color","for area color charts",i.colorAvocado200),color8IconColor:t.extend("--ftds-page-designer-8-icon-color","for area color charts",i.colorBrown0),color8ToolbarColor:t.extend("--ftds-page-designer-8-toolbar-color","for area color charts",i.colorBrown0)};var rg={borderWidth:t.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:t.extend("--ftds-notice-horizontal-padding","",i.spacing3),verticalPadding:t.extend("--ftds-notice-vertical-padding","",i.spacing2),borderRadius:t.extend("--ftds-notice-border-radius","",i.borderRadiusS),gap:t.extend("--ftds-notice-gap","",i.spacing2),iconSize:t.extend("--ftds-notice-icon-size","",i.iconSize3),infoBackgroundColor:t.extend("--ftds-notice-info-background-color","",l.backgroundInfoSubtle),infoBorderColor:t.extend("--ftds-notice-info-border-color","",l.borderInfoSubtle),infoColor:t.extend("--ftds-notice-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-notice-info-icon-color","",l.contentInfoIconOnly),warningBackgroundColor:t.extend("--ftds-notice-warning-background-color","",l.backgroundWarningSubtle),warningBorderColor:t.extend("--ftds-notice-warning-border-color","",l.borderWarningSubtle),warningColor:t.extend("--ftds-notice-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-notice-warning-icon-color","",l.contentWarningIconOnly),errorBackgroundColor:t.extend("--ftds-notice-error-background-color","",l.backgroundErrorSubtle),errorBorderColor:t.extend("--ftds-notice-error-border-color","",l.borderErrorSubtle),errorColor:t.extend("--ftds-notice-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-notice-error-icon-color","",l.contentErrorIconOnly),successBackgroundColor:t.extend("--ftds-notice-success-background-color","",l.backgroundSuccessSubtle),successBorderColor:t.extend("--ftds-notice-success-border-color","",l.borderSuccessSubtle),successColor:t.extend("--ftds-notice-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-notice-success-icon-color","",l.contentSuccessIconOnly),denseHorizontalPadding:t.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:t.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:t.extend("--ftds-notice-dense-gap","",i.spacing1),denseIconSize:t.extend("--ftds-notice-dense-icon-size","",i.iconSize2),denseBorderWidth:t.create("--ftds-notice-dense-border-width","","SIZE","0")};var sg={offHoverStateLayerOpacity:t.extend("--ftds-toggle-off-hover-state-layer-opacity","",i.opacity16),offFocusStateLayerOpacity:t.extend("--ftds-toggle-off-focus-state-layer-opacity","",i.opacity16),offActiveStateLayerOpacity:t.extend("--ftds-toggle-off-active-state-layer-opacity","",i.opacity24),offDisabledComponentOpacity:t.extend("--ftds-toggle-off-disabled-component-opacity","",i.opacity40),offBackgroundColor:t.extend("--ftds-toggle-off-background-color","",l.contentGlobalSubtle),offIconColor:t.extend("--ftds-toggle-off-icon-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-toggle-off-state-layer-color","",l.contentGlobalSubtle),onHoverStateLayerOpacity:t.extend("--ftds-toggle-on-hover-state-layer-opacity","",i.opacity16),onFocusStateLayerOpacity:t.extend("--ftds-toggle-on-focus-state-layer-opacity","",i.opacity16),onActiveStateLayerOpacity:t.extend("--ftds-toggle-on-active-state-layer-opacity","",i.opacity24),onDisabledComponentOpacity:t.extend("--ftds-toggle-on-disabled-component-opacity","",i.opacity40),onBackgroundColor:t.extend("--ftds-toggle-on-background-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-toggle-on-state-layer-color","",l.contentActionPrimary),onIconColor:t.extend("--ftds-toggle-on-icon-color","",l.contentActionPrimary),color:t.extend("--ftds-toggle-color","",l.contentGlobalPrimary),focusFocusRingColor:t.extend("--ftds-toggle-focus-focus-ring-color","",l.borderActionFocusRing),gap:t.extend("--ftds-toggle-gap","",i.spacing3)};var pg={iconSize:t.extend("--ftds-notification-icon-size","",i.iconSize4),leftPadding:t.extend("--ftds-notification-left-padding","",i.spacing5),rightPadding:t.extend("--ftds-notification-right-padding","",i.spacing4),verticalPadding:t.extend("--ftds-notification-vertical-padding","",i.spacing3),infoBackgroundColor:t.extend("--ftds-notification-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-notification-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-notification-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-notification-info-border-color","",l.borderInfoSubtle),successBackgroundColor:t.extend("--ftds-notification-success-background-color","",l.backgroundSuccessSubtle),successColor:t.extend("--ftds-notification-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-notification-success-icon-color","",l.contentSuccessIconOnly),successBorderColor:t.extend("--ftds-notification-success-border-color","",l.borderSuccessSubtle),warningBackgroundColor:t.extend("--ftds-notification-warning-background-color","",l.backgroundWarningSubtle),warningColor:t.extend("--ftds-notification-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-notification-warning-icon-color","",l.contentWarningIconOnly),warningBorderColor:t.extend("--ftds-notification-warning-border-color","",l.borderWarningSubtle),errorBackgroundColor:t.extend("--ftds-notification-error-background-color","",l.backgroundErrorSubtle),errorColor:t.extend("--ftds-notification-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-notification-error-icon-color","",l.contentErrorIconOnly),errorBorderColor:t.extend("--ftds-notification-error-border-color","",l.borderErrorSubtle),borderRadius:t.extend("--ftds-notification-border-radius","",i.borderRadiusPill),borderWidth:t.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:t.extend("--ftds-notification-leading-gap","",i.spacing2),trailingGap:t.extend("--ftds-notification-trailing-gap","",i.spacing8)};var mg={horizontalPadding:t.extend("--ftds-tooltip-horizontal-padding","",i.spacing2),verticalPadding:t.extend("--ftds-tooltip-vertical-padding","",i.spacing2),borderRadius:t.extend("--ftds-tooltip-border-radius","",i.borderRadiusS),color:t.extend("--ftds-tooltip-color","",l.contentGlobalOnColor),backgroundColor:t.extend("--ftds-tooltip-background-color","",l.contentGlobalPrimary),backgroundOpacity:t.extend("--ftds-tooltip-background-opacity","",i.opacity80),shadow:t.extend("--ftds-tooltip-shadow","",i.shadowElevation02),maxWidth:t.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:t.extend("--ftds-tooltip-gap","",i.spacing05)};var Cg={verticalPadding:t.extend("--ftds-reorderable-list-vertical-padding","",i.spacing4),gap:t.extend("--ftds-reorderable-list-gap","",i.spacing1),borderRadius:t.extend("--ftds-reorderable-list-border-radius","",i.borderRadiusM),reorderableItemTitleMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",i.spacing6),reorderableItemTitleColor:t.extend("--ftds-reorderable-list-reorderable-item-title-color","",l.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",i.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:t.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",i.spacing2),reorderableItemRightButtonsGroupHorizontalGap:t.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",i.spacing2),reorderableItemUsersCountColor:t.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",l.contentGlobalPrimary),reorderableItemUsersCountMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",i.spacing6),reorderableItemBackgroundColor:t.extend("--ftds-reorderable-list-reorderable-item-background-color","",l.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",i.spacing1),reorderableItemWarningMessageColor:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",l.contentWarningPrimary),reorderableItemWarningMessageIconColor:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",l.contentWarningIconOnly),reorderableItemGripColor:t.extend("--ftds-reorderable-list-reorderable-item-grip-color","",l.contentGlobalSecondary),reorderableItemGripOpacity:t.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",i.opacity48),boxShadow:t.extend("--ftds-reorderable-list-box-shadow","",i.shadowElevation01),borderWidth:t.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:t.extend("--ftds-reorderable-list-reorderable-items-gap","",i.spacing2),leftPadding:t.extend("--ftds-reorderable-list-left-padding","",i.spacing2),rightPadding:t.extend("--ftds-reorderable-list-right-padding","",i.spacing6),borderColor:t.extend("--ftds-reorderable-list-border-color","",l.borderGlobalPrimary),backgroundColor:t.extend("--ftds-reorderable-list-background-color","",l.backgroundGlobalOnSurfaceDark)};var wg={menuHorizontalPadding:t.extend("--ftds-date-range-picker-menu-horizontal-padding","",i.spacing4),menuVerticalPadding:t.extend("--ftds-date-range-picker-menu-vertical-padding","",i.spacing4),menuVerticalGap:t.extend("--ftds-date-range-picker-menu-vertical-gap","",i.spacing4),menuButtonsVerticalGap:t.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",i.spacing2)};var Ji;(function(o){o.brand="brand",o.neutral="neutral",o.info="info",o.success="success",o.warning="warning",o.error="error"})(Ji||(Ji={}));var es;(function(o){o.large="large",o.medium="medium",o.small="small"})(es||(es={}));var Et=C(V());function bc(o,e){let r=Ho[o];return Et.css`
|
|
185
|
-
${e?(0,
|
|
183
|
+
`}};qe.styles=[Li,ki,Ni,Pi,Mr,Di,Mi,Fi,Ui,Bi,Hi];zi([(0,$o.property)()],qe.prototype,"element",void 0);zi([(0,$o.property)()],qe.prototype,"variant",void 0);var jo=S(J()),ls=S(_());var Fr;(function(o){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.caption1medium="caption-1-medium",o.caption1semibold="caption-1-semibold",o.caption2medium="caption-2-medium",o.caption2semibold="caption-2-semibold",o.caption2bold="caption-2-bold"})(Fr||(Fr={}));var Ce=S(j(),1),Le=o=>typeof o=="string"?(0,Ce.unsafeCSS)(o):o,t=class{static create(e,r,n,a){let s=d=>Le(d??a),c=Ce.css`var(${Le(e)}, ${s(a)})`;return c.name=e,c.description=r,c.category=n,c.defaultValue=a,c.defaultCssValue=s,c.set=d=>$i(c,d??s(a)),c.get=d=>Ce.css`var(${Le(e)}, ${s(d)})`,c.breadcrumb=()=>[],c.lastResortDefaultValue=()=>a,c}static extend(e,r,n,a){let s=d=>n.get(d??a),c=Ce.css`var(${Le(e)}, ${s(a)})`;return c.name=e,c.description=r,c.category=n.category,c.fallbackVariable=n,c.defaultValue=a,c.defaultCssValue=s,c.set=d=>$i(c,d??s(a)),c.get=d=>Ce.css`var(${Le(e)}, ${s(d)})`,c.breadcrumb=()=>[n.name,...n.breadcrumb()],c.lastResortDefaultValue=()=>a??n.lastResortDefaultValue(),c}static external(e,r){let n=s=>e.defaultCssValue(s),a=Ce.css`var(${Le(e.name)}, ${n(e.defaultValue)})`;return a.name=e.name,a.category=e.category,a.fallbackVariable=e.fallbackVariable,a.defaultValue=e.defaultValue,a.context=r,a.defaultCssValue=n,a.set=s=>e.set(s),a.get=s=>Ce.css`var(${Le(e.name)}, ${n(s)})`,a.breadcrumb=()=>e.breadcrumb(),a.lastResortDefaultValue=()=>e.lastResortDefaultValue(),a}};function $i(o,e){return Le(`${o.name}: ${e}`)}var i={colorWhite:t.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:t.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:t.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:t.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:t.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:t.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:t.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:t.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:t.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:t.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:t.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:t.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:t.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:t.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:t.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:t.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:t.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:t.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:t.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:t.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:t.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:t.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:t.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:t.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:t.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:t.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:t.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:t.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:t.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:t.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:t.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:t.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:t.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:t.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:t.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:t.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:t.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:t.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:t.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:t.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:t.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:t.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:t.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:t.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:t.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:t.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:t.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:t.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:t.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:t.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:t.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:t.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:t.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:t.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:t.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:t.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:t.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:t.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:t.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:t.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:t.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:t.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:t.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:t.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:t.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:t.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:t.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:t.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:t.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:t.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:t.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:t.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:t.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:t.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:t.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:t.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:t.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:t.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:t.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:t.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:t.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:t.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:t.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:t.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:t.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:t.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:t.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:t.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:t.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:t.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:t.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:t.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:t.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:t.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:t.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:t.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:t.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:t.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:t.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:t.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:t.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:t.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:t.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:t.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:t.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:t.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:t.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:t.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:t.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:t.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:t.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:t.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:t.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:t.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:t.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:t.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:t.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:t.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:t.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:t.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:t.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:t.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:t.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:t.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:t.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:t.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:t.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:t.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:t.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:t.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:t.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:t.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:t.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:t.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:t.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:t.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:t.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:t.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:t.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:t.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:t.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:t.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:t.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:t.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:t.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:t.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:t.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:t.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:t.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:t.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:t.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:t.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:t.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:t.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:t.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:t.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:t.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:t.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:t.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:t.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:t.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:t.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:t.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:t.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:t.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:t.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:t.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:t.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:t.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:t.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:t.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:t.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:t.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:t.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:t.create("--ftds-icon-size-1","","SIZE","0.75rem"),iconSize2:t.create("--ftds-icon-size-2","","SIZE","1rem"),iconSize3:t.create("--ftds-icon-size-3","","SIZE","1.25rem"),iconSize4:t.create("--ftds-icon-size-4","","SIZE","1.5rem"),iconSize5:t.create("--ftds-icon-size-5","","SIZE","2rem"),iconSize6:t.create("--ftds-icon-size-6","","SIZE","3rem"),opacity0:t.create("--ftds-opacity-0","","NUMBER","0"),opacity8:t.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:t.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:t.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:t.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:t.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:t.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:t.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:t.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:t.create("--ftds-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:t.create("--ftds-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:t.create("--ftds-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:t.create("--ftds-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:t.create("--ftds-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:t.create("--ftds-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:t.create("--ftds-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:t.create("--ftds-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:t.create("--ftds-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Wi={fontFamily:t.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:t.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-display-text-case","","UNKNOWN","none")},ji={fontFamily:t.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:t.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Vi={fontFamily:t.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:t.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Ki={fontFamily:t.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:t.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:t.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Zi={fontFamily:t.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:t.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},qi={fontFamily:t.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Yi={fontFamily:t.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Qi={fontFamily:t.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:t.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Xi={fontFamily:t.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Ac={fontFamily:t.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:t.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:t.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Ji={fontFamily:t.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},es={fontFamily:t.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:t.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},ts={fontFamily:t.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:t.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},rs={fontFamily:t.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},os={fontFamily:t.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},ns={fontFamily:t.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:t.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Wo={display:Wi,"title-1":ji,"title-2":Vi,"title-3":Ki,"body-1-regular":Zi,"body-1-medium":qi,"body-1-semibold":Yi,"body-2-regular":Qi,"body-2-medium":Xi,"body-2-medium-underline":Ac,"body-2-semibold":Ji,"caption-1-medium":es,"caption-1-semibold":ts,"caption-2-medium":rs,"caption-2-semibold":os,"caption-2-bold":ns};var l={backgroundActionPrimary:t.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",i.colorBrand0),backgroundErrorSubtle:t.extend("--ftds-background-error-subtle","Used as background of subtle error components.",i.colorRed10),backgroundInfoSubtle:t.extend("--ftds-background-info-subtle","Used as background of subtle information components.",i.colorCyan10),backgroundWarningSubtle:t.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",i.colorOrange10),backgroundSuccessSubtle:t.extend("--ftds-background-success-subtle","Used as background of subtle success components.",i.colorGreen10),backgroundGlobalSurface:t.extend("--ftds-background-global-surface","Used as app background.",i.colorWhite),backgroundGlobalOnSurface:t.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",i.colorGray10),backgroundGlobalOnSurfaceDark:t.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",i.colorGray30),contentActionPrimary:t.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",i.colorBrand0),contentWarningPrimary:t.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",i.colorOrange200),contentWarningIconOnly:t.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",i.colorOrange0),contentErrorPrimary:t.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",i.colorRed0),contentErrorIconOnly:t.extend("--ftds-content-error-icon-only","Used on error status icons alone",i.colorRed70),contentInfoPrimary:t.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",i.colorCyan200),contentInfoIconOnly:t.extend("--ftds-content-info-icon-only","Used on info status icons alone",i.colorCyan0),contentSuccessPrimary:t.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",i.colorGreen200),contentSuccessIconOnly:t.extend("--ftds-content-success-icon-only","Used on success status icons alone",i.colorGreen0),contentGlobalPrimary:t.extend("--ftds-content-global-primary","Used for main content on the page.",i.colorGray500),contentGlobalSecondary:t.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
184
|
+
Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",i.colorGray0),contentGlobalOnColor:t.extend("--ftds-content-global-on-color","Used for content on a dominant color.",i.colorWhite),borderActionPrimary:t.extend("--ftds-border-action-primary","Used as border for primary action components.",i.colorBrand0),borderActionFocusRing:t.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",i.colorCyan0),borderWarningPrimary:t.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",i.colorOrange200),borderWarningSubtle:t.extend("--ftds-border-warning-subtle","Used as border for warning components.",i.colorOrange30),borderSuccessPrimary:t.extend("--ftds-border-success-primary","Used as border for success buttons.",i.colorGreen200),borderSuccessSubtle:t.extend("--ftds-border-success-subtle","Used as border for success components.",i.colorGreen30),borderErrorPrimary:t.extend("--ftds-border-error-primary","Used as border for text fields in error states.",i.colorRed0),borderErrorSubtle:t.extend("--ftds-border-error-subtle","Used as border for error components.",i.colorRed30),borderInfoPrimary:t.extend("--ftds-border-info-primary","Used as border for buttons in info color.",i.colorCyan200),borderInfoSubtle:t.extend("--ftds-border-info-subtle","Used as border for information components.",i.colorCyan30),borderGlobalPrimary:t.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",i.colorGray50),borderGlobalSecondary:t.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",i.colorGray40),borderGlobalSubtle:t.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",i.colorGray30),borderInputPrimary:t.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",i.colorGray80),borderNeutralPrimary:t.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",i.colorGray200)};var jf={largeHeight:t.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:t.extend("--ftds-button-large-horizontal-padding","",i.spacing4),largeGap:t.extend("--ftds-button-large-gap","",i.spacing2),largeBorderRadius:t.extend("--ftds-button-large-border-radius","",i.borderRadiusS),largeIconSize:t.extend("--ftds-button-large-icon-size","",i.iconSize3),largeBorderWidth:t.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:t.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:t.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:t.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:t.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:t.extend("--ftds-button-medium-horizontal-padding","",i.spacing3),mediumGap:t.extend("--ftds-button-medium-gap","",i.spacing2),mediumBorderRadius:t.extend("--ftds-button-medium-border-radius","",i.borderRadiusS),mediumIconSize:t.extend("--ftds-button-medium-icon-size","",i.iconSize2),mediumBorderWidth:t.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:t.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:t.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:t.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:t.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:t.extend("--ftds-button-small-horizontal-padding","",i.spacing2),smallGap:t.extend("--ftds-button-small-gap","",i.spacing1),smallBorderRadius:t.extend("--ftds-button-small-border-radius","",i.borderRadiusS),smallIconSize:t.extend("--ftds-button-small-icon-size","",i.iconSize1),smallBorderWidth:t.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:t.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:t.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:t.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:t.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:t.extend("--ftds-button-x-small-icon-size","",i.iconSize1),xSmallFocusOutlineOffset:t.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:t.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:t.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:t.extend("--ftds-button-round-border-radius","",i.borderRadiusPill),primaryBrandBackgroundColor:t.extend("--ftds-button-primary-brand-background-color","",l.backgroundActionPrimary),primaryBrandColor:t.extend("--ftds-button-primary-brand-color","",l.contentGlobalOnColor),primaryBrandIconColor:t.extend("--ftds-button-primary-brand-icon-color","",l.contentGlobalOnColor),primaryBrandStateLayerColor:t.extend("--ftds-button-primary-brand-state-layer-color","",l.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",i.opacity16),primaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",i.opacity16),primaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-primary-brand-active-state-layer-opacity","",i.opacity24),primaryBrandDisabledComponentOpacity:t.extend("--ftds-button-primary-brand-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-button-focus-focus-ring-color","",l.borderActionFocusRing),tertiaryBrandBackgroundColor:t.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:t.extend("--ftds-button-tertiary-brand-color","",l.contentActionPrimary),tertiaryBrandIconColor:t.extend("--ftds-button-tertiary-brand-icon-color","",l.contentActionPrimary),tertiaryBrandStateLayerColor:t.extend("--ftds-button-tertiary-brand-state-layer-color","",l.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",i.opacity8),tertiaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",i.opacity8),tertiaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",i.opacity16),tertiaryBrandDisabledComponentOpacity:t.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",i.opacity40),tertiaryInfoBackgroundColor:t.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:t.extend("--ftds-button-tertiary-info-color","",l.contentInfoPrimary),tertiaryInfoIconColor:t.extend("--ftds-button-tertiary-info-icon-color","",l.contentInfoPrimary),tertiaryInfoStateLayerColor:t.extend("--ftds-button-tertiary-info-state-layer-color","",l.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",i.opacity8),tertiaryInfoHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",i.opacity8),tertiaryInfoActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",i.opacity16),tertiaryInfoDisabledComponentOpacity:t.extend("--ftds-button-tertiary-info-disabled-component-opacity","",i.opacity40),tertiarySuccessBackgroundColor:t.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:t.extend("--ftds-button-tertiary-success-color","",l.contentSuccessPrimary),tertiarySuccessIconColor:t.extend("--ftds-button-tertiary-success-icon-color","",l.contentSuccessPrimary),tertiarySuccessStateLayerColor:t.extend("--ftds-button-tertiary-success-state-layer-color","",l.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",i.opacity8),tertiarySuccessFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",i.opacity8),tertiarySuccessActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",i.opacity16),tertiarySuccessDisabledComponentOpacity:t.extend("--ftds-button-tertiary-success-disabled-component-opacity","",i.opacity40),tertiaryWarningBackgroundColor:t.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:t.extend("--ftds-button-tertiary-warning-color","",l.contentWarningPrimary),tertiaryWarningIconColor:t.extend("--ftds-button-tertiary-warning-icon-color","",l.contentWarningPrimary),tertiaryWarningStateLayerColor:t.extend("--ftds-button-tertiary-warning-state-layer-color","",l.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",i.opacity8),tertiaryWarningFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",i.opacity8),tertiaryWarningActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",i.opacity16),tertiaryWarningDisabledComponentOpacity:t.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",i.opacity40),tertiaryErrorBackgroundColor:t.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:t.extend("--ftds-button-tertiary-error-color","",l.contentErrorPrimary),tertiaryErrorIconColor:t.extend("--ftds-button-tertiary-error-icon-color","",l.contentErrorPrimary),tertiaryErrorStateLayerColor:t.extend("--ftds-button-tertiary-error-state-layer-color","",l.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",i.opacity8),tertiaryErrorFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",i.opacity8),tertiaryErrorActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",i.opacity16),tertiaryErrorDisabledComponentOpacity:t.extend("--ftds-button-tertiary-error-disabled-component-opacity","",i.opacity40),tertiaryNeutralBackgroundColor:t.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:t.extend("--ftds-button-tertiary-neutral-icon-color","",l.contentGlobalSecondary),tertiaryNeutralColor:t.extend("--ftds-button-tertiary-neutral-color","",l.contentGlobalSecondary),tertiaryNeutralStateLayerColor:t.extend("--ftds-button-tertiary-neutral-state-layer-color","",l.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",i.opacity8),tertiaryNeutralFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",i.opacity8),tertiaryNeutralActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",i.opacity16),tertiaryNeutralDisabledComponentOpacity:t.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",i.opacity40),secondaryBrandBackgroundColor:t.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:t.extend("--ftds-button-secondary-brand-color","",l.contentActionPrimary),secondaryBrandIconColor:t.extend("--ftds-button-secondary-brand-icon-color","",l.contentActionPrimary),secondaryBrandStateLayerColor:t.extend("--ftds-button-secondary-brand-state-layer-color","",l.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",i.opacity8),secondaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",i.opacity8),secondaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",i.opacity16),secondaryBrandDisabledComponentOpacity:t.extend("--ftds-button-secondary-brand-disabled-component-opacity","",i.opacity40),secondaryBrandBorderColor:t.extend("--ftds-button-secondary-brand-border-color","",l.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",i.opacity8),secondaryNeutralFocusStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",i.opacity8),secondaryNeutralActiveStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",i.opacity16),secondaryNeutralDisabledComponentOpacity:t.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",i.opacity40),secondaryNeutralBackgroundColor:t.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:t.extend("--ftds-button-secondary-neutral-color","",l.contentGlobalSecondary),secondaryNeutralIconColor:t.extend("--ftds-button-secondary-neutral-icon-color","",l.contentGlobalSecondary),secondaryNeutralStateLayerColor:t.extend("--ftds-button-secondary-neutral-state-layer-color","",l.contentGlobalSecondary),secondaryNeutralBorderColor:t.extend("--ftds-button-secondary-neutral-border-color","",l.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:t.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",i.opacity8),secondaryInfoFocusStateLayerOpacity:t.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",i.opacity8),secondaryInfoActiveStateLayerOpacity:t.extend("--ftds-button-secondary-info-active-state-layer-opacity","",i.opacity16),secondaryInfoDisabledComponentOpacity:t.extend("--ftds-button-secondary-info-disabled-component-opacity","",i.opacity40),secondaryInfoBackgroundColor:t.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:t.extend("--ftds-button-secondary-info-border-color","",l.borderInfoPrimary),secondaryInfoColor:t.extend("--ftds-button-secondary-info-color","",l.contentInfoPrimary),secondaryInfoIconColor:t.extend("--ftds-button-secondary-info-icon-color","",l.contentInfoPrimary),secondaryInfoStateLayerColor:t.extend("--ftds-button-secondary-info-state-layer-color","",l.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:t.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",i.opacity8),secondarySuccessFocusStateLayerOpacity:t.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",i.opacity8),secondarySuccessActiveStateLayerOpacity:t.extend("--ftds-button-secondary-success-active-state-layer-opacity","",i.opacity16),secondarySuccessDisabledComponentOpacity:t.extend("--ftds-button-secondary-success-disabled-component-opacity","",i.opacity40),secondarySuccessBackgroundColor:t.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:t.extend("--ftds-button-secondary-success-border-color","",l.borderSuccessPrimary),secondarySuccessColor:t.extend("--ftds-button-secondary-success-color","",l.contentSuccessPrimary),secondarySuccessIconColor:t.extend("--ftds-button-secondary-success-icon-color","",l.contentSuccessPrimary),secondarySuccessStateLayerColor:t.extend("--ftds-button-secondary-success-state-layer-color","",l.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:t.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",i.opacity8),secondaryWarningFocusStateLayerOpacity:t.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",i.opacity8),secondaryWarningActiveStateLayerOpacity:t.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",i.opacity16),secondaryWarningDisabledComponentOpacity:t.extend("--ftds-button-secondary-warning-disabled-component-opacity","",i.opacity40),secondaryWarningBackgroundColor:t.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:t.extend("--ftds-button-secondary-warning-border-color","",l.borderWarningPrimary),secondaryWarningColor:t.extend("--ftds-button-secondary-warning-color","",l.contentWarningPrimary),secondaryWarningIconColor:t.extend("--ftds-button-secondary-warning-icon-color","",l.contentWarningPrimary),secondaryWarningStateLayerColor:t.extend("--ftds-button-secondary-warning-state-layer-color","",l.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:t.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",i.opacity8),secondaryErrorFocusStateLayerOpacity:t.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",i.opacity8),secondaryErrorActiveStateLayerOpacity:t.extend("--ftds-button-secondary-error-active-state-layer-opacity","",i.opacity16),secondaryErrorDisabledComponentOpacity:t.extend("--ftds-button-secondary-error-disabled-component-opacity","",i.opacity40),secondaryErrorBackgroundColor:t.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:t.extend("--ftds-button-secondary-error-border-color","",l.contentErrorPrimary),secondaryErrorColor:t.extend("--ftds-button-secondary-error-color","",l.contentErrorPrimary),secondaryErrorIconColor:t.extend("--ftds-button-secondary-error-icon-color","",l.contentErrorPrimary),secondaryErrorStateLayerColor:t.extend("--ftds-button-secondary-error-state-layer-color","",l.contentErrorPrimary)};var Yf={loadMoreIconSize:t.extend("--ftds-tree-list-load-more-icon-size","",i.iconSize2),loadMorePaddingLeft:t.extend("--ftds-tree-list-load-more-padding-left","",i.spacing6),loadMoreUnselectedDefaultBorderColor:t.extend("--ftds-tree-list-load-more-unselected-default-border-color","",l.borderGlobalSubtle),loadMoreIconColor:t.extend("--ftds-tree-list-load-more-icon-color","",l.contentActionPrimary),loadMoreLabelColor:t.extend("--ftds-tree-list-load-more-label-color","",l.contentActionPrimary),loadMoreHoverBorderColor:t.extend("--ftds-tree-list-load-more-hover-border-color","",i.colorBrand20),loadMoreHoverBackgroundColor:t.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:t.extend("--ftds-tree-list-load-more-active-border-color","",i.colorBrand20),loadMoreActiveBackgroundColor:t.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:t.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:t.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:t.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",l.borderGlobalPrimary),loadMoreLabelMarginLeft:t.extend("--ftds-tree-list-load-more-label-margin-left","",i.spacing1),nodeIconSize:t.extend("--ftds-tree-list-node-icon-size","",i.iconSize2),nodeHeight:t.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:t.extend("--ftds-tree-list-node-parent-label-margin-left","",i.spacing2),nodeParentLabelMarginRight:t.extend("--ftds-tree-list-node-parent-label-margin-right","",i.spacing2),nodeRootPaddingLeft:t.extend("--ftds-tree-list-node-root-padding-left","",i.spacing6),nodeChildPaddingLeft:t.extend("--ftds-tree-list-node-child-padding-left","",i.spacing5),nodeLeafPaddingLeft:t.extend("--ftds-tree-list-node-leaf-padding-left","",i.spacing6),nodeUnselectedDefaultBorderColor:t.extend("--ftds-tree-list-node-unselected-default-border-color","",l.borderGlobalSubtle),nodeUnselectedIconColor:t.extend("--ftds-tree-list-node-unselected-icon-color","",l.contentGlobalSecondary),nodeUnselectedLabelColor:t.extend("--ftds-tree-list-node-unselected-label-color","",l.contentGlobalSecondary),nodeUnselectedCounterColor:t.extend("--ftds-tree-list-node-unselected-counter-color","",l.contentGlobalSecondary),nodeHoverBorderColor:t.extend("--ftds-tree-list-node-hover-border-color","",l.borderActionPrimary),nodeFocusFocusRingColor:t.extend("--ftds-tree-list-node-focus-focus-ring-color","",l.borderActionFocusRing),nodeFocusOutlineWidth:t.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:t.extend("--ftds-tree-list-node-selected-default-border-color","",l.borderGlobalPrimary),nodeSelectedIconColor:t.extend("--ftds-tree-list-node-selected-icon-color","",l.contentGlobalSecondary),nodeSelectedLabelColor:t.extend("--ftds-tree-list-node-selected-label-color","",l.contentGlobalPrimary),nodeSelectedCounterColor:t.extend("--ftds-tree-list-node-selected-counter-color","",l.contentGlobalSecondary),nodeSelectedBackgroundColor:t.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:t.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",l.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:t.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:t.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:t.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:t.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:t.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:t.extend("--ftds-tree-list-header-section-padding-left","",i.spacing6),headerSectionPaddingRight:t.extend("--ftds-tree-list-header-section-padding-right","",i.spacing3),headerSectionHorizontalGap:t.extend("--ftds-tree-list-header-section-horizontal-gap","",i.spacing2),headerSectionMarginBottom:t.extend("--ftds-tree-list-header-section-margin-bottom","",i.spacing2),headerSectionColor:t.extend("--ftds-tree-list-header-section-color","",l.contentGlobalPrimary),headerSectionCounterColor:t.extend("--ftds-tree-list-header-section-counter-color","",l.contentGlobalSecondary),listContainerBorderWidth:t.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:t.extend("--ftds-tree-list-list-container-background-color","",l.backgroundGlobalSurface),listContainerBorderColor:t.extend("--ftds-tree-list-list-container-border-color","",l.borderGlobalSubtle),emptyStateIllustrationWidth:t.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:t.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:t.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",i.spacing10),emptyStateContainerPaddingTop:t.extend("--ftds-tree-list-empty-state-container-padding-top","",i.spacing10),emptyStateContainerPaddingBottom:t.extend("--ftds-tree-list-empty-state-container-padding-bottom","",i.spacing10),emptyStateTitleMarginBottom:t.extend("--ftds-tree-list-empty-state-title-margin-bottom","",i.spacing2),emptyStateTitleLabelColor:t.extend("--ftds-tree-list-empty-state-title-label-color","",l.contentGlobalSecondary),emptyStateDescriptionLabelColor:t.extend("--ftds-tree-list-empty-state-description-label-color","",l.contentGlobalSecondary)};var th={borderColor:t.extend("--ftds-card-border-color","",l.borderGlobalSecondary),headerTitleHorizontalPadding:t.extend("--ftds-card-header-title-horizontal-padding","",i.spacing4),headerTitleVerticalPadding:t.extend("--ftds-card-header-title-vertical-padding","",i.spacing3),headerActionHorizontalPadding:t.extend("--ftds-card-header-action-horizontal-padding","",i.spacing2),headerActionVerticalPadding:t.extend("--ftds-card-header-action-vertical-padding","",i.spacing2),headerActionGap:t.extend("--ftds-card-header-action-gap","",i.spacing1),borderRadius:t.extend("--ftds-card-border-radius","",i.borderRadiusS),backgroundColor:t.extend("--ftds-card-background-color","",l.backgroundGlobalOnSurface),bodyHorizontalPadding:t.extend("--ftds-card-body-horizontal-padding","",i.spacing4),bodyVerticalPadding:t.extend("--ftds-card-body-vertical-padding","",i.spacing4),footerActionHorizontalPadding:t.extend("--ftds-card-footer-action-horizontal-padding","",i.spacing2),footerActionVerticalPadding:t.extend("--ftds-card-footer-action-vertical-padding","",i.spacing2),footerActionGap:t.extend("--ftds-card-footer-action-gap","",i.spacing1),footerContentHorizontalPadding:t.extend("--ftds-card-footer-content-horizontal-padding","",i.spacing4),footerContentVerticalPadding:t.extend("--ftds-card-footer-content-vertical-padding","",i.spacing3),sideBarHorizontalPadding:t.extend("--ftds-card-side-bar-horizontal-padding","",i.spacing1),sideBarVerticalPadding:t.extend("--ftds-card-side-bar-vertical-padding","",i.spacing1),sideBarGap:t.extend("--ftds-card-side-bar-gap","",i.spacing1)};var ih={iconSize:t.extend("--ftds-checkbox-icon-size","",i.iconSize2),boxSize:t.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:t.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:t.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:t.extend("--ftds-checkbox-label-horizontal-gap","",i.spacing1),color:t.extend("--ftds-checkbox-color","",l.contentGlobalPrimary),checkedBackgroundColor:t.extend("--ftds-checkbox-checked-background-color","",l.contentActionPrimary),checkedStateLayerColor:t.extend("--ftds-checkbox-checked-state-layer-color","",l.contentActionPrimary),checkedIconColor:t.extend("--ftds-checkbox-checked-icon-color","",l.contentGlobalOnColor),checkedHoverStateLayerOpacity:t.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",i.opacity16),checkedFocusStateLayerOpacity:t.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",i.opacity16),checkedActiveStateLayerOpacity:t.extend("--ftds-checkbox-checked-active-state-layer-opacity","",i.opacity24),checkedDisabledComponentOpacity:t.extend("--ftds-checkbox-checked-disabled-component-opacity","",i.opacity40),uncheckedBorderColor:t.extend("--ftds-checkbox-unchecked-border-color","",i.colorGray80),uncheckedStateLayerColor:t.extend("--ftds-checkbox-unchecked-state-layer-color","",i.colorGray80),uncheckedHoverStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",i.opacity16),uncheckedFocusStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",i.opacity16),uncheckedActiveStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",i.opacity24),uncheckedDisabledComponentOpacity:t.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-checkbox-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:t.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:t.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:t.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:t.extend("--ftds-checkbox-horizontal-gap","",i.spacing3),helperPaddingTop:t.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:t.extend("--ftds-checkbox-helper-icon-size","",i.iconSize2),helperHorizontalGap:t.extend("--ftds-checkbox-helper-horizontal-gap","",i.spacing1),errorUncheckedBorderColor:t.extend("--ftds-checkbox-error-unchecked-border-color","",l.borderErrorPrimary),errorStateLayerColor:t.extend("--ftds-checkbox-error-state-layer-color","",l.contentErrorPrimary),errorHelperTextColor:t.extend("--ftds-checkbox-error-helper-text-color","",l.borderErrorPrimary),errorCheckedBackgroundColor:t.extend("--ftds-checkbox-error-checked-background-color","",l.contentErrorPrimary),helperTextColor:t.extend("--ftds-checkbox-helper-text-color","",l.contentGlobalSubtle),groupVerticalGap:t.extend("--ftds-checkbox-group-vertical-gap","",i.spacing3)};var uh={circleSize:t.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:t.create("--ftds-radio-border-width","","SIZE","2px"),color:t.extend("--ftds-radio-color","",l.contentGlobalPrimary),selectedRadioColor:t.extend("--ftds-radio-selected-radio-color","",l.contentActionPrimary),selectedStateLayerColor:t.extend("--ftds-radio-selected-state-layer-color","",l.contentActionPrimary),selectedHoverStateLayerOpacity:t.extend("--ftds-radio-selected-hover-state-layer-opacity","",i.opacity16),selectedFocusStateLayerOpacity:t.extend("--ftds-radio-selected-focus-state-layer-opacity","",i.opacity16),selectedActiveStateLayerOpacity:t.extend("--ftds-radio-selected-active-state-layer-opacity","",i.opacity24),selectedDisabledComponentOpacity:t.extend("--ftds-radio-selected-disabled-component-opacity","",i.opacity40),unselectedStateLayerColor:t.extend("--ftds-radio-unselected-state-layer-color","",l.borderInputPrimary),unselectedBorderColor:t.extend("--ftds-radio-unselected-border-color","",l.borderInputPrimary),unselectedHoverStateLayerOpacity:t.extend("--ftds-radio-unselected-hover-state-layer-opacity","",i.opacity16),unselectedFocusStateLayerOpacity:t.extend("--ftds-radio-unselected-focus-state-layer-opacity","",i.opacity16),unselectedActiveStateLayerOpacity:t.extend("--ftds-radio-unselected-active-state-layer-opacity","",i.opacity24),unselectedDisabledComponentOpacity:t.extend("--ftds-radio-unselected-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-radio-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:t.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:t.extend("--ftds-radio-vertical-gap","",i.spacing3),horizontalGap:t.extend("--ftds-radio-horizontal-gap","",i.spacing3)};var gh={headerRowBorderWidth:t.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:t.extend("--ftds-table-header-row-background-color","",l.backgroundGlobalOnSurfaceDark),headerRowBorderColor:t.extend("--ftds-table-header-row-border-color","",l.borderGlobalPrimary),headerRowColor:t.extend("--ftds-table-header-row-color","",l.contentGlobalPrimary),dataRowBorderWidth:t.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:t.extend("--ftds-table-data-row-background-color","",l.backgroundGlobalOnSurface),dataRowBorderColor:t.extend("--ftds-table-data-row-border-color","",l.borderGlobalSubtle),dataRowColor:t.extend("--ftds-table-data-row-color","",l.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:t.extend("--ftds-table-data-row-default-hover-background-color","",i.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:t.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",i.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:t.extend("--ftds-table-data-row-selectable-selected-default-background-color","",i.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:t.extend("--ftds-table-data-row-selectable-selected-default-border-color","",i.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:t.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",i.colorBrand20),dataRowSelectableSelectedHoverBorderColor:t.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",i.colorBrand30),dataRowSelectableSelectedColor:t.extend("--ftds-table-data-row-selectable-selected-color","",l.contentActionPrimary),dataRowClickableHoverBackgroundColor:t.extend("--ftds-table-data-row-clickable-hover-background-color","",i.colorGray30),dataRowClickableFocusBorderColor:t.extend("--ftds-table-data-row-clickable-focus-border-color","",l.borderActionFocusRing),dataRowClickableFocusBackgroundColor:t.extend("--ftds-table-data-row-clickable-focus-background-color","",i.colorGray30),dataRowClickableActiveBackgroundColor:t.extend("--ftds-table-data-row-clickable-active-background-color","",i.colorGray40),headerCellHorizontalGap:t.extend("--ftds-table-header-cell-horizontal-gap","",i.spacing1),headerCellVerticalPadding:t.extend("--ftds-table-header-cell-vertical-padding","",i.spacing2),headerCellHorizontalPadding:t.extend("--ftds-table-header-cell-horizontal-padding","",i.spacing3),dataCellVerticalPadding:t.extend("--ftds-table-data-cell-vertical-padding","",i.spacing2),dataCellHorizontalPadding:t.extend("--ftds-table-data-cell-horizontal-padding","",i.spacing3),dataCellVerticalGap:t.extend("--ftds-table-data-cell-vertical-gap","",i.spacing1)};var Sh={neutralOffHoverStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",i.opacity8),neutralOffFocusStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",i.opacity8),neutralOffFocusFocusRingColor:t.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",l.borderActionFocusRing),neutralOffActiveStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",i.opacity16),neutralOffBackgroundColor:t.extend("--ftds-chip-choice-neutral-off-background-color","",l.backgroundGlobalOnSurface),neutralOffBorderColor:t.extend("--ftds-chip-choice-neutral-off-border-color","",l.borderGlobalPrimary),neutralOffColor:t.extend("--ftds-chip-choice-neutral-off-color","",l.contentGlobalSecondary),neutralOffStateLayerColor:t.extend("--ftds-chip-choice-neutral-off-state-layer-color","",l.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",i.opacity16),neutralOnHoverStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",i.opacity24),neutralOnFocusStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",i.opacity24),neutralOnFocusFocusRingColor:t.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",l.borderActionFocusRing),neutralOnActiveStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",i.opacity32),neutralOnBackgroundColor:t.extend("--ftds-chip-choice-neutral-on-background-color","",l.backgroundGlobalOnSurface),neutralOnBorderColor:t.extend("--ftds-chip-choice-neutral-on-border-color","",l.borderGlobalPrimary),neutralOnColor:t.extend("--ftds-chip-choice-neutral-on-color","",l.contentGlobalPrimary),neutralOnIconColor:t.extend("--ftds-chip-choice-neutral-on-icon-color","",l.contentGlobalPrimary),neutralOnStateLayerColor:t.extend("--ftds-chip-choice-neutral-on-state-layer-color","",l.contentGlobalPrimary),largeMinHeight:t.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:t.extend("--ftds-chip-choice-large-horizontal-padding","",i.spacing3),largeGap:t.extend("--ftds-chip-choice-large-gap","",i.spacing1),largeBorderRadius:t.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:t.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:t.extend("--ftds-chip-choice-large-icon-size","",i.iconSize3),mediumMinHeight:t.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:t.extend("--ftds-chip-choice-medium-horizontal-padding","",i.spacing2),mediumGap:t.extend("--ftds-chip-choice-medium-gap","",i.spacing1),mediumBorderRadius:t.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:t.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:t.extend("--ftds-chip-choice-medium-icon-size","",i.iconSize2)};var wh={largeMinHeight:t.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:t.extend("--ftds-chip-large-horizontal-padding","",i.spacing3),largeButtonRightPadding:t.extend("--ftds-chip-large-button-right-padding","",i.spacing1),largeGap:t.extend("--ftds-chip-large-gap","",i.spacing1),largeFocusOutlineOffset:t.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:t.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:t.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:t.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:t.extend("--ftds-chip-large-icon-size","",i.iconSize3),mediumMinHeight:t.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:t.extend("--ftds-chip-medium-horizontal-padding","",i.spacing2),mediumButtonRightPadding:t.extend("--ftds-chip-medium-button-right-padding","",i.spacing05),mediumGap:t.extend("--ftds-chip-medium-gap","",i.spacing1),mediumFocusOutlineOffset:t.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:t.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:t.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:t.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:t.extend("--ftds-chip-medium-icon-size","",i.iconSize2),smallMinHeight:t.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:t.extend("--ftds-chip-small-horizontal-padding","",i.spacing1),smallButtonRightPadding:t.extend("--ftds-chip-small-button-right-padding","",i.spacing05),smallGap:t.extend("--ftds-chip-small-gap","",i.spacing1),smallFocusOutlineOffset:t.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:t.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:t.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:t.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:t.extend("--ftds-chip-small-icon-size","",i.iconSize1),neutralBackgroundColor:t.extend("--ftds-chip-neutral-background-color","",l.backgroundGlobalOnSurface),neutralColor:t.extend("--ftds-chip-neutral-color","",l.contentGlobalSecondary),neutralIconColor:t.extend("--ftds-chip-neutral-icon-color","",l.contentGlobalSecondary),neutralBorderColor:t.extend("--ftds-chip-neutral-border-color","",l.borderGlobalSecondary),infoBackgroundColor:t.extend("--ftds-chip-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-chip-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-chip-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-chip-info-border-color","",l.borderInfoSubtle),successBackgroundColor:t.extend("--ftds-chip-success-background-color","",l.backgroundSuccessSubtle),successColor:t.extend("--ftds-chip-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-chip-success-icon-color","",l.contentSuccessIconOnly),successBorderColor:t.extend("--ftds-chip-success-border-color","",l.borderSuccessSubtle),warningBackgroundColor:t.extend("--ftds-chip-warning-background-color","",l.backgroundWarningSubtle),warningColor:t.extend("--ftds-chip-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-chip-warning-icon-color","",l.contentWarningIconOnly),warningBorderColor:t.extend("--ftds-chip-warning-border-color","",l.borderWarningSubtle),errorBackgroundColor:t.extend("--ftds-chip-error-background-color","",l.backgroundErrorSubtle),errorColor:t.extend("--ftds-chip-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-chip-error-icon-color","",l.contentErrorIconOnly),errorBorderColor:t.extend("--ftds-chip-error-border-color","",l.borderErrorSubtle)};var Lh={brandHoverOpacity:t.extend("--ftds-link-brand-hover-opacity","",i.opacity80),brandHoverColor:t.extend("--ftds-link-brand-hover-color","",l.contentActionPrimary),brandFocusFocusRingColor:t.extend("--ftds-link-brand-focus-focus-ring-color","",l.borderActionFocusRing),brandFocusColor:t.extend("--ftds-link-brand-focus-color","",l.contentActionPrimary),brandDefaultColor:t.extend("--ftds-link-brand-default-color","",l.contentActionPrimary),brandActiveColor:t.extend("--ftds-link-brand-active-color","",l.contentActionPrimary),infoHoverOpacity:t.extend("--ftds-link-info-hover-opacity","",i.opacity80),infoHoverColor:t.extend("--ftds-link-info-hover-color","",l.contentInfoPrimary),infoFocusFocusRingColor:t.extend("--ftds-link-info-focus-focus-ring-color","",l.borderActionFocusRing),infoFocusColor:t.extend("--ftds-link-info-focus-color","",l.contentInfoPrimary),infoDefaultColor:t.extend("--ftds-link-info-default-color","",l.contentInfoPrimary),infoActiveColor:t.extend("--ftds-link-info-active-color","",l.contentInfoPrimary),neutralFocusFocusRingColor:t.extend("--ftds-link-neutral-focus-focus-ring-color","",l.borderActionFocusRing),neutralFocusColor:t.extend("--ftds-link-neutral-focus-color","",l.contentActionPrimary),neutralDefaultColor:t.extend("--ftds-link-neutral-default-color","",l.contentGlobalPrimary),neutralHoverColor:t.extend("--ftds-link-neutral-hover-color","",l.contentActionPrimary),neutralActiveColor:t.extend("--ftds-link-neutral-active-color","",l.contentActionPrimary),neutralVisitedColor:t.extend("--ftds-link-neutral-visited-color","",i.colorBrand100)};var Mh={iconSize:t.extend("--ftds-banner-icon-size","",i.iconSize5),borderWidth:t.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:t.extend("--ftds-banner-left-padding","",i.spacing6),rightPadding:t.extend("--ftds-banner-right-padding","",i.spacing6),verticalPadding:t.extend("--ftds-banner-vertical-padding","",i.spacing6),horizontalSideGap:t.extend("--ftds-banner-horizontal-side-gap","",i.spacing6),horizontalMobileGap:t.extend("--ftds-banner-horizontal-mobile-gap","",i.spacing4),verticalMobileGap:t.extend("--ftds-banner-vertical-mobile-gap","",i.spacing6),horizontalMiddleGap:t.extend("--ftds-banner-horizontal-middle-gap","",i.spacing20),infoBackgroundColor:t.extend("--ftds-banner-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-banner-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-banner-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-banner-info-border-color","",l.borderInfoSubtle)};var zh={horizontalPadding:t.extend("--ftds-badge-horizontal-padding","",i.spacing1),verticalPadding:t.extend("--ftds-badge-vertical-padding","",i.spacing1),borderRadius:t.extend("--ftds-badge-border-radius","",i.borderRadiusPill),color:t.extend("--ftds-badge-color","",l.contentGlobalOnColor),backgroundColor:t.extend("--ftds-badge-background-color","",l.contentActionPrimary)};var Vh={horizontalGap:t.extend("--ftds-title-breadcrumb-horizontal-gap","",i.spacing1),currentColor:t.extend("--ftds-title-breadcrumb-current-color","",l.contentGlobalPrimary),previousNonClickableColor:t.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",l.contentGlobalSecondary),iconColor:t.extend("--ftds-title-breadcrumb-icon-color","",l.contentGlobalSubtle)};var Qh={parentHorizontalPadding:t.extend("--ftds-page-header-parent-horizontal-padding","",i.spacing6),parentTopPadding:t.extend("--ftds-page-header-parent-top-padding","",i.spacing4),parentBottomPadding:t.extend("--ftds-page-header-parent-bottom-padding","",i.spacing6),parentHelpLeftMargin:t.extend("--ftds-page-header-parent-help-left-margin","",i.spacing1),parentTitleColor:t.extend("--ftds-page-header-parent-title-color","",l.contentGlobalPrimary),parentSubtitleColor:t.extend("--ftds-page-header-parent-subtitle-color","",l.contentGlobalSecondary),parentChipLeftMargin:t.extend("--ftds-page-header-parent-chip-left-margin","",i.spacing4),parentVerticalGap:t.extend("--ftds-page-header-parent-vertical-gap","",i.spacing2),parentButtonsGroupHorizontalGap:t.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",i.spacing4),parentButtonsGroupVerticalGap:t.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",i.spacing4),parentChipsGroupHorizontalGap:t.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",i.spacing2),parentChipsGroupVerticalGap:t.extend("--ftds-page-header-parent-chips-group-vertical-gap","",i.spacing2),childHorizontalPadding:t.extend("--ftds-page-header-child-horizontal-padding","",i.spacing6),childTopPadding:t.extend("--ftds-page-header-child-top-padding","",i.spacing2),childBottomPadding:t.extend("--ftds-page-header-child-bottom-padding","",i.spacing2),childHelpLeftMargin:t.extend("--ftds-page-header-child-help-left-margin","",i.spacing1),childChipLeftMargin:t.extend("--ftds-page-header-child-chip-left-margin","",i.spacing4),childVerticalGap:t.extend("--ftds-page-header-child-vertical-gap","",i.spacing2),childMinHeight:t.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:t.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",i.spacing4),childButtonsGroupVerticalGap:t.extend("--ftds-page-header-child-buttons-group-vertical-gap","",i.spacing4),childChipsGroupHorizontalGap:t.extend("--ftds-page-header-child-chips-group-horizontal-gap","",i.spacing2),childChipsGroupVerticalGap:t.extend("--ftds-page-header-child-chips-group-vertical-gap","",i.spacing2),backgroundColor:t.extend("--ftds-page-header-background-color","",i.colorWhite),bottomBorderColor:t.extend("--ftds-page-header-bottom-border-color","",l.borderGlobalSubtle),bottomBorderWidth:t.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var ry={horizontalPadding:t.extend("--ftds-page-footer-horizontal-padding","",i.spacing6),verticalPadding:t.extend("--ftds-page-footer-vertical-padding","",i.spacing2),verticalGap:t.extend("--ftds-page-footer-vertical-gap","",i.spacing2),minHeight:t.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:t.extend("--ftds-page-footer-background-color","",i.colorWhite),topBorderColor:t.extend("--ftds-page-footer-top-border-color","",l.borderGlobalSubtle),topBorderWidth:t.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:t.extend("--ftds-page-footer-buttons-group-gap","",i.spacing4)};var iy={contentHorizontalPadding:t.extend("--ftds-page-layout-content-horizontal-padding","",i.spacing6),contentVerticalPadding:t.extend("--ftds-page-layout-content-vertical-padding","",i.spacing6)};var uy={smallContainerTargetWidth:t.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:t.extend("--ftds-modal-small-container-margin","",i.spacing6),mediumContainerTargetWidth:t.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:t.extend("--ftds-modal-medium-container-margin","",i.spacing6),largeContainerTargetWidth:t.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:t.extend("--ftds-modal-large-container-margin","",i.spacing6),overlayBackgroundColor:t.extend("--ftds-modal-overlay-background-color","",i.colorGray700),overlayOpacity:t.extend("--ftds-modal-overlay-opacity","",i.opacity40),shadow:t.extend("--ftds-modal-shadow","",i.shadowElevation03),bodyBackgroundColor:t.extend("--ftds-modal-body-background-color","",i.colorWhite),bodyColor:t.extend("--ftds-modal-body-color","",l.contentGlobalPrimary),bodyHorizontalPadding:t.extend("--ftds-modal-body-horizontal-padding","",i.spacing6),bodyVerticalPadding:t.extend("--ftds-modal-body-vertical-padding","",i.spacing6),bodyVerticalGap:t.extend("--ftds-modal-body-vertical-gap","",i.spacing6),headerBackgroundColor:t.extend("--ftds-modal-header-background-color","",l.backgroundGlobalOnSurface),headerBorderColor:t.extend("--ftds-modal-header-border-color","",l.borderGlobalSubtle),headerColor:t.extend("--ftds-modal-header-color","",l.contentGlobalPrimary),headerLeadingIconColor:t.extend("--ftds-modal-header-leading-icon-color","",l.contentGlobalPrimary),headerVerticalPadding:t.extend("--ftds-modal-header-vertical-padding","",i.spacing1),headerRightPadding:t.extend("--ftds-modal-header-right-padding","",i.spacing1),headerLeftPadding:t.extend("--ftds-modal-header-left-padding","",i.spacing6),headerGap:t.extend("--ftds-modal-header-gap","",i.spacing2),headerBorderBottomWidth:t.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:t.extend("--ftds-modal-border-radius","",i.borderRadiusM)};var gy={overlayOpacity:t.extend("--ftds-drawer-overlay-opacity","",i.opacity40),shadow:t.extend("--ftds-drawer-shadow","",i.shadowElevation03),bodyColor:t.extend("--ftds-drawer-body-color","",l.contentGlobalPrimary),bodyHorizontalPadding:t.extend("--ftds-drawer-body-horizontal-padding","",i.spacing6),bodyVerticalPadding:t.extend("--ftds-drawer-body-vertical-padding","",i.spacing6),bodyGap:t.extend("--ftds-drawer-body-gap","",i.spacing6),bodyBackgroundColor:t.extend("--ftds-drawer-body-background-color","",i.colorWhite),headerBackgroundColor:t.extend("--ftds-drawer-header-background-color","",l.backgroundGlobalOnSurface),headerBorderColor:t.extend("--ftds-drawer-header-border-color","",l.borderGlobalSubtle),headerColor:t.extend("--ftds-drawer-header-color","",l.contentGlobalPrimary),headerTrailingIconColor:t.extend("--ftds-drawer-header-trailing-icon-color","",l.contentGlobalSecondary),headerHeight:t.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:t.extend("--ftds-drawer-header-horizontal-padding","",i.spacing2),headerBorderWidth:t.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:t.extend("--ftds-drawer-header-gap","",i.spacing3),buttonsBarBackgroundColor:t.extend("--ftds-drawer-buttons-bar-background-color","",l.backgroundGlobalOnSurface),buttonsBarBorderColor:t.extend("--ftds-drawer-buttons-bar-border-color","",l.borderGlobalSubtle),buttonsBarColor:t.extend("--ftds-drawer-buttons-bar-color","",l.contentGlobalPrimary),buttonsBarHorizontalPadding:t.extend("--ftds-drawer-buttons-bar-horizontal-padding","",i.spacing6),buttonsBarVerticalPadding:t.extend("--ftds-drawer-buttons-bar-vertical-padding","",i.spacing4),buttonsBarGap:t.extend("--ftds-drawer-buttons-bar-gap","",i.spacing3),buttonsBarBorderWidth:t.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:t.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:t.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:t.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:t.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:t.extend("--ftds-drawer-overlay-background-color","",i.colorGray700)};var Sy={offBorderBottomWidth:t.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:t.extend("--ftds-tabs-off-hover-state-layer-opacity","",i.opacity8),offDefaultStateLayerOpacity:t.extend("--ftds-tabs-off-default-state-layer-opacity","",i.opacity0),offFocusStateLayerOpacity:t.extend("--ftds-tabs-off-focus-state-layer-opacity","",i.opacity8),offDisabledComponentOpacity:t.extend("--ftds-tabs-off-disabled-component-opacity","",i.opacity40),offColor:t.extend("--ftds-tabs-off-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-tabs-off-state-layer-color","",l.contentGlobalSubtle),offBorderBottomColor:t.extend("--ftds-tabs-off-border-bottom-color","",l.borderGlobalSubtle),activeTabIndicatorHeight:t.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:t.extend("--ftds-tabs-top-left-border-radius","",i.borderRadiusS),topRightBorderRadius:t.extend("--ftds-tabs-top-right-border-radius","",i.borderRadiusS),withLabelHorizontalPadding:t.extend("--ftds-tabs-with-label-horizontal-padding","",i.spacing4),withLabelVerticalPadding:t.extend("--ftds-tabs-with-label-vertical-padding","",i.spacing3),horizontalGap:t.extend("--ftds-tabs-horizontal-gap","",i.spacing1),verticalGap:t.extend("--ftds-tabs-vertical-gap","",i.spacing1),onHoverStateLayerOpacity:t.extend("--ftds-tabs-on-hover-state-layer-opacity","",i.opacity16),onDefaultStateLayerOpacity:t.extend("--ftds-tabs-on-default-state-layer-opacity","",i.opacity8),onFocusStateLayerOpacity:t.extend("--ftds-tabs-on-focus-state-layer-opacity","",i.opacity16),onActiveStateLayerOpacity:t.extend("--ftds-tabs-on-active-state-layer-opacity","",i.opacity24),onColor:t.extend("--ftds-tabs-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-tabs-on-state-layer-color","",l.contentActionPrimary),onActiveTabIndicatorColor:t.extend("--ftds-tabs-on-active-tab-indicator-color","",l.contentActionPrimary),iconOnlyHorizontalPadding:t.extend("--ftds-tabs-icon-only-horizontal-padding","",i.spacing4),iconOnlyVerticalPadding:t.extend("--ftds-tabs-icon-only-vertical-padding","",i.spacing4),alertTopPadding:t.extend("--ftds-tabs-alert-top-padding","",i.spacing1),alertRightPadding:t.extend("--ftds-tabs-alert-right-padding","",i.spacing05),focusOutlineWidth:t.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-tabs-focus-focus-ring-color","",l.borderActionFocusRing)};var wy={largeFieldHorizontalPadding:t.extend("--ftds-text-input-large-field-horizontal-padding","",i.spacing4),largeFieldHorizontalGap:t.extend("--ftds-text-input-large-field-horizontal-gap","",i.spacing3),largeFieldVerticalGap:t.extend("--ftds-text-input-large-field-vertical-gap","",i.spacing05),largeFieldHeight:t.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:t.extend("--ftds-text-input-large-field-icon-size","",i.iconSize3),mediumFieldHorizontalPadding:t.extend("--ftds-text-input-medium-field-horizontal-padding","",i.spacing4),mediumFieldHorizontalGap:t.extend("--ftds-text-input-medium-field-horizontal-gap","",i.spacing3),mediumFieldVerticalGap:t.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:t.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:t.extend("--ftds-text-input-medium-field-icon-size","",i.iconSize3),helperHorizontalPadding:t.extend("--ftds-text-input-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-text-input-helper-horizontal-gap","",i.spacing1),helperIconSize:t.extend("--ftds-text-input-helper-icon-size","",i.iconSize2),borderRadius:t.extend("--ftds-text-input-border-radius","",i.borderRadiusS),backgroundColor:t.extend("--ftds-text-input-background-color","",i.colorWhite),contentValueColor:t.extend("--ftds-text-input-content-value-color","",l.contentGlobalPrimary),trailingIconColor:t.extend("--ftds-text-input-trailing-icon-color","",l.contentGlobalSubtle),labelColor:t.extend("--ftds-text-input-label-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-text-input-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-text-input-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ftds-text-input-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-text-input-error-helper-text-color","",l.contentErrorPrimary),errorHelperIconColor:t.extend("--ftds-text-input-error-helper-icon-color","",l.contentErrorIconOnly),warningBorderColor:t.extend("--ftds-text-input-warning-border-color","",l.borderWarningPrimary),warningHelperTextColor:t.extend("--ftds-text-input-warning-helper-text-color","",l.contentWarningPrimary),warningHelperIconColor:t.extend("--ftds-text-input-warning-helper-icon-color","",l.contentWarningIconOnly),warningBorderWidth:t.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:t.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-text-input-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-text-input-disabled-component-opacity","",i.opacity40)};var Ly={backgroundColor:t.extend("--ftds-text-area-background-color","",i.colorWhite),contentValueColor:t.extend("--ftds-text-area-content-value-color","",l.contentGlobalPrimary),labelColor:t.extend("--ftds-text-area-label-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-text-area-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-text-area-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ftds-text-area-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-text-area-error-helper-text-color","",l.contentErrorPrimary),errorHelperIconColor:t.extend("--ftds-text-area-error-helper-icon-color","",l.contentErrorIconOnly),focusFocusRingColor:t.extend("--ftds-text-area-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:t.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-text-area-disabled-component-opacity","",i.opacity40),fieldHorizontalLeftPadding:t.extend("--ftds-text-area-field-horizontal-left-padding","",i.spacing4),fieldHorizontalGap:t.extend("--ftds-text-area-field-horizontal-gap","",i.spacing3),fieldVerticalGap:t.extend("--ftds-text-area-field-vertical-gap","",i.spacing05),fieldMinHeight:t.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:t.extend("--ftds-text-area-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-text-area-helper-horizontal-gap","",i.spacing1),helperIconSize:t.extend("--ftds-text-area-helper-icon-size","",i.iconSize2),borderRadius:t.extend("--ftds-text-area-border-radius","",i.borderRadiusS)};var My={height:t.create("--ftds-floating-menu-height","","SIZE","50px"),horizontalPadding:t.extend("--ftds-floating-menu-horizontal-padding","",i.spacing4),offIconColor:t.extend("--ftds-floating-menu-off-icon-color","",l.contentGlobalPrimary),offColor:t.extend("--ftds-floating-menu-off-color","",l.contentGlobalPrimary),onColor:t.extend("--ftds-floating-menu-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-floating-menu-on-state-layer-color","",l.contentActionPrimary),gap:t.extend("--ftds-floating-menu-gap","",i.spacing3),focusFocusRingColor:t.extend("--ftds-floating-menu-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:t.extend("--ftds-floating-menu-focus-state-layer-opacity","",i.opacity24),hoverStateLayerOpacity:t.extend("--ftds-floating-menu-hover-state-layer-opacity","",i.opacity8),activeStateLayerOpacity:t.extend("--ftds-floating-menu-active-state-layer-opacity","",i.opacity16),disabledComponentOpacity:t.extend("--ftds-floating-menu-disabled-component-opacity","",i.opacity40),iconSize:t.extend("--ftds-floating-menu-icon-size","",i.iconSize3),backgroundColor:t.extend("--ftds-floating-menu-background-color","",l.backgroundGlobalOnSurface),shadow:t.extend("--ftds-floating-menu-shadow","",i.shadowElevation02)};var zy={multiselectCheckedStateLayerColor:t.extend("--ftds-menu-item-multiselect-checked-state-layer-color","",l.contentActionPrimary),multiselectCheckedColor:t.extend("--ftds-menu-item-multiselect-checked-color","",l.contentGlobalPrimary),multiselectCheckedIconColor:t.extend("--ftds-menu-item-multiselect-checked-icon-color","",l.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-checked-default-state-layer-opacity","",i.opacity8),multiselectCheckedHoverStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-checked-hover-state-layer-opacity","",i.opacity16),multiselectCheckedFocusStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-checked-focus-state-layer-opacity","",i.opacity24),multiselectIndeterminatedStateLayerColor:t.extend("--ftds-menu-item-multiselect-indeterminated-state-layer-color","",l.contentActionPrimary),multiselectIndeterminatedColor:t.extend("--ftds-menu-item-multiselect-indeterminated-color","",l.contentGlobalPrimary),multiselectIndeterminatedIconColor:t.extend("--ftds-menu-item-multiselect-indeterminated-icon-color","",l.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-indeterminated-default-state-layer-opacity","",i.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-indeterminated-hover-state-layer-opacity","",i.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-indeterminated-focus-state-layer-opacity","",i.opacity24),multiselectUncheckedStateLayerColor:t.extend("--ftds-menu-item-multiselect-unchecked-state-layer-color","",l.contentGlobalPrimary),multiselectUncheckedColor:t.extend("--ftds-menu-item-multiselect-unchecked-color","",l.contentGlobalPrimary),multiselectUncheckedIconColor:t.extend("--ftds-menu-item-multiselect-unchecked-icon-color","",l.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-unchecked-default-state-layer-opacity","",i.opacity0),multiselectUncheckedHoverStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-unchecked-hover-state-layer-opacity","",i.opacity8),multiselectUncheckedFocusStateLayerOpacity:t.extend("--ftds-menu-item-multiselect-unchecked-focus-state-layer-opacity","",i.opacity16),selectAllCheckedStateLayerColor:t.extend("--ftds-menu-item-select-all-checked-state-layer-color","",l.contentActionPrimary),selectAllCheckedColor:t.extend("--ftds-menu-item-select-all-checked-color","",l.contentGlobalPrimary),selectAllCheckedIconColor:t.extend("--ftds-menu-item-select-all-checked-icon-color","",l.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:t.extend("--ftds-menu-item-select-all-checked-default-state-layer-opacity","",i.opacity0),selectAllCheckedHoverStateLayerOpacity:t.extend("--ftds-menu-item-select-all-checked-hover-state-layer-opacity","",i.opacity16),selectAllCheckedFocusStateLayerOpacity:t.extend("--ftds-menu-item-select-all-checked-focus-state-layer-opacity","",i.opacity24),selectAllIndeterminatedStateLayerColor:t.extend("--ftds-menu-item-select-all-indeterminated-state-layer-color","",l.contentGlobalPrimary),selectAllIndeterminatedColor:t.extend("--ftds-menu-item-select-all-indeterminated-color","",l.contentGlobalPrimary),selectAllIndeterminatedIconColor:t.extend("--ftds-menu-item-select-all-indeterminated-icon-color","",l.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:t.extend("--ftds-menu-item-select-all-indeterminated-default-state-layer-opacity","",i.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:t.extend("--ftds-menu-item-select-all-indeterminated-hover-state-layer-opacity","",i.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:t.extend("--ftds-menu-item-select-all-indeterminated-focus-state-layer-opacity","",i.opacity16),selectAllUncheckedStateLayerColor:t.extend("--ftds-menu-item-select-all-unchecked-state-layer-color","",l.contentGlobalPrimary),selectAllUncheckedColor:t.extend("--ftds-menu-item-select-all-unchecked-color","",l.contentGlobalPrimary),selectAllUncheckedIconColor:t.extend("--ftds-menu-item-select-all-unchecked-icon-color","",l.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:t.extend("--ftds-menu-item-select-all-unchecked-default-state-layer-opacity","",i.opacity0),selectAllUncheckedHoverStateLayerOpacity:t.extend("--ftds-menu-item-select-all-unchecked-hover-state-layer-opacity","",i.opacity8),selectAllUncheckedFocusStateLayerOpacity:t.extend("--ftds-menu-item-select-all-unchecked-focus-state-layer-opacity","",i.opacity16),defaultUncheckedDefaultStateLayerOpacity:t.extend("--ftds-menu-item-default-unchecked-default-state-layer-opacity","",i.opacity0),defaultUncheckedHoverStateLayerOpacity:t.extend("--ftds-menu-item-default-unchecked-hover-state-layer-opacity","",i.opacity8),defaultUncheckedFocusStateLayerOpacity:t.extend("--ftds-menu-item-default-unchecked-focus-state-layer-opacity","",i.opacity16),defaultUncheckedStateLayerColor:t.extend("--ftds-menu-item-default-unchecked-state-layer-color","",l.contentGlobalPrimary),defaultUncheckedColor:t.extend("--ftds-menu-item-default-unchecked-color","",l.contentGlobalPrimary),defaultUncheckedIconColor:t.extend("--ftds-menu-item-default-unchecked-icon-color","",l.contentGlobalSubtle),defaultCheckedDefaultStateLayerOpacity:t.extend("--ftds-menu-item-default-checked-default-state-layer-opacity","",i.opacity8),defaultCheckedHoverStateLayerOpacity:t.extend("--ftds-menu-item-default-checked-hover-state-layer-opacity","",i.opacity16),defaultCheckedFocusStateLayerOpacity:t.extend("--ftds-menu-item-default-checked-focus-state-layer-opacity","",i.opacity24),defaultCheckedStateLayerColor:t.extend("--ftds-menu-item-default-checked-state-layer-color","",l.contentActionPrimary),defaultCheckedColor:t.extend("--ftds-menu-item-default-checked-color","",l.contentActionPrimary),defaultCheckedIconColor:t.extend("--ftds-menu-item-default-checked-icon-color","",l.contentActionPrimary)};var jy={menuVerticalGap:t.extend("--ftds-combobox-menu-vertical-gap","",i.spacing2),valuesHorizontalGap:t.extend("--ftds-combobox-values-horizontal-gap","",i.spacing2),valuesVerticalGap:t.extend("--ftds-combobox-values-vertical-gap","",i.spacing2)};var Yy={backgroundColor:t.extend("--ftds-popover-background-color","",l.backgroundGlobalOnSurface),horizontalPadding:t.extend("--ftds-popover-horizontal-padding","",i.spacing6),verticalPadding:t.extend("--ftds-popover-vertical-padding","",i.spacing6),titleColor:t.extend("--ftds-popover-title-color","",l.contentGlobalPrimary),bodyColor:t.extend("--ftds-popover-body-color","",l.contentGlobalSecondary),gap:t.extend("--ftds-popover-gap","",i.spacing2),borderRadius:t.extend("--ftds-popover-border-radius","",i.borderRadiusM),shadow:t.extend("--ftds-popover-shadow","",i.shadowElevation02),maxWidth:t.create("--ftds-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:t.extend("--ftds-popover-content-section-vertical-gap","",i.spacing2),multiSectionVerticalGap:t.extend("--ftds-popover-multi-section-vertical-gap","",i.spacing6)};var tg={hoverStateLayerOpacity:t.extend("--ftds-collapsible-hover-state-layer-opacity","",i.opacity8),focusStateLayerOpacity:t.extend("--ftds-collapsible-focus-state-layer-opacity","",i.opacity8),focusOutlineWidth:t.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:t.extend("--ftds-collapsible-focus-focus-ring-color","",l.borderActionFocusRing),activeStateLayerOpacity:t.extend("--ftds-collapsible-active-state-layer-opacity","",i.opacity16),disabledComponentOpacity:t.extend("--ftds-collapsible-disabled-component-opacity","",i.opacity40),horizontalPadding:t.extend("--ftds-collapsible-horizontal-padding","",i.spacing4),verticalPadding:t.extend("--ftds-collapsible-vertical-padding","",i.spacing3),color:t.extend("--ftds-collapsible-color","",l.contentGlobalPrimary),stateLayerColor:t.extend("--ftds-collapsible-state-layer-color","",l.contentGlobalPrimary),backgroundColor:t.extend("--ftds-collapsible-background-color","",l.backgroundGlobalOnSurface),borderColor:t.extend("--ftds-collapsible-border-color","",l.borderGlobalSubtle),iconSize:t.extend("--ftds-collapsible-icon-size","",i.iconSize3)};var ig={groupHorizontalPadding:t.extend("--ftds-switch-group-horizontal-padding","",i.spacing1),groupVerticalPadding:t.extend("--ftds-switch-group-vertical-padding","",i.spacing1),groupGap:t.extend("--ftds-switch-group-gap","",i.spacing1),groupBackgroundColor:t.extend("--ftds-switch-group-background-color","",l.backgroundGlobalSurface),groupBorderColor:t.extend("--ftds-switch-group-border-color","",l.borderGlobalSubtle),groupBorderRadius:t.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:t.extend("--ftds-switch-label-horizontal-padding","",i.spacing2),labelVerticalPadding:t.extend("--ftds-switch-label-vertical-padding","",i.spacing1),offHoverStateLayerOpacity:t.extend("--ftds-switch-off-hover-state-layer-opacity","",i.opacity8),offFocusStateLayerOpacity:t.extend("--ftds-switch-off-focus-state-layer-opacity","",i.opacity8),offActiveStateLayerOpacity:t.extend("--ftds-switch-off-active-state-layer-opacity","",i.opacity16),offDisabledComponentOpacity:t.extend("--ftds-switch-off-disabled-component-opacity","",i.opacity40),offColor:t.extend("--ftds-switch-off-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-switch-off-state-layer-color","",l.contentGlobalSubtle),onHoverStateLayerOpacity:t.extend("--ftds-switch-on-hover-state-layer-opacity","",i.opacity8),onFocusStateLayerOpacity:t.extend("--ftds-switch-on-focus-state-layer-opacity","",i.opacity8),onActiveStateLayerOpacity:t.extend("--ftds-switch-on-active-state-layer-opacity","",i.opacity16),onDisabledComponentOpacity:t.extend("--ftds-switch-on-disabled-component-opacity","",i.opacity40),onColor:t.extend("--ftds-switch-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-switch-on-state-layer-color","",l.contentActionPrimary),iconHorizontalPadding:t.extend("--ftds-switch-icon-horizontal-padding","",i.spacing1),iconVerticalPadding:t.extend("--ftds-switch-icon-vertical-padding","",i.spacing1),focusOutlineWidth:t.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-switch-focus-focus-ring-color","",l.borderActionFocusRing),optionBorderRadius:t.extend("--ftds-switch-option-border-radius","",i.borderRadiusS)};var dg={color1Light:t.extend("--ftds-chart-1-light","for area color charts",i.colorBrand40),color1Base:t.extend("--ftds-chart-1-base","for line charts",i.colorBrand0),color2Light:t.extend("--ftds-chart-2-light","for area color charts",i.colorYellow60),color2Base:t.extend("--ftds-chart-2-base","for line charts",i.colorYellow100),color3Light:t.extend("--ftds-chart-3-light","",i.colorUltramarine40),color3Base:t.extend("--ftds-chart-3-base","",i.colorUltramarine70),color4Light:t.extend("--ftds-chart-4-light","",i.colorCyan50),color4Base:t.extend("--ftds-chart-4-base","",i.colorCyan100),color5Light:t.extend("--ftds-chart-5-light","",i.colorRed40),color5Base:t.extend("--ftds-chart-5-base","",i.colorRed60),color6Light:t.extend("--ftds-chart-6-light","",i.colorGreen40),color6Base:t.extend("--ftds-chart-6-base","",i.colorGreen70),color7Light:t.extend("--ftds-chart-7-light","",i.colorOrange70),color7Base:t.extend("--ftds-chart-7-base","",i.colorOrange100),color8Light:t.extend("--ftds-chart-8-light","",i.colorAvocado70),color8Base:t.extend("--ftds-chart-8-base","",i.colorAvocado200),color9Light:t.extend("--ftds-chart-9-light","",i.colorBrown50),color9Base:t.extend("--ftds-chart-9-base","",i.colorBrown200),color10Light:t.extend("--ftds-chart-10-light","",i.colorGray50),color10Base:t.extend("--ftds-chart-10-base","",i.colorGray80),monochrome10:t.extend("--ftds-chart-monochrome-10","",i.colorBrand10),monochrome20:t.extend("--ftds-chart-monochrome-20","",i.colorBrand20),monochrome30:t.extend("--ftds-chart-monochrome-30","",i.colorBrand40),monochrome40:t.extend("--ftds-chart-monochrome-40","",i.colorBrand60),monochrome50:t.extend("--ftds-chart-monochrome-50","",i.colorBrand0),monochrome60:t.extend("--ftds-chart-monochrome-60","",i.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",i.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",i.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",i.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",i.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",i.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:t.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",i.opacity48),scatterplotDatapointInitialHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",i.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",i.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",i.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",i.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:t.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",i.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",i.colorGray70),scatterplotDatapointHoverHoverRingColor:t.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",i.colorCyan200)};var hg={color1IconColor:t.extend("--ftds-page-designer-1-icon-color","for area color charts",i.colorCyan0),color1ToolbarColor:t.extend("--ftds-page-designer-1-toolbar-color","for area color charts",i.colorCyan0),color2IconColor:t.extend("--ftds-page-designer-2-icon-color","for area color charts",i.colorBrand0),color2ToolbarColor:t.extend("--ftds-page-designer-2-toolbar-color","for area color charts",i.colorBrand0),color3IconColor:t.extend("--ftds-page-designer-3-icon-color","for area color charts",i.colorYellow200),color3ToolbarColor:t.extend("--ftds-page-designer-3-toolbar-color","for area color charts",i.colorYellow200),color4IconColor:t.extend("--ftds-page-designer-4-icon-color","for area color charts",i.colorUltramarine50),color4ToolbarColor:t.extend("--ftds-page-designer-4-toolbar-color","for area color charts",i.colorUltramarine50),color5IconColor:t.extend("--ftds-page-designer-5-icon-color","for area color charts",i.colorGreen0),color5ToolbarColor:t.extend("--ftds-page-designer-5-toolbar-color","for area color charts",i.colorGreen0),color6IconColor:t.extend("--ftds-page-designer-6-icon-color","for area color charts",i.colorOrange0),color6ToolbarColor:t.extend("--ftds-page-designer-6-toolbar-color","for area color charts",i.colorOrange0),color7IconColor:t.extend("--ftds-page-designer-7-icon-color","for area color charts",i.colorAvocado200),color7ToolbarColor:t.extend("--ftds-page-designer-7-toolbar-color","for area color charts",i.colorAvocado200),color8IconColor:t.extend("--ftds-page-designer-8-icon-color","for area color charts",i.colorBrown0),color8ToolbarColor:t.extend("--ftds-page-designer-8-toolbar-color","for area color charts",i.colorBrown0)};var vg={borderWidth:t.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:t.extend("--ftds-notice-horizontal-padding","",i.spacing3),verticalPadding:t.extend("--ftds-notice-vertical-padding","",i.spacing2),borderRadius:t.extend("--ftds-notice-border-radius","",i.borderRadiusS),gap:t.extend("--ftds-notice-gap","",i.spacing2),iconSize:t.extend("--ftds-notice-icon-size","",i.iconSize3),infoBackgroundColor:t.extend("--ftds-notice-info-background-color","",l.backgroundInfoSubtle),infoBorderColor:t.extend("--ftds-notice-info-border-color","",l.borderInfoSubtle),infoColor:t.extend("--ftds-notice-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-notice-info-icon-color","",l.contentInfoIconOnly),warningBackgroundColor:t.extend("--ftds-notice-warning-background-color","",l.backgroundWarningSubtle),warningBorderColor:t.extend("--ftds-notice-warning-border-color","",l.borderWarningSubtle),warningColor:t.extend("--ftds-notice-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-notice-warning-icon-color","",l.contentWarningIconOnly),errorBackgroundColor:t.extend("--ftds-notice-error-background-color","",l.backgroundErrorSubtle),errorBorderColor:t.extend("--ftds-notice-error-border-color","",l.borderErrorSubtle),errorColor:t.extend("--ftds-notice-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-notice-error-icon-color","",l.contentErrorIconOnly),successBackgroundColor:t.extend("--ftds-notice-success-background-color","",l.backgroundSuccessSubtle),successBorderColor:t.extend("--ftds-notice-success-border-color","",l.borderSuccessSubtle),successColor:t.extend("--ftds-notice-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-notice-success-icon-color","",l.contentSuccessIconOnly),denseHorizontalPadding:t.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:t.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:t.extend("--ftds-notice-dense-gap","",i.spacing1),denseIconSize:t.extend("--ftds-notice-dense-icon-size","",i.iconSize2),denseBorderWidth:t.create("--ftds-notice-dense-border-width","","SIZE","0")};var Ag={offHoverStateLayerOpacity:t.extend("--ftds-toggle-off-hover-state-layer-opacity","",i.opacity16),offFocusStateLayerOpacity:t.extend("--ftds-toggle-off-focus-state-layer-opacity","",i.opacity16),offActiveStateLayerOpacity:t.extend("--ftds-toggle-off-active-state-layer-opacity","",i.opacity24),offDisabledComponentOpacity:t.extend("--ftds-toggle-off-disabled-component-opacity","",i.opacity40),offBackgroundColor:t.extend("--ftds-toggle-off-background-color","",l.contentGlobalSubtle),offIconColor:t.extend("--ftds-toggle-off-icon-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-toggle-off-state-layer-color","",l.contentGlobalSubtle),onHoverStateLayerOpacity:t.extend("--ftds-toggle-on-hover-state-layer-opacity","",i.opacity16),onFocusStateLayerOpacity:t.extend("--ftds-toggle-on-focus-state-layer-opacity","",i.opacity16),onActiveStateLayerOpacity:t.extend("--ftds-toggle-on-active-state-layer-opacity","",i.opacity24),onDisabledComponentOpacity:t.extend("--ftds-toggle-on-disabled-component-opacity","",i.opacity40),onBackgroundColor:t.extend("--ftds-toggle-on-background-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-toggle-on-state-layer-color","",l.contentActionPrimary),onIconColor:t.extend("--ftds-toggle-on-icon-color","",l.contentActionPrimary),color:t.extend("--ftds-toggle-color","",l.contentGlobalPrimary),focusFocusRingColor:t.extend("--ftds-toggle-focus-focus-ring-color","",l.borderActionFocusRing),gap:t.extend("--ftds-toggle-gap","",i.spacing3)};var Rg={iconSize:t.extend("--ftds-notification-icon-size","",i.iconSize4),leftPadding:t.extend("--ftds-notification-left-padding","",i.spacing5),rightPadding:t.extend("--ftds-notification-right-padding","",i.spacing4),verticalPadding:t.extend("--ftds-notification-vertical-padding","",i.spacing3),infoBackgroundColor:t.extend("--ftds-notification-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-notification-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-notification-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-notification-info-border-color","",l.borderInfoSubtle),successBackgroundColor:t.extend("--ftds-notification-success-background-color","",l.backgroundSuccessSubtle),successColor:t.extend("--ftds-notification-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-notification-success-icon-color","",l.contentSuccessIconOnly),successBorderColor:t.extend("--ftds-notification-success-border-color","",l.borderSuccessSubtle),warningBackgroundColor:t.extend("--ftds-notification-warning-background-color","",l.backgroundWarningSubtle),warningColor:t.extend("--ftds-notification-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-notification-warning-icon-color","",l.contentWarningIconOnly),warningBorderColor:t.extend("--ftds-notification-warning-border-color","",l.borderWarningSubtle),errorBackgroundColor:t.extend("--ftds-notification-error-background-color","",l.backgroundErrorSubtle),errorColor:t.extend("--ftds-notification-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-notification-error-icon-color","",l.contentErrorIconOnly),errorBorderColor:t.extend("--ftds-notification-error-border-color","",l.borderErrorSubtle),borderRadius:t.extend("--ftds-notification-border-radius","",i.borderRadiusPill),borderWidth:t.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:t.extend("--ftds-notification-leading-gap","",i.spacing2),trailingGap:t.extend("--ftds-notification-trailing-gap","",i.spacing8)};var Pg={horizontalPadding:t.extend("--ftds-tooltip-horizontal-padding","",i.spacing2),verticalPadding:t.extend("--ftds-tooltip-vertical-padding","",i.spacing2),borderRadius:t.extend("--ftds-tooltip-border-radius","",i.borderRadiusS),color:t.extend("--ftds-tooltip-color","",l.contentGlobalOnColor),backgroundColor:t.extend("--ftds-tooltip-background-color","",l.contentGlobalPrimary),backgroundOpacity:t.extend("--ftds-tooltip-background-opacity","",i.opacity80),shadow:t.extend("--ftds-tooltip-shadow","",i.shadowElevation02),maxWidth:t.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:t.extend("--ftds-tooltip-gap","",i.spacing05)};var Bg={verticalPadding:t.extend("--ftds-reorderable-list-vertical-padding","",i.spacing4),gap:t.extend("--ftds-reorderable-list-gap","",i.spacing1),borderRadius:t.extend("--ftds-reorderable-list-border-radius","",i.borderRadiusM),reorderableItemTitleMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",i.spacing6),reorderableItemTitleColor:t.extend("--ftds-reorderable-list-reorderable-item-title-color","",l.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",i.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:t.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",i.spacing2),reorderableItemRightButtonsGroupHorizontalGap:t.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",i.spacing2),reorderableItemUsersCountColor:t.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",l.contentGlobalPrimary),reorderableItemUsersCountMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",i.spacing6),reorderableItemBackgroundColor:t.extend("--ftds-reorderable-list-reorderable-item-background-color","",l.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",i.spacing1),reorderableItemWarningMessageColor:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",l.contentWarningPrimary),reorderableItemWarningMessageIconColor:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",l.contentWarningIconOnly),reorderableItemGripColor:t.extend("--ftds-reorderable-list-reorderable-item-grip-color","",l.contentGlobalSecondary),reorderableItemGripOpacity:t.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",i.opacity48),boxShadow:t.extend("--ftds-reorderable-list-box-shadow","",i.shadowElevation01),borderWidth:t.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:t.extend("--ftds-reorderable-list-reorderable-items-gap","",i.spacing2),leftPadding:t.extend("--ftds-reorderable-list-left-padding","",i.spacing2),rightPadding:t.extend("--ftds-reorderable-list-right-padding","",i.spacing6),borderColor:t.extend("--ftds-reorderable-list-border-color","",l.borderGlobalPrimary),backgroundColor:t.extend("--ftds-reorderable-list-background-color","",l.backgroundGlobalOnSurfaceDark)};var $g={menuHorizontalPadding:t.extend("--ftds-date-range-picker-menu-horizontal-padding","",i.spacing4),menuVerticalPadding:t.extend("--ftds-date-range-picker-menu-vertical-padding","",i.spacing4),menuVerticalGap:t.extend("--ftds-date-range-picker-menu-vertical-gap","",i.spacing4),menuButtonsVerticalGap:t.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",i.spacing2)};var as;(function(o){o.brand="brand",o.neutral="neutral",o.info="info",o.success="success",o.warning="warning",o.error="error"})(as||(as={}));var is;(function(o){o.large="large",o.medium="medium",o.small="small"})(is||(is={}));var It=S(j());function Ec(o,e){let r=Wo[o];return It.css`
|
|
185
|
+
${e?(0,It.unsafeCSS)(e):It.css`.ftds-typography--${(0,It.unsafeCSS)(o)}`} {
|
|
186
186
|
font-family: ${r.fontFamily};
|
|
187
187
|
font-size: ${r.fontSize};
|
|
188
188
|
font-weight: ${r.fontWeight};
|
|
@@ -191,15 +191,15 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
|
|
|
191
191
|
text-decoration: ${r.textDecoration};
|
|
192
192
|
text-transform: ${r.textCase};
|
|
193
193
|
}
|
|
194
|
-
`}var
|
|
195
|
-
<${
|
|
194
|
+
`}var ss=[Object.keys(Wo).map(o=>Ec(o))];var cs=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Ye=class extends ls.FtLitElement{constructor(){super(...arguments),this.variant=Fr.body2medium}render(){return this.element?gt`
|
|
195
|
+
<${yt(this.element)}
|
|
196
196
|
part="text"
|
|
197
197
|
class="ftds-typography ftds-typography--${this.variant}">
|
|
198
198
|
<slot></slot>
|
|
199
|
-
</${
|
|
200
|
-
`:
|
|
199
|
+
</${yt(this.element)}>
|
|
200
|
+
`:gt`
|
|
201
201
|
<slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
|
|
202
|
-
`}};
|
|
202
|
+
`}};Ye.styles=[...ss];cs([(0,jo.property)()],Ye.prototype,"element",void 0);cs([(0,jo.property)()],Ye.prototype,"variant",void 0);var Vo=S(_());(0,Vo.customElement)("ft-typography")(qe);(0,Vo.customElement)("ftds-typography")(Ye);var Ur=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},fe=class extends us.FtLitElement{constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,r,n;return this.watermark?Tt.html`
|
|
203
203
|
<style>
|
|
204
204
|
.ft-watermark {
|
|
205
205
|
height: ${this.height}px;
|
|
@@ -214,14 +214,14 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
|
|
|
214
214
|
transform="rotate(-45)"
|
|
215
215
|
fill="${(e=this.watermark)===null||e===void 0?void 0:e.color}"
|
|
216
216
|
fill-opacity="${(r=this.watermark)===null||r===void 0?void 0:r.opacity}%">
|
|
217
|
-
${(0,
|
|
217
|
+
${(0,ds.repeat)(((n=this.watermark)===null||n===void 0?void 0:n.text)||[],a=>Tt.svg`<tspan x="0" dy="1.2em">${a}</tspan>`)}
|
|
218
218
|
</text>
|
|
219
219
|
</svg>
|
|
220
220
|
</div>
|
|
221
|
-
`:
|
|
221
|
+
`:Tt.nothing}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let r=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",r.x+" "+r.y+" "+r.width+" "+r.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};fe.styles=[hi,Mr];Ur([(0,Qe.query)(".ft-watermark")],fe.prototype,"svg",void 0);Ur([(0,Qe.property)({attribute:!1})],fe.prototype,"watermark",void 0);Ur([(0,Qe.property)({attribute:!1})],fe.prototype,"heightReference",void 0);Ur([(0,Qe.state)()],fe.prototype,"height",void 0);var ps=S(_());(0,ps.customElement)("ft-content-watermark")(fe);var he=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},V=class extends et{constructor(){super(...arguments),this.renderTopic=()=>Br.html`
|
|
222
222
|
<ft-reader-topic-title></ft-reader-topic-title>
|
|
223
223
|
<ft-reader-topic-content></ft-reader-topic-content>
|
|
224
|
-
`,this.disableContextInteractions=!1,this.headingLevelsShift=0,this.renderBeforeFirst=5,this.renderAfterLast=10,this.renderItem=(e,r)=>this.renderTopicInContext(e,r),this.getItemKey=e=>this.mapId+e,this.renderedTopicsDebouncer=new
|
|
224
|
+
`,this.disableContextInteractions=!1,this.headingLevelsShift=0,this.renderBeforeFirst=5,this.renderAfterLast=10,this.renderItem=(e,r)=>this.renderTopicInContext(e,r),this.getItemKey=e=>this.mapId+e,this.renderedTopicsDebouncer=new ae.Debouncer(50),this.visibleTopicsDebouncer=new ae.Debouncer(50)}render(){var e,r;let n=((e=this.currentPage)===null||e===void 0?void 0:e.topics)||[];return Br.html`
|
|
225
225
|
<ft-infinite-scroll class="ft-reader-content"
|
|
226
226
|
.items=${n}
|
|
227
227
|
.renderItem=${this.renderItem}
|
|
@@ -240,13 +240,13 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
|
|
|
240
240
|
.watermark=${this.watermark}
|
|
241
241
|
.exportpartsPrefixes=${["watermark"]}
|
|
242
242
|
.heightReference=${this.offsetParent}></ft-content-watermark>
|
|
243
|
-
`}willUpdate(e){var r;super.willUpdate(e),e.has("renderTopic")&&((r=this.contentContainer)===null||r===void 0||r.requestUpdate())}renderTopicInContext(e,r){return
|
|
243
|
+
`}willUpdate(e){var r;super.willUpdate(e),e.has("renderTopic")&&((r=this.contentContainer)===null||r===void 0||r.requestUpdate())}renderTopicInContext(e,r){return Br.html`
|
|
244
244
|
<ft-reader-topic-context tocId="${e}"
|
|
245
245
|
?disableContextInteractions=${this.disableContextInteractions}
|
|
246
246
|
headingLevelsShift="${this.headingLevelsShift}">
|
|
247
247
|
${this.renderTopic(e,r)}
|
|
248
248
|
</ft-reader-topic-context>
|
|
249
|
-
`}getScrollTarget(){var e,r,n;if(this.disableContextInteractions)return null;let a=(e=this.contentContainer)===null||e===void 0?void 0:e.isRendered((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId);return!((n=this.scrollTarget)===null||n===void 0)&&n.tocId&&(!a||this.scrollTarget.section==null)?this.scrollTarget.tocId:null}renderedTopicChange(e){this.disableContextInteractions||this.renderedTopicsDebouncer.run(()=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setRenderedTopics(e.detail.items)})}visibleTopicChange(e){var r;this.disableContextInteractions||this.visibleTopicsDebouncer.run(()=>{var n;return(n=this.stateManager)===null||n===void 0?void 0:n.setVisibleTopics(e.detail.items)}),(r=this.stateManager)===null||r===void 0||r.store.dispatchEvent(new Event(
|
|
249
|
+
`}getScrollTarget(){var e,r,n;if(this.disableContextInteractions)return null;let a=(e=this.contentContainer)===null||e===void 0?void 0:e.isRendered((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId);return!((n=this.scrollTarget)===null||n===void 0)&&n.tocId&&(!a||this.scrollTarget.section==null)?this.scrollTarget.tocId:null}renderedTopicChange(e){this.disableContextInteractions||this.renderedTopicsDebouncer.run(()=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setRenderedTopics(e.detail.items)})}visibleTopicChange(e){var r;this.disableContextInteractions||this.visibleTopicsDebouncer.run(()=>{var n;return(n=this.stateManager)===null||n===void 0?void 0:n.setVisibleTopics(e.detail.items)}),(r=this.stateManager)===null||r===void 0||r.store.dispatchEvent(new Event(De.visibleTopicChange))}onScrollDone(){var e,r;!this.disableContextInteractions&&!(!((e=this.scrollTarget)===null||e===void 0)&&e.section)&&((r=this.stateManager)===null||r===void 0||r.scrollDone())}};V.elementDefinitions={"ft-infinite-scroll":U,"ft-content-watermark":fe};V.styles=ln;he([(0,zt.property)()],V.prototype,"renderTopic",void 0);he([(0,zt.property)({type:Boolean})],V.prototype,"disableContextInteractions",void 0);he([(0,ae.numberProperty)()],V.prototype,"headingLevelsShift",void 0);he([(0,ae.redux)()],V.prototype,"currentPage",void 0);he([(0,ae.redux)()],V.prototype,"scrollTarget",void 0);he([(0,ae.redux)()],V.prototype,"visibleTopics",void 0);he([(0,ae.redux)({selector:o=>{var e,r;return(r=(e=o.configuration)===null||e===void 0?void 0:e.loadBeforeFirstVisibleTopic)!==null&&r!==void 0?r:5}})],V.prototype,"renderBeforeFirst",void 0);he([(0,ae.redux)({selector:o=>{var e,r;return(r=(e=o.configuration)===null||e===void 0?void 0:e.loadAfterLastVisibleTopic)!==null&&r!==void 0?r:5}})],V.prototype,"renderAfterLast",void 0);he([(0,ae.redux)()],V.prototype,"mapId",void 0);he([(0,zt.query)(".ft-reader-content")],V.prototype,"contentContainer",void 0);he([(0,ae.redux)({selector:o=>{var e;return(e=o.map)===null||e===void 0?void 0:e.watermark}})],V.prototype,"watermark",void 0);(0,fs.customElement)("ft-reader-content")(V);})();
|
|
250
250
|
/*! Bundled license information:
|
|
251
251
|
|
|
252
252
|
@lit/reactive-element/css-tag.js:
|